Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DAQPath Toolkit
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
DAQPath Toolkit
Commits
4d5ea87b
Commit
4d5ea87b
authored
1 week ago
by
Marco Riggirello
Browse files
Options
Downloads
Patches
Plain Diff
Start of Node integration with IPBUS
parent
90122c0a
No related branches found
No related tags found
No related merge requests found
Pipeline
#12215904
passed
1 week ago
Stage: Simulation
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/DataAggregator/firmware/hdl/L1DataAggregatorNode.vhd
+32
-0
32 additions, 0 deletions
source/DataAggregator/firmware/hdl/L1DataAggregatorNode.vhd
with
32 additions
and
0 deletions
source/DataAggregator/firmware/hdl/L1DataAggregatorNode.vhd
+
32
−
0
View file @
4d5ea87b
...
...
@@ -74,6 +74,7 @@ architecture fpga of L1DataAggregatorNode is
constant
CHANNEL_ID
:
index_array
:
=
gen_channel_id
(
LINK_ID
);
-- Conversion of DTC flags data type to DAQPath flags
function
to_daqpath_flags
(
dtc_flags
:
tDaqFlag
)
return
daqpath_flags
is
variable
dqp_flags
:
daqpath_flags
;
...
...
@@ -84,6 +85,28 @@ architecture fpga of L1DataAggregatorNode is
return
dqp_flags
;
end
function
;
-- Conversion of DAQPath flags data type to DTC flags
function
from_daqpath_flags
(
dqp_flags
:
daqpath_flags
)
return
tDaqFlag
is
variable
dtc_flags
:
tDaqFlag
;
begin
dtc_flags
.
data_word
:
=
dqp_flags
.
data_word
;
dtc_flags
.
event_id
:
=
dqp_flags
.
event_id
;
dtc_flags
.
n_words
:
=
dqp_flags
.
n_words
;
return
dtc_flags
;
end
function
;
-- Conversion of DTC data type to DAQPath data
function
to_daqpath_data
(
dtc_data
:
tDaqData
)
return
daqpath_data_in
is
variable
dqp_data
:
daqpath_data_in
;
begin
dqp_data
.
data_word
:
=
dtc_data
.
data_word
;
dqp_data
.
event_id
:
=
dtc_data
.
event_id
;
dqp_data
.
n_words
:
=
dtc_data
.
n_words
;
return
dqp_data
;
end
function
;
signal
daqpath_creg
:
ipb_reg_v
(
2
downto
0
)
:
=
(
others
=>
(
others
=>
'0'
));
signal
daqpath_sreg
:
ipb_reg_v
(
2
downto
0
)
:
=
(
others
=>
(
others
=>
'0'
));
...
...
@@ -92,4 +115,13 @@ architecture fpga of L1DataAggregatorNode is
begin
-- IPBUS cores
-- ...
-- Input port assignment
-- ...
-- Register assignment
-- ...
end
fpga
;
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