Skip to content

Commit

Permalink
Add option for RVE tt06
Browse files Browse the repository at this point in the history
  • Loading branch information
meiniKi committed Apr 4, 2024
1 parent 00a4f4c commit 165295a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion rtl/fazyrv_rf_lut.sv
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,27 @@ assign rb_o = rdat[rs2_i];
assign we = {31'b0, we_i} << rd_i;
`endif

//
// !WARNING
// > TT06_SKY130_RVE
// > RVE has been added for tt06_sky130 here only.
// > It will only be taken over as an RFTYPE variant
// > once verification for RVE is implemented.
//
localparam TT06_SKY130_RVE_NR_X_REGS = 16;

generate
genvar i;
assign rdat[0] = 32'b0;
for (i=1; i<32; i=i+1) begin
`ifdef TT06_SKY130_RVE
for (i=TT06_SKY130_RVE_NR_X_REGS; i<32; i=i+1) begin
assign rdat[i] = 32'b0;
end
for (i=1; i<TT06_SKY130_RVE_NR_X_REGS; i=i+1)
`else
for (i=1; i<32; i=i+1)
`endif
begin
logic [CHUNKSIZE-1:0] din;
logic [CHUNKSIZE-1:0] dout;
assign din = we[i] ? res_i : dout;
Expand Down

0 comments on commit 165295a

Please sign in to comment.