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
f3c0b7d186
commit
e4fdc740ba
2 changed files with 11 additions and 7 deletions
|
@ -86,30 +86,34 @@ package VX_gpu_pkg;
|
|||
} alu_mod_t;
|
||||
|
||||
typedef struct packed {
|
||||
logic [($bits(alu_mod_t)-`INST_FRM_BITS-`INST_FMT_BITS)-1:0] __padding;
|
||||
logic [`INST_FRM_BITS-1:0] frm;
|
||||
logic [`INST_FMT_BITS-1:0] fmt;
|
||||
} fpu_mod_t;
|
||||
|
||||
typedef struct packed {
|
||||
logic [($bits(alu_mod_t)-1-`OFFSET_BITS)-1:0] __padding;
|
||||
logic is_float;
|
||||
logic [`OFFSET_BITS-1:0] offset;
|
||||
} lsu_mod_t;
|
||||
|
||||
typedef struct packed {
|
||||
logic [($bits(alu_mod_t)-1-`VX_CSR_ADDR_BITS-5)-1:0] __padding;
|
||||
logic use_imm;
|
||||
logic [`VX_CSR_ADDR_BITS-1:0] addr;
|
||||
logic [4:0] imm;
|
||||
} csr_mod_t;
|
||||
|
||||
typedef struct packed {
|
||||
logic [($bits(alu_mod_t)-1)-1:0] __padding;
|
||||
logic is_neg;
|
||||
} wctl_mod_t;
|
||||
|
||||
typedef union packed {
|
||||
alu_mod_t alu;
|
||||
fpu_mod_t fpu;
|
||||
lsu_mod_t lsu;
|
||||
csr_mod_t csr;
|
||||
alu_mod_t alu;
|
||||
fpu_mod_t fpu;
|
||||
lsu_mod_t lsu;
|
||||
csr_mod_t csr;
|
||||
wctl_mod_t wctl;
|
||||
} op_mod_t;
|
||||
|
||||
|
|
|
@ -161,7 +161,7 @@ module VX_schedule import VX_gpu_pkg::*; #(
|
|||
stalled_warps_n &= ~barrier_masks[warp_ctl_if.barrier.id]; // unlock warps
|
||||
stalled_warps_n[warp_ctl_if.wid] = 0; // unlock warp
|
||||
end else begin
|
||||
barrier_ctrs_n[warp_ctl_if.barrier.id] = barrier_ctrs[warp_ctl_if.barrier.id] + 1;
|
||||
barrier_ctrs_n[warp_ctl_if.barrier.id] = barrier_ctrs[warp_ctl_if.barrier.id] + `NW_WIDTH'(1);
|
||||
barrier_masks_n[warp_ctl_if.barrier.id] = curr_barrier_mask_p1;
|
||||
end
|
||||
end else begin
|
||||
|
@ -203,7 +203,7 @@ module VX_schedule import VX_gpu_pkg::*; #(
|
|||
|
||||
// advance PC
|
||||
if (schedule_if_fire) begin
|
||||
warp_pcs_n[schedule_if.data.wid] = schedule_if.data.PC + 2;
|
||||
warp_pcs_n[schedule_if.data.wid] = schedule_if.data.PC + `PC_BITS'(2);
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -412,7 +412,7 @@ module VX_schedule import VX_gpu_pkg::*; #(
|
|||
end
|
||||
end
|
||||
end
|
||||
`RUNTIME_ASSERT(timeout_ctr < `STALL_TIMEOUT, ("%t: *** core%0d-scheduler-timeout: stalled_warps=%b", $time, CORE_ID, stalled_warps));
|
||||
`RUNTIME_ASSERT(timeout_ctr < `STALL_TIMEOUT, ("%t: *** core%0d-scheduler-timeout: stalled_warps=%b", $time, CORE_ID, stalled_warps))
|
||||
|
||||
`ifdef PERF_ENABLE
|
||||
reg [`PERF_CTR_BITS-1:0] perf_sched_idles;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue