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
0
Merge Requests
0
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
cf848e66
Commit
cf848e66
authored
Mar 31, 2023
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_core: follow up LPDC/MDIO interface changes of the WR Endpoint
parent
bb70fe53
Pipeline
#4395
failed with stage
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
18 deletions
+59
-18
wr_core.vhd
modules/wrc_core/wr_core.vhd
+30
-5
wrcore_pkg.vhd
modules/wrc_core/wrcore_pkg.vhd
+15
-7
xwr_core.vhd
modules/wrc_core/xwr_core.vhd
+14
-6
No files found.
modules/wrc_core/wr_core.vhd
View file @
cf848e66
...
...
@@ -6,7 +6,7 @@
-- Author : Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
-- Company : CERN (BE-CO-HT)
-- Created : 2011-02-02
-- Last update: 202
2-04-19
-- Last update: 202
3-03-21
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -169,8 +169,17 @@ entity wr_core is
phy_sfp_tx_disable_o
:
out
std_logic
;
phy_rx_rbclk_sampled_i
:
in
std_logic
;
phy_lpc_stat_i
:
in
std_logic_vector
(
15
downto
0
);
phy_lpc_ctrl_o
:
out
std_logic_vector
(
15
downto
0
);
-- clk_sys_i domain!
phy_mdio_master_cyc_o
:
out
std_logic
;
phy_mdio_master_stb_o
:
out
std_logic
;
phy_mdio_master_we_o
:
out
std_logic
;
phy_mdio_master_dat_o
:
out
std_logic_vector
(
31
downto
0
);
phy_mdio_master_sel_o
:
out
std_logic_vector
(
3
downto
0
)
:
=
"0000"
;
phy_mdio_master_adr_o
:
out
std_logic_vector
(
31
downto
0
);
phy_mdio_master_ack_i
:
in
std_logic
:
=
'0'
;
phy_mdio_master_stall_i
:
in
std_logic
:
=
'0'
;
phy_mdio_master_dat_i
:
in
std_logic_vector
(
31
downto
0
)
:
=
x"00000000"
;
-- PHY I/F record-based
...
...
@@ -479,6 +488,9 @@ architecture struct of wr_core is
signal
clk_fb
:
std_logic_vector
(
g_aux_clks
downto
0
);
signal
out_enable
:
std_logic_vector
(
g_aux_clks
downto
0
);
signal
phy_mdio_master_out
:
t_wishbone_master_out
;
signal
phy_mdio_master_in
:
t_wishbone_master_in
;
begin
-----------------------------------------------------------------------------
...
...
@@ -732,9 +744,10 @@ begin
phy_rx_k_i
=>
phy_rx_k_i
,
phy_rx_enc_err_i
=>
phy_rx_enc_err_i
,
phy_rx_bitslide_i
=>
phy_rx_bitslide_i
,
phy_lpc_stat_i
=>
phy_lpc_stat_i
,
phy_lpc_ctrl_o
=>
phy_lpc_ctrl_o
,
phy_mdio_master_o
=>
phy_mdio_master_out
,
phy_mdio_master_i
=>
phy_mdio_master_in
,
phy8_o
=>
phy8_o
,
phy8_i
=>
phy8_i
,
phy16_o
=>
phy16_o
,
...
...
@@ -769,6 +782,18 @@ begin
phy_rst_o
<=
phy_rst
;
phy_mdio_master_cyc_o
<=
phy_mdio_master_out
.
cyc
;
phy_mdio_master_stb_o
<=
phy_mdio_master_out
.
stb
;
phy_mdio_master_we_o
<=
phy_mdio_master_out
.
we
;
phy_mdio_master_adr_o
<=
phy_mdio_master_out
.
adr
;
phy_mdio_master_sel_o
<=
phy_mdio_master_out
.
sel
;
phy_mdio_master_dat_o
<=
phy_mdio_master_out
.
dat
;
phy_mdio_master_in
.
dat
<=
phy_mdio_master_dat_i
;
phy_mdio_master_in
.
ack
<=
phy_mdio_master_ack_i
;
phy_mdio_master_in
.
stall
<=
phy_mdio_master_stall_i
;
phy_mdio_master_in
.
rty
<=
'0'
;
phy_mdio_master_in
.
err
<=
'0'
;
-----------------------------------------------------------------------------
-- Mini-NIC
-----------------------------------------------------------------------------
...
...
modules/wrc_core/wrcore_pkg.vhd
View file @
cf848e66
...
...
@@ -6,7 +6,7 @@
-- Author : Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
-- Company : CERN (BE-CO-HT)
-- Created : 2011-05-11
-- Last update: 202
2-04-19
-- Last update: 202
3-03-13
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -453,10 +453,9 @@ package wrcore_pkg is
phy_sfp_los_i
:
in
std_logic
:
=
'0'
;
phy_sfp_tx_disable_o
:
out
std_logic
;
phy_rx_rbclk_sampled_i
:
in
std_logic
:
=
'0'
;
phy_lpc_ctrl_o
:
out
std_logic_vector
(
15
downto
0
);
phy_lpc_stat_i
:
in
std_logic_vector
(
15
downto
0
)
:
=
x"0000"
;
phy_mdio_master_o
:
out
t_wishbone_master_out
;
phy_mdio_master_i
:
in
t_wishbone_master_in
:
=
cc_dummy_slave_out
;
-----------------------------------------
-- PHY I/f - record-based
-- selection done with g_records_for_phy
...
...
@@ -635,8 +634,17 @@ package wrcore_pkg is
phy_sfp_tx_disable_o
:
out
std_logic
;
phy_rx_rbclk_sampled_i
:
in
std_logic
:
=
'0'
;
phy_lpc_ctrl_o
:
out
std_logic_vector
(
15
downto
0
);
phy_lpc_stat_i
:
in
std_logic_vector
(
15
downto
0
)
:
=
x"0000"
;
-- clk_sys_i domain!
phy_mdio_master_cyc_o
:
out
std_logic
;
phy_mdio_master_stb_o
:
out
std_logic
;
phy_mdio_master_we_o
:
out
std_logic
;
phy_mdio_master_dat_o
:
out
std_logic_vector
(
31
downto
0
);
phy_mdio_master_sel_o
:
out
std_logic_vector
(
3
downto
0
)
:
=
"0000"
;
phy_mdio_master_adr_o
:
out
std_logic_vector
(
31
downto
0
);
phy_mdio_master_ack_i
:
in
std_logic
:
=
'0'
;
phy_mdio_master_stall_i
:
in
std_logic
:
=
'0'
;
phy_mdio_master_dat_i
:
in
std_logic_vector
(
31
downto
0
)
:
=
x"00000000"
;
-----------------------------------------
-- PHY I/f - record-based
...
...
modules/wrc_core/xwr_core.vhd
View file @
cf848e66
...
...
@@ -6,7 +6,7 @@
-- Author : Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
-- Company : CERN (BE-CO-HT)
-- Created : 2011-02-02
-- Last update: 202
2-04-19
-- Last update: 202
3-03-13
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -162,9 +162,9 @@ entity xwr_core is
phy_rx_enc_err_i
:
in
std_logic
;
phy_rx_bitslide_i
:
in
std_logic_vector
(
f_pcs_bts_width
(
g_pcs_16bit
)
-1
downto
0
);
phy_
lpc_stat_i
:
in
std_logic_vector
(
15
downto
0
)
;
phy_
lpc_ctrl_o
:
out
std_logic_vector
(
15
downto
0
);
phy_
mdio_master_o
:
out
t_wishbone_master_out
;
phy_
mdio_master_i
:
in
t_wishbone_master_in
:
=
cc_dummy_slave_out
;
phy_rst_o
:
out
std_logic
;
phy_rdy_i
:
in
std_logic
:
=
'1'
;
phy_loopen_o
:
out
std_logic
;
...
...
@@ -353,13 +353,21 @@ begin
phy_rdy_i
=>
phy_rdy_i
,
phy_loopen_o
=>
phy_loopen_o
,
phy_loopen_vec_o
=>
phy_loopen_vec_o
,
phy_lpc_ctrl_o
=>
phy_lpc_ctrl_o
,
phy_lpc_stat_i
=>
phy_lpc_stat_i
,
phy_tx_prbs_sel_o
=>
phy_tx_prbs_sel_o
,
phy_sfp_tx_fault_i
=>
phy_sfp_tx_fault_i
,
phy_sfp_los_i
=>
phy_sfp_los_i
,
phy_sfp_tx_disable_o
=>
phy_sfp_tx_disable_o
,
phy_mdio_master_cyc_o
=>
phy_mdio_master_o
.
cyc
,
phy_mdio_master_stb_o
=>
phy_mdio_master_o
.
stb
,
phy_mdio_master_we_o
=>
phy_mdio_master_o
.
we
,
phy_mdio_master_sel_o
=>
phy_mdio_master_o
.
sel
,
phy_mdio_master_adr_o
=>
phy_mdio_master_o
.
adr
,
phy_mdio_master_dat_o
=>
phy_mdio_master_o
.
dat
,
phy_mdio_master_dat_i
=>
phy_mdio_master_i
.
dat
,
phy_mdio_master_stall_i
=>
phy_mdio_master_i
.
stall
,
phy_mdio_master_ack_i
=>
phy_mdio_master_i
.
ack
,
phy8_o
=>
phy8_o
,
phy8_i
=>
phy8_i
,
phy16_o
=>
phy16_o
,
...
...
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