-
Notifications
You must be signed in to change notification settings - Fork 2
/
EndSection.vhd
50 lines (43 loc) · 1.2 KB
/
EndSection.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
-- Peter-Bernd Otte
-- 8.5.2012
-- last update: 8.5.2012
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity EndSection is
Generic (
NConditions : integer := 8 --if this is changed from default values, the IP cores also need to be updated
);
Port (
ConditionsIn : in std_logic_vector(NConditions-1 downto 0);
ExperimentTrigger : in std_logic;
MasterReset : in std_logic;
--VME Register
Register_dout: OUT std_logic_VECTOR(NConditions-1 downto 0);
clock100 : in std_logic
);
end EndSection;
architecture Behavioral of EndSection is
--Register of ConditionsIn Signals
COMPONENT ClockedRegister is
GENERIC (
NCh : integer
);
Port ( Inputs : in STD_LOGIC_VECTOR (NCh-1 downto 0);
Outputs : out STD_LOGIC_VECTOR (NCh-1 downto 0);
ClockedClock : in std_logic;
Clock : in std_logic;
Reset : in STD_LOGIC);
end COMPONENT;
begin
--Register of ConditionsIn Signals
Inst_Register: ClockedRegister GENERIC MAP ( NCh => NConditions )
PORT MAP(
Inputs => ConditionsIn,
Outputs => Register_dout,
ClockedClock => ExperimentTrigger,
Clock => clock100,
Reset => MasterReset
);
end Behavioral;