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
d8fb37e6
Commit
d8fb37e6
authored
Apr 20, 2012
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrcore: parametrized number of clk_aux inputs
parent
4b87684a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
17 deletions
+22
-17
wr_core.vhd
modules/wrc_core/wr_core.vhd
+11
-10
xwr_core.vhd
modules/wrc_core/xwr_core.vhd
+5
-3
spec_top.vhd
top/spec_1_1/wr_core_demo/spec_top.vhd
+6
-4
No files found.
modules/wrc_core/wr_core.vhd
View file @
d8fb37e6
...
...
@@ -5,7 +5,7 @@
-- Author : Grzegorz Daniluk
-- Company : Elproma
-- Created : 2011-02-02
-- Last update: 2012-04-
12
-- Last update: 2012-04-
20
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -63,6 +63,7 @@ entity wr_core is
g_phys_uart
:
boolean
:
=
true
;
g_virtual_uart
:
boolean
:
=
false
;
g_with_external_clock_input
:
boolean
:
=
false
;
g_aux_clks
:
integer
:
=
1
;
g_rx_buffer_size
:
integer
:
=
1024
;
g_dpram_initf
:
string
:
=
""
;
g_dpram_initv
:
t_xwb_dpram_init
:
=
c_xwb_dpram_init_nothing
;
...
...
@@ -85,8 +86,8 @@ entity wr_core is
-- Timing reference (125 MHz)
clk_ref_i
:
in
std_logic
;
-- Aux clock (i.e. the FMC clock), which can be disciplined by the WR Core
clk_aux_i
:
in
std_logic
;
-- Aux clock
s
(i.e. the FMC clock), which can be disciplined by the WR Core
clk_aux_i
:
in
std_logic
_vector
(
g_aux_clks
-1
downto
0
)
:
=
(
others
=>
'0'
)
;
-- External 10 MHz reference (cesium, GPSDO, etc.), used in Grandmaster mode
clk_ext_i
:
in
std_logic
;
...
...
@@ -413,11 +414,11 @@ begin
-----------------------------------------------------------------------------
PPS_GEN
:
xwr_pps_gen
generic
map
(
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
,
g_ref_clock_rate
=>
125000000
,
g_ext_clock_rate
=>
10000000
,
g_with_ext_clock_input
=>
g_with_external_clock_input
)
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
,
g_ref_clock_rate
=>
125000000
,
g_ext_clock_rate
=>
10000000
,
g_with_ext_clock_input
=>
g_with_external_clock_input
)
port
map
(
clk_ref_i
=>
clk_ref_i
,
clk_sys_i
=>
clk_sys_i
,
...
...
@@ -471,8 +472,8 @@ begin
-- DMTD Offset clock
clk_dmtd_i
=>
clk_dmtd_i
,
clk_ext_i
=>
clk_ext_i
,
sync_p_i
=>
pps_ext_i
,
clk_ext_i
=>
clk_ext_i
,
sync_p_i
=>
pps_ext_i
,
-- DMTD oscillator drive
dac_dmtd_data_o
=>
dac_hpll_data_o
,
...
...
modules/wrc_core/xwr_core.vhd
View file @
d8fb37e6
...
...
@@ -6,7 +6,7 @@
-- Author : Grzegorz Daniluk
-- Company : Elproma
-- Created : 2011-02-02
-- Last update: 2012-04-
12
-- Last update: 2012-04-
20
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -50,6 +50,7 @@ entity xwr_core is
g_phys_uart
:
boolean
:
=
true
;
g_virtual_uart
:
boolean
:
=
false
;
g_with_external_clock_input
:
boolean
:
=
false
;
g_aux_clks
:
integer
:
=
1
;
g_ep_rxbuf_size
:
integer
:
=
1024
;
g_dpram_initf
:
string
:
=
""
;
g_dpram_initv
:
t_xwb_dpram_init
:
=
c_xwb_dpram_init_nothing
;
...
...
@@ -72,7 +73,7 @@ entity xwr_core is
clk_ref_i
:
in
std_logic
;
-- Aux clock (i.e. the FMC clock), which can be disciplined by the WR Core
clk_aux_i
:
in
std_logic
;
clk_aux_i
:
in
std_logic
_vector
(
g_aux_clks
-1
downto
0
)
:
=
(
others
=>
'0'
)
;
-- External 10 MHz reference (cesium, GPSDO, etc.), used in Grandmaster mode
clk_ext_i
:
in
std_logic
;
...
...
@@ -189,6 +190,7 @@ architecture struct of xwr_core is
g_phys_uart
:
boolean
:
=
true
;
g_virtual_uart
:
boolean
:
=
false
;
g_with_external_clock_input
:
boolean
:
=
false
;
g_aux_clks
:
integer
:
=
1
;
g_rx_buffer_size
:
integer
:
=
12
;
g_dpram_initf
:
string
:
=
""
;
g_dpram_initv
:
t_xwb_dpram_init
:
=
c_xwb_dpram_init_nothing
;
...
...
@@ -199,7 +201,7 @@ architecture struct of xwr_core is
clk_sys_i
:
in
std_logic
;
clk_dmtd_i
:
in
std_logic
;
clk_ref_i
:
in
std_logic
;
clk_aux_i
:
in
std_logic
;
clk_aux_i
:
in
std_logic
_vector
(
g_aux_clks
-1
downto
0
)
:
=
(
others
=>
'0'
)
;
clk_ext_i
:
in
std_logic
;
pps_ext_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
...
...
top/spec_1_1/wr_core_demo/spec_top.vhd
View file @
d8fb37e6
...
...
@@ -233,6 +233,7 @@ architecture rtl of spec_top is
g_phys_uart
:
boolean
:
=
true
;
g_virtual_uart
:
boolean
:
=
false
;
g_with_external_clock_input
:
boolean
:
=
false
;
g_aux_clks
:
integer
:
=
1
;
g_ep_rxbuf_size
:
integer
:
=
1024
;
g_dpram_initf
:
string
:
=
""
;
g_dpram_size
:
integer
:
=
16384
;
--in 32-bit words
...
...
@@ -243,9 +244,9 @@ architecture rtl of spec_top is
clk_sys_i
:
in
std_logic
;
clk_dmtd_i
:
in
std_logic
;
clk_ref_i
:
in
std_logic
;
clk_aux_i
:
in
std_logic
;
clk_ext_i
:
in
std_logic
:
=
'0'
;
pps_ext_i
:
in
std_logic
:
=
'0'
;
clk_aux_i
:
in
std_logic
_vector
(
g_aux_clks
-1
downto
0
)
:
=
(
others
=>
'0'
)
;
clk_ext_i
:
in
std_logic
:
=
'0'
;
pps_ext_i
:
in
std_logic
:
=
'0'
;
rst_n_i
:
in
std_logic
;
dac_hpll_load_p1_o
:
out
std_logic
;
...
...
@@ -757,6 +758,7 @@ begin
g_phys_uart
=>
true
,
g_virtual_uart
=>
false
,
g_with_external_clock_input
=>
true
,
g_aux_clks
=>
1
,
g_ep_rxbuf_size
=>
1024
,
g_dpram_initf
=>
""
,
g_dpram_size
=>
16384
,
...
...
@@ -766,7 +768,7 @@ begin
clk_sys_i
=>
clk_sys
,
clk_dmtd_i
=>
clk_dmtd
,
clk_ref_i
=>
clk_125m_pllref
,
clk_aux_i
=>
'0'
,
clk_aux_i
=>
(
others
=>
'0'
)
,
clk_ext_i
=>
dio_clk
,
pps_ext_i
=>
dio_in
(
3
),
rst_n_i
=>
local_reset_n
,
...
...
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