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
1
Merge Requests
1
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
b3d9dc79
Commit
b3d9dc79
authored
Jan 27, 2022
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
platform/xilinx: add synchronizers on serdes ready signals
parent
1eb1f624
Pipeline
#3072
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
16 deletions
+30
-16
wr_gthe4_phy_family7_xilinx_ip.vhd
..._gtp_phy/family7-gthe4/wr_gthe4_phy_family7_xilinx_ip.vhd
+30
-16
No files found.
platform/xilinx/wr_gtp_phy/family7-gthe4/wr_gthe4_phy_family7_xilinx_ip.vhd
View file @
b3d9dc79
...
...
@@ -149,21 +149,21 @@ architecture rtl of wr_gthe4_phy_family7_xilinx_ip is
end
component
gtp_bitslide
;
signal
rx_clk
,
tx_clk
:
std_logic
;
signal
serdes_ready
,
rx_comma_det
,
rx_byte_is_aligned
,
rx_slide
:
std_logic
;
signal
serdes_ready
_a
,
serdes_ready_txclk
,
serdes_ready_rxclk
,
rx_comma_det
,
rx_byte_is_aligned
,
rx_slide
:
std_logic
;
signal
rx_synced
,
rst_rxclk
:
std_logic
;
attribute
mark_debug
:
string
;
attribute
mark_debug
of
serdes_ready
:
signal
is
"true"
;
attribute
mark_debug
of
rx_comma_det
:
signal
is
"true"
;
attribute
mark_debug
of
rx_byte_is_aligned
:
signal
is
"true"
;
attribute
mark_debug
of
rx_slide
:
signal
is
"true"
;
attribute
mark_debug
of
rx_synced
:
signal
is
"true"
;
--
attribute mark_debug : string;
--
attribute mark_debug of serdes_ready : signal is "true";
--
attribute mark_debug of rx_comma_det : signal is "true";
--
attribute mark_debug of rx_byte_is_aligned : signal is "true";
--
attribute mark_debug of rx_slide : signal is "true";
--
attribute mark_debug of rx_synced : signal is "true";
attribute
mark_debug
of
gtwiz_reset_all_in
:
signal
is
"true"
;
attribute
mark_debug
of
gtwiz_reset_rx_done_out
:
signal
is
"true"
;
attribute
mark_debug
of
gtwiz_buffbypass_rx_done_out
:
signal
is
"true"
;
attribute
mark_debug
of
gtwiz_buffbypass_tx_done_out
:
signal
is
"true"
;
--
attribute mark_debug of gtwiz_reset_all_in : signal is "true";
--
attribute mark_debug of gtwiz_reset_rx_done_out : signal is "true";
--
attribute mark_debug of gtwiz_buffbypass_rx_done_out : signal is "true";
--
attribute mark_debug of gtwiz_buffbypass_tx_done_out : signal is "true";
signal
rx_data_int
:
std_logic_vector
(
15
downto
0
);
...
...
@@ -229,7 +229,7 @@ begin
gtp_rx_clk_i
=>
rx_clk
,
gtp_rx_comma_det_i
=>
rx_comma_det
,
gtp_rx_byte_is_aligned_i
=>
rx_byte_is_aligned
,
serdes_ready_i
=>
serdes_ready
,
serdes_ready_i
=>
serdes_ready
_rxclk
,
gtp_rx_slide_o
=>
rx_slide
,
gtp_rx_cdr_rst_o
=>
open
,
bitslide_o
=>
rx_bitslide_o
,
...
...
@@ -371,10 +371,24 @@ begin
-- tx_k_i => tx_is_k_swapped,
-- ready_o => serdes_ready);
serdes_ready
<=
serdes_ready
_a
<=
not
(
gtwiz_reset_all_in
or
not
gtwiz_reset_rx_done_out
or
not
gtwiz_buffbypass_rx_done_out
or
not
gtwiz_buffbypass_tx_done_out
);
U_Sync_Serdes_RDY1
:
gc_sync_ffs
port
map
(
clk_i
=>
rx_clk
,
rst_n_i
=>
'1'
,
data_i
=>
serdes_ready_a
,
synced_o
=>
serdes_ready_rxclk
);
U_Sync_Serdes_RDY2
:
gc_sync_ffs
port
map
(
clk_i
=>
tx_clk
,
rst_n_i
=>
'1'
,
data_i
=>
serdes_ready_a
,
synced_o
=>
serdes_ready_txclk
);
txctrl0_int
<=
x"0000"
;
txctrl1_int
<=
x"0000"
;
txctrl2_int
<=
"000000"
&
tx_is_k_swapped
;
...
...
@@ -388,7 +402,7 @@ begin
rx_k_o
<=
(
others
=>
'0'
);
rx_enc_err_o
<=
'0'
;
elsif
rising_edge
(
rx_clk
)
then
if
(
serdes_ready
=
'1'
and
rx_synced
=
'1'
)
then
if
(
serdes_ready
_rxclk
=
'1'
and
rx_synced
=
'1'
)
then
rx_data_o
<=
rx_data_int
(
7
downto
0
)
&
rx_data_int
(
15
downto
8
);
rx_k_o
<=
rx_k_int
(
0
)
&
rx_k_int
(
1
);
rx_enc_err_o
<=
'0'
;
--rx_disp_err(0) or rx_disp_err(1) or rx_code_err(0) or rx_code_err(1);
...
...
@@ -403,7 +417,7 @@ begin
p_gen_tx_disparity
:
process
(
tx_clk
)
begin
if
rising_edge
(
tx_clk
)
then
if
serdes_ready
=
'0'
then
if
serdes_ready
_txclk
=
'0'
then
cur_disp
<=
RD_MINUS
;
else
cur_disp
<=
f_next_8b10b_disparity16
(
cur_disp
,
tx_k_i
,
tx_data_i
);
...
...
@@ -416,7 +430,7 @@ begin
tx_out_clk_o
<=
tx_clk
;
rx_rbclk_o
<=
rx_clk
;
rdy_o
<=
serdes_ready
and
rx_synced
;
rdy_o
<=
serdes_ready
_rxclk
and
rx_synced
;
tx_locked_o
<=
'1'
;
tx_enc_err_o
<=
'0'
;
...
...
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