1 |
26 |
jefflieu |
// megafunction wizard: %ALTCLKCTRL%
|
2 |
|
|
// GENERATION: STANDARD
|
3 |
|
|
// VERSION: WM1.0
|
4 |
|
|
// MODULE: altclkctrl
|
5 |
|
|
|
6 |
|
|
// ============================================================
|
7 |
|
|
// File Name: clk_buf.v
|
8 |
|
|
// Megafunction Name(s):
|
9 |
|
|
// altclkctrl
|
10 |
|
|
//
|
11 |
|
|
// Simulation Library Files(s):
|
12 |
|
|
// arriav
|
13 |
|
|
// ============================================================
|
14 |
|
|
// ************************************************************
|
15 |
|
|
// THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE!
|
16 |
|
|
//
|
17 |
|
|
// 12.0 Build 263 08/02/2012 SP 2.dp9 SJ Full Version
|
18 |
|
|
// ************************************************************
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
//Copyright (C) 1991-2012 Altera Corporation
|
22 |
|
|
//Your use of Altera Corporation's design tools, logic functions
|
23 |
|
|
//and other software and tools, and its AMPP partner logic
|
24 |
|
|
//functions, and any output files from any of the foregoing
|
25 |
|
|
//(including device programming or simulation files), and any
|
26 |
|
|
//associated documentation or information are expressly subject
|
27 |
|
|
//to the terms and conditions of the Altera Program License
|
28 |
|
|
//Subscription Agreement, Altera MegaCore Function License
|
29 |
|
|
//Agreement, or other applicable license agreement, including,
|
30 |
|
|
//without limitation, that your use is for the sole purpose of
|
31 |
|
|
//programming logic devices manufactured by Altera and sold by
|
32 |
|
|
//Altera or its authorized distributors. Please refer to the
|
33 |
|
|
//applicable agreement for further details.
|
34 |
|
|
|
35 |
|
|
|
36 |
|
|
//altclkctrl CBX_AUTO_BLACKBOX="ALL" CLOCK_TYPE="AUTO" DEVICE_FAMILY="Arria V" ENA_REGISTER_MODE="always enabled" USE_GLITCH_FREE_SWITCH_OVER_IMPLEMENTATION="OFF" ena inclk outclk
|
37 |
|
|
//VERSION_BEGIN 12.0SP2 cbx_altclkbuf 2012:10:19:19:48:16:SJ cbx_cycloneii 2012:10:19:19:48:16:SJ cbx_lpm_add_sub 2012:10:19:19:48:16:SJ cbx_lpm_compare 2012:10:19:19:48:16:SJ cbx_lpm_decode 2012:10:19:19:48:16:SJ cbx_lpm_mux 2012:10:19:19:48:16:SJ cbx_mgl 2012:10:19:19:50:12:SJ cbx_stratix 2012:10:19:19:48:17:SJ cbx_stratixii 2012:10:19:19:48:17:SJ cbx_stratixiii 2012:10:19:19:48:17:SJ cbx_stratixv 2012:10:19:19:48:17:SJ VERSION_END
|
38 |
|
|
// synthesis VERILOG_INPUT_VERSION VERILOG_2001
|
39 |
|
|
// altera message_off 10463
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
//synthesis_resources = arriav_clkena 1
|
43 |
|
|
//synopsys translate_off
|
44 |
|
|
`timescale 1 ps / 1 ps
|
45 |
|
|
//synopsys translate_on
|
46 |
|
|
module clk_buf_altclkctrl_7mg
|
47 |
|
|
(
|
48 |
|
|
ena,
|
49 |
|
|
inclk,
|
50 |
|
|
outclk) ;
|
51 |
|
|
input ena;
|
52 |
|
|
input [3:0] inclk;
|
53 |
|
|
output outclk;
|
54 |
|
|
`ifndef ALTERA_RESERVED_QIS
|
55 |
|
|
// synopsys translate_off
|
56 |
|
|
`endif
|
57 |
|
|
tri1 ena;
|
58 |
|
|
tri0 [3:0] inclk;
|
59 |
|
|
`ifndef ALTERA_RESERVED_QIS
|
60 |
|
|
// synopsys translate_on
|
61 |
|
|
`endif
|
62 |
|
|
|
63 |
|
|
wire wire_sd1_outclk;
|
64 |
|
|
wire [1:0] clkselect;
|
65 |
|
|
|
66 |
|
|
arriav_clkena sd1
|
67 |
|
|
(
|
68 |
|
|
.ena(ena),
|
69 |
|
|
.enaout(),
|
70 |
|
|
.inclk(inclk[0]),
|
71 |
|
|
.outclk(wire_sd1_outclk));
|
72 |
|
|
defparam
|
73 |
|
|
sd1.clock_type = "Auto",
|
74 |
|
|
sd1.ena_register_mode = "always enabled",
|
75 |
|
|
sd1.lpm_type = "arriav_clkena";
|
76 |
|
|
assign
|
77 |
|
|
clkselect = {2{1'b0}},
|
78 |
|
|
outclk = wire_sd1_outclk;
|
79 |
|
|
endmodule //clk_buf_altclkctrl_7mg
|
80 |
|
|
//VALID FILE
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
// synopsys translate_off
|
84 |
|
|
`timescale 1 ps / 1 ps
|
85 |
|
|
// synopsys translate_on
|
86 |
|
|
module clk_buf (
|
87 |
|
|
inclk,
|
88 |
|
|
outclk);
|
89 |
|
|
|
90 |
|
|
input inclk;
|
91 |
|
|
output outclk;
|
92 |
|
|
|
93 |
|
|
wire sub_wire0;
|
94 |
|
|
wire sub_wire1 = 1'h1;
|
95 |
|
|
wire [2:0] sub_wire4 = 3'h0;
|
96 |
|
|
wire outclk = sub_wire0;
|
97 |
|
|
wire sub_wire2 = inclk;
|
98 |
|
|
wire [3:0] sub_wire3 = {sub_wire4, sub_wire2};
|
99 |
|
|
|
100 |
|
|
clk_buf_altclkctrl_7mg clk_buf_altclkctrl_7mg_component (
|
101 |
|
|
.ena (sub_wire1),
|
102 |
|
|
.inclk (sub_wire3),
|
103 |
|
|
.outclk (sub_wire0));
|
104 |
|
|
|
105 |
|
|
endmodule
|
106 |
|
|
|
107 |
|
|
// ============================================================
|
108 |
|
|
// CNX file retrieval info
|
109 |
|
|
// ============================================================
|
110 |
|
|
// Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING "Arria V"
|
111 |
|
|
// Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING "0"
|
112 |
|
|
// Retrieval info: PRIVATE: clock_inputs NUMERIC "1"
|
113 |
|
|
// Retrieval info: CONSTANT: ENA_REGISTER_MODE STRING "always enabled"
|
114 |
|
|
// Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Arria V"
|
115 |
|
|
// Retrieval info: CONSTANT: USE_GLITCH_FREE_SWITCH_OVER_IMPLEMENTATION STRING "OFF"
|
116 |
|
|
// Retrieval info: CONSTANT: clock_type STRING "AUTO"
|
117 |
|
|
// Retrieval info: USED_PORT: inclk 0 0 0 0 INPUT NODEFVAL "inclk"
|
118 |
|
|
// Retrieval info: USED_PORT: outclk 0 0 0 0 OUTPUT NODEFVAL "outclk"
|
119 |
|
|
// Retrieval info: CONNECT: @ena 0 0 0 0 VCC 0 0 0 0
|
120 |
|
|
// Retrieval info: CONNECT: @inclk 0 0 3 1 GND 0 0 3 0
|
121 |
|
|
// Retrieval info: CONNECT: @inclk 0 0 1 0 inclk 0 0 0 0
|
122 |
|
|
// Retrieval info: CONNECT: outclk 0 0 0 0 @outclk 0 0 0 0
|
123 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL clk_buf.v TRUE
|
124 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL clk_buf.inc FALSE
|
125 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL clk_buf.cmp FALSE
|
126 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL clk_buf.bsf FALSE
|
127 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL clk_buf_inst.v FALSE
|
128 |
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL clk_buf_bb.v FALSE
|
129 |
|
|
// Retrieval info: LIB_FILE: arriav
|