aboutsummaryrefslogtreecommitdiff
path: root/common/rtl/novena_clkmgr.v
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-11-18 17:23:40 -0500
committerPaul Selkirk <paul@psgd.org>2015-11-18 17:23:40 -0500
commit81286a692a3edade788c6d42beec1a7c8e5e07c9 (patch)
tree680d461124463664c223e8013bf37df1fdef03e0 /common/rtl/novena_clkmgr.v
parentb07ab1c2ff5e8f79d994455ccb68d7afccc53b26 (diff)
Move novena_clkmgr IBUFGDS to clkmgr_dcm, to put the Xilinx-specific primitives in one place.
Diffstat (limited to 'common/rtl/novena_clkmgr.v')
-rw-r--r--common/rtl/novena_clkmgr.v21
1 files changed, 6 insertions, 15 deletions
diff --git a/common/rtl/novena_clkmgr.v b/common/rtl/novena_clkmgr.v
index e8ef1bd..83c6a68 100644
--- a/common/rtl/novena_clkmgr.v
+++ b/common/rtl/novena_clkmgr.v
@@ -56,22 +56,10 @@ module novena_clkmgr
parameter CLK_OUT_DIV = 2;
//
- // IBUFGDS
+ // Wrapper for Xilinx-specific DCM (Digital Clock Manager) primitive.
//
- (* BUFFER_TYPE="NONE" *)
- wire gclk;
- IBUFGDS IBUFGDS_gclk
- (
- .I(gclk_p),
- .IB(gclk_n),
- .O(gclk)
- );
-
-
- //
- // DCM
- //
+ wire gclk; // buffered input clock
wire dcm_reset; // dcm reset
wire dcm_locked; // output clock valid
wire gclk_missing; // no input clock
@@ -83,8 +71,11 @@ module novena_clkmgr
)
dcm
(
- .clk_in (gclk),
+ .clk_in_p (gclk_p),
+ .clk_in_n (gclk_n),
.reset_in (dcm_reset),
+
+ .gclk_out (gclk),
.gclk_missing_out (gclk_missing),
.clk_out (sys_clk),