diff --git a/kernel/rtlil.cc b/kernel/rtlil.cc index ef2df571941..3afac3ef856 100644 --- a/kernel/rtlil.cc +++ b/kernel/rtlil.cc @@ -2446,7 +2446,7 @@ RTLIL::Cell *RTLIL::Module::addCell(RTLIL::IdString name, RTLIL::IdString type) log("ptr 0x%016X\n", cell); cell->name = name; cell->type = type; - scream("addCell pre", cell); + // scream("addCell pre", cell); if (RTLIL::Cell::is_legacy_type(type)) { cell->legacy = new RTLIL::OldCell; cell->legacy->name = name; @@ -2464,7 +2464,7 @@ RTLIL::Cell *RTLIL::Module::addCell(RTLIL::IdString name, RTLIL::IdString type) new (&conn.second) SigSpec(); } } - scream("addCell post", cell); + // scream("addCell post", cell); add(cell); return cell; } @@ -3664,7 +3664,6 @@ void RTLIL::Cell::setParam(const RTLIL::IdString ¶mname, RTLIL::Const value) } const RTLIL::Const& RTLIL::Cell::getParam(const RTLIL::IdString ¶mname) const { - log_debug("paramname %s, type %s\n", paramname.c_str(), type.c_str()); if (is_legacy()) return legacy->getParam(paramname); log_debug("fr"); diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 1cf86e9fe4c..c7e3e4b1645 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -1852,13 +1852,13 @@ struct RTLIL::Cell : RTLIL::AttrObject } iterator end() { if (parent->is_legacy()) { - return iterator(parent, parent->legacy->connections_.size()); + return iterator(parent, parent->legacy->parameters.size()); } else if (parent->type == ID($pos)) { - return iterator(parent, parent->pos.connections().size()); + return iterator(parent, parent->pos.parameters().size()); } else if (parent->type == ID($neg)) { - return iterator(parent, parent->neg.connections().size()); + return iterator(parent, parent->neg.parameters().size()); } else if (parent->type == ID($not)) { - return iterator(parent, parent->not_.connections().size()); + return iterator(parent, parent->not_.parameters().size()); } else { throw std::out_of_range("FakeParams::iterator::end()"); } @@ -1914,13 +1914,13 @@ struct RTLIL::Cell : RTLIL::AttrObject } const_iterator end() const { if (parent->is_legacy()) { - return const_iterator(parent, parent->legacy->connections_.size()); + return const_iterator(parent, parent->legacy->parameters.size()); } else if (parent->type == ID($pos)) { - return const_iterator(parent, parent->pos.connections().size()); + return const_iterator(parent, parent->pos.parameters().size()); } else if (parent->type == ID($neg)) { - return const_iterator(parent, parent->neg.connections().size()); + return const_iterator(parent, parent->neg.parameters().size()); } else if (parent->type == ID($not)) { - return const_iterator(parent, parent->not_.connections().size()); + return const_iterator(parent, parent->not_.parameters().size()); } else { throw std::out_of_range("FakeConns::end() const"); }