|
| BlackBoxInst (std::string type_name, std::string inst_name, std::map< std::string, std::string > params, std::map< std::string, std::string > attrs, std::map< std::string, std::vector< std::string >> input_port_conns, std::map< std::string, std::vector< std::string >> output_port_conns, std::vector< Arc > timing_arcs, std::map< std::string, double > ports_tsu, std::map< std::string, double > ports_tcq) |
|
void | print_blif (std::ostream &os, size_t &unconn_count, int depth=0) override |
| Print the current instance in blif format. More...
|
|
void | print_verilog (std::ostream &os, int depth=0) override |
| Print the current instanse in Verilog, see print_blif() for argument descriptions. More...
|
|
void | print_sdf (std::ostream &os, int depth=0) override |
| Print the current instanse in SDF, see print_blif() for argument descriptions. More...
|
|
size_t | find_port_size (std::string port_name) |
|
virtual | ~Instance ()=default |
|
◆ BlackBoxInst()
BlackBoxInst::BlackBoxInst |
( |
std::string |
type_name, |
|
|
std::string |
inst_name, |
|
|
std::map< std::string, std::string > |
params, |
|
|
std::map< std::string, std::string > |
attrs, |
|
|
std::map< std::string, std::vector< std::string >> |
input_port_conns, |
|
|
std::map< std::string, std::vector< std::string >> |
output_port_conns, |
|
|
std::vector< Arc > |
timing_arcs, |
|
|
std::map< std::string, double > |
ports_tsu, |
|
|
std::map< std::string, double > |
ports_tcq |
|
) |
| |
|
inline |
- Parameters
-
type_name | Instance type |
inst_name | Instance name |
params | Verilog parameters: Dictonary of <param_name,value> |
attrs | Instance attributes: Dictonary of <attr_name,value> |
input_port_conns | Port connections: Dictionary of <port,nets> |
output_port_conns | Port connections: Dictionary of <port,nets> |
timing_arcs | Combinational timing arcs |
ports_tsu | Port setup checks |
ports_tcq | Port clock-to-q delays |
◆ find_port_size()
size_t BlackBoxInst::find_port_size |
( |
std::string |
port_name | ) |
|
|
inline |
◆ print_blif()
void BlackBoxInst::print_blif |
( |
std::ostream & |
os, |
|
|
size_t & |
unconn_count, |
|
|
int |
depth = 0 |
|
) |
| |
|
inlineoverridevirtual |
Print the current instance in blif format.
- Parameters
-
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. |
Implements Instance.
◆ print_sdf()
void BlackBoxInst::print_sdf |
( |
std::ostream & |
os, |
|
|
int |
depth = 0 |
|
) |
| |
|
inlineoverridevirtual |
◆ print_verilog()
void BlackBoxInst::print_verilog |
( |
std::ostream & |
os, |
|
|
int |
depth = 0 |
|
) |
| |
|
inlineoverridevirtual |
Print the current instanse in Verilog, see print_blif() for argument descriptions.
Implements Instance.
◆ attrs_
std::map<std::string, std::string> BlackBoxInst::attrs_ |
|
private |
◆ input_port_conns_
std::map<std::string, std::vector<std::string> > BlackBoxInst::input_port_conns_ |
|
private |
◆ inst_name_
std::string BlackBoxInst::inst_name_ |
|
private |
◆ output_port_conns_
std::map<std::string, std::vector<std::string> > BlackBoxInst::output_port_conns_ |
|
private |
◆ params_
std::map<std::string, std::string> BlackBoxInst::params_ |
|
private |
◆ ports_tcq_
std::map<std::string, double> BlackBoxInst::ports_tcq_ |
|
private |
◆ ports_thld_
std::map<std::string, double> BlackBoxInst::ports_thld_ |
|
private |
◆ ports_tsu_
std::map<std::string, double> BlackBoxInst::ports_tsu_ |
|
private |
◆ timing_arcs_
std::vector<Arc> BlackBoxInst::timing_arcs_ |
|
private |
◆ type_name_
std::string BlackBoxInst::type_name_ |
|
private |
The documentation for this class was generated from the following file: