From fb973a51b6bc89516983aeac9eaee221aa5dfbf2 Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Sat, 22 Jun 2024 16:34:42 -0700 Subject: [PATCH] core_wrapper: Only terminate when core 0 is finished; more slack time --- hw/rtl/VX_core_wrapper.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/rtl/VX_core_wrapper.sv b/hw/rtl/VX_core_wrapper.sv index 2d516cf4..1ac02d60 100644 --- a/hw/rtl/VX_core_wrapper.sv +++ b/hw/rtl/VX_core_wrapper.sv @@ -508,12 +508,12 @@ module Vortex import VX_gpu_pkg::*; #( end // give slack for other cores to finish - wire all_cores_finished = (finish_counter > 32'd1000); + wire all_cores_finished = (finish_counter > 32'd10000); `ifdef SIMULATION always @(posedge clock) begin if (!reset) begin - if (all_cores_finished) begin + if ((CORE_ID == '0) && all_cores_finished) begin $display("simulation has probably ended. exiting"); $finish(); end