Verilog to Routing - VPR
|
Instance is an interface used to represent an element instantiated in a netlist. More...
Public Member Functions | |
virtual | ~Instance ()=default |
virtual void | print_blif (std::ostream &os, size_t &unconn_count, int depth=0)=0 |
Print the current instance in blif format. More... | |
virtual void | print_verilog (std::ostream &os, int depth=0)=0 |
Print the current instanse in Verilog, see print_blif() for argument descriptions. More... | |
virtual void | print_sdf (std::ostream &os, int depth=0)=0 |
Print the current instanse in SDF, see print_blif() for argument descriptions. More... | |
Instance is an interface used to represent an element instantiated in a netlist.
Instances know how to describe themselves in BLIF, Verilog and SDF
This should be subclassed to implement support for new primitive types (although see BlackBoxInst for a general implementation for a black box primitive)
|
virtualdefault |
|
pure virtual |
Print the current instance in blif format.
os | The output stream to print to |
unconn_count | The current count of unconnected nets. BLIF has limitations requiring unconnected nets to be used to represent unconnected ports. To allow unique naming of these nets unconn_count is used to uniquify these names. Whenever creating an unconnected net (and using unconn_count to uniquify its name in the file) unconn_count should be incremented. |
depth | Current indentation depth. This is used to figure-out how much indentation should be applied. This is purely for cosmetic formatting. Use indent() for generating consistent indentation. |
Implemented in BlackBoxInst, LatchInst, and LutInst.
|
pure virtual |
Print the current instanse in SDF, see print_blif() for argument descriptions.
Implemented in BlackBoxInst, LatchInst, and LutInst.
|
pure virtual |
Print the current instanse in Verilog, see print_blif() for argument descriptions.
Implemented in BlackBoxInst, LatchInst, and LutInst.