Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MUonE Processor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cms-tracker-phase2-backend-systems
Back End Firmware
MUonE Processor
Commits
7ac0e088
Commit
7ac0e088
authored
7 months ago
by
Kirika Uchida
Browse files
Options
Downloads
Patches
Plain Diff
added trigger to ecal prescale
parent
47e25412
No related branches found
Branches containing commit
No related tags found
1 merge request
!50
Draft: Resolve "LinkAggregator truncates at high data rates"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ecal/addr_table/eprocessor.xml
+1
-0
1 addition, 0 deletions
ecal/addr_table/eprocessor.xml
ecal/firmware/hdl/EcalDataProcessor.vhd
+12
-3
12 additions, 3 deletions
ecal/firmware/hdl/EcalDataProcessor.vhd
with
13 additions
and
3 deletions
ecal/addr_table/eprocessor.xml
+
1
−
0
View file @
7ac0e088
...
...
@@ -8,6 +8,7 @@
<node
id=
"data_streaming_lat"
mask=
"0x001e000"
description=
"data streaming latency."
/>
<node
id=
"n_pre"
mask=
"0x01e0000"
description=
"number of bx data to take before trigger"
/>
<node
id=
"n_post"
mask=
"0x1e00000"
description=
"number of bx data to take after trigger"
/>
<node
id=
"n_trig_prescale"
mask=
"0x1e00000"
description=
"number of prescale of trigger"
/>
</node>
<node
id=
"stat"
address=
"0x1"
description=
"status"
>
<node
id=
"block_latency"
mask=
"0x1ff"
description=
"latency"
/>
...
...
This diff is collapsed.
Click to expand it.
ecal/firmware/hdl/EcalDataProcessor.vhd
+
12
−
3
View file @
7ac0e088
...
...
@@ -46,6 +46,7 @@ architecture rtl of EcalDataProcessor is
signal
n_pre
:
std_logic_vector
(
3
downto
0
);
signal
n_post
:
std_logic_vector
(
3
downto
0
);
signal
n_data_out
:
integer
range
1
to
8
:
=
1
;
signal
n_trig_prescale
:
integer
range
0
to
127
:
=
0
;
-- 448 length data with valid(1 clock at 320MHz when the data changes at 40MHz)
signal
data_start
:
std_logic
;
...
...
@@ -157,6 +158,7 @@ begin
n_pre
<=
ctrl_regs
(
0
)(
20
downto
17
);
n_post
<=
ctrl_regs
(
0
)(
24
downto
21
);
n_data_out
<=
to_integer
(
unsigned
(
n_pre
)
+
unsigned
(
n_post
))
+
1
;
n_trig_prescale
<=
ctrl_regs
(
0
)(
31
downto
25
);
stat_regs
(
0
)(
8
downto
0
)
<=
std_logic_vector
(
ttrig_block_lat_s
);
stat_regs
(
0
)(
9
)
<=
data_ram_ena
;
...
...
@@ -244,6 +246,8 @@ begin
constant
bit_last
:
integer
:
=
66
;
constant
bit_ofst
:
integer
:
=
67
;
variable
trig_read_count
:
integer
range
0
to
127
:
=
0
;
begin
if
reset
=
'1'
then
...
...
@@ -277,6 +281,7 @@ begin
data_ram_addrb
<=
(
others
=>
'0'
);
timer
:
=
0
;
o_timer
:
=
0
;
trig_read_count
:
=
0
;
elsif
rising_edge
(
clk_p
)
then
...
...
@@ -327,9 +332,13 @@ begin
if
data_ram_doutb
(
bit_start
)
=
'1'
then
-- data bit_start = '1' is synchronized with the trig_ready by the raddr arrangement
o_timer
:
=
0
;
if
trig_ready_d
=
'1'
then
trig_valid
:
=
trig_en_d
;
data_out_count
:
=
0
;
trig_start
:
=
'1'
;
trig_read_count
:
=
trig_read_count
+
1
;
if
trig_read_count
=
n_trig_prescale
then
trig_valid
:
=
trig_en_d
;
data_out_count
:
=
0
;
trig_start
:
=
'1'
;
trig_read_count
:
=
0
;
end
if
;
elsif
trig_en_d
=
'1'
then
data_out_count
:
=
data_out_count
+
1
;
if
data_out_count
=
n_data_out
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment