diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-21 12:35:06 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-21 12:35:06 +0200 |
commit | 1d88f1cf9f2088de7825f5292db5b40d4f73d036 (patch) | |
tree | ef1eeba2dcddbe957dabb8147b2b81cdc0d2ecd3 /passes/techmap | |
parent | 3cb61d03f8722fddfa14877accae1b3ca51e3926 (diff) | |
download | yosys-1d88f1cf9f2088de7825f5292db5b40d4f73d036.tar.gz yosys-1d88f1cf9f2088de7825f5292db5b40d4f73d036.tar.bz2 yosys-1d88f1cf9f2088de7825f5292db5b40d4f73d036.zip |
Removed deprecated module->new_wire()
Diffstat (limited to 'passes/techmap')
-rw-r--r-- | passes/techmap/simplemap.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/passes/techmap/simplemap.cc b/passes/techmap/simplemap.cc index e67b1e055..91f3b6124 100644 --- a/passes/techmap/simplemap.cc +++ b/passes/techmap/simplemap.cc @@ -89,7 +89,7 @@ static void simplemap_bitop(RTLIL::Module *module, RTLIL::Cell *cell) if (cell->type == "$xnor") { - RTLIL::SigSpec sig_t = module->new_wire(width, NEW_ID); + RTLIL::SigSpec sig_t = module->addWire(NEW_ID, width); sig_t.expand(); for (int i = 0; i < width; i++) { @@ -158,7 +158,7 @@ static void simplemap_reduce(RTLIL::Module *module, RTLIL::Cell *cell) while (sig_a.width > 1) { - RTLIL::SigSpec sig_t = module->new_wire(sig_a.width / 2, NEW_ID); + RTLIL::SigSpec sig_t = module->addWire(NEW_ID, sig_a.width / 2); sig_t.expand(); for (int i = 0; i < sig_a.width; i += 2) @@ -182,7 +182,7 @@ static void simplemap_reduce(RTLIL::Module *module, RTLIL::Cell *cell) } if (cell->type == "$reduce_xnor") { - RTLIL::SigSpec sig_t = module->new_wire(1, NEW_ID); + RTLIL::SigSpec sig_t = module->addWire(NEW_ID); RTLIL::Cell *gate = new RTLIL::Cell; gate->name = NEW_ID; gate->type = "$_INV_"; @@ -206,7 +206,7 @@ static void logic_reduce(RTLIL::Module *module, RTLIL::SigSpec &sig) while (sig.width > 1) { - RTLIL::SigSpec sig_t = module->new_wire(sig.width / 2, NEW_ID); + RTLIL::SigSpec sig_t = module->addWire(NEW_ID, sig.width / 2); sig_t.expand(); for (int i = 0; i < sig.width; i += 2) |