3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-29 23:43:16 +00:00

sta: track and print source port too

This commit is contained in:
Eddie Hung 2020-02-19 14:33:47 -08:00
parent 5084fa9d8a
commit d523168a1c
2 changed files with 92 additions and 49 deletions

View file

@ -132,8 +132,9 @@ struct TimingInfo
max = 0;
}
for (const auto &d : dst) {
auto &v = t.arrival[NameBit(d)];
if (v.first < max) {
auto r = t.arrival.insert(NameBit(d));
auto &v = r.first->second;
if (r.second || v.first < max) {
v.first = max;
v.second = NameBit(src);
}
@ -156,8 +157,9 @@ struct TimingInfo
max = 0;
}
for (const auto &s : src) {
auto &v = t.required[NameBit(s)];
if (v.first < max) {
auto r = t.required.insert(NameBit(s));
auto &v = r.first->second;
if (r.second || v.first < max) {
v.first = max;
v.second = NameBit(dst);
}