Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify macro name and precondition of regfile assertions #11

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion isa.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ proc setCheckFlag {flagName flagValue} {

# set check flag
setCheckFlag "CheckInstValidAssume" 0
setCheckFlag "RegFileStable" 0
setCheckFlag "RegFile" 0
setCheckFlag "PipeFollower" 0
setCheckFlag "PC_INC4_NO_BRANCH" 0
setCheckFlag "ISA_GROUP_A" 1
Expand Down
4 changes: 2 additions & 2 deletions property/fv_regfile.sv
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ module fv_regfile
//////////////////// Assertion ////////////////////
property write_correct(logic [31:0] duv_rf, rsd_t rf_dst, logic [4:0] rf_index);
@(posedge clk) disable iff (rst)
~(pd_stall_i | id_stall_i) && (rf_dst == rf_index) && rf_we_i
(rf_dst == rf_index) && rf_we_i
|=> ($past(rf_dst_d_i) == duv_rf);
endproperty

property reg_stable(logic [31:0] duv_rf, rsd_t rf_dst, logic [4:0] rf_index);
@(posedge clk) disable iff (rst)
~(pd_stall_i | id_stall_i) && (rf_dst != rf_index) && rf_we_i
(rf_dst != rf_index) && rf_we_i
|=> $stable(duv_rf);
endproperty

Expand Down
4 changes: 2 additions & 2 deletions property/isa.sv
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ module isa (
assert property (CHECK_INST_VALID_ASSUME);
`endif // CheckInstValidAssume

`ifdef RegFileStable
`ifdef RegFile
// Import necessary package
import riscv_opcodes_pkg::rsd_t;

Expand Down Expand Up @@ -786,7 +786,7 @@ module isa (
.pd_stall_i(pd_stall_i),
.id_stall_i(id_stall_i)
);
`endif // RegFileStable
`endif // RegFile

`ifdef PipeFollower
IfToPd :
Expand Down