PoC.mem.ocrom.SinglePort

Inferring / instantiating single-port read-only memory

  • single clock, clock enable

  • 1 read port

Entity Declaration:

 1  );
 2  port (
 3    Clock       : in  std_logic;
 4    ClockEnable : in  std_logic;
 5    Address     : in  unsigned(ADDRESS_BITS-1 downto 0);
 6    DataOut     : out std_logic_vector(DATA_BITS-1 downto 0)
 7  );
 8end entity;
 9
10
11architecture rtl of ocrom_SinglePort is
12  constant WORDS        : positive := 2**ADDRESS_BITS;