PoC.mem.ocrom.sp

Inferring / instantiating single-port read-only memory

  • single clock, clock enable

  • 1 read port

Entity Declaration:

 1  port (
 2    clk : in  std_logic;
 3    ce  : in  std_logic;
 4    a   : in  unsigned(A_BITS-1 downto 0);
 5    q   : out std_logic_vector(D_BITS-1 downto 0)
 6  );
 7end entity;
 8
 9
10architecture rtl of ocrom_sp is
11  constant DEPTH        : positive := 2**A_BITS;
12
13begin