Skip to content

Commit

Permalink
Adding new_actor when null_actor. IF-THEN for the sake of compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Tafas authored and LarsAsplund committed Mar 16, 2021
1 parent c527600 commit 3d41e10
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vunit/vhdl/verification_components/src/axi_slave_pkg.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,14 @@ package body axi_slave_pkg is
min_response_latency : delay_length := 0 ns;
max_response_latency : delay_length := 0 ns;
logger : logger_t := axi_slave_logger) return axi_slave_t is
variable actor_tmp : actor_t := null_actor;
begin
return (p_actor => actor,
if actor = null_actor then
actor_tmp := new_actor;
else
actor_tmp := actor;
end if;
return (p_actor => actor_tmp,
p_initial_address_fifo_depth => address_fifo_depth,
p_initial_write_response_fifo_depth => write_response_fifo_depth,
p_initial_check_4kbyte_boundary => check_4kbyte_boundary,
Expand Down

0 comments on commit 3d41e10

Please sign in to comment.