Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit core collection
Commits
a24e5e65
Commit
a24e5e65
authored
Jan 19, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_endpoint/ep_sync_detect_16bit: bugfix: now detects a linkup also when in autonegotiation mode
parent
e9abb82f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ep_sync_detect_16bit.vhd
modules/wr_endpoint/ep_sync_detect_16bit.vhd
+6
-6
No files found.
modules/wr_endpoint/ep_sync_detect_16bit.vhd
View file @
a24e5e65
...
...
@@ -6,7 +6,7 @@
-- Author : Tomasz Wlostowski
-- Company : CERN BE-Co-HT
-- Created : 2010-05-28
-- Last update: 201
1-10-14
-- Last update: 201
2-01-18
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -76,11 +76,12 @@ architecture behavioral of ep_sync_detect_16bit is
signal
valid_idle
:
std_logic
;
signal
invalid_code
:
std_logic
;
signal
valid_data
:
std_logic
;
begin
-- behavioral
valid_idle
<=
'1'
when
(
k_i
=
"10"
and
data_i
(
15
downto
8
)
=
c_k28_5
and
err_i
=
'0'
)
else
'0'
;
valid_idle
<=
'1'
when
(
k_i
=
"10"
and
data_i
(
15
downto
8
)
=
c_k28_5
and
err_i
=
'0'
)
else
'0'
;
valid_data
<=
'1'
when
(
k_i
=
"00"
and
err_i
=
'0'
)
else
'0'
;
invalid_code
<=
'1'
when
(
err_i
=
'1'
or
(
k_i
(
0
)
=
'1'
and
data_i
(
7
downto
0
)
=
c_k28_5
))
else
'0'
;
...
...
@@ -105,13 +106,12 @@ begin -- behavioral
when
LOSS_OF_SYNC
=>
synced_o
<=
'0'
;
state
<=
f_pick
(
valid_idle
,
CD_ACQ_1
,
LOSS_OF_SYNC
);
when
CD_ACQ_1
=>
state
<=
f_pick
(
valid_idle
,
CD_ACQ_2
,
LOSS_OF_SYNC
);
state
<=
f_pick
(
valid_idle
or
valid_data
,
CD_ACQ_2
,
LOSS_OF_SYNC
);
when
CD_ACQ_2
=>
state
<=
f_pick
(
valid_idle
,
CD_ACQ_3
,
LOSS_OF_SYNC
);
when
CD_ACQ_3
=>
state
<=
f_pick
(
valid_idle
,
SYNC_ACQUIRED_1
,
LOSS_OF_SYNC
);
state
<=
f_pick
(
valid_idle
or
valid_data
,
SYNC_ACQUIRED_1
,
LOSS_OF_SYNC
);
when
SYNC_ACQUIRED_1
=>
synced_o
<=
'1'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment