2016-08-20 14:43:06 +02:00
|
|
|
library ieee;
|
2016-08-21 14:30:27 +02:00
|
|
|
|
2016-08-20 14:43:06 +02:00
|
|
|
use ieee.std_logic_1164.all;
|
|
|
|
use ieee.numeric_std.all;
|
2016-08-21 14:30:27 +02:00
|
|
|
-- "work" denotes the curent library. Similar to this in C++, C# etc...
|
|
|
|
use work.axi3intercon_pkg.all;
|
2016-08-20 14:43:06 +02:00
|
|
|
|
|
|
|
entity axi3intercon is
|
2016-08-21 14:30:27 +02:00
|
|
|
generic(
|
|
|
|
constant MASTER_COUNT : natural := 1;
|
|
|
|
constant SLAVE_COUNT : natural := 1
|
|
|
|
);
|
|
|
|
port(
|
|
|
|
aclk : in std_logic;
|
|
|
|
aresetn : in std_logic;
|
|
|
|
masters_in : out axi_masters_in(0 to MASTER_COUNT - 1);
|
|
|
|
masters_out : in axi_masters_out(0 to MASTER_COUNT - 1);
|
|
|
|
slaves_in : out axi_masters_in(0 to SLAVE_COUNT - 1);
|
|
|
|
slaves_out : in axi_masters_out(0 to SLAVE_COUNT - 1)
|
2016-08-20 14:43:06 +02:00
|
|
|
);
|
|
|
|
end entity axi3intercon;
|
|
|
|
|
|
|
|
architecture RTL of axi3intercon is
|
|
|
|
signal rst : std_logic;
|
|
|
|
begin
|
2016-08-21 14:30:27 +02:00
|
|
|
reset_sync : process(aclk, aresetn) is
|
2016-08-20 14:43:06 +02:00
|
|
|
begin
|
|
|
|
if aresetn = '0' then
|
|
|
|
rst <= '1';
|
|
|
|
elsif rising_edge(aclk) then
|
|
|
|
rst <= '0';
|
|
|
|
end if;
|
|
|
|
end process reset_sync;
|
|
|
|
|
|
|
|
end architecture RTL;
|