mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-24 14:17:16 -04:00
commit_stage.sv: add condition before Zcmp code (#1932)
This commit is contained in:
parent
9a713c3b17
commit
f0887e4ec5
1 changed files with 4 additions and 2 deletions
|
@ -148,7 +148,7 @@ module commit_stage
|
||||||
// we will not commit the instruction if we took an exception
|
// we will not commit the instruction if we took an exception
|
||||||
// and we do not commit the instruction if we requested a halt
|
// and we do not commit the instruction if we requested a halt
|
||||||
if (commit_instr_i[0].valid && !commit_instr_i[0].ex.valid && !halt_i) begin
|
if (commit_instr_i[0].valid && !commit_instr_i[0].ex.valid && !halt_i) begin
|
||||||
if (commit_instr_i[0].is_macro_instr && commit_instr_i[0].is_last_macro_instr)
|
if (CVA6Cfg.RVZCMP && commit_instr_i[0].is_macro_instr && commit_instr_i[0].is_last_macro_instr)
|
||||||
commit_macro_ack[0] = 1'b1;
|
commit_macro_ack[0] = 1'b1;
|
||||||
else commit_macro_ack[0] = 1'b0;
|
else commit_macro_ack[0] = 1'b0;
|
||||||
// we can definitely write the register file
|
// we can definitely write the register file
|
||||||
|
@ -292,7 +292,9 @@ module commit_stage
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
commit_macro_ack_o = (commit_instr_i[0].is_macro_instr || commit_instr_i[1].is_macro_instr) ? commit_macro_ack : commit_ack_o;
|
if (CVA6Cfg.RVZCMP)
|
||||||
|
commit_macro_ack_o = (commit_instr_i[0].is_macro_instr || commit_instr_i[1].is_macro_instr) ? commit_macro_ack : commit_ack_o;
|
||||||
|
else commit_macro_ack_o = commit_ack_o;
|
||||||
end
|
end
|
||||||
|
|
||||||
// -----------------------------
|
// -----------------------------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue