mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-22 02:57:51 +00:00
Refactoring {SigSpec|SigChunk}(RTLIL::Wire *wire, ..) constructor -- step 1/3
This commit is contained in:
parent
c61467a32c
commit
260c19ec5a
4 changed files with 45 additions and 7 deletions
|
@ -466,7 +466,7 @@ static void abc_module(RTLIL::Design *design, RTLIL::Module *current_module, std
|
|||
clk_str = clk_str.substr(1);
|
||||
}
|
||||
if (module->wires.count(RTLIL::escape_id(clk_str)) != 0)
|
||||
clk_sig = assign_map(RTLIL::SigSpec(module->wires.at(RTLIL::escape_id(clk_str)), 1));
|
||||
clk_sig = assign_map(RTLIL::SigSpec(module->wires.at(RTLIL::escape_id(clk_str)), 1, 0));
|
||||
}
|
||||
|
||||
if (dff_mode && clk_sig.size() == 0)
|
||||
|
|
|
@ -292,8 +292,8 @@ struct ShareWorker
|
|||
supercell->connections["\\Y"] = y;
|
||||
module->add(supercell);
|
||||
|
||||
RTLIL::SigSpec new_y1(y, y1.size());
|
||||
RTLIL::SigSpec new_y2(y, y2.size());
|
||||
RTLIL::SigSpec new_y1(y, y1.size(), 0);
|
||||
RTLIL::SigSpec new_y2(y, y2.size(), 0);
|
||||
|
||||
module->connections.push_back(RTLIL::SigSig(y1, new_y1));
|
||||
module->connections.push_back(RTLIL::SigSig(y2, new_y2));
|
||||
|
@ -405,8 +405,8 @@ struct ShareWorker
|
|||
supercell->connections["\\Y"] = y;
|
||||
supercell->check();
|
||||
|
||||
RTLIL::SigSpec new_y1(y, y1.size());
|
||||
RTLIL::SigSpec new_y2(y, y2.size());
|
||||
RTLIL::SigSpec new_y1(y, y1.size(), 0);
|
||||
RTLIL::SigSpec new_y2(y, y2.size(), 0);
|
||||
|
||||
module->connections.push_back(RTLIL::SigSig(y1, new_y1));
|
||||
module->connections.push_back(RTLIL::SigSig(y2, new_y2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue