-
Notifications
You must be signed in to change notification settings - Fork 2
/
am2901_comps.vhd
67 lines (57 loc) · 2.12 KB
/
am2901_comps.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
-- Package File Template
--
-- Purpose: This package defines supplemental types, subtypes,
-- constants, and functions
library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.numeric_std.all;
package am2901_comps is
component ram_regs is
Port ( clk : in STD_LOGIC;
rst : in STD_LOGIC;
a : in std_logic_vector (3 downto 0);
b : in std_logic_vector (3 downto 0);
f : in std_logic_vector (3 downto 0);
dest_ctl : in STD_LOGIC_VECTOR (2 downto 0);
ram0 : inout STD_LOGIC;
ram3 : inout STD_LOGIC;
ad : buffer std_logic_vector (3 downto 0);
bd : buffer std_logic_vector (3 downto 0));
end component;
component q_reg is
Port ( clk : in STD_LOGIC;
rst : in STD_LOGIC;
f : in std_logic_vector (3 downto 0);
dest_ctl : in STD_LOGIC_VECTOR (2 downto 0);
qs0 : inout STD_LOGIC;
qs3 : inout STD_LOGIC;
q : out std_logic_vector (3 downto 0));
end component;
component src_op is
Port ( d : in std_logic_vector (3 downto 0);
ad : in std_logic_vector (3 downto 0);
bd : in std_logic_vector (3 downto 0);
q : in std_logic_vector (3 downto 0);
src_ctl : in STD_LOGIC_VECTOR (2 downto 0);
r : buffer std_logic_vector (3 downto 0);
s : buffer std_logic_vector (3 downto 0));
end component;
component alu is
Port ( r : in STD_LOGIC_VECTOR (3 downto 0);
s : in STD_LOGIC_VECTOR (3 downto 0);
c_n : in STD_LOGIC;
alu_ctl : in STD_LOGIC_VECTOR (2 downto 0);
f : buffer STD_LOGIC_VECTOR (3 downto 0);
g_bar : buffer STD_LOGIC;
p_bar : buffer STD_LOGIC;
c_n4 : buffer STD_LOGIC;
ovr : buffer STD_LOGIC);
end component;
component out_mux is
Port ( ad : in STD_LOGIC_VECTOR (3 downto 0);
f : in STD_LOGIC_VECTOR (3 downto 0);
dest_ctl : in STD_LOGIC_VECTOR (2 downto 0);
oe : in STD_LOGIC;
y : inout STD_LOGIC_VECTOR (3 downto 0));
end component;
end am2901_comps;