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
edd3bd31
Commit
edd3bd31
authored
Jan 22, 2019
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
platform/xilinx: aux clocks from PLL_BASE can go through BUFG or not
parent
2e037cba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
xwrc_board_cute.vhd
board/cute/xwrc_board_cute.vhd
+1
-0
wr_xilinx_pkg.vhd
platform/xilinx/wr_xilinx_pkg.vhd
+2
-1
xwrc_platform_xilinx.vhd
platform/xilinx/xwrc_platform_xilinx.vhd
+14
-8
No files found.
board/cute/xwrc_board_cute.vhd
View file @
edd3bd31
...
...
@@ -326,6 +326,7 @@ architecture struct of xwrc_board_cute is
-----------------------------------------------------------------------------
constant
c_AUX_500M_CFG
:
t_auxpll_cfg
:
=
(
enabled
=>
TRUE
,
bufg_en
=>
FALSE
,
divide
=>
2
);
constant
c_AUX_CFG_ARRAY
:
t_auxpll_cfg_array
:
=
(
0
=>
c_AUX_500M_CFG
,
others
=>
c_AUXPLL_CFG_DEFAULT
);
...
...
platform/xilinx/wr_xilinx_pkg.vhd
View file @
edd3bd31
...
...
@@ -41,11 +41,12 @@ package wr_xilinx_pkg is
-- Configuration of used-defined aux PLL clocks
type
t_auxpll_cfg
is
record
enabled
:
boolean
;
bufg_en
:
boolean
;
divide
:
integer
;
end
record
t_auxpll_cfg
;
type
t_auxpll_cfg_array
is
array
(
0
to
3
)
of
t_auxpll_cfg
;
constant
c_AUXPLL_CFG_DEFAULT
:
t_auxpll_cfg
:
=
(
FALSE
,
1
);
constant
c_AUXPLL_CFG_DEFAULT
:
t_auxpll_cfg
:
=
(
FALSE
,
FALSE
,
1
);
constant
c_AUXPLL_CFG_ARRAY_DEFAULT
:
t_auxpll_cfg_array
:
=
(
others
=>
c_AUXPLL_CFG_DEFAULT
);
component
xwrc_platform_xilinx
is
...
...
platform/xilinx/xwrc_platform_xilinx.vhd
View file @
edd3bd31
...
...
@@ -267,13 +267,14 @@ begin -- architecture rtl
CLKOUT0_DIVIDE
=>
16
,
CLKOUT0_PHASE
=>
0
.
000
,
CLKOUT0_DUTY_CYCLE
=>
0
.
500
,
-- 1st aux user clock parameters
CLKOUT1_DIVIDE
=>
g_aux_pll_cfg
(
0
)
.
divide
,
CLKOUT1_PHASE
=>
0
.
000
,
CLKOUT1_DUTY_CYCLE
=>
0
.
500
,
-- Aux user clocks parameters
CLKOUT2_DIVIDE
=>
8
,
CLKOUT2_PHASE
=>
0
.
000
,
CLKOUT2_DUTY_CYCLE
=>
0
.
500
,
-- The rest of aux user clocks parameters
CLKOUT3_DIVIDE
=>
g_aux_pll_cfg
(
1
)
.
divide
,
CLKOUT3_PHASE
=>
0
.
000
,
CLKOUT3_DUTY_CYCLE
=>
0
.
500
,
...
...
@@ -289,7 +290,9 @@ begin -- architecture rtl
port
map
(
CLKFBOUT
=>
clk_sys_fb
,
CLKOUT0
=>
clk_sys
,
CLKOUT1
=>
clk_pll_aux
(
0
),
CLKOUT1
=>
clk_pll_aux
(
0
),
-- required for 500MHz generation for
-- Cute-WR. This is because 500MHz goes then to BUFPLL which can input
-- only CLKOUT0/1 from PLL_BASE.
CLKOUT2
=>
clk_125m_pllref_buf_int2
,
CLKOUT3
=>
clk_pll_aux
(
1
),
CLKOUT4
=>
clk_pll_aux
(
2
),
...
...
@@ -305,17 +308,20 @@ begin -- architecture rtl
O
=>
clk_125m_pllref_buf_int1
,
I
=>
clk_125m_pllref_i
);
-- direct output
clk_pll_aux_o
(
0
)
<=
clk_pll_aux
(
0
);
-- DDR PLL global clock buffers
gen_auxclk_bufs
:
for
I
in
1
to
3
generate
gen_auxclk_enabled
:
if
g_aux_pll_cfg
(
I
)
.
enabled
=
TRUE
generate
-- PLL aux clocks buffers
gen_auxclk_bufs
:
for
I
in
0
to
3
generate
-- Aux PLL_BASE clocks with BUFG enabled
gen_auxclk_bufg_en
:
if
g_aux_pll_cfg
(
I
)
.
enabled
=
TRUE
and
g_aux_pll_cfg
(
I
)
.
bufg_en
=
TRUE
generate
cmp_auxclk_bufg
:
BUFG
port
map
(
O
=>
clk_pll_aux_o
(
I
),
I
=>
clk_pll_aux
(
I
));
end
generate
;
-- Aux PLL_BASE clocks with BUFG disabled
gen_auxclk_no_bufg
:
if
g_aux_pll_cfg
(
I
)
.
enabled
=
TRUE
and
g_aux_pll_cfg
(
I
)
.
bufg_en
=
FALSE
generate
clk_pll_aux_o
(
I
)
<=
clk_pll_aux
(
I
);
end
generate
;
-- Disabled aux PLL_BASE clocks
gen_auxclk_disabled
:
if
g_aux_pll_cfg
(
I
)
.
enabled
=
FALSE
generate
clk_pll_aux_o
(
I
)
<=
'0'
;
end
generate
;
...
...
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