Skip to content

Commit

Permalink
Merge pull request verilog-to-routing#2707 from verilog-to-routing/te…
Browse files Browse the repository at this point in the history
…mp_issue_2705

Fix compilation error with VTR_ASSERT_LEVEL=4
  • Loading branch information
vaughnbetz authored Sep 16, 2024
2 parents 9932de7 + 617b097 commit 082678e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ jobs:
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on',
suite: 'vtr_reg_basic'
},
{
name: 'Basic with highest assertion level',
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=4 -DWITH_BLIFEXPLORER=on',
suite: 'vtr_reg_basic'
},
{
name: 'Basic_odin',
params: '-DCMAKE_COMPILE_WARNING_AS_ERROR=on -DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DWITH_PARMYS=OFF -DWITH_ODIN=on',
Expand Down
2 changes: 1 addition & 1 deletion vpr/src/place/place_timing_update.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void update_td_costs(const PlaceDelayModel* delay_model,

#ifdef VTR_ASSERT_DEBUG_ENABLED
double check_timing_cost = 0.;
comp_td_costs(delay_model, place_crit, &check_timing_cost);
comp_td_costs(delay_model, place_crit, placer_state, &check_timing_cost);
VTR_ASSERT_DEBUG_MSG(check_timing_cost == *timing_cost,
"Total timing cost calculated incrementally in update_td_costs() is "
"not consistent with value calculated from scratch in comp_td_costs()");
Expand Down

0 comments on commit 082678e

Please sign in to comment.