Merge branch 'rtl' of https://github.com/hansungk/vortex-private into rtl
This commit is contained in:
@@ -495,15 +495,20 @@ module Vortex import VX_gpu_pkg::*; #(
|
||||
// .busy(busy)
|
||||
// );
|
||||
|
||||
always @(*) begin
|
||||
if (busy === 1'b0) begin
|
||||
$display("---------------- no more active warps ----------------");
|
||||
always @(posedge clock) begin
|
||||
if (!reset) begin
|
||||
if (finished) begin
|
||||
`ifdef SIMULATION
|
||||
if ($time >= 60000) begin
|
||||
$display("simulation has probably ended. exiting");
|
||||
@(posedge clock) $finish();
|
||||
end
|
||||
$display("---------------- core%2d has no more active warps ----------------", CORE_ID);
|
||||
$display("simulation has ended. exiting");
|
||||
$finish();
|
||||
`endif
|
||||
// `ifdef SIMULATION
|
||||
// if ($time >= 60000) begin
|
||||
// $display("simulation has probably ended. exiting");
|
||||
// @(posedge clock) $finish();
|
||||
// end
|
||||
// `endif
|
||||
// TODO: lane assumed to be 4
|
||||
// `ifndef SYNTHESIS
|
||||
// for (integer j = 0; j < `NUM_WARPS; j++) begin
|
||||
@@ -519,6 +524,7 @@ module Vortex import VX_gpu_pkg::*; #(
|
||||
// @(posedge clock) $finish();
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
endmodule : Vortex
|
||||
|
||||
|
||||
@@ -532,7 +532,8 @@ module VX_mem_scheduler #(
|
||||
|
||||
`ifndef NDEBUG
|
||||
wire [NUM_BANKS-1:0] mem_req_fire_s = mem_req_valid_s & mem_req_ready_s;
|
||||
always @(posedge clk) begin
|
||||
always @(negedge clk) begin
|
||||
if (!reset) begin
|
||||
if (req_valid && req_ready) begin
|
||||
if (req_rw) begin
|
||||
`TRACE(1, ("%d: %s-core-req-wr: valid=%b, addr=", $time, INST_ID, req_mask));
|
||||
@@ -572,8 +573,10 @@ module VX_mem_scheduler #(
|
||||
`TRACE(1, (", ibuf_idx=%0d, batch_idx=%0d (#%0d)\n", ibuf_raddr, rsp_batch_idx, mem_rsp_dbg_uuid));
|
||||
end
|
||||
end
|
||||
end
|
||||
`else
|
||||
always @(posedge clk) begin
|
||||
always @(negedge clk) begin
|
||||
if (!reset) begin
|
||||
if (req_valid && req_ready) begin
|
||||
if (req_rw) begin
|
||||
`TRACE(1, ("%d: %s-core-req-wr: valid=%b, addr=", $time, INST_ID, req_mask));
|
||||
@@ -594,6 +597,7 @@ module VX_mem_scheduler #(
|
||||
`TRACE(1, (", tag=0x%0h, tag_only=0x%0h\n", rsp_tag, rsp_tag[TAG_ONLY_WIDTH-1:0]));
|
||||
end
|
||||
end
|
||||
end
|
||||
`endif
|
||||
|
||||
endmodule
|
||||
|
||||
Reference in New Issue
Block a user