|
| BlifAllocCallback (e_circuit_format blif_format, AtomNetlist &main_netlist, const std::string netlist_id, const t_model *user_models, const t_model *library_models) |
|
void | start_parse () override |
|
void | finish_parse () override |
|
void | begin_model (std::string model_name) override |
|
void | inputs (std::vector< std::string > input_names) override |
|
void | outputs (std::vector< std::string > output_names) override |
|
void | names (std::vector< std::string > nets, std::vector< std::vector< blifparse::LogicValue >> so_cover) override |
|
void | latch (std::string input, std::string output, blifparse::LatchType type, std::string control, blifparse::LogicValue init) override |
|
void | subckt (std::string subckt_model, std::vector< std::string > ports, std::vector< std::string > nets) override |
|
void | blackbox () override |
|
void | end_model () override |
|
void | conn (std::string src, std::string dst) override |
|
void | cname (std::string cell_name) override |
|
void | attr (std::string name, std::string value) override |
|
void | param (std::string name, std::string value) override |
|
void | filename (std::string fname) override |
|
void | lineno (int line_num) override |
|
void | parse_error (const int curr_lineno, const std::string &near_text, const std::string &msg) override |
|
size_t | determine_main_netlist_index () |
|
◆ BlifAllocCallback()
BlifAllocCallback::BlifAllocCallback |
( |
e_circuit_format |
blif_format, |
|
|
AtomNetlist & |
main_netlist, |
|
|
const std::string |
netlist_id, |
|
|
const t_model * |
user_models, |
|
|
const t_model * |
library_models |
|
) |
| |
|
inline |
◆ attr()
void BlifAllocCallback::attr |
( |
std::string |
name, |
|
|
std::string |
value |
|
) |
| |
|
inlineoverride |
◆ begin_model()
void BlifAllocCallback::begin_model |
( |
std::string |
model_name | ) |
|
|
inlineoverride |
◆ blackbox()
void BlifAllocCallback::blackbox |
( |
| ) |
|
|
inlineoverride |
◆ cname()
void BlifAllocCallback::cname |
( |
std::string |
cell_name | ) |
|
|
inlineoverride |
◆ conn()
void BlifAllocCallback::conn |
( |
std::string |
src, |
|
|
std::string |
dst |
|
) |
| |
|
inlineoverride |
◆ curr_block()
Gets the current block which is being processed.
◆ curr_model()
Retieves a reference to the currently active .model.
◆ determine_main_netlist_index()
size_t BlifAllocCallback::determine_main_netlist_index |
( |
| ) |
|
|
inline |
◆ end_model()
void BlifAllocCallback::end_model |
( |
| ) |
|
|
inlineoverride |
◆ filename()
void BlifAllocCallback::filename |
( |
std::string |
fname | ) |
|
|
inlineoverride |
◆ find_model()
const t_model* BlifAllocCallback::find_model |
( |
std::string |
name | ) |
|
|
inlineprivate |
◆ find_model_port()
const t_model_ports* BlifAllocCallback::find_model_port |
( |
const t_model * |
blk_model, |
|
|
std::string |
port_name |
|
) |
| |
|
inlineprivate |
◆ finish_parse()
void BlifAllocCallback::finish_parse |
( |
| ) |
|
|
inlineoverride |
◆ inputs()
void BlifAllocCallback::inputs |
( |
std::vector< std::string > |
input_names | ) |
|
|
inlineoverride |
◆ latch()
void BlifAllocCallback::latch |
( |
std::string |
input, |
|
|
std::string |
output, |
|
|
blifparse::LatchType |
type, |
|
|
std::string |
control, |
|
|
blifparse::LogicValue |
init |
|
) |
| |
|
inlineoverride |
◆ lineno()
void BlifAllocCallback::lineno |
( |
int |
line_num | ) |
|
|
inlineoverride |
◆ merge_conn_nets()
void BlifAllocCallback::merge_conn_nets |
( |
| ) |
|
|
inlineprivate |
Merges all the recorded net pairs which need to be merged.
This should only be called at the end of a .model to ensure that all the associated driver/sink pins have been delcared and connected to their nets
◆ names()
void BlifAllocCallback::names |
( |
std::vector< std::string > |
nets, |
|
|
std::vector< std::vector< blifparse::LogicValue >> |
so_cover |
|
) |
| |
|
inlineoverride |
◆ outputs()
void BlifAllocCallback::outputs |
( |
std::vector< std::string > |
output_names | ) |
|
|
inlineoverride |
◆ param()
void BlifAllocCallback::param |
( |
std::string |
name, |
|
|
std::string |
value |
|
) |
| |
|
inlineoverride |
◆ parse_error()
void BlifAllocCallback::parse_error |
( |
const int |
curr_lineno, |
|
|
const std::string & |
near_text, |
|
|
const std::string & |
msg |
|
) |
| |
|
inlineoverride |
◆ set_curr_block()
void BlifAllocCallback::set_curr_block |
( |
AtomBlockId |
blk | ) |
|
|
inlineprivate |
Sets the current block which is being processed.
Used to determine which block a .cname, .param, .attr apply to
◆ set_curr_model_blackbox()
void BlifAllocCallback::set_curr_model_blackbox |
( |
bool |
val | ) |
|
|
inlineprivate |
◆ split_index()
std::pair<std::string, int> BlifAllocCallback::split_index |
( |
const std::string & |
signal_name | ) |
|
|
inlineprivate |
Splits the index off a signal name and returns the base signal name (excluding the index) and the index as an integer. For example.
"my_signal_name[2]" -> "my_signal_name", 2
◆ start_parse()
void BlifAllocCallback::start_parse |
( |
| ) |
|
|
inlineoverride |
◆ subckt()
void BlifAllocCallback::subckt |
( |
std::string |
subckt_model, |
|
|
std::vector< std::string > |
ports, |
|
|
std::vector< std::string > |
nets |
|
) |
| |
|
inlineoverride |
◆ unique_subckt_name()
std::string BlifAllocCallback::unique_subckt_name |
( |
| ) |
|
|
inlineprivate |
Returns a different unique subck name each time it is called.
◆ verify_blackbox_model()
bool BlifAllocCallback::verify_blackbox_model |
( |
AtomNetlist & |
blif_model | ) |
|
|
inlineprivate |
◆ blif_format_
◆ blif_models_
std::vector<AtomNetlist> BlifAllocCallback::blif_models_ |
|
private |
◆ blif_models_black_box_
std::vector<bool> BlifAllocCallback::blif_models_black_box_ |
|
private |
◆ curr_block_
◆ curr_nets_to_merge_
◆ ended_
bool BlifAllocCallback::ended_ = true |
|
private |
◆ filename_
std::string BlifAllocCallback::filename_ = "" |
|
private |
◆ library_arch_models_
const t_model* BlifAllocCallback::library_arch_models_ = nullptr |
|
private |
◆ lineno_
int BlifAllocCallback::lineno_ = -1 |
|
private |
◆ main_netlist_
◆ netlist_id_
const std::string BlifAllocCallback::netlist_id_ |
|
private |
Unique identifier based on the contents of the blif file
◆ OUTPAD_NAME_PREFIX
constexpr const char* BlifAllocCallback::OUTPAD_NAME_PREFIX = "out:" |
|
static |
◆ unique_subckt_name_counter_
size_t BlifAllocCallback::unique_subckt_name_counter_ = 0 |
|
private |
◆ user_arch_models_
const t_model* BlifAllocCallback::user_arch_models_ = nullptr |
|
private |
The documentation for this struct was generated from the following file: