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    Clock   : in  std_logic;
 6    Reset   : in  std_logic;
 7
 8    -- Write Ports
 9    Put     : in  std_logic;  -- 0 -> top, 1 -> push
10    DataIn  : in  std_logic_vector(DATA_BITS-1 downto 0);  -- Data Input
11    Full    : out std_logic;
12
13    -- Read Ports
14    Got     : in  std_logic;
15    DataOut : out std_logic_vector(DATA_BITS-1 downto 0);
16    Valid   : out std_logic
17  );
18end entity;