continue;
for (int i = 0; i < GetSize(conn.second); i++) {
- auto d = t.at(SigBit(port_wire,i), 0);
+ auto d = t.at(TimingInfo::NameBit(conn.first,i), 0);
if (d == 0)
continue;
{
RTLIL::IdString name;
int offset;
- NameBit() {}
- NameBit(const RTLIL::SigBit &b) : name(b.wire->name), offset(b.offset) {}
+ NameBit() : offset(0) {}
+ NameBit(const RTLIL::IdString name, int offset) : name(name), offset(offset) {}
+ explicit NameBit(const RTLIL::SigBit &b) : name(b.wire->name), offset(b.offset) {}
bool operator==(const NameBit& nb) const { return nb.name == name && nb.offset == offset; }
bool operator!=(const NameBit& nb) const { return !operator==(nb); }
unsigned int hash() const { return mkhash_add(name.hash(), offset); }
continue;
}
for (const auto &d : dst) {
- auto &v = t.arrival[d];
+ auto &v = t.arrival[NameBit(d)];
v = std::max(v, max);
}
}
continue;
}
for (const auto &s : src) {
- auto &v = t.required[s];
+ auto &v = t.required[NameBit(s)];
v = std::max(v, max);
}
}
SigSpec O = module->addWire(NEW_ID, GetSize(conn.second));
for (int i = 0; i < GetSize(conn.second); i++) {
- auto d = t.at(SigBit(port_wire,i), 0);
+ auto d = t.at(TimingInfo::NameBit(conn.first,i), 0);
if (d == 0)
continue;
else
ss << " ";
log_assert(GetSize(wire) == 1);
- auto it = t.find(SigBit(wire,0));
+ auto it = t.find(TimingInfo::NameBit(port_name,0));
if (it == t.end())
// Assume that no setup time means zero
ss << 0;
first = false;
else
ss << " ";
- auto jt = t.find(std::make_pair(i,o));
+ auto jt = t.find(std::make_pair(TimingInfo::NameBit(i),TimingInfo::NameBit(o)));
if (jt == t.end())
ss << "-";
else