From be1410b6251431c9bdadd9c282b4e863ea3787f9 Mon Sep 17 00:00:00 2001 From: tmeissner Date: Fri, 29 May 2020 19:46:16 +0200 Subject: [PATCH] stop_sim(): Use add_cycles parameter instead of hard coded value --- src/pkg.vhd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg.vhd b/src/pkg.vhd index 62024c0..37e7554 100644 --- a/src/pkg.vhd +++ b/src/pkg.vhd @@ -79,7 +79,7 @@ package body pkg is -- synthesis translate_off procedure stop_sim (signal clk : in std_logic; cycles : in natural; add_cycles : in natural := 2) is - variable index : natural := cycles + 5; + variable index : natural := cycles + add_cycles; begin loop wait until rising_edge(clk); @@ -88,7 +88,7 @@ package body pkg is exit; end if; end loop; - stop(0); + finish(0); end procedure stop_sim; -- synthesis translate_on