Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
EtherBone Core
Commits
cc8ec92e
Commit
cc8ec92e
authored
13 years ago
by
Mathias Kreider
Browse files
Options
Downloads
Patches
Plain Diff
proper tx packet length check implemented
parent
68374db8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdl/EB_SPEC_Test/EB_TX_CTRL.vhd
+5
-1
5 additions, 1 deletion
hdl/EB_SPEC_Test/EB_TX_CTRL.vhd
with
5 additions
and
1 deletion
hdl/EB_SPEC_Test/EB_TX_CTRL.vhd
+
5
−
1
View file @
cc8ec92e
...
@@ -146,7 +146,7 @@ port(
...
@@ -146,7 +146,7 @@ port(
signal
conv_A
:
wb32_slave_out
;
--!
signal
conv_A
:
wb32_slave_out
;
--!
-- main FSM
-- main FSM
type
st
is
(
IDLE
,
CALC_CHKSUM
,
WAIT_SEND_REQ
,
PREP_ETH
,
ETH
,
IPV4
,
UDP
,
HDR_SEND
,
PAYLOAD_SEND
,
PADDING
,
WAIT_IFGAP
);
type
st
is
(
IDLE
,
CALC_CHKSUM
,
WAIT_SEND_REQ
,
PREP_ETH
,
ETH
,
IPV4
,
UDP
,
HDR_SEND
,
PAYLOAD_SEND
,
PADDING
,
WAIT_IFGAP
,
ERROR
);
signal
state
:
st
:
=
IDLE
;
signal
state
:
st
:
=
IDLE
;
signal
ETH_TX
:
ETH_HDR
;
signal
ETH_TX
:
ETH_HDR
;
...
@@ -478,6 +478,8 @@ begin
...
@@ -478,6 +478,8 @@ begin
if
(
byte_count
<
c_ETH_FRAME_MIN_END
)
then
if
(
byte_count
<
c_ETH_FRAME_MIN_END
)
then
state
<=
PADDING
;
state
<=
PADDING
;
state_mux
<=
PADDING
;
state_mux
<=
PADDING
;
elsif
(
byte_count
/=
to_integer
(
unsigned
(
IPV4_TX
.
TOL
)
+
14
))
then
state
<=
ERROR
;
else
else
state
<=
WAIT_IFGAP
;
state
<=
WAIT_IFGAP
;
state_mux
<=
NONE
;
state_mux
<=
NONE
;
...
@@ -498,6 +500,8 @@ begin
...
@@ -498,6 +500,8 @@ begin
state
<=
IDLE
;
state
<=
IDLE
;
--end if;
--end if;
when
ERROR
=>
state
<=
IDLE
;
report
(
"TX: ERROR - Wrong packet size. Expected "
&
integer
'image
(
byte_count
)
&
" found "
&
integer
'image
(
to_integer
(
unsigned
(
IPV4_TX
.
TOL
)
+
14
)))
severity
error
;
when
others
=>
state
<=
IDLE
;
when
others
=>
state
<=
IDLE
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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