mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 21:39:10 -04:00
minor update
This commit is contained in:
parent
26d45ed9db
commit
cce517b02b
1 changed files with 9 additions and 4 deletions
|
@ -230,11 +230,16 @@ module VX_local_mem import VX_gpu_pkg::*; #(
|
|||
wire [`CLOG2(NUM_REQS+1)-1:0] perf_writes_per_cycle;
|
||||
wire [`CLOG2(NUM_REQS+1)-1:0] perf_crsp_stall_per_cycle;
|
||||
|
||||
wire [NUM_REQS-1:0] perf_reads_per_req, perf_writes_per_req;
|
||||
wire [NUM_REQS-1:0] perf_crsp_stall_per_req = rsp_valid & ~rsp_ready;
|
||||
wire [NUM_REQS-1:0] req_rw;
|
||||
for (genvar i = 0; i < NUM_REQS; ++i) begin
|
||||
assign req_rw[i] = mem_bus_if[i].req_data.rw;
|
||||
end
|
||||
|
||||
`BUFFER(perf_reads_per_req, req_valid & req_ready & ~req_rw);
|
||||
`BUFFER(perf_writes_per_req, req_valid & req_ready & req_rw);
|
||||
wire [NUM_REQS-1:0] perf_reads_per_req, perf_writes_per_req;
|
||||
wire [NUM_REQS-1:0] perf_crsp_stall_per_req = rsp_valid_out & ~rsp_ready_out;
|
||||
|
||||
`BUFFER(perf_reads_per_req, req_valid_in & req_ready_in & ~req_rw);
|
||||
`BUFFER(perf_writes_per_req, req_valid_in & req_ready_in & req_rw);
|
||||
|
||||
`POP_COUNT(perf_reads_per_cycle, perf_reads_per_req);
|
||||
`POP_COUNT(perf_writes_per_cycle, perf_writes_per_req);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue