Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Gateware
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
White Rabbit Switch - Gateware
Commits
f9d1cbb4
Commit
f9d1cbb4
authored
13 years ago
by
Tomasz Wlostowski
Browse files
Options
Downloads
Patches
Plain Diff
modules/wrsw_nic: fixed interface bugs (dreqs at wrong moments and wrong offset of port_id in OOB)
parent
f852caa9
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
modules/wrsw_nic/nic_rx_fsm.vhd
+6
-5
6 additions, 5 deletions
modules/wrsw_nic/nic_rx_fsm.vhd
with
6 additions
and
5 deletions
modules/wrsw_nic/nic_rx_fsm.vhd
+
6
−
5
View file @
f9d1cbb4
...
...
@@ -6,7 +6,7 @@
-- Author : Tomasz Wlostowski
-- Company : CERN BE-Co-HT
-- Created : 2010-11-24
-- Last update: 2012-01-
19
-- Last update: 2012-01-
24
-- Platform : FPGA-generic
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -48,7 +48,8 @@ entity nic_rx_fsm is
-------------------------------------------------------------------------------
-- Wishbone regs
-------------------------------------------------------------------------------
bna_i
:
in
std_logic
;
regs_i
:
in
t_nic_out_registers
;
regs_o
:
out
t_nic_in_registers
;
...
...
@@ -243,7 +244,7 @@ begin
state
<=
RX_WAIT_SOF
;
-- and start waiting for
-- incoming traffic
else
rx_dreq_mask
<=
'0'
;
--
dis
able RX (/dev/null)
rx_dreq_mask
<=
bna_i
;
--
en
able RX (
but to
/dev/null)
end
if
;
-------------------------------------------------------------------------------
...
...
@@ -367,7 +368,7 @@ begin
-- the descriptor
if
(
oob_sreg
(
0
)
=
'1'
)
then
-- 1st OOB word
cur_rx_desc
.
port_id
<=
'0'
&
fab_in
.
data
(
15
downto
11
);
cur_rx_desc
.
port_id
<=
'0'
&
fab_in
.
data
(
4
downto
0
);
end
if
;
if
(
oob_sreg
(
1
)
=
'1'
)
then
-- 2nd OOB word
...
...
@@ -478,7 +479,7 @@ begin
-- the condition below forces the RX FSM to go into RX_MEM_RESYNC state. Don't
-- receive anything during the RESYNC cycle.
elsif
(
rx_rdreg_toggle
=
'1'
and
buf_grant_i
=
'1'
and
state
/=
RX_WAIT_SOF
)
then
elsif
(
rx_rdreg_toggle
=
'1'
and
buf_grant_i
=
'1'
and
(
state
/=
RX_WAIT_SOF
)
and
(
state
/=
RX_REQUEST_DESCRIPTOR
))
then
fab_dreq
<=
'0'
;
else
fab_dreq
<=
'1'
;
...
...
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