Skip to content

Commit

Permalink
Merge pull request #949 from pascalgouedo/dev_dd_pgo_rtl
Browse files Browse the repository at this point in the history
Corrected HWloop constraint checking assertion.
  • Loading branch information
davideschiavone authored Feb 15, 2024
2 parents 3be83b2 + f5ba683 commit e54e5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/cv32e40p_controller.sv
Original file line number Diff line number Diff line change
Expand Up @@ -1561,7 +1561,7 @@ endgenerate

// HWLoop 0 and 1 having target address constraints
property p_hwlp_same_target_address;
@(posedge clk) (hwlp_counter_i[1] > 1 && hwlp_counter_i[0] > 1) |-> ( hwlp_end_addr_i[1] - 4 >= hwlp_end_addr_i[0] - 4 + 8 );
@(posedge clk) (hwlp_counter_i[1] > 1 && hwlp_counter_i[0] > 1 && pc_id_i >= hwlp_start_addr_i[0] && pc_id_i <= hwlp_end_addr_i[0] - 4) |-> ( hwlp_end_addr_i[1] - 4 >= hwlp_end_addr_i[0] - 4 + 8 );
endproperty

a_hwlp_same_target_address : assert property(p_hwlp_same_target_address) else $warning("%t, HWLoops target address do not respect constraints", $time);
Expand Down

0 comments on commit e54e5da

Please sign in to comment.