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
dc1a2f63
Commit
dc1a2f63
authored
Sep 28, 2015
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_core: set g_ref_clock_rate based on pcs 8/16bit width
parent
2da09bd3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
wr_core.vhd
modules/wrc_core/wr_core.vhd
+2
-2
wrcore_pkg.vhd
modules/wrc_core/wrcore_pkg.vhd
+16
-0
No files found.
modules/wrc_core/wr_core.vhd
View file @
dc1a2f63
...
...
@@ -500,7 +500,7 @@ begin
generic
map
(
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
,
g_ref_clock_rate
=>
125000000
,
g_ref_clock_rate
=>
f_refclk_rate
(
g_pcs_16bit
)
,
g_ext_clock_rate
=>
10000000
,
g_with_ext_clock_input
=>
g_with_external_clock_input
)
port
map
(
...
...
@@ -540,7 +540,7 @@ begin
g_address_granularity
=>
BYTE
,
g_num_ref_inputs
=>
1
,
g_num_outputs
=>
1
+
g_aux_clks
,
g_ref_clock_rate
=>
125000000
,
g_ref_clock_rate
=>
f_refclk_rate
(
g_pcs_16bit
)
,
g_ext_clock_rate
=>
10000000
)
port
map
(
clk_sys_i
=>
clk_sys_i
,
...
...
modules/wrc_core/wrcore_pkg.vhd
View file @
dc1a2f63
...
...
@@ -11,6 +11,8 @@ use work.softpll_pkg.all;
package
wrcore_pkg
is
function
f_refclk_rate
(
pcs_16
:
boolean
)
return
integer
;
-----------------------------------------------------------------------------
--PPS generator
-----------------------------------------------------------------------------
...
...
@@ -631,3 +633,17 @@ package wrcore_pkg is
end
component
;
end
wrcore_pkg
;
package
body
wrcore_pkg
is
function
f_refclk_rate
(
pcs_16
:
boolean
)
return
integer
is
begin
if
(
pcs_16
)
then
return
62500000
;
else
return
125000000
;
end
if
;
end
function
;
end
package
body
wrcore_pkg
;
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