Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jeras committed Mar 27, 2022
1 parent 0d02b56 commit 4d3c39a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FemtoRV/RTL/PROCESSOR/femtorv32_quark.v
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module FemtoRV32 #(
reg [31:0] rs2;
reg [31:0] registerFile [31:0];

// write access
always @(posedge clk) begin
if (writeBack)
if (rdId != 0)
Expand Down Expand Up @@ -213,8 +214,8 @@ module FemtoRV32 #(
// branch->PC+Bimm AUIPC->PC+Uimm JAL->PC+Jimm
// Equivalent to PCplusImm = PC + (isJAL ? Jimm : isAUIPC ? Uimm : Bimm)
wire [ADDR_WIDTH-1:0] PCplusImm = PC + ( instr[3] ? Jimm[ADDR_WIDTH-1:0] :
instr[4] ? Uimm[ADDR_WIDTH-1:0] :
Bimm[ADDR_WIDTH-1:0] );
instr[4] ? Uimm[ADDR_WIDTH-1:0] :
Bimm[ADDR_WIDTH-1:0] );

// A separate adder to compute the destination of load/store.
// testing instr[5] is equivalent to testing isStore in this context.
Expand Down

0 comments on commit 4d3c39a

Please sign in to comment.