forked from Github_Repos/cvw
Comments about PC+2/4.
This commit is contained in:
parent
5d91b3044f
commit
fe723af1af
@ -301,10 +301,16 @@ module ifu (
|
|||||||
// *** consider gating PCPlusUpperF to provide the reset.
|
// *** consider gating PCPlusUpperF to provide the reset.
|
||||||
/* -----\/----- EXCLUDED -----\/-----
|
/* -----\/----- EXCLUDED -----\/-----
|
||||||
assign PCPlus2or4F[0] = '0;
|
assign PCPlus2or4F[0] = '0;
|
||||||
assign PCPlus2or4F[1] = CompressedF ^ PCF[1];
|
assign PCPlus2or4F[1] = ~reset & (CompressedF ^ PCF[1]);
|
||||||
assign PCPlus2or4F[`XLEN-1:2] = CompressedF & ~PCF[1] ? PCF[`XLEN-1:2] : PCPlusUpperF;
|
assign PCPlus2or4F[`XLEN-1:2] = reset ? '0 : CompressedF & ~PCF[1] ? PCF[`XLEN-1:2] : PCPlusUpperF;
|
||||||
-----/\----- EXCLUDED -----/\----- */
|
-----/\----- EXCLUDED -----/\----- */
|
||||||
|
/* -----\/----- EXCLUDED -----\/-----
|
||||||
|
assign PCPlus2or4F[1:0] = reset ? 2'b00 : CompressedF ? PCF[1] ? 2'b00 : 2'b10 : PCF[1:0];
|
||||||
|
-----/\----- EXCLUDED -----/\----- */
|
||||||
|
|
||||||
|
// *** There is actually a bug in the regression test. We fetched an address which returns data with
|
||||||
|
// an X. This version of the code does not die because if CompressedF is an X it just defaults to the last
|
||||||
|
// option. The above code would work, but propagates the x.
|
||||||
always_comb
|
always_comb
|
||||||
if(reset) PCPlus2or4F = '0;
|
if(reset) PCPlus2or4F = '0;
|
||||||
else if (CompressedF) // add 2
|
else if (CompressedF) // add 2
|
||||||
|
Loading…
Reference in New Issue
Block a user