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
b038fb2e
Commit
b038fb2e
authored
Mar 29, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testbench/wr_endpoint: add GTP transceiver option to the Endpoint/PHY wrapper
parent
598075f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
6 deletions
+37
-6
Manifest.py
testbench/wr_endpoint/full_tb/Manifest.py
+1
-0
endpoint_phy_wrapper.svh
testbench/wr_endpoint/full_tb/endpoint_phy_wrapper.svh
+36
-6
No files found.
testbench/wr_endpoint/full_tb/Manifest.py
View file @
b038fb2e
...
...
@@ -7,6 +7,7 @@ vlog_opt="+incdir+../../../sim +incdir+../../../sim/fabric_emu"
modules
=
{
"git"
:
[
"git@ohwr.org:hdl-core-lib/general-cores.git"
],
"local"
:
[
"../../../modules/wr_endpoint"
,
"../../../modules/timing"
,
"../../../modules/fabric"
,
"../../../modules/wr_tbi_phy"
,
"../old_ep"
,
"../../../platform/xilinx/wr_gtp_phy"
]
};
testbench/wr_endpoint/full_tb/endpoint_phy_wrapper.svh
View file @
b038fb2e
...
...
@@ -21,7 +21,7 @@ module endpoint_phy_wrapper
wire
rx_clock
;
parameter
g_phy_type
=
"GTP"
;
parameter
string
g_phy_type
=
"GTP"
;
wire
[
15
:
0
]
gtx_data
;
wire
[
1
:
0
]
gtx_k
;
...
...
@@ -34,6 +34,11 @@ module endpoint_phy_wrapper
wire
[
3
:
0
]
grx_bitslide
;
wire
gtp_rst
;
wire
tx_clock
;
initial
begin
$
display
(
"Selected PHY Type: %s"
,
g_phy_type
)
;
$
stop
;
end
generate
if
(
g_phy_type
==
"TBI"
)
begin
...
...
@@ -100,7 +105,36 @@ module endpoint_phy_wrapper
.
pad_rxn_i
(
rxn_i
)
,
.
pad_rxp_i
(
rxp_i
)
)
;
end
else
if
(
g_phy_type
==
"GTP"
)
begin
// if (g_phy_type == "TBI")
wr_gtp_phy_spartan6
#(
.
g_simulation
(
1
)
)
U_PHY
(
.
clk_ref_i
(
clk_ref_i
)
,
.
clk_ref_o
(
tx_clock
)
,
.
ch0_tx_data_i
(
gtx_data
[
7
:
0
])
,
.
ch0_tx_k_i
(
gtx_k
[
0
])
,
.
ch0_tx_disparity_o
(
gtx_disparity
)
,
.
ch0_tx_enc_err_o
(
gtx_enc_error
)
,
.
ch0_rx_rbclk_o
(
rx_clock
)
,
.
ch0_rx_data_o
(
grx_data
[
7
:
0
])
,
.
ch0_rx_k_o
(
grx_k
[
0
])
,
.
ch0_rx_enc_err_o
(
grx_enc_error
)
,
.
ch0_rx_bitslide_o
()
,
.
rst_i
(
!
rst_n_i
)
,
.
loopen_i
(
1'b0
)
,
.
pad_txn_o
(
txn_o
)
,
.
pad_txp_o
(
txp_o
)
,
.
pad_rxn_i
(
rxn_i
)
,
.
pad_rxp_i
(
rxp_i
)
)
;
end
// else: !if(g_phy_type == "TBI")
endgenerate
...
...
@@ -160,10 +194,6 @@ module endpoint_phy_wrapper
.
snk_err_o
(
src
.
err
)
,
.
snk_rty_o
(
src
.
rty
)
,
.
txtsu_port_id_o
()
,
.
txtsu_frame_id_o
()
,
.
txtsu_tsval_o
()
,
.
txtsu_valid_o
()
,
.
txtsu_ack_i
(
1'b1
)
,
.
rtu_full_i
(
1'b0
)
,
...
...
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