Verilog to Routing - VPR
Public Member Functions
Instance Class Referenceabstract

Instance is an interface used to represent an element instantiated in a netlist. More...

Inheritance diagram for Instance:
Inheritance graph
[legend]

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...
 

Detailed Description

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)

Constructor & Destructor Documentation

◆ ~Instance()

virtual Instance::~Instance ( )
virtualdefault

Member Function Documentation

◆ print_blif()

virtual void Instance::print_blif ( std::ostream &  os,
size_t &  unconn_count,
int  depth = 0 
)
pure virtual

Print the current instance in blif format.

Parameters
osThe output stream to print to
unconn_countThe 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.
depthCurrent 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.

◆ print_sdf()

virtual void Instance::print_sdf ( std::ostream &  os,
int  depth = 0 
)
pure virtual

Print the current instanse in SDF, see print_blif() for argument descriptions.

Implemented in BlackBoxInst, LatchInst, and LutInst.

◆ print_verilog()

virtual void Instance::print_verilog ( std::ostream &  os,
int  depth = 0 
)
pure virtual

Print the current instanse in Verilog, see print_blif() for argument descriptions.

Implemented in BlackBoxInst, LatchInst, and LutInst.


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