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
486125a0
Commit
486125a0
authored
Nov 11, 2022
by
A. Hahn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge: get current state from wrpc-v5 branch
parent
7dbca830
Pipeline
#4105
canceled with stage
Changes
8
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
240 additions
and
215 deletions
+240
-215
eca_wb_event.vhd
modules/wr_eca/eca_wb_event.vhd
+48
-48
wr_endpoint.vhd
modules/wr_endpoint/wr_endpoint.vhd
+26
-24
wr_softpll_ng.vhd
modules/wr_softpll_ng/wr_softpll_ng.vhd
+97
-79
xwr_softpll_ng.vhd
modules/wr_softpll_ng/xwr_softpll_ng.vhd
+37
-29
Manifest.py
modules/wr_tbi_phy/Manifest.py
+3
-4
wr_core.vhd
modules/wrc_core/wr_core.vhd
+8
-8
wrc_periph.vhd
modules/wrc_core/wrc_periph.vhd
+21
-21
wrc_urv_wrapper.vhd
modules/wrc_core/wrc_urv_wrapper.vhd
+0
-2
No files found.
modules/wr_eca/eca_wb_event.vhd
View file @
486125a0
modules/wr_endpoint/wr_endpoint.vhd
View file @
486125a0
...
...
@@ -1025,3 +1025,5 @@ begin
gmii_tx_er_o
<=
'0'
;
end
syn
;
modules/wr_softpll_ng/wr_softpll_ng.vhd
View file @
486125a0
This diff is collapsed.
Click to expand it.
modules/wr_softpll_ng/xwr_softpll_ng.vhd
View file @
486125a0
...
...
@@ -56,17 +56,15 @@ entity xwr_softpll_ng is
-- These two are obvious:
g_num_ref_inputs
:
integer
:
=
1
;
g_num_outputs
:
integer
:
=
1
;
-- Number of external channels (e.g. 2 for WR Switch for regular and low-jitter
-- ext channel)
g_num_exts
:
integer
:
=
1
;
-- When true, an additional FIFO is instantiated, providing a realtime record
-- of user-selectable SoftPLL parameters (e.g. tag values, phase error, DAC drive).
-- These values can be read by "spll_dbg_proxy" daemon for further analysis.
g_with_debug_fifo
:
boolean
:
=
false
;
-- When true, an additional accumulating bang-bang phase detector is instantiated
-- for wideband locking of the local oscillator to an external stable reference
-- (e.g. GPSDO/Cesium 10 MHz)
g_with_ext_clock_input
:
boolean
:
=
false
;
-- When true, DDMTD inputs are reverse (so that the DDMTD offset clocks is
-- being sampled by the measured clock). This is functionally equivalent to
-- "direct" operation, but may improve FPGA timing/routability.
...
...
@@ -79,6 +77,8 @@ entity xwr_softpll_ng is
g_ref_clock_rate
:
integer
:
=
125000000
;
g_ext_clock_rate
:
integer
:
=
10000000
;
g_use_sampled_ref_clocks
:
boolean
:
=
false
;
g_interface_mode
:
t_wishbone_interface_mode
:
=
PIPELINED
;
g_address_granularity
:
t_wishbone_address_granularity
:
=
BYTE
);
...
...
@@ -92,17 +92,21 @@ entity xwr_softpll_ng is
-- Reference inputs (i.e. the RX clocks recovered by the PHYs)
clk_ref_i
:
in
std_logic_vector
(
g_num_ref_inputs
-1
downto
0
);
-- Reference inputs (i.e. the RX clocks recovered by the PHYs), externally sampled
clk_ref_sampled_i
:
in
std_logic_vector
(
g_num_ref_inputs
-1
downto
0
)
:
=
(
others
=>
'0'
);
-- Feedback clocks (i.e. the outputs of the main or aux oscillator)
clk_fb_i
:
in
std_logic_vector
(
g_num_outputs
-1
downto
0
);
-- DMTD Offset clock
clk_dmtd_i
:
in
std_logic
;
-- External reference clock (e.g. 10 MHz from Cesium/GPSDO). Used only if
-- g_
with_ext_clock_input == true
-- g_
num_exts > 0
clk_ext_i
:
in
std_logic
;
-- External clock, multiplied to 125 MHz using the FPGA's PLL
clk_ext_mul_i
:
in
std_logic
;
clk_ext_mul_i
:
in
std_logic_vector
(
f_nonzero_vector
(
g_num_exts
)
-1
downto
0
)
;
clk_ext_mul_locked_i
:
in
std_logic
:
=
'1'
;
clk_ext_stopped_i
:
in
std_logic
:
=
'0'
;
clk_ext_rst_o
:
out
std_logic
;
...
...
@@ -144,12 +148,13 @@ architecture wrapper of xwr_softpll_ng is
g_dac_bits
:
integer
;
g_num_ref_inputs
:
integer
;
g_num_outputs
:
integer
;
g_num_exts
:
integer
;
g_with_debug_fifo
:
boolean
;
g_with_ext_clock_input
:
boolean
;
g_reverse_dmtds
:
boolean
;
g_divide_input_by_2
:
boolean
;
g_ref_clock_rate
:
integer
;
g_ext_clock_rate
:
integer
;
g_use_sampled_ref_clocks
:
boolean
;
g_interface_mode
:
t_wishbone_interface_mode
;
g_address_granularity
:
t_wishbone_address_granularity
);
port
(
...
...
@@ -159,10 +164,11 @@ architecture wrapper of xwr_softpll_ng is
rst_ext_n_i
:
in
std_logic
;
rst_dmtd_n_i
:
in
std_logic
;
clk_ref_i
:
in
std_logic_vector
(
g_num_ref_inputs
-1
downto
0
);
clk_ref_sampled_i
:
in
std_logic_vector
(
g_num_ref_inputs
-1
downto
0
);
clk_fb_i
:
in
std_logic_vector
(
g_num_outputs
-1
downto
0
);
clk_dmtd_i
:
in
std_logic
;
clk_ext_i
:
in
std_logic
;
clk_ext_mul_i
:
in
std_logic
;
clk_ext_mul_i
:
in
std_logic
_vector
(
f_nonzero_vector
(
g_num_exts
)
-1
downto
0
)
;
clk_ext_mul_locked_i
:
in
std_logic
;
clk_ext_stopped_i
:
in
std_logic
;
clk_ext_rst_o
:
out
std_logic
;
...
...
@@ -185,7 +191,7 @@ architecture wrapper of xwr_softpll_ng is
wb_we_i
:
in
std_logic
;
wb_ack_o
:
out
std_logic
;
wb_stall_o
:
out
std_logic
;
wb_irq_o
:
out
std_logic
;
irq_o
:
out
std_logic
;
debug_o
:
out
std_logic_vector
(
5
downto
0
);
dbg_fifo_irq_o
:
out
std_logic
);
end
component
;
...
...
@@ -200,10 +206,11 @@ begin -- behavioral
g_address_granularity
=>
g_address_granularity
,
g_num_ref_inputs
=>
g_num_ref_inputs
,
g_num_outputs
=>
g_num_outputs
,
g_num_exts
=>
g_num_exts
,
g_with_debug_fifo
=>
g_with_debug_fifo
,
g_with_ext_clock_input
=>
g_with_ext_clock_input
,
g_reverse_dmtds
=>
g_reverse_dmtds
,
g_divide_input_by_2
=>
g_divide_input_by_2
,
g_use_sampled_ref_clocks
=>
g_use_sampled_ref_clocks
,
g_ref_clock_rate
=>
g_ref_clock_rate
,
g_ext_clock_rate
=>
g_ext_clock_rate
)
...
...
@@ -214,6 +221,7 @@ begin -- behavioral
rst_ext_n_i
=>
rst_ext_n_i
,
rst_dmtd_n_i
=>
rst_dmtd_n_i
,
clk_ref_i
=>
clk_ref_i
,
clk_ref_sampled_i
=>
clk_ref_sampled_i
,
clk_fb_i
=>
clk_fb_i
,
clk_dmtd_i
=>
clk_dmtd_i
,
clk_ext_i
=>
clk_ext_i
,
...
...
@@ -239,7 +247,7 @@ begin -- behavioral
wb_we_i
=>
slave_i
.
we
,
wb_ack_o
=>
slave_o
.
ack
,
wb_stall_o
=>
slave_o
.
stall
,
wb_irq_o
=>
int_o
,
irq_o
=>
int_o
,
debug_o
=>
debug_o
,
dbg_fifo_irq_o
=>
dbg_fifo_irq_o
);
...
...
modules/wr_tbi_phy/Manifest.py
View file @
486125a0
files
=
[
"enc_8b10b.vhd"
,
"dec_8b10b.vhd"
,
"wr_tbi_phy.vhd"
,
"disparity_gen_pkg.vhd"
];
modules/wrc_core/wr_core.vhd
View file @
486125a0
modules/wrc_core/wrc_periph.vhd
View file @
486125a0
modules/wrc_core/wrc_urv_wrapper.vhd
View file @
486125a0
...
...
@@ -164,8 +164,6 @@ begin
-- 1st MByte of the mem is the IRAM
dm_is_wishbone
<=
'1'
when
dm_addr
(
31
downto
20
)
/=
x"000"
else
'0'
;
dm_data_write
<=
not
dm_is_wishbone
and
dm_store
;
U_iram
:
generic_dpram
generic
map
(
g_DATA_WIDTH
=>
32
,
...
...
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