Skip to content

Commit 082678e

Browse files
authored
Merge pull request verilog-to-routing#2707 from verilog-to-routing/temp_issue_2705
Fix compilation error with VTR_ASSERT_LEVEL=4
2 parents 9932de7 + 617b097 commit 082678e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ jobs:
141141
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on',
142142
suite: 'vtr_reg_basic'
143143
},
144+
{
145+
name: 'Basic with highest assertion level',
146+
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=4 -DWITH_BLIFEXPLORER=on',
147+
suite: 'vtr_reg_basic'
148+
},
144149
{
145150
name: 'Basic_odin',
146151
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',

vpr/src/place/place_timing_update.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void update_td_costs(const PlaceDelayModel* delay_model,
298298

299299
#ifdef VTR_ASSERT_DEBUG_ENABLED
300300
double check_timing_cost = 0.;
301-
comp_td_costs(delay_model, place_crit, &check_timing_cost);
301+
comp_td_costs(delay_model, place_crit, placer_state, &check_timing_cost);
302302
VTR_ASSERT_DEBUG_MSG(check_timing_cost == *timing_cost,
303303
"Total timing cost calculated incrementally in update_td_costs() is "
304304
"not consistent with value calculated from scratch in comp_td_costs()");

0 commit comments

Comments
 (0)