write_timing_model unclocked register seg fault

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2023-10-17 14:29:38 -07:00
parent 8f5216dc13
commit fa65070682
1 changed files with 10 additions and 8 deletions

View File

@ -370,14 +370,16 @@ ClkSkews::findClkDelays(const Clock *clk,
while (path_iter.hasNext()) { while (path_iter.hasNext()) {
PathVertex *path = path_iter.next(); PathVertex *path = path_iter.next();
const ClockEdge *path_clk_edge = path->clkEdge(this); const ClockEdge *path_clk_edge = path->clkEdge(this);
const RiseFall *clk_rf = path_clk_edge->transition(); if (path_clk_edge) {
const Clock *path_clk = path_clk_edge->clock(); const RiseFall *clk_rf = path_clk_edge->transition();
if (path_clk == clk) { const Clock *path_clk = path_clk_edge->clock();
Arrival arrival = path->arrival(this); if (path_clk == clk) {
Delay clk_delay = delayAsFloat(arrival) - path_clk_edge->time(); Arrival arrival = path->arrival(this);
const MinMax *min_max = path->minMax(this); Delay clk_delay = delayAsFloat(arrival) - path_clk_edge->time();
const RiseFall *rf = path->transition(this); const MinMax *min_max = path->minMax(this);
delays[clk_rf->index()][rf->index()].setValue(min_max, clk_delay); const RiseFall *rf = path->transition(this);
delays[clk_rf->index()][rf->index()].setValue(min_max, clk_delay);
}
} }
} }
} }