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
84530e6250
commit
45d19db270
3 changed files with 11 additions and 8 deletions
|
@ -429,8 +429,7 @@
|
|||
assign src.rsp_tag = dst.rsp_tag; \
|
||||
assign dst.rsp_ready = src.rsp_ready
|
||||
|
||||
`define ASSIGN_VX_GPU_EXE_IF_V(dst, src, src_valid) \
|
||||
assign dst.valid = src_valid; \
|
||||
`define ASSIGN_VX_GPU_EXE_IF_DATA(dst, src) \
|
||||
assign dst.uuid = src.uuid; \
|
||||
assign dst.wid = src.wid; \
|
||||
assign dst.tmask = src.tmask; \
|
||||
|
@ -443,8 +442,7 @@
|
|||
assign dst.rs2_data = src.rs2_data; \
|
||||
assign dst.rs3_data = src.rs3_data; \
|
||||
assign dst.rd = src.rd; \
|
||||
assign dst.wb = src.wb; \
|
||||
assign src.ready = dst.ready
|
||||
assign dst.wb = src.wb
|
||||
|
||||
`define REDUCE_ADD(dst, src, field, width, count) \
|
||||
wire [count-1:0][width-1:0] __reduce_add_i_``src``field; \
|
||||
|
|
|
@ -64,7 +64,8 @@ module VX_gpu_unit #(
|
|||
VX_gpu_exe_if wctl_exe_if();
|
||||
VX_commit_if wctl_commit_if();
|
||||
|
||||
`ASSIGN_VX_GPU_EXE_IF_V(wctl_exe_if, gpu_exe_if, gpu_req_valid && `INST_GPU_IS_WCTL(gpu_exe_if.op_type));
|
||||
assign wctl_exe_if.valid = gpu_req_valid && `INST_GPU_IS_WCTL(gpu_exe_if.op_type);
|
||||
`ASSIGN_VX_GPU_EXE_IF_DATA(wctl_exe_if, gpu_exe_if);
|
||||
|
||||
VX_wctl_unit #(
|
||||
.OUTPUT_REG (RSP_ARB_SIZE > 1)
|
||||
|
@ -85,7 +86,8 @@ module VX_gpu_unit #(
|
|||
VX_gpu_exe_if tex_exe_if();
|
||||
VX_commit_if tex_commit_if();
|
||||
|
||||
`ASSIGN_VX_GPU_EXE_IF_V(tex_exe_if, gpu_exe_if, gpu_req_valid && (gpu_exe_if.op_type == `INST_GPU_TEX));
|
||||
assign tex_exe_if.valid = gpu_req_valid && (gpu_exe_if.op_type == `INST_GPU_TEX);
|
||||
`ASSIGN_VX_GPU_EXE_IF_DATA(tex_exe_if, gpu_exe_if);
|
||||
|
||||
`RESET_RELAY (tex_reset, reset);
|
||||
|
||||
|
@ -111,7 +113,8 @@ module VX_gpu_unit #(
|
|||
VX_gpu_exe_if raster_exe_if();
|
||||
VX_commit_if raster_commit_if();
|
||||
|
||||
`ASSIGN_VX_GPU_EXE_IF_V(raster_exe_if, gpu_exe_if, gpu_req_valid && (gpu_exe_if.op_type == `INST_GPU_RASTER));
|
||||
assign raster_exe_if.valid = gpu_req_valid && (gpu_exe_if.op_type == `INST_GPU_RASTER);
|
||||
`ASSIGN_VX_GPU_EXE_IF_DATA(raster_exe_if, gpu_exe_if);
|
||||
|
||||
`RESET_RELAY (raster_reset, reset);
|
||||
|
||||
|
@ -137,7 +140,8 @@ module VX_gpu_unit #(
|
|||
VX_gpu_exe_if rop_exe_if();
|
||||
VX_commit_if rop_commit_if();
|
||||
|
||||
`ASSIGN_VX_GPU_EXE_IF_V(rop_exe_if, gpu_exe_if, gpu_req_valid && (gpu_exe_if.op_type == `INST_GPU_ROP));
|
||||
assign rop_exe_if.valid = gpu_req_valid && (gpu_exe_if.op_type == `INST_GPU_ROP);
|
||||
`ASSIGN_VX_GPU_EXE_IF_DATA(rop_exe_if, gpu_exe_if);
|
||||
|
||||
`RESET_RELAY (rop_reset, reset);
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ module VX_wctl_unit #(
|
|||
|
||||
wire [`XLEN-1:0] rs1_data = gpu_exe_if.rs1_data[gpu_exe_if.tid];
|
||||
wire [`XLEN-1:0] rs2_data = gpu_exe_if.rs2_data[gpu_exe_if.tid];
|
||||
`UNUSED_VAR (rs1_data)
|
||||
|
||||
wire [`NUM_THREADS-1:0] taken;
|
||||
for (genvar i = 0; i < `NUM_THREADS; ++i) begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue