Skip to content

Commit

Permalink
array_axis_vcs: expand procedure run_test
Browse files Browse the repository at this point in the history
  • Loading branch information
eine committed Nov 9, 2020
1 parent 151acb0 commit c0b1951
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions examples/vhdl/array_axis_vcs/src/test/tb_axis_loop.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,20 @@ begin
rstn <= not rst;

main: process
procedure run_test is begin
info("Init test");
wait until rising_edge(clk); start <= true;
wait until rising_edge(clk); start <= false;
wait until (done and saved and rising_edge(clk));
info("Test done");
end procedure;
begin
test_runner_setup(runner, runner_cfg);
while test_suite loop
if run("test") then
rst <= '1';
wait for 15*clk_period;
rst <= '0';
run_test;
info("Init test");
wait until rising_edge(clk);
start <= true;
wait until rising_edge(clk);
start <= false;
wait until (done and saved and rising_edge(clk));
info("Test done");
end if;
end loop;
test_runner_cleanup(runner);
Expand Down

0 comments on commit c0b1951

Please sign in to comment.