Skip to content

Commit

Permalink
Added as_sync for AXI stream master.
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsAsplund committed Jun 3, 2018
1 parent 55deea1 commit b2eb711
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vunit/vhdl/verification_components/src/axi_stream_pkg.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use ieee.std_logic_1164.all;
use work.logger_pkg.all;
use work.stream_master_pkg.all;
use work.stream_slave_pkg.all;
use work.sync_pkg.all;
context work.com_context;
context work.data_types_context;

Expand All @@ -36,6 +37,7 @@ package axi_stream_pkg is
impure function data_length(master : axi_stream_slave_t) return natural;
impure function as_stream(master : axi_stream_master_t) return stream_master_t;
impure function as_stream(slave : axi_stream_slave_t) return stream_slave_t;
impure function as_sync(master : axi_stream_master_t) return sync_handle_t;

constant push_axi_stream_msg : msg_type_t := new_msg_type("push axi stream");

Expand Down Expand Up @@ -84,6 +86,11 @@ package body axi_stream_pkg is
return (p_actor => slave.p_actor);
end;

impure function as_sync(master : axi_stream_master_t) return sync_handle_t is
begin
return master.p_actor;
end;

procedure push_axi_stream(signal net : inout network_t;
axi_stream : axi_stream_master_t;
tdata : std_logic_vector;
Expand Down

0 comments on commit b2eb711

Please sign in to comment.