mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 11:25:53 +00:00
erase, clear, fork replace, idk
This commit is contained in:
parent
cc10ef7019
commit
193a43e82c
13 changed files with 134 additions and 69 deletions
|
@ -395,7 +395,8 @@ static void extract_fsm(RTLIL::Wire *wire)
|
|||
RTLIL::SigSpec port_sig = assign_map(cell->getPort(cellport.second));
|
||||
RTLIL::SigSpec unconn_sig = port_sig.extract(ctrl_out);
|
||||
RTLIL::Wire *unconn_wire = module->addWire(stringf("$fsm_unconnect$%d", autoidx++), unconn_sig.size());
|
||||
port_sig.replace(unconn_sig, RTLIL::SigSpec(unconn_wire), &cell->connections_[cellport.second]);
|
||||
auto &x = cell->connections_[cellport.second];
|
||||
port_sig.replace(unconn_sig, RTLIL::SigSpec(unconn_wire), x);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,8 @@ struct FsmData
|
|||
cell->parameters[ID::STATE_TABLE] = RTLIL::Const();
|
||||
|
||||
for (int i = 0; i < int(state_table.size()); i++) {
|
||||
std::vector<RTLIL::State> &bits_table = cell->parameters[ID::STATE_TABLE].bits;
|
||||
auto thing = cell->parameters[ID::STATE_TABLE];
|
||||
std::vector<RTLIL::State> &bits_table = thing.bits;
|
||||
std::vector<RTLIL::State> &bits_state = state_table[i].bits;
|
||||
bits_table.insert(bits_table.end(), bits_state.begin(), bits_state.end());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue