mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 21:27:00 +00:00
functional backend: rename get_input and get_current_state to input and current_state (more consistent with other methods)
This commit is contained in:
parent
95d28c22a2
commit
7ac0e92d35
2 changed files with 5 additions and 5 deletions
|
@ -499,7 +499,7 @@ public:
|
|||
vector<Node> read_results;
|
||||
factory.add_state(mem->cell->name, FunctionalIR::Sort(ceil_log2(mem->size), mem->width));
|
||||
factory.set_initial_state(mem->cell->name, MemContents(mem));
|
||||
Node node = factory.get_current_state(mem->cell->name);
|
||||
Node node = factory.current_state(mem->cell->name);
|
||||
for (size_t i = 0; i < mem->wr_ports.size(); i++) {
|
||||
const auto &wr = mem->wr_ports[i];
|
||||
if (wr.clk_enable)
|
||||
|
@ -543,7 +543,7 @@ public:
|
|||
log_error("The design contains a %s flip-flop at %s. This is not supported by the functional backend. "
|
||||
"Call async2sync or clk2fflogic to avoid this error.\n", log_id(cell->type), log_id(cell));
|
||||
factory.add_state(ff.name, FunctionalIR::Sort(ff.width));
|
||||
Node q_value = factory.get_current_state(ff.name);
|
||||
Node q_value = factory.current_state(ff.name);
|
||||
factory.suggest_name(q_value, ff.name);
|
||||
factory.update_pending(cell_outputs.at({cell, ID(Q)}), q_value);
|
||||
factory.set_next_state(ff.name, enqueue(ff.sig_d));
|
||||
|
@ -593,7 +593,7 @@ public:
|
|||
DriveChunkWire wire_chunk = chunk.wire();
|
||||
if (wire_chunk.is_whole()) {
|
||||
if (wire_chunk.wire->port_input) {
|
||||
Node node = factory.get_input(wire_chunk.wire->name);
|
||||
Node node = factory.input(wire_chunk.wire->name);
|
||||
factory.suggest_name(node, wire_chunk.wire->name);
|
||||
factory.update_pending(pending, node);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue