Skip to content

Commit

Permalink
Fix zfinx_reserved_gpr constraint
Browse files Browse the repository at this point in the history
Signed-off-by: dd-baoshan <[email protected]>
  • Loading branch information
dd-baoshan committed Jun 19, 2024
1 parent 4bc5cfa commit 4b53f31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cv32e40p/env/corev-dv/cv32e40p_asm_program_gen.sv
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ class cv32e40p_asm_program_gen extends corev_asm_program_gen;
//gprs for floating point instructions
if(RV32ZFINX inside {supported_isa}) begin
foreach(corev_cfg.zfinx_reserved_gpr[i]) begin
if (corev_cfg.zfinx_reserved_gpr[i] inside {ZERO, RA, SP, GP, TP}) continue;
if (corev_cfg.zfinx_reserved_gpr[i] inside {ZERO, corev_cfg.ra, corev_cfg.sp, GP, corev_cfg.tp}) continue;
imm = get_rand_spf_value();
reg_name = corev_cfg.zfinx_reserved_gpr[i].name();
str = $sformatf("%0sli%0s %0s, 0x%0x", indent, indent, reg_name.tolower(), imm);
Expand Down
2 changes: 1 addition & 1 deletion cv32e40p/env/corev-dv/cv32e40p_instr_gen_config.sv
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class cv32e40p_instr_gen_config extends riscv_instr_gen_config;
zfinx_reserved_gpr.size() == num_zfinx_reserved_reg;
unique {zfinx_reserved_gpr};
foreach(zfinx_reserved_gpr[i]) {
!(zfinx_reserved_gpr[i] inside {ZERO, RA, SP, GP, TP, S0, S1, A0, A1, A2, A3, A4, A5});
!(zfinx_reserved_gpr[i] inside {ZERO, ra, sp, GP, tp, S0, S1, A0, A1, A2, A3, A4, A5});
(zfinx_reserved_gpr[i] != dp);
(zfinx_reserved_gpr[i] != str_rs1);
(zfinx_reserved_gpr[i] != str_rs3);
Expand Down

0 comments on commit 4b53f31

Please sign in to comment.