Skip to content
GitLab
Explore
Sign in
Register
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
ea1fdd0d
Commit
ea1fdd0d
authored
3 years ago
by
Pieter Donker
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SDP-343
' into 'master'
fixed IP checksum calculation Closes
L2SDP-343
See merge request desp/hdl!106
parents
0351f325
101f8af0
No related branches found
Branches containing commit
No related tags found
1 merge request
!106
fixed IP checksum calculation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/io/eth/src/vhdl/eth_checksum.vhd
+1
-1
1 addition, 1 deletion
libraries/io/eth/src/vhdl/eth_checksum.vhd
with
1 addition
and
1 deletion
libraries/io/eth/src/vhdl/eth_checksum.vhd
+
1
−
1
View file @
ea1fdd0d
...
@@ -150,7 +150,7 @@ BEGIN
...
@@ -150,7 +150,7 @@ BEGIN
sum
;
sum
;
-- Accumulate the last carry
-- Accumulate the last carry
last_dat
<=
sum
(
c_halfword_w
-1
DOWNTO
0
)
+
sum_cin
;
last_dat
<=
sum
(
c_halfword_w
-1
DOWNTO
0
)
+
sum_cin
+
word_sum_cin
;
-- Also add word_sum_cin in the case that the last word has a carry.
-- Checksum is 1-complement of the sum
-- Checksum is 1-complement of the sum
nxt_checksum
<=
NOT
(
STD_LOGIC_VECTOR
(
last_dat
))
WHEN
prev_in_eop_dly
=
'1'
ELSE
i_checksum
;
nxt_checksum
<=
NOT
(
STD_LOGIC_VECTOR
(
last_dat
))
WHEN
prev_in_eop_dly
=
'1'
ELSE
i_checksum
;
...
...
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