minor update

This commit is contained in:
Blaise Tine 2023-07-03 00:19:45 -04:00
parent 22f4d6609c
commit 583809f10d
2 changed files with 6 additions and 1 deletions

View file

@ -356,4 +356,9 @@ module VX_csr_data #(
assign fpu_to_csr_if.read_frm = fcsr[fpu_to_csr_if.read_wid][`INST_FRM_BITS+`FP_FLAGS_BITS-1:`FP_FLAGS_BITS];
`endif
`ifdef PERF_ENABLE
wire [`PERF_CTR_BITS-1:0] perf_wctl_stalls = gpu_perf_if.wctl_stalls;
`UNUSED_VAR (perf_wctl_stalls);
`endif
endmodule

View file

@ -253,7 +253,7 @@ module VX_gpu_unit #(
if (reset) begin
perf_wctl_stalls <= '0;
end else begin
perf_wctl_stalls <= perf_wctl_stalls + `PERF_CTR_BITS'(wctl_req_valid && ~wctl_req_ready);
perf_wctl_stalls <= perf_wctl_stalls + `PERF_CTR_BITS'(wctl_exe_if.valid && ~wctl_exe_if.ready);
end
end
assign gpu_perf_if.wctl_stalls = perf_wctl_stalls;