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
70244aaa
Commit
70244aaa
authored
9 years ago
by
Dumez
Browse files
Options
Downloads
Patches
Plain Diff
Add a small FIFO to suppress word loss in next eth_hdr module during ihl correction
parent
223919e5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/io/eth/src/vhdl/eth_ihl_to_20.vhd
+22
-4
22 additions, 4 deletions
libraries/io/eth/src/vhdl/eth_ihl_to_20.vhd
with
22 additions
and
4 deletions
libraries/io/eth/src/vhdl/eth_ihl_to_20.vhd
+
22
−
4
View file @
70244aaa
...
...
@@ -80,6 +80,7 @@ END eth_ihl_to_20;
ARCHITECTURE
rtl
OF
eth_ihl_to_20
IS
SIGNAL
i_src_out
:
t_dp_sosi
;
SIGNAL
i_src_in
:
t_dp_siso
;
TYPE
state_type
IS
(
Idle
,
Eth_DestMAC0
,
Eth_DestMAC1
,
Eth_SrcMAC0
,
Eth_SrcMAC1
,
IPv4_lengths
,
IPv4_ID
,
IPv4_TTL
,
IPv4_SrcIP
,
IPv4_DestIP
,
IPv4_Options
,
IPv4_Payload
);
SIGNAL
state
:
state_type
;
...
...
@@ -88,14 +89,31 @@ ARCHITECTURE rtl OF eth_ihl_to_20 IS
BEGIN
src_out
<=
i_src_out
;
--i_src_out <= snk_in;
-- Pass on frame level flow control
snk_out
.
xon
<=
src_in
.
xon
;
snk_out
.
xon
<=
i_
src_in
.
xon
;
-- No change in ready latency, c_this_snk_latency = c_this_src_latency
snk_out
.
ready
<=
src_in
.
ready
;
snk_out
.
ready
<=
i_src_in
.
ready
;
u_dp_fifo_sc
:
ENTITY
dp_lib
.
dp_fifo_sc
GENERIC
MAP
(
g_data_w
=>
c_eth_data_w
,
g_use_bsn
=>
FALSE
,
g_use_sync
=>
FALSE
,
g_fifo_size
=>
10
)
PORT
MAP
(
rst
=>
rst
,
clk
=>
clk
,
snk_in
=>
i_src_out
,
snk_out
=>
i_src_in
,
src_out
=>
src_out
,
src_in
=>
src_in
);
PROCESS
(
clk
,
rst
)
...
...
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