CIRCT  20.0.0git
Public Member Functions | Public Attributes | List of all members
circt::firrtl::FieldSource::PathNode Struct Reference

#include <FIRRTLFieldSource.h>

Collaboration diagram for circt::firrtl::FieldSource::PathNode:
Collaboration graph
[legend]

Public Member Functions

 PathNode (Value src, ArrayRef< int64_t > ar, Flow flow)
 
bool isRoot () const
 Roots are operations which define the storage or aggregate value. More...
 
bool isSrcWritable () const
 Writable sources can appear as a LHS of a connect given this node's path. More...
 
bool isSrcTransparent () const
 Transparent sources reflect a value written to them in the same cycle it is written. More...
 

Public Attributes

Value src
 
Flow flow
 
SmallVector< int64_t, 4 > path
 

Detailed Description

Definition at line 32 of file FIRRTLFieldSource.h.

Constructor & Destructor Documentation

◆ PathNode()

circt::firrtl::FieldSource::PathNode::PathNode ( Value  src,
ArrayRef< int64_t >  ar,
Flow  flow 
)
inline

Definition at line 33 of file FIRRTLFieldSource.h.

Member Function Documentation

◆ isRoot()

bool circt::firrtl::FieldSource::PathNode::isRoot ( ) const
inline

Roots are operations which define the storage or aggregate value.

Definition at line 40 of file FIRRTLFieldSource.h.

References path.

◆ isSrcTransparent()

bool circt::firrtl::FieldSource::PathNode::isSrcTransparent ( ) const
inline

Transparent sources reflect a value written to them in the same cycle it is written.

These are sources which provide dataflow backwards in SSA during one logical execution of a module body. A port may be transparent (no storage), but not be writable from the side of the instance we are on.

Definition at line 51 of file FIRRTLFieldSource.h.

References src.

◆ isSrcWritable()

bool circt::firrtl::FieldSource::PathNode::isSrcWritable ( ) const
inline

Writable sources can appear as a LHS of a connect given this node's path.

Definition at line 44 of file FIRRTLFieldSource.h.

References flow, and circt::firrtl::Source.

Member Data Documentation

◆ flow

Flow circt::firrtl::FieldSource::PathNode::flow

Definition at line 36 of file FIRRTLFieldSource.h.

Referenced by isSrcWritable().

◆ path

SmallVector<int64_t, 4> circt::firrtl::FieldSource::PathNode::path

Definition at line 37 of file FIRRTLFieldSource.h.

Referenced by isRoot().

◆ src

Value circt::firrtl::FieldSource::PathNode::src

Definition at line 35 of file FIRRTLFieldSource.h.

Referenced by isSrcTransparent().


The documentation for this struct was generated from the following file: