Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cms_mlatl1t_tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
fastmachinelearning
cms_mlatl1t_tutorial
Commits
7dbff527
Commit
7dbff527
authored
1 year ago
by
ssummers
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://gitlab.cern.ch/fastmachinelearning/cms_mlatl1t_tutorial
parents
7b482cf7
1a3c03cf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
part3/firmware/payload/firmware/hdl/payload.vhd
+12
-6
12 additions, 6 deletions
part3/firmware/payload/firmware/hdl/payload.vhd
with
12 additions
and
6 deletions
part3/firmware/payload/firmware/hdl/payload.vhd
+
12
−
6
View file @
7dbff527
...
...
@@ -34,10 +34,12 @@ end emp_payload;
architecture
rtl
of
emp_payload
is
signal
X_scaled
:
std_logic_vector
(
895
downto
0
)
:
=
(
others
=>
'0'
);
signal
X_scaled_vld
:
std_logic
:
=
'0'
;
signal
y
:
std_logic_vector
(
12
downto
0
)
:
=
(
others
=>
'0'
);
signal
y_vld
:
std_logic
:
=
'0'
;
signal
X_scaled
:
std_logic_vector
(
895
downto
0
)
:
=
(
others
=>
'0'
);
signal
X_scaled_vld
:
std_logic
:
=
'0'
;
signal
X_scaled_delay
:
std_logic_vector
(
895
downto
0
)
:
=
(
others
=>
'0'
);
signal
X_scaled_vld_delay
:
std_logic
:
=
'0'
;
signal
y
:
std_logic_vector
(
12
downto
0
)
:
=
(
others
=>
'0'
);
signal
y_vld
:
std_logic
:
=
'0'
;
begin
...
...
@@ -50,12 +52,16 @@ begin
X_vld
=>
X_scaled_vld
);
-- add a buffer between the scaler and NN to ease timing
X_scaled_delay
<=
X_scaled
when
rising_edge
(
clk
);
X_scaled_vld_delay
<=
X_scaled_vld
when
rising_edge
(
clk
);
-- run the NN
NNInstance
:
entity
work
.
NNWrapper
port
map
(
clk
=>
clk_p
,
X_scaled
=>
X_scaled
,
X_vld
=>
X_scaled_vld
,
X_scaled
=>
X_scaled
_delay
,
X_vld
=>
X_scaled_vld
_delay
,
y
=>
y
,
y_vld
=>
y_vld
);
...
...
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