Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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 DEL 1ns 4cha
Commits
982968c2
Commit
982968c2
authored
Oct 27, 2023
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdl: register dcr_enable bit to help with timing (
#28
)
parent
ab8edc42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
fd_delay_channel_driver.vhd
hdl/rtl/fd_delay_channel_driver.vhd
+6
-3
No files found.
hdl/rtl/fd_delay_channel_driver.vhd
View file @
982968c2
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
-- Author : Tomasz Wlostowski
-- Author : Tomasz Wlostowski
-- Company : CERN
-- Company : CERN
-- Created : 2011-08-24
-- Created : 2011-08-24
-- Last update: 20
14-03-24
-- Last update: 20
23-10-26
-- Platform : FPGA-generic
-- Platform : FPGA-generic
-- Standard : VHDL'93
-- Standard : VHDL'93
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
...
@@ -194,6 +194,7 @@ architecture behavioral of fd_delay_channel_driver is
...
@@ -194,6 +194,7 @@ architecture behavioral of fd_delay_channel_driver is
signal
tag_valid_d
:
std_logic_vector
(
4
downto
0
);
signal
tag_valid_d
:
std_logic_vector
(
4
downto
0
);
signal
dcr_arm_d
:
std_logic_vector
(
4
downto
0
);
signal
dcr_arm_d
:
std_logic_vector
(
4
downto
0
);
signal
dcr_en_d
:
std_logic
;
signal
regs_in
:
t_fd_channel_out_registers
;
signal
regs_in
:
t_fd_channel_out_registers
;
signal
regs_out
:
t_fd_channel_in_registers
;
signal
regs_out
:
t_fd_channel_in_registers
;
...
@@ -228,9 +229,11 @@ begin
...
@@ -228,9 +229,11 @@ begin
if
rst_n_ref_i
=
'0'
then
if
rst_n_ref_i
=
'0'
then
tag_valid_d
<=
(
others
=>
'0'
);
tag_valid_d
<=
(
others
=>
'0'
);
dcr_arm_d
<=
(
others
=>
'0'
);
dcr_arm_d
<=
(
others
=>
'0'
);
dcr_en_d
<=
'0'
;
else
else
tag_valid_d
<=
tag_valid_d
(
tag_valid_d
'length
-2
downto
0
)
&
tag_valid_i
;
tag_valid_d
<=
tag_valid_d
(
tag_valid_d
'length
-2
downto
0
)
&
tag_valid_i
;
dcr_arm_d
<=
dcr_arm_d
(
dcr_arm_d
'length
-2
downto
0
)
&
regs_in
.
dcr_pg_arm_o
;
dcr_arm_d
<=
dcr_arm_d
(
dcr_arm_d
'length
-2
downto
0
)
&
regs_in
.
dcr_pg_arm_o
;
dcr_en_d
<=
regs_in
.
dcr_enable_o
;
end
if
;
end
if
;
end
if
;
end
if
;
end
process
;
end
process
;
...
@@ -393,7 +396,7 @@ begin
...
@@ -393,7 +396,7 @@ begin
p_match_hit_stage1
:
process
(
clk_ref_i
)
p_match_hit_stage1
:
process
(
clk_ref_i
)
begin
begin
if
rising_edge
(
clk_ref_i
)
then
if
rising_edge
(
clk_ref_i
)
then
if
rst_n_ref_i
=
'0'
or
regs_in
.
dcr_enable_o
=
'0'
then
if
rst_n_ref_i
=
'0'
or
dcr_en_d
=
'0'
then
hit_end
<=
'0'
;
hit_end
<=
'0'
;
hit_start
<=
'0'
;
hit_start
<=
'0'
;
hit_start_stage1
<=
(
others
=>
'0'
);
hit_start_stage1
<=
(
others
=>
'0'
);
...
@@ -421,7 +424,7 @@ begin
...
@@ -421,7 +424,7 @@ begin
p_fine_fsm
:
process
(
clk_ref_i
)
p_fine_fsm
:
process
(
clk_ref_i
)
begin
begin
if
rising_edge
(
clk_ref_i
)
then
if
rising_edge
(
clk_ref_i
)
then
if
rst_n_ref_i
=
'0'
or
regs_in
.
dcr_enable_o
=
'0'
then
if
rst_n_ref_i
=
'0'
or
dcr_en_d
=
'0'
then
state
<=
IDLE
;
state
<=
IDLE
;
delay_load_o
<=
'0'
;
delay_load_o
<=
'0'
;
first_pulse
<=
'1'
;
first_pulse
<=
'1'
;
...
...
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