mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-06 19:21:23 +00:00
Added RTLIL::Cell::has(portname)
This commit is contained in:
parent
a84cb04935
commit
97a59851a6
12 changed files with 33 additions and 27 deletions
|
@ -80,7 +80,7 @@ static void print_spice_module(FILE *f, RTLIL::Module *module, RTLIL::Design *de
|
|||
for (RTLIL::Wire *wire : ports) {
|
||||
log_assert(wire != NULL);
|
||||
RTLIL::SigSpec sig(RTLIL::State::Sz, wire->width);
|
||||
if (cell->connections().count(wire->name) > 0) {
|
||||
if (cell->has(wire->name)) {
|
||||
sig = sigmap(cell->connections().at(wire->name));
|
||||
sig.extend(wire->width, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue