tensor: Write stall logic for hgmma_wait

HGMMA_WAIT instruction stalls at issue when inuse_tensor is set, which
is done by the previous HGMMA insn. Currently inuse_tensor is never set
back to zero.
This commit is contained in:
Hansung Kim
2024-10-11 17:18:01 -07:00
parent 72f9dedce3
commit 408a9b5d2a
3 changed files with 31 additions and 1 deletions

View File

@@ -254,7 +254,10 @@
`define INST_SFU_IS_WCTL(op) (op <= 5)
`define INST_SFU_IS_CSR(op) (op >= 6 && op <= 8)
`define INST_TENSOR_HMMA 4'b0000
`define INST_TENSOR_HMMA 4'b0000
// Hopper WGMMA-style asynchronous op
`define INST_TENSOR_HGMMA 4'b0001
`define INST_TENSOR_HGMMA_WAIT 4'b0010
///////////////////////////////////////////////////////////////////////////////