-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPROM_74S472_Eprom2_U3.vhd
54 lines (47 loc) · 1.31 KB
/
PROM_74S472_Eprom2_U3.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
----------------------------------------------------------------------------------
-- Company:
-- Engineer: Leonardo Araujo dos Santos
--
-- Create Date: 02:03:05 04/17/2009
-- Design Name: ALU Magic-1
-- Module Name: PROM_74S472 - Behavioral
-- Project Name: Magic-1 VHDL
-- Target Devices: Spartan3
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
use IEEE.numeric_std.all;
use work.eprom_defs_pack.all;
use work.eprom_pack_2.all;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity PROM_74S472_Eprom2_U3 is
Port ( CE : in STD_LOGIC;
A : in STD_LOGIC_VECTOR(8 downto 0);
O : out STD_LOGIC_VECTOR (7 downto 0));
end PROM_74S472_Eprom2_U3;
architecture Behavioral of PROM_74S472_Eprom2_U3 is
begin
-- Process to describe generic PROM memory
process (CE,A)
begin
if (CE = '0') then
O <= eprom_rom_2(conv_integer(A));
else
O <= (others => 'Z');
end if;
end process;
end Behavioral;