mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-19 13:45:48 +00:00
WIP
This commit is contained in:
parent
015ab4e45b
commit
f592f2f3af
203 changed files with 4575 additions and 4481 deletions
|
|
@ -32,8 +32,8 @@ static RTLIL::SigChunk value;
|
|||
void constmap_worker(RTLIL::SigSpec &sig)
|
||||
{
|
||||
if (sig.is_fully_const()){
|
||||
value = module->addWire(NEW_ID, sig.size());
|
||||
RTLIL::Cell *cell = module->addCell(NEW_ID, celltype);
|
||||
value = module->addWire(NEW_TWINE, sig.size());
|
||||
RTLIL::Cell *cell = module->addCell(NEW_TWINE, celltype);
|
||||
cell->setParam(cell_paramname, sig.as_const());
|
||||
cell->setPort(cell_portname, value);
|
||||
sig = value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue