Skip to content

Commit bac463b

Browse files
committed
lock test_runner_cleanup entry gate
Keep it locked while there is unfinished work to do.
1 parent b1331b0 commit bac463b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

vunit/vhdl/verification_components/src/apb_master.vhd

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ use work.com_types_pkg.all;
1515
use work.queue_pkg.all;
1616
use work.sync_pkg.all;
1717
use work.logger_pkg.all;
18+
use work.runner_pkg.all;
19+
use work.run_pkg.all;
20+
use work.run_types_pkg.all;
1821
use work.log_levels_pkg.all;
1922
use work.apb_master_pkg.all;
2023

@@ -89,14 +92,17 @@ begin
8992
variable msg_type : msg_type_t;
9093
variable addr_this_transaction : std_logic_vector(paddr_o'range) := (others => '0');
9194
variable data_this_transaction : std_logic_vector(prdata_i'range) := (others => '0');
95+
constant key : key_t := get_entry_key(test_runner_cleanup);
9296
begin
9397
loop
9498
drive_bus_invalid;
9599
psel_o <= '0';
96100

97101
if is_empty(message_queue) then
102+
unlock(runner, key);
98103
wait until rising_edge(clk) and not is_empty(message_queue);
99104
end if;
105+
lock(runner, key);
100106
idle_bus <= false;
101107
wait for 0 ns;
102108

0 commit comments

Comments
 (0)