Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit core collection
Manage
Activity
Members
Labels
Plan
Issues
33
Issue boards
Milestones
Wiki
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit core collection
Commits
4c7fd27e
Commit
4c7fd27e
authored
7 years ago
by
Tomasz Wlostowski
Committed by
Grzegorz Daniluk
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wr_softpll_ng: added support for external DDMTD sampler
parent
228f9b7e
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/wr_softpll_ng/wr_softpll_ng.vhd
+21
-10
21 additions, 10 deletions
modules/wr_softpll_ng/wr_softpll_ng.vhd
modules/wr_softpll_ng/xwr_softpll_ng.vhd
+8
-0
8 additions, 0 deletions
modules/wr_softpll_ng/xwr_softpll_ng.vhd
with
29 additions
and
10 deletions
modules/wr_softpll_ng/wr_softpll_ng.vhd
+
21
−
10
View file @
4c7fd27e
...
...
@@ -82,6 +82,7 @@ entity wr_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
:
=
WORD
...
...
@@ -97,6 +98,9 @@ entity wr_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
);
-- Feedback clocks (i.e. the outputs of the main or auxillary oscillator)
-- Note: clk_fb_i(0) must be always connected to the primary board's oscillator
-- (i.e. the one driving the PTP and Ethernet PHY) to ensure correct operation
...
...
@@ -167,30 +171,33 @@ architecture rtl of wr_softpll_ng is
constant
c_DBG_FIFO_COALESCE
:
integer
:
=
100
;
constant
c_BB_ERROR_BITS
:
integer
:
=
16
;
component
dmtd_with_deglitcher
component
dmtd_with_deglitcher
is
generic
(
g_counter_bits
:
natural
;
g_chipscope
:
boolean
:
=
false
;
g_divide_input_by_2
:
boolean
;
g_reverse
:
boolean
);
g_reverse
:
boolean
;
g_use_sampled_clock
:
boolean
);
port
(
rst_n_dmtdclk_i
:
in
std_logic
;
rst_n_sysclk_i
:
in
std_logic
;
clk_in_i
:
in
std_logic
;
clk_dmtd_i
:
in
std_logic
;
clk_sys_i
:
in
std_logic
;
clk_sampled_a_i
:
in
std_logic
:
=
'0'
;
resync_p_a_i
:
in
std_logic
:
=
'0'
;
resync_p_o
:
out
std_logic
;
resync_start_p_i
:
in
std_logic
;
resync_start_p_i
:
in
std_logic
:
=
'0'
;
resync_done_o
:
out
std_logic
;
shift_en_i
:
in
std_logic
;
shift_dir_i
:
in
std_logic
;
shift_en_i
:
in
std_logic
:
=
'0'
;
shift_dir_i
:
in
std_logic
:
=
'0'
;
clk_dmtd_en_i
:
in
std_logic
:
=
'1'
;
deglitch_threshold_i
:
in
std_logic_vector
(
15
downto
0
);
dbg_dmtdout_o
:
out
std_logic
;
tag_o
:
out
std_logic_vector
(
g_counter_bits
-1
downto
0
);
tag_stb_p1_o
:
out
std_logic
;
dbg_clk_d3_o
:
out
std_logic
);
end
component
;
dbg_clk_d3_o
:
out
std_logic
);
end
component
dmtd_with_deglitcher
;
component
spll_wb_slave
generic
(
...
...
@@ -398,7 +405,8 @@ begin -- rtl
generic
map
(
g_counter_bits
=>
g_tag_bits
,
g_divide_input_by_2
=>
g_divide_input_by_2
,
g_reverse
=>
g_reverse_dmtds
)
g_reverse
=>
g_reverse_dmtds
,
g_use_sampled_clock
=>
g_use_sampled_ref_clocks
)
port
map
(
rst_n_dmtdclk_i
=>
rst_dmtd_n_i
,
rst_n_sysclk_i
=>
rst_n_i
,
...
...
@@ -408,6 +416,7 @@ begin -- rtl
clk_sys_i
=>
clk_sys_i
,
clk_in_i
=>
clk_ref_i
(
i
),
clk_sampled_a_i
=>
clk_ref_sampled_i
(
i
),
resync_done_o
=>
open
,
resync_start_p_i
=>
'0'
,
...
...
@@ -430,7 +439,8 @@ begin -- rtl
generic
map
(
g_counter_bits
=>
g_tag_bits
,
g_divide_input_by_2
=>
g_divide_input_by_2
,
g_reverse
=>
g_reverse_dmtds
)
g_reverse
=>
g_reverse_dmtds
,
g_use_sampled_clock
=>
false
)
port
map
(
rst_n_dmtdclk_i
=>
rst_dmtd_n_i
,
rst_n_sysclk_i
=>
rst_n_i
,
...
...
@@ -467,7 +477,8 @@ begin -- rtl
generic
map
(
g_counter_bits
=>
g_tag_bits
,
g_divide_input_by_2
=>
g_divide_input_by_2
,
g_reverse
=>
g_reverse_dmtds
)
g_reverse
=>
g_reverse_dmtds
,
g_use_sampled_clock
=>
false
)
port
map
(
rst_n_dmtdclk_i
=>
rst_dmtd_n_i
,
rst_n_sysclk_i
=>
rst_n_i
,
...
...
This diff is collapsed.
Click to expand it.
modules/wr_softpll_ng/xwr_softpll_ng.vhd
+
8
−
0
View file @
4c7fd27e
...
...
@@ -76,6 +76,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
);
...
...
@@ -89,6 +91,10 @@ 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
);
-- 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
...
...
@@ -146,6 +152,7 @@ architecture wrapper of xwr_softpll_ng is
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
(
...
...
@@ -199,6 +206,7 @@ begin -- behavioral
g_with_debug_fifo
=>
g_with_debug_fifo
,
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment