Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
RTSD
HDL
Commits
12e05f84
Commit
12e05f84
authored
2 years ago
by
Reinier van der Walle
Browse files
Options
Downloads
Patches
Plain Diff
processed review comments
parent
6df2223c
No related branches found
No related tags found
1 merge request
!287
added valid_arp signal
Pipeline
#37933
passed
2 years ago
Stage: simulation
Stage: synthesis
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/io/nw_10GbE/src/vhdl/nw_arp_request.vhd
+10
-1
10 additions, 1 deletion
libraries/io/nw_10GbE/src/vhdl/nw_arp_request.vhd
with
10 additions
and
1 deletion
libraries/io/nw_10GbE/src/vhdl/nw_arp_request.vhd
+
10
−
1
View file @
12e05f84
...
...
@@ -75,6 +75,9 @@ ARCHITECTURE rtl of nw_arp_request IS
CONSTANT
c_dp_field_blk_snk_data_w
:
NATURAL
:
=
field_slv_len
(
c_hdr_field_arr
);
CONSTANT
c_dp_field_blk_src_data_w
:
NATURAL
:
=
c_data_w
;
SIGNAL
valid_sha
:
STD_LOGIC
:
=
'0'
;
SIGNAL
valid_spa
:
STD_LOGIC
:
=
'0'
;
SIGNAL
valid_tpa
:
STD_LOGIC
:
=
'0'
;
SIGNAL
valid_arp
:
STD_LOGIC
:
=
'0'
;
SIGNAL
pps_cnt
:
NATURAL
:
=
0
;
SIGNAL
trigger
:
BOOLEAN
:
=
FALSE
;
...
...
@@ -102,13 +105,19 @@ BEGIN
p_dp_pps
:
PROCESS
(
dp_clk
,
dp_rst
)
BEGIN
IF
dp_rst
=
'1'
THEN
valid_sha
<=
'0'
;
valid_spa
<=
'0'
;
valid_tpa
<=
'0'
;
valid_arp
<=
'0'
;
trigger
<=
FALSE
;
pps_cnt
<=
0
;
dp_field_blk_snk_in
<=
c_dp_sosi_rst
;
ELSIF
RISING_EDGE
(
dp_clk
)
THEN
-- Use signal to indicate if ARP can be enabled.
valid_arp
<=
vector_or
(
arp_sha
)
AND
vector_or
(
arp_spa
)
AND
vector_or
(
arp_tpa
);
valid_sha
<=
vector_or
(
arp_sha
);
valid_spa
<=
vector_or
(
arp_spa
);
valid_tpa
<=
vector_or
(
arp_tpa
);
valid_arp
<=
valid_sha
AND
valid_spa
AND
valid_tpa
;
IF
valid_arp
=
'1'
THEN
dp_field_blk_snk_in
<=
nxt_dp_field_blk_snk_in
;
IF
trigger
AND
dp_field_blk_snk_out
.
ready
=
'1'
AND
dp_field_blk_snk_out
.
xon
=
'1'
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