tensor: Decode rs1/rs2 of HGMMA for smem addresses
This commit is contained in:
@@ -551,15 +551,16 @@ module VX_decode #(
|
|||||||
end else begin
|
end else begin
|
||||||
op_type = `INST_TENSOR_HGMMA;
|
op_type = `INST_TENSOR_HGMMA;
|
||||||
end
|
end
|
||||||
// rd/rs1/rs2/rs3 unused to prevent hazard stalls at the
|
// rs1 and rs2 encodes the sharedmem addresses for A and
|
||||||
// scoreboard
|
// B matrix tiles
|
||||||
|
`USED_IREG (rs1);
|
||||||
|
`USED_IREG (rs2);
|
||||||
`else
|
`else
|
||||||
ex_type = `EX_TENSOR;
|
ex_type = `EX_TENSOR;
|
||||||
op_type = `INST_TENSOR_HMMA;
|
op_type = `INST_TENSOR_HMMA;
|
||||||
// tensor core macroop is encoded as r-type
|
// tensor core macroop is encoded as r-type
|
||||||
// hazard stall logic in the scoreboard will handle
|
// hazard stall logic in the scoreboard will handle
|
||||||
// read-after-write dependency on rd -> rs3
|
// read-after-write dependency on rd -> rs3
|
||||||
use_rd = 1;
|
|
||||||
`USED_IREG (rd);
|
`USED_IREG (rd);
|
||||||
`USED_IREG (rs1);
|
`USED_IREG (rs1);
|
||||||
`USED_IREG (rs2);
|
`USED_IREG (rs2);
|
||||||
|
|||||||
Reference in New Issue
Block a user