diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-11-03 21:13:21 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-11-03 21:13:21 +0100 |
commit | eab536a203cf542644fdf3a36eecb54599e684af (patch) | |
tree | c7c64a96639be5e841e14b4bf54c5039813bf8df /backends | |
parent | d2b083f5cb39d544130331ddb3d41a451b485c06 (diff) | |
parent | f7f0af6f9cf11c176065a97c721ccf8172439dc9 (diff) | |
download | yosys-eab536a203cf542644fdf3a36eecb54599e684af.tar.gz yosys-eab536a203cf542644fdf3a36eecb54599e684af.tar.bz2 yosys-eab536a203cf542644fdf3a36eecb54599e684af.zip |
Merge branch 'master' of github.com:cliffordwolf/yosys
Diffstat (limited to 'backends')
-rw-r--r-- | backends/intersynth/intersynth.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/intersynth/intersynth.cc b/backends/intersynth/intersynth.cc index 83db8908c..a3f61eeb5 100644 --- a/backends/intersynth/intersynth.cc +++ b/backends/intersynth/intersynth.cc @@ -174,9 +174,11 @@ struct IntersynthBackend : public Backend { node_code = stringf("node %s %s", RTLIL::id2cstr(cell->name), RTLIL::id2cstr(cell->type)); for (auto &port : cell->connections) { RTLIL::SigSpec sig = sigmap(port.second); - conntypes_code.insert(stringf("conntype b%d %d 2 %d\n", sig.width, sig.width, sig.width)); - celltype_code += stringf(" b%d %s%s", sig.width, ct.cell_output(cell->type, port.first) ? "*" : "", RTLIL::id2cstr(port.first)); - node_code += stringf(" %s %s", RTLIL::id2cstr(port.first), netname(conntypes_code, celltypes_code, constcells_code, sig).c_str()); + if (sig.width != 0) { + conntypes_code.insert(stringf("conntype b%d %d 2 %d\n", sig.width, sig.width, sig.width)); + celltype_code += stringf(" b%d %s%s", sig.width, ct.cell_output(cell->type, port.first) ? "*" : "", RTLIL::id2cstr(port.first)); + node_code += stringf(" %s %s", RTLIL::id2cstr(port.first), netname(conntypes_code, celltypes_code, constcells_code, sig).c_str()); + } } for (auto ¶m : cell->parameters) { celltype_code += stringf(" cfg:%d %s", int(param.second.bits.size()), RTLIL::id2cstr(param.first)); |