-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIR_Reg.vhd
104 lines (69 loc) · 2.15 KB
/
IR_Reg.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
----------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 02/16/2021 01:17:45 PM
-- Design Name:
-- Module Name: IR_Reg - Behavioral
-- Project Name:
-- Target Devices:
-- Tool Versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
----------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
use IEEE.NUMERIC_STD.ALL;
-- Uncomment the following library declaration if instantiating
-- any Xilinx leaf cells in this code.
library UNISIM;
--use UNISIM.VComponents.all;
entity IR_Reg is
Port ( rst : in STD_LOGIC;
clk : in STD_LOGIC;
pin : in STD_LOGIC_VECTOR (3 downto 0);
pout : out STD_LOGIC_VECTOR (3 downto 0);
sin : in STD_LOGIC;
sout : out STD_LOGIC;
mic : in STD_LOGIC;
mcsc : in STD_LOGIC;
mlc : in STD_LOGIC);
end IR_Reg;
architecture Behavioral of IR_Reg is
component IR_Cell is
Port ( rst : in STD_LOGIC;
clk : in STD_LOGIC;
mic : in STD_LOGIC;
mlc : in STD_LOGIC;
pin : in STD_LOGIC;
sin : in STD_LOGIC;
mcsc : in STD_LOGIC;
pout : out STD_LOGIC;
sout : out STD_LOGIC);
end component IR_Cell;
begin
cell_0 : IR_Cell
port map( rst => rst, clk => clk, mic => mic, mlc => mlc,
pin => pin(0), sin => sin,
mcsc => mcsc, pout => pout(0), sout => sout);
cell_1 : IR_Cell
port map( rst => rst, clk => clk, mic => mic, mlc => mlc,
pin => pin(1), sin => sin,
mcsc => mcsc, pout => pout(1), sout => sout);
cell_2 : IR_Cell
port map( rst => rst, clk => clk, mic => mic, mlc => mlc,
pin => pin(2), sin => sin,
mcsc => mcsc, pout => pout(2), sout => sout);
cell_3 : IR_Cell
port map( rst => rst, clk => clk, mic => mic, mlc => mlc,
pin => pin(3), sin => sin,
mcsc => mcsc, pout => pout(3), sout => sout);
end Behavioral;