PoC.dstruct.stack
Implements a stack, a LIFO storage abstraction.
Entity Declaration:
1 MIN_DEPTH : positive -- Minimum Stack Depth
2 );
3 port (
4 -- INPUTS
5 clk, rst : in std_logic;
6
7 -- Write Ports
8 din : in std_logic_vector(D_BITS-1 downto 0); -- Data Input
9 put : in std_logic; -- 0 -> pop, 1 -> push
10 full : out std_logic;
11
12 -- Read Ports
13 got : in std_logic;
14 dout : out std_logic_vector(D_BITS-1 downto 0);
15 valid : out std_logic
16 );
17end entity dstruct_stack;
18
19
20library IEEE;