]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/lx-dad.git/blobdiff - hw/lx_dad_pkg.vhd
Include example of mapping dualported RAM mapping to example component.
[fpga/lx-cpu1/lx-dad.git] / hw / lx_dad_pkg.vhd
index de69d2c6c5aa30a40d120e250539732a4666779a..387c822a3cabc91a9d80e1201c2d1e1f469de8b0 100644 (file)
@@ -115,6 +115,27 @@ package lx_dad_pkg is
        );
        end component;
 
+       -- Dualported memory for example componenet
+       component lx_example_mem
+       port
+       (
+               -- Memory wiring for internal state automata use
+               clk_i  : in std_logic;
+               ce_i   : in std_logic;
+               adr_i  : in std_logic_vector(9 downto 0);
+               bls_i  : in std_logic_vector(3 downto 0);
+               dat_i  : in std_logic_vector(31 downto 0);
+               dat_o  : out std_logic_vector(31 downto 0);
+               -- Memory wiring for Master CPU
+               clk_m  : in std_logic;
+               en_m   : in std_logic;
+               we_m   : in std_logic_vector(3 downto 0);
+               addr_m : in std_logic_vector(9 downto 0);
+               din_m  : in std_logic_vector(31 downto 0);
+               dout_m : out std_logic_vector(31 downto 0)
+       );
+       end component;
+
        -- Measurement interconnect
        component bus_measurement
        port