CIRCT
20.0.0git
|
This represents an annotation targeting a specific port of a module, memory, or instance. More...
#include <FIRRTLAnnotations.h>
Public Member Functions | |
PortAnnoTarget (FModuleLike op, unsigned portNo) | |
PortAnnoTarget (MemOp op, unsigned portNo) | |
unsigned | getPortNo () const |
void | setPortNo (unsigned portNo) |
AnnotationSet | getAnnotations () const |
void | setAnnotations (AnnotationSet annotations) const |
Attribute | getNLAReference (hw::InnerSymbolNamespace &moduleNamespace) const |
FIRRTLType | getType () const |
AnnoTarget (detail::AnnoTargetImpl impl=nullptr) | |
Public Member Functions inherited from circt::firrtl::AnnoTarget | |
AnnoTarget (detail::AnnoTargetImpl impl=nullptr) | |
operator bool () const | |
bool | operator== (const AnnoTarget &other) const |
bool | operator!= (const AnnoTarget &other) const |
Operation * | getOp () const |
void | setOp (Operation *op) |
AnnotationSet | getAnnotations () const |
Get the annotations associated with the target. More... | |
void | setAnnotations (AnnotationSet annotations) const |
Set the annotations associated with the target. More... | |
FModuleLike | getModule () const |
Get the parent module of the target. More... | |
Attribute | getNLAReference (hw::InnerSymbolNamespace &moduleNamespace) const |
Get a reference to this target suitable for use in an NLA. More... | |
FIRRTLType | getType () const |
Get the type of the target. More... | |
detail::AnnoTargetImpl | getImpl () const |
Static Public Member Functions | |
static bool | classof (const AnnoTarget &annoTarget) |
Additional Inherited Members | |
Protected Attributes inherited from circt::firrtl::AnnoTarget | |
detail::AnnoTargetImpl | impl |
This represents an annotation targeting a specific port of a module, memory, or instance.
Definition at line 432 of file FIRRTLAnnotations.h.
PortAnnoTarget::PortAnnoTarget | ( | FModuleLike | op, |
unsigned | portNo | ||
) |
Definition at line 538 of file FIRRTLAnnotations.cpp.
PortAnnoTarget::PortAnnoTarget | ( | MemOp | op, |
unsigned | portNo | ||
) |
Definition at line 541 of file FIRRTLAnnotations.cpp.
|
inline |
Definition at line 384 of file FIRRTLAnnotations.h.
|
inlinestatic |
Definition at line 446 of file FIRRTLAnnotations.h.
References circt::firrtl::AnnoTarget::getImpl(), and circt::firrtl::detail::AnnoTargetImpl::isPort().
AnnotationSet PortAnnoTarget::getAnnotations | ( | ) | const |
Definition at line 544 of file FIRRTLAnnotations.cpp.
References circt::firrtl::AnnotationSet::forPort(), circt::firrtl::AnnoTarget::getOp(), and getPortNo().
Attribute PortAnnoTarget::getNLAReference | ( | hw::InnerSymbolNamespace & | moduleNamespace | ) | const |
Definition at line 562 of file FIRRTLAnnotations.cpp.
References circt::firrtl::getInnerRefTo(), circt::firrtl::AnnoTarget::getOp(), and getPortNo().
|
inline |
Definition at line 438 of file FIRRTLAnnotations.h.
References circt::firrtl::AnnoTarget::getImpl(), and circt::firrtl::detail::AnnoTargetImpl::getPortNo().
Referenced by getAnnotations(), getNLAReference(), getType(), circt::firrtl::operator<<(), and setAnnotations().
FIRRTLType PortAnnoTarget::getType | ( | ) | const |
Definition at line 573 of file FIRRTLAnnotations.cpp.
References circt::firrtl::AnnoTarget::getOp(), and getPortNo().
void PortAnnoTarget::setAnnotations | ( | AnnotationSet | annotations | ) | const |
Definition at line 553 of file FIRRTLAnnotations.cpp.
References circt::firrtl::AnnotationSet::applyToPort(), circt::firrtl::AnnoTarget::getOp(), and getPortNo().
|
inline |
Definition at line 439 of file FIRRTLAnnotations.h.
References circt::firrtl::AnnoTarget::getImpl(), and circt::firrtl::detail::AnnoTargetImpl::setPortNo().