Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha
Commits
bfaa4675
Commit
bfaa4675
authored
Oct 15, 2018
by
Tristan Gingold
Committed by
Federico Vaga
Nov 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reg_ctrl: add a register to reduce timing pressure.
parent
307f71dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
13 deletions
+27
-13
reg_ctrl.vhd
hdl/rtl/reg_ctrl.vhd
+27
-13
No files found.
hdl/rtl/reg_ctrl.vhd
View file @
bfaa4675
...
...
@@ -156,7 +156,8 @@ architecture rtl of reg_ctrl is
signal
acam_config
:
config_vector
;
signal
reg_adr
,
reg_adr_pipe0
:
std_logic_vector
(
7
downto
0
);
signal
starting_utc
,
acam_inputs_en
:
std_logic_vector
(
g_width
-1
downto
0
);
signal
ctrl_reg
,
irq_tstamp_threshold
:
std_logic_vector
(
g_width
-1
downto
0
);
signal
ctrl_reg
,
ctrl_reg_d
:
std_logic_vector
(
g_width
-1
downto
0
);
signal
irq_tstamp_threshold
:
std_logic_vector
(
g_width
-1
downto
0
);
signal
irq_time_threshold
:
std_logic_vector
(
g_width
-1
downto
0
);
signal
clear_ctrl_reg
,
send_dac_word_p
:
std_logic
;
signal
dac_word
:
std_logic_vector
(
23
downto
0
);
...
...
@@ -417,18 +418,31 @@ begin
end
if
;
end
if
;
end
process
;
-- -- -- -- -- -- -- -- -- -- -- --
activate_acq_p_o
<=
ctrl_reg
(
0
);
deactivate_acq_p_o
<=
ctrl_reg
(
1
);
acam_wr_config_p_o
<=
ctrl_reg
(
2
);
acam_rdbk_config_p_o
<=
ctrl_reg
(
3
);
acam_rdbk_status_p_o
<=
ctrl_reg
(
4
);
acam_rdbk_ififo1_p_o
<=
ctrl_reg
(
5
);
acam_rdbk_ififo2_p_o
<=
ctrl_reg
(
6
);
acam_rdbk_start01_p_o
<=
ctrl_reg
(
7
);
acam_rst_p_o
<=
ctrl_reg
(
8
);
load_utc_p_o
<=
ctrl_reg
(
9
);
send_dac_word_p
<=
ctrl_reg
(
11
);
-- not used
-- Delay by one cycle to reduce timing constraints.
process
(
clk_tdc_i
)
begin
if
rising_edge
(
clk_tdc_i
)
then
if
rst_tdc_i
=
'1'
then
ctrl_reg_d
<=
(
others
=>
'0'
);
else
ctrl_reg_d
<=
ctrl_reg
;
end
if
;
end
if
;
end
process
;
-- -- -- -- -- -- -- -- -- -- -- --
activate_acq_p_o
<=
ctrl_reg_d
(
0
);
deactivate_acq_p_o
<=
ctrl_reg_d
(
1
);
acam_wr_config_p_o
<=
ctrl_reg_d
(
2
);
acam_rdbk_config_p_o
<=
ctrl_reg_d
(
3
);
acam_rdbk_status_p_o
<=
ctrl_reg_d
(
4
);
acam_rdbk_ififo1_p_o
<=
ctrl_reg_d
(
5
);
acam_rdbk_ififo2_p_o
<=
ctrl_reg_d
(
6
);
acam_rdbk_start01_p_o
<=
ctrl_reg_d
(
7
);
acam_rst_p_o
<=
ctrl_reg_d
(
8
);
load_utc_p_o
<=
ctrl_reg_d
(
9
);
send_dac_word_p
<=
ctrl_reg_d
(
11
);
-- not used
-- ctrl_reg bits 12 to 31 not used for the moment!
-- -- -- -- -- -- -- -- -- -- -- --
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment