wsapwn tested - NOTE in vx_main.c
This commit is contained in:
13
rtl/VX_lsu.v
13
rtl/VX_lsu.v
@@ -50,6 +50,19 @@ module VX_lsu (
|
||||
assign VX_mem_wb.wb_warp_num = VX_lsu_req.warp_num;
|
||||
|
||||
|
||||
integer curr_t;
|
||||
always @(negedge clk) begin
|
||||
for (int curr_t = 0; curr_t < `NT; curr_t=curr_t+1)
|
||||
if ((VX_dcache_req.out_cache_driver_in_valid[curr_t]) && !out_delay) begin
|
||||
if (VX_dcache_req.out_cache_driver_in_mem_read != `NO_MEM_READ) begin
|
||||
$display("Reading addr: %x val: %x", address[0], VX_mem_wb.loaded_data[0]);
|
||||
end
|
||||
|
||||
if (VX_dcache_req.out_cache_driver_in_mem_write != `NO_MEM_WRITE) begin
|
||||
$display("Writing addr: %x val: %x", address[0], VX_dcache_req.out_cache_driver_in_data[0]);
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
// wire zero_temp = 0;
|
||||
// VX_generic_register #(.N(142)) register_wb_data
|
||||
|
||||
@@ -174,7 +174,8 @@ module VX_warp_scheduler (
|
||||
end
|
||||
|
||||
if (update_use_wspawn) begin
|
||||
use_wsapwn[warp_to_schedule] <= 0;
|
||||
use_wsapwn[warp_to_schedule] <= 0;
|
||||
thread_masks[warp_to_schedule] <= 1'b1;
|
||||
end
|
||||
|
||||
|
||||
@@ -281,7 +282,7 @@ module VX_warp_scheduler (
|
||||
wire real_use_wspawn = use_wsapwn[warp_to_schedule];
|
||||
|
||||
assign warp_pc = real_use_wspawn ? use_wsapwn_pc : warp_pcs[warp_to_schedule];
|
||||
assign thread_mask = (global_stall) ? 0 : thread_masks[warp_to_schedule];
|
||||
assign thread_mask = (global_stall) ? 0 : (real_use_wspawn ? 1'b1 : thread_masks[warp_to_schedule]);
|
||||
assign warp_num = warp_to_schedule;
|
||||
|
||||
assign update_use_wspawn = use_wsapwn[warp_to_schedule] && !global_stall;
|
||||
|
||||
Reference in New Issue
Block a user