Add scalar TMEM load-store path

This commit is contained in:
Zhongdi LUO
2026-06-24 06:24:46 +00:00
parent abee301b6e
commit 97a1eff701
5 changed files with 269 additions and 11 deletions

View File

@@ -508,9 +508,24 @@ module VX_decode #(
end
`INST_EXT2: begin
case (func3)
3'h0: begin
if (func7 == 7'h30) begin
ex_type = `EX_LSU;
op_type = `INST_LSU_TMEM_LD;
use_rd = 1;
`USED_IREG (rd);
`USED_IREG (rs1);
end
end
3'h1: begin
case (func2)
2'h0: begin // CMOV
if (func7 == 7'h30) begin
ex_type = `EX_LSU;
op_type = `INST_LSU_TMEM_ST;
`USED_IREG (rs1);
`USED_IREG (rs2);
end else begin
case (func2)
2'h0: begin // CMOV
ex_type = `EX_SFU;
op_type = `INST_OP_BITS'(`INST_SFU_CMOV);
use_rd = 1;
@@ -518,9 +533,10 @@ module VX_decode #(
`USED_IREG (rs1);
`USED_IREG (rs2);
`USED_IREG (rs3);
end
default:;
endcase
end
default:;
endcase
end
end
default:;
endcase