diff --git a/hw/rtl/VX_gpu_pkg.sv b/hw/rtl/VX_gpu_pkg.sv index 035b6aebd..f61e1b923 100644 --- a/hw/rtl/VX_gpu_pkg.sv +++ b/hw/rtl/VX_gpu_pkg.sv @@ -341,6 +341,9 @@ package VX_gpu_pkg; `EX_SFU: `TRACE(level, ("SFU")) `ifdef EXT_F_ENABLE `EX_FPU: `TRACE(level, ("FPU")) + `endif + `ifdef VECTOR_ENABLE + `EX_VPU: `TRACE(level, ("VPU")) `endif default: `TRACE(level, ("?")) endcase @@ -522,6 +525,11 @@ package VX_gpu_pkg; `TRACE(level, ("CSRRC")) end end + `ifdef VECTOR_ENABLE + `INST_VPU_VSETVL: `TRACE(level, ("VSET")) // Move these to VPU + `INST_VPU_VSETVLI: `TRACE(level, ("VSET")) + `INST_VPU_VSETIVLI: `TRACE(level, ("VSET")) + `endif default: `TRACE(level, ("?")) endcase end @@ -706,6 +714,13 @@ package VX_gpu_pkg; default: `TRACE(level, ("?")) endcase end + `endif + `ifdef VECTOR_ENABLE + `EX_VPU: begin + case (op_type) + default: `TRACE(level, ("?")) + endcase + end `endif default: `TRACE(level, ("?")) endcase @@ -727,11 +742,21 @@ package VX_gpu_pkg; if (`INST_SFU_IS_CSR(op_type)) begin `TRACE(level, (", addr=0x%0h, use_imm=%b, imm=0x%0h", op_args.csr.addr, op_args.csr.use_imm, op_args.csr.imm)) end + `ifdef VECTOR_ENABLE + if ((op_type == `INST_VPU_VSETVL) || (op_type == `INST_VPU_VSETIVLI) || (op_type == `INST_VPU_VSETVLI)) begin + `TRACE(level, (", lmul=%b, sew=%b, ta=%b, ma=%b, ill=%b", op_args.vpu.vlmul, op_args.vpu.vsew, op_args.vpu.vta, op_args.vpu.vma, op_args.vpu.vill)) + end + `endif end `ifdef EXT_F_ENABLE `EX_FPU: begin `TRACE(level, (", fmt=0x%0h, frm=0x%0h", op_args.fpu.fmt, op_args.fpu.frm)) end + `endif + `ifdef VECTOR_ENABLE + `EX_VPU: begin + `TRACE(level, (", lmul=%b, sew=%b, ta=%b, ma=%b, ill=%b", op_args.vpu.vlmul, op_args.vpu.vsew, op_args.vpu.vta, op_args.vpu.vma, op_args.vpu.vill)) + end `endif default:; endcase