1、 1 / megafunction wizard: %ALTPLL% / GENERATION: STANDARD / VERSION: WM1.0 / MODULE: altpll / = / File Name: clk_ctrl.v / Megafunction Name(s): / altpll / / Simulation Library Files(s): / altera_mf / = / * / THIS IS A WIZARD-GENERATED FILE. DO NOT EDIT THIS FILE! / / 11.0 Build 208 07/03/2011 SP 1 S
2、J Full Version / * /Copyright (C) 1991-2011 Altera Corporation /Your use of Altera Corporations design tools, logic functions /and other software and tools, and its AMPP partner logic /functions, and any output files from any of the foregoing /(including device programming or simulation files), and
3、any /associated documentation or information are expressly subject /to the terms and conditions of the Altera Program License /Subscription Agreement, Altera MegaCore Function License /Agreement, or other applicable license agreement, including, /without limitation, that your use is for the sole pur
4、pose of /programming logic devices manufactured by Altera and sold by /Altera or its authorized distributors. Please refer to the /applicable agreement for further details. / synopsys translate_off timescale 1 ps / 1 ps / synopsys translate_on module clk_ctrl ( areset, inclk0, c0, c1, c2, 2 locked);
5、 input areset; input inclk0; output c0; output c1; output c2; output locked; ifndef ALTERA_RESERVED_QIS / synopsys translate_off endif tri0 areset; ifndef ALTERA_RESERVED_QIS / synopsys translate_on endif wire 5:0 sub_wire0; wire sub_wire2; wire 0:0 sub_wire7 = 1h0; wire 2:2 sub_wire4 = sub_wire02:2
6、; wire 0:0 sub_wire3 = sub_wire00:0; wire 1:1 sub_wire1 = sub_wire01:1; wire c1 = sub_wire1; wire locked = sub_wire2; wire c0 = sub_wire3; wire c2 = sub_wire4; wire sub_wire5 = inclk0; wire 1:0 sub_wire6 = sub_wire7, sub_wire5; altpll altpll_component ( .areset (areset), .inclk (sub_wire6), .clk (su
7、b_wire0), .locked (sub_wire2), .activeclock (), .clkbad (), .clkena (61b1), .clkloss (), .clkswitch (1b0), .configupdate (1b0), .enable0 (), .enable1 (), .extclk (), .extclkena (41b1), 3 .fbin (1b1), .fbmimicbidir (), .fbout (), .fref (), .icdrclk (), .pfdena (1b1), .phasecounterselect (41b1), .phas
8、edone (), .phasestep (1b1), .phaseupdown (1b1), .pllena (1b1), .scanaclr (1b0), .scanclk (1b0), .scanclkena (1b1), .scandata (1b0), .scandataout (), .scandone (), .scanread (1b0), .scanwrite (1b0), .sclkout0 (), .sclkout1 (), .vcooverrange (), .vcounderrange (); defparam altpll_component.clk0_divide
9、_by = 1, altpll_component.clk0_duty_cycle = 50, altpll_component.clk0_multiply_by = 5, altpll_component.clk0_phase_shift = “0“, altpll_component.clk1_divide_by = 1, altpll_component.clk1_duty_cycle = 50, altpll_component.clk1_multiply_by = 1, altpll_component.clk1_phase_shift = “0“, altpll_component
10、.clk2_divide_by = 1, altpll_component.clk2_duty_cycle = 50, altpll_component.clk2_multiply_by = 5, altpll_component.clk2_phase_shift = “5000“, altpll_pensate_clock = “CLK0“, altpll_component.gate_lock_signal = “NO“, altpll_component.inclk0_input_frequency = 50000, altpll_component.intended_device_fa
11、mily = “Cyclone II“, altpll_component.invalid_lock_multiplier = 5, altpll_component.lpm_hint = “CBX_MODULE_PREFIX=clk_ctrl“, altpll_component.lpm_type = “altpll“, altpll_component.operation_mode = “NORMAL“, 4 altpll_component.port_activeclock = “PORT_UNUSED“, altpll_component.port_areset = “PORT_USE
12、D“, altpll_component.port_clkbad0 = “PORT_UNUSED“, altpll_component.port_clkbad1 = “PORT_UNUSED“, altpll_component.port_clkloss = “PORT_UNUSED“, altpll_component.port_clkswitch = “PORT_UNUSED“, altpll_component.port_configupdate = “PORT_UNUSED“, altpll_component.port_fbin = “PORT_UNUSED“, altpll_com
13、ponent.port_inclk0 = “PORT_USED“, altpll_component.port_inclk1 = “PORT_UNUSED“, altpll_component.port_locked = “PORT_USED“, altpll_component.port_pfdena = “PORT_UNUSED“, altpll_component.port_phasecounterselect = “PORT_UNUSED“, altpll_component.port_phasedone = “PORT_UNUSED“, altpll_component.port_p
14、hasestep = “PORT_UNUSED“, altpll_component.port_phaseupdown = “PORT_UNUSED“, altpll_component.port_pllena = “PORT_UNUSED“, altpll_component.port_scanaclr = “PORT_UNUSED“, altpll_component.port_scanclk = “PORT_UNUSED“, altpll_component.port_scanclkena = “PORT_UNUSED“, altpll_component.port_scandata =
15、 “PORT_UNUSED“, altpll_component.port_scandataout = “PORT_UNUSED“, altpll_component.port_scandone = “PORT_UNUSED“, altpll_component.port_scanread = “PORT_UNUSED“, altpll_component.port_scanwrite = “PORT_UNUSED“, altpll_component.port_clk0 = “PORT_USED“, altpll_component.port_clk1 = “PORT_USED“, altp
16、ll_component.port_clk2 = “PORT_USED“, altpll_component.port_clk3 = “PORT_UNUSED“, altpll_component.port_clk4 = “PORT_UNUSED“, altpll_component.port_clk5 = “PORT_UNUSED“, altpll_component.port_clkena0 = “PORT_UNUSED“, altpll_component.port_clkena1 = “PORT_UNUSED“, altpll_component.port_clkena2 = “POR
17、T_UNUSED“, altpll_component.port_clkena3 = “PORT_UNUSED“, altpll_component.port_clkena4 = “PORT_UNUSED“, altpll_component.port_clkena5 = “PORT_UNUSED“, altpll_component.port_extclk0 = “PORT_UNUSED“, altpll_component.port_extclk1 = “PORT_UNUSED“, altpll_component.port_extclk2 = “PORT_UNUSED“, altpll_
18、component.port_extclk3 = “PORT_UNUSED“, altpll_component.valid_lock_multiplier = 1; 5 endmodule / = / CNX file retrieval info / = / Retrieval info: PRIVATE: ACTIVECLK_CHECK STRING “0“ / Retrieval info: PRIVATE: BANDWIDTH STRING “1.000“ / Retrieval info: PRIVATE: BANDWIDTH_FEATURE_ENABLED STRING “0“
19、/ Retrieval info: PRIVATE: BANDWIDTH_FREQ_UNIT STRING “MHz“ / Retrieval info: PRIVATE: BANDWIDTH_PRESET STRING “Low“ / Retrieval info: PRIVATE: BANDWIDTH_USE_AUTO STRING “1“ / Retrieval info: PRIVATE: BANDWIDTH_USE_CUSTOM STRING “0“ / Retrieval info: PRIVATE: BANDWIDTH_USE_PRESET STRING “0“ / Retrie
20、val info: PRIVATE: CLKBAD_SWITCHOVER_CHECK STRING “0“ / Retrieval info: PRIVATE: CLKLOSS_CHECK STRING “0“ / Retrieval info: PRIVATE: CLKSWITCH_CHECK STRING “1“ / Retrieval info: PRIVATE: CNX_NO_COMPENSATE_RADIO STRING “0“ / Retrieval info: PRIVATE: CREATE_CLKBAD_CHECK STRING “0“ / Retrieval info: PR
21、IVATE: CREATE_INCLK1_CHECK STRING “0“ / Retrieval info: PRIVATE: CUR_DEDICATED_CLK STRING “c0“ / Retrieval info: PRIVATE: CUR_FBIN_CLK STRING “c0“ / Retrieval info: PRIVATE: DEVICE_SPEED_GRADE STRING “8“ / Retrieval info: PRIVATE: DIV_FACTOR0 NUMERIC “1“ / Retrieval info: PRIVATE: DIV_FACTOR1 NUMERI
22、C “1“ / Retrieval info: PRIVATE: DIV_FACTOR2 NUMERIC “1“ / Retrieval info: PRIVATE: DUTY_CYCLE0 STRING “50.00000000“ / Retrieval info: PRIVATE: DUTY_CYCLE1 STRING “50.00000000“ / Retrieval info: PRIVATE: DUTY_CYCLE2 STRING “50.00000000“ / Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE0 STRING “100.0
23、00000“ / Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE1 STRING “20.000000“ / Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE2 STRING “100.000000“ / Retrieval info: PRIVATE: EXPLICIT_SWITCHOVER_COUNTER STRING “0“ / Retrieval info: PRIVATE: EXT_FEEDBACK_RADIO STRING “0“ / Retrieval info: PRIVATE: GLOC
24、KED_COUNTER_EDIT_CHANGED STRING “1“ / Retrieval info: PRIVATE: GLOCKED_FEATURE_ENABLED STRING “1“ / Retrieval info: PRIVATE: GLOCKED_MODE_CHECK STRING “0“ / Retrieval info: PRIVATE: GLOCK_COUNTER_EDIT NUMERIC “1048575“ / Retrieval info: PRIVATE: HAS_MANUAL_SWITCHOVER STRING “1“ / Retrieval info: PRI
25、VATE: INCLK0_FREQ_EDIT STRING “20.000“ / Retrieval info: PRIVATE: INCLK0_FREQ_UNIT_COMBO STRING “MHz“ / Retrieval info: PRIVATE: INCLK1_FREQ_EDIT STRING “100.000“ / Retrieval info: PRIVATE: INCLK1_FREQ_EDIT_CHANGED STRING “1“ / Retrieval info: PRIVATE: INCLK1_FREQ_UNIT_CHANGED STRING “1“ / Retrieval
26、 info: PRIVATE: INCLK1_FREQ_UNIT_COMBO STRING “MHz“ 6 / Retrieval info: PRIVATE: INTENDED_DEVICE_FAMILY STRING “Cyclone II“ / Retrieval info: PRIVATE: INT_FEEDBACK_MODE_RADIO STRING “1“ / Retrieval info: PRIVATE: LOCKED_OUTPUT_CHECK STRING “1“ / Retrieval info: PRIVATE: LONG_SCAN_RADIO STRING “1“ /
27、Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE STRING “Not Available“ / Retrieval info: PRIVATE: LVDS_MODE_DATA_RATE_DIRTY NUMERIC “0“ / Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT0 STRING “deg“ / Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT1 STRING “deg“ / Retrieval info: PRIVATE: LVDS_PHASE_SHI
28、FT_UNIT2 STRING “deg“ / Retrieval info: PRIVATE: MIG_DEVICE_SPEED_GRADE STRING “Any“ / Retrieval info: PRIVATE: MIRROR_CLK0 STRING “0“ / Retrieval info: PRIVATE: MIRROR_CLK1 STRING “0“ / Retrieval info: PRIVATE: MIRROR_CLK2 STRING “0“ / Retrieval info: PRIVATE: MULT_FACTOR0 NUMERIC “5“ / Retrieval i
29、nfo: PRIVATE: MULT_FACTOR1 NUMERIC “1“ / Retrieval info: PRIVATE: MULT_FACTOR2 NUMERIC “5“ / Retrieval info: PRIVATE: NORMAL_MODE_RADIO STRING “1“ / Retrieval info: PRIVATE: OUTPUT_FREQ0 STRING “100.00000000“ / Retrieval info: PRIVATE: OUTPUT_FREQ1 STRING “100.00000000“ / Retrieval info: PRIVATE: OU
30、TPUT_FREQ2 STRING “100.00000000“ / Retrieval info: PRIVATE: OUTPUT_FREQ_MODE0 STRING “0“ / Retrieval info: PRIVATE: OUTPUT_FREQ_MODE1 STRING “0“ / Retrieval info: PRIVATE: OUTPUT_FREQ_MODE2 STRING “0“ / Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT0 STRING “MHz“ / Retrieval info: PRIVATE: OUTPUT_FREQ_UN
31、IT1 STRING “MHz“ / Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT2 STRING “MHz“ / Retrieval info: PRIVATE: PHASE_RECONFIG_FEATURE_ENABLED STRING “0“ / Retrieval info: PRIVATE: PHASE_RECONFIG_INPUTS_CHECK STRING “0“ / Retrieval info: PRIVATE: PHASE_SHIFT0 STRING “0.00000000“ / Retrieval info: PRIVATE: PHA
32、SE_SHIFT1 STRING “0.00000000“ / Retrieval info: PRIVATE: PHASE_SHIFT2 STRING “5.00000000“ / Retrieval info: PRIVATE: PHASE_SHIFT_STEP_ENABLED_CHECK STRING “0“ / Retrieval info: PRIVATE: PHASE_SHIFT_UNIT0 STRING “deg“ / Retrieval info: PRIVATE: PHASE_SHIFT_UNIT1 STRING “deg“ / Retrieval info: PRIVATE
33、: PHASE_SHIFT_UNIT2 STRING “ns“ / Retrieval info: PRIVATE: PLL_ADVANCED_PARAM_CHECK STRING “0“ / Retrieval info: PRIVATE: PLL_ARESET_CHECK STRING “1“ / Retrieval info: PRIVATE: PLL_AUTOPLL_CHECK NUMERIC “1“ / Retrieval info: PRIVATE: PLL_ENA_CHECK STRING “0“ / Retrieval info: PRIVATE: PLL_ENHPLL_CHE
34、CK NUMERIC “0“ / Retrieval info: PRIVATE: PLL_FASTPLL_CHECK NUMERIC “0“ / Retrieval info: PRIVATE: PLL_FBMIMIC_CHECK STRING “0“ / Retrieval info: PRIVATE: PLL_LVDS_PLL_CHECK NUMERIC “0“ / Retrieval info: PRIVATE: PLL_PFDENA_CHECK STRING “0“ 7 / Retrieval info: PRIVATE: PLL_TARGET_HARCOPY_CHECK NUMER
35、IC “0“ / Retrieval info: PRIVATE: PRIMARY_CLK_COMBO STRING “inclk0“ / Retrieval info: PRIVATE: RECONFIG_FILE STRING “clk_ctrl.mif“ / Retrieval info: PRIVATE: SACN_INPUTS_CHECK STRING “0“ / Retrieval info: PRIVATE: SCAN_FEATURE_ENABLED STRING “0“ / Retrieval info: PRIVATE: SELF_RESET_LOCK_LOSS STRING
36、 “0“ / Retrieval info: PRIVATE: SHORT_SCAN_RADIO STRING “0“ / Retrieval info: PRIVATE: SPREAD_FEATURE_ENABLED STRING “0“ / Retrieval info: PRIVATE: SPREAD_FREQ STRING “50.000“ / Retrieval info: PRIVATE: SPREAD_FREQ_UNIT STRING “KHz“ / Retrieval info: PRIVATE: SPREAD_PERCENT STRING “0.500“ / Retrieva
37、l info: PRIVATE: SPREAD_USE STRING “0“ / Retrieval info: PRIVATE: SRC_SYNCH_COMP_RADIO STRING “0“ / Retrieval info: PRIVATE: STICKY_CLK0 STRING “1“ / Retrieval info: PRIVATE: STICKY_CLK1 STRING “1“ / Retrieval info: PRIVATE: STICKY_CLK2 STRING “1“ / Retrieval info: PRIVATE: SWITCHOVER_COUNT_EDIT NUM
38、ERIC “1“ / Retrieval info: PRIVATE: SWITCHOVER_FEATURE_ENABLED STRING “1“ / Retrieval info: PRIVATE: SYNTH_WRAPPER_GEN_POSTFIX STRING “0“ / Retrieval info: PRIVATE: USE_CLK0 STRING “1“ / Retrieval info: PRIVATE: USE_CLK1 STRING “1“ / Retrieval info: PRIVATE: USE_CLK2 STRING “1“ / Retrieval info: PRI
39、VATE: USE_CLKENA0 STRING “0“ / Retrieval info: PRIVATE: USE_CLKENA1 STRING “0“ / Retrieval info: PRIVATE: USE_CLKENA2 STRING “0“ / Retrieval info: PRIVATE: USE_MIL_SPEED_GRADE NUMERIC “0“ / Retrieval info: PRIVATE: ZERO_DELAY_RADIO STRING “0“ / Retrieval info: LIBRARY: altera_mf altera_mf.altera_mf_
40、components.all / Retrieval info: CONSTANT: CLK0_DIVIDE_BY NUMERIC “1“ / Retrieval info: CONSTANT: CLK0_DUTY_CYCLE NUMERIC “50“ / Retrieval info: CONSTANT: CLK0_MULTIPLY_BY NUMERIC “5“ / Retrieval info: CONSTANT: CLK0_PHASE_SHIFT STRING “0“ / Retrieval info: CONSTANT: CLK1_DIVIDE_BY NUMERIC “1“ / Ret
41、rieval info: CONSTANT: CLK1_DUTY_CYCLE NUMERIC “50“ / Retrieval info: CONSTANT: CLK1_MULTIPLY_BY NUMERIC “1“ / Retrieval info: CONSTANT: CLK1_PHASE_SHIFT STRING “0“ / Retrieval info: CONSTANT: CLK2_DIVIDE_BY NUMERIC “1“ / Retrieval info: CONSTANT: CLK2_DUTY_CYCLE NUMERIC “50“ / Retrieval info: CONST
42、ANT: CLK2_MULTIPLY_BY NUMERIC “5“ / Retrieval info: CONSTANT: CLK2_PHASE_SHIFT STRING “5000“ / Retrieval info: CONSTANT: COMPENSATE_CLOCK STRING “CLK0“ / Retrieval info: CONSTANT: GATE_LOCK_SIGNAL STRING “NO“ / Retrieval info: CONSTANT: INCLK0_INPUT_FREQUENCY NUMERIC “50000“ / Retrieval info: CONSTA
43、NT: INTENDED_DEVICE_FAMILY STRING “Cyclone II“ 8 / Retrieval info: CONSTANT: INVALID_LOCK_MULTIPLIER NUMERIC “5“ / Retrieval info: CONSTANT: LPM_TYPE STRING “altpll“ / Retrieval info: CONSTANT: OPERATION_MODE STRING “NORMAL“ / Retrieval info: CONSTANT: PORT_ACTIVECLOCK STRING “PORT_UNUSED“ / Retriev
44、al info: CONSTANT: PORT_ARESET STRING “PORT_USED“ / Retrieval info: CONSTANT: PORT_CLKBAD0 STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_CLKBAD1 STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_CLKLOSS STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_CLKSWITCH STRING “PORT_UNUSED“
45、/ Retrieval info: CONSTANT: PORT_CONFIGUPDATE STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_FBIN STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_INCLK0 STRING “PORT_USED“ / Retrieval info: CONSTANT: PORT_INCLK1 STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_LOCKED STRING “PORT_U
46、SED“ / Retrieval info: CONSTANT: PORT_PFDENA STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_PHASECOUNTERSELECT STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_PHASEDONE STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_PHASESTEP STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_
47、PHASEUPDOWN STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_PLLENA STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_SCANACLR STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_SCANCLK STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_SCANCLKENA STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_SCANDATA STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_SCANDATAOUT STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_SCANDONE STRING “PORT_UNUSED“ / Retrieval info: CONSTANT: PORT_SCANREAD STRING “PORT_UNUSED“ / Retr