Browse Source

stop_sim(): Use add_cycles parameter instead of hard coded value

master
T. Meissner 5 years ago
parent
commit
be1410b625
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/pkg.vhd

+ 2
- 2
src/pkg.vhd View File

@ -79,7 +79,7 @@ package body pkg is
-- synthesis translate_off -- synthesis translate_off
procedure stop_sim (signal clk : in std_logic; cycles : in natural; add_cycles : in natural := 2) is 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 begin
loop loop
wait until rising_edge(clk); wait until rising_edge(clk);
@ -88,7 +88,7 @@ package body pkg is
exit; exit;
end if; end if;
end loop; end loop;
stop(0);
finish(0);
end procedure stop_sim; end procedure stop_sim;
-- synthesis translate_on -- synthesis translate_on


Loading…
Cancel
Save