mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-23 06:13:41 +00:00
kernel: SigSpec use more const& + overloads to prevent implicit SigSpec
This commit is contained in:
parent
b567f03c26
commit
432a09af80
14 changed files with 96 additions and 82 deletions
|
@ -286,7 +286,7 @@ struct ExtractReducePass : public Pass
|
|||
SigSpec input;
|
||||
for (auto b : input_pool)
|
||||
if (input_pool_intermed.count(b) == 0)
|
||||
input.append_bit(b);
|
||||
input.append(b);
|
||||
|
||||
SigBit output = sigmap(head_cell->getPort(ID::Y)[0]);
|
||||
|
||||
|
|
|
@ -1405,7 +1405,7 @@ struct FlowmapWorker
|
|||
|
||||
RTLIL::SigSpec lut_a, lut_y = node;
|
||||
for (auto input_node : input_nodes)
|
||||
lut_a.append_bit(input_node);
|
||||
lut_a.append(input_node);
|
||||
lut_a.append(RTLIL::Const(State::Sx, minlut - input_nodes.size()));
|
||||
|
||||
RTLIL::Cell *lut = module->addLut(NEW_ID, lut_a, lut_y, lut_table);
|
||||
|
|
|
@ -906,8 +906,8 @@ struct TechmapWorker
|
|||
|
||||
RTLIL::SigSig port_conn;
|
||||
for (auto &it : port_connmap) {
|
||||
port_conn.first.append_bit(it.first);
|
||||
port_conn.second.append_bit(it.second);
|
||||
port_conn.first.append(it.first);
|
||||
port_conn.second.append(it.second);
|
||||
}
|
||||
tpl->connect(port_conn);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue