|
@@ -40,15 +40,11 @@
|
|
|
module NTSC_pll (
|
|
|
areset,
|
|
|
inclk0,
|
|
|
- c0,
|
|
|
- c1,
|
|
|
c2,
|
|
|
c3);
|
|
|
|
|
|
input areset;
|
|
|
input inclk0;
|
|
|
- output c0;
|
|
|
- output c1;
|
|
|
output c2;
|
|
|
output c3;
|
|
|
`ifndef ALTERA_RESERVED_QIS
|
|
@@ -60,21 +56,17 @@ module NTSC_pll (
|
|
|
`endif
|
|
|
|
|
|
wire [4:0] sub_wire0;
|
|
|
- wire [0:0] sub_wire7 = 1'h0;
|
|
|
- wire [3:3] sub_wire4 = sub_wire0[3:3];
|
|
|
- wire [2:2] sub_wire3 = sub_wire0[2:2];
|
|
|
- wire [1:1] sub_wire2 = sub_wire0[1:1];
|
|
|
- wire [0:0] sub_wire1 = sub_wire0[0:0];
|
|
|
- wire c0 = sub_wire1;
|
|
|
- wire c1 = sub_wire2;
|
|
|
- wire c2 = sub_wire3;
|
|
|
- wire c3 = sub_wire4;
|
|
|
- wire sub_wire5 = inclk0;
|
|
|
- wire [1:0] sub_wire6 = {sub_wire7, sub_wire5};
|
|
|
+ wire [0:0] sub_wire5 = 1'h0;
|
|
|
+ wire [3:3] sub_wire2 = sub_wire0[3:3];
|
|
|
+ wire [2:2] sub_wire1 = sub_wire0[2:2];
|
|
|
+ wire c2 = sub_wire1;
|
|
|
+ wire c3 = sub_wire2;
|
|
|
+ wire sub_wire3 = inclk0;
|
|
|
+ wire [1:0] sub_wire4 = {sub_wire5, sub_wire3};
|
|
|
|
|
|
altpll altpll_component (
|
|
|
.areset (areset),
|
|
|
- .inclk (sub_wire6),
|
|
|
+ .inclk (sub_wire4),
|
|
|
.clk (sub_wire0),
|
|
|
.activeclock (),
|
|
|
.clkbad (),
|
|
@@ -112,14 +104,6 @@ module NTSC_pll (
|
|
|
.vcounderrange ());
|
|
|
defparam
|
|
|
altpll_component.bandwidth_type = "AUTO",
|
|
|
- altpll_component.clk0_divide_by = 220,
|
|
|
- altpll_component.clk0_duty_cycle = 50,
|
|
|
- altpll_component.clk0_multiply_by = 63,
|
|
|
- altpll_component.clk0_phase_shift = "0",
|
|
|
- altpll_component.clk1_divide_by = 55,
|
|
|
- altpll_component.clk1_duty_cycle = 50,
|
|
|
- altpll_component.clk1_multiply_by = 126,
|
|
|
- altpll_component.clk1_phase_shift = "0",
|
|
|
altpll_component.clk2_divide_by = 125,
|
|
|
altpll_component.clk2_duty_cycle = 50,
|
|
|
altpll_component.clk2_multiply_by = 63,
|
|
@@ -128,7 +112,7 @@ module NTSC_pll (
|
|
|
altpll_component.clk3_duty_cycle = 50,
|
|
|
altpll_component.clk3_multiply_by = 63,
|
|
|
altpll_component.clk3_phase_shift = "0",
|
|
|
- altpll_component.compensate_clock = "CLK0",
|
|
|
+ altpll_component.compensate_clock = "CLK2",
|
|
|
altpll_component.inclk0_input_frequency = 20000,
|
|
|
altpll_component.intended_device_family = "Cyclone IV E",
|
|
|
altpll_component.lpm_hint = "CBX_MODULE_PREFIX=NTSC_pll",
|
|
@@ -160,8 +144,8 @@ module NTSC_pll (
|
|
|
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",
|
|
|
+ altpll_component.port_clk0 = "PORT_UNUSED",
|
|
|
+ altpll_component.port_clk1 = "PORT_UNUSED",
|
|
|
altpll_component.port_clk2 = "PORT_USED",
|
|
|
altpll_component.port_clk3 = "PORT_USED",
|
|
|
altpll_component.port_clk4 = "PORT_UNUSED",
|
|
@@ -197,19 +181,13 @@ endmodule
|
|
|
// Retrieval info: PRIVATE: CNX_NO_COMPENSATE_RADIO STRING "0"
|
|
|
// Retrieval info: PRIVATE: CREATE_CLKBAD_CHECK STRING "0"
|
|
|
// Retrieval info: PRIVATE: CREATE_INCLK1_CHECK STRING "0"
|
|
|
-// Retrieval info: PRIVATE: CUR_DEDICATED_CLK STRING "c0"
|
|
|
+// Retrieval info: PRIVATE: CUR_DEDICATED_CLK STRING "c2"
|
|
|
// Retrieval info: PRIVATE: CUR_FBIN_CLK STRING "c0"
|
|
|
// Retrieval info: PRIVATE: DEVICE_SPEED_GRADE STRING "Any"
|
|
|
-// Retrieval info: PRIVATE: DIV_FACTOR0 NUMERIC "220"
|
|
|
-// Retrieval info: PRIVATE: DIV_FACTOR1 NUMERIC "55"
|
|
|
// Retrieval info: PRIVATE: DIV_FACTOR2 NUMERIC "125"
|
|
|
// Retrieval info: PRIVATE: DIV_FACTOR3 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: DUTY_CYCLE3 STRING "50.00000000"
|
|
|
-// Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE0 STRING "14.318182"
|
|
|
-// Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE1 STRING "114.545456"
|
|
|
// Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE2 STRING "25.200001"
|
|
|
// Retrieval info: PRIVATE: EFF_OUTPUT_FREQ_VALUE3 STRING "126.000000"
|
|
|
// Retrieval info: PRIVATE: EXPLICIT_SWITCHOVER_COUNTER STRING "0"
|
|
@@ -231,41 +209,25 @@ endmodule
|
|
|
// Retrieval info: PRIVATE: LONG_SCAN_RADIO STRING "1"
|
|
|
// 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_SHIFT_UNIT2 STRING "ps"
|
|
|
// Retrieval info: PRIVATE: LVDS_PHASE_SHIFT_UNIT3 STRING "ps"
|
|
|
// 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: MIRROR_CLK3 STRING "0"
|
|
|
-// Retrieval info: PRIVATE: MULT_FACTOR0 NUMERIC "63"
|
|
|
-// Retrieval info: PRIVATE: MULT_FACTOR1 NUMERIC "126"
|
|
|
// Retrieval info: PRIVATE: MULT_FACTOR2 NUMERIC "63"
|
|
|
// Retrieval info: PRIVATE: MULT_FACTOR3 NUMERIC "1"
|
|
|
// 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: OUTPUT_FREQ2 STRING "25.00000000"
|
|
|
// Retrieval info: PRIVATE: OUTPUT_FREQ3 STRING "126.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_MODE3 STRING "1"
|
|
|
-// Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT0 STRING "MHz"
|
|
|
-// Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT1 STRING "MHz"
|
|
|
// Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT2 STRING "MHz"
|
|
|
// Retrieval info: PRIVATE: OUTPUT_FREQ_UNIT3 STRING "MHz"
|
|
|
// Retrieval info: PRIVATE: PHASE_RECONFIG_FEATURE_ENABLED STRING "1"
|
|
|
// Retrieval info: PRIVATE: PHASE_RECONFIG_INPUTS_CHECK STRING "0"
|
|
|
-// Retrieval info: PRIVATE: PHASE_SHIFT0 STRING "0.00000000"
|
|
|
-// Retrieval info: PRIVATE: PHASE_SHIFT1 STRING "0.00000000"
|
|
|
// Retrieval info: PRIVATE: PHASE_SHIFT2 STRING "0.00000000"
|
|
|
// Retrieval info: PRIVATE: PHASE_SHIFT3 STRING "0.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: PHASE_SHIFT_UNIT2 STRING "ps"
|
|
|
// Retrieval info: PRIVATE: PHASE_SHIFT_UNIT3 STRING "ps"
|
|
|
// Retrieval info: PRIVATE: PLL_ADVANCED_PARAM_CHECK STRING "0"
|
|
@@ -289,33 +251,19 @@ endmodule
|
|
|
// Retrieval info: PRIVATE: SPREAD_PERCENT STRING "0.000"
|
|
|
// Retrieval 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: STICKY_CLK3 STRING "1"
|
|
|
// Retrieval info: PRIVATE: SWITCHOVER_COUNT_EDIT NUMERIC "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: PRIVATE: USE_CLK3 STRING "1"
|
|
|
-// Retrieval info: PRIVATE: USE_CLKENA0 STRING "0"
|
|
|
-// Retrieval info: PRIVATE: USE_CLKENA1 STRING "0"
|
|
|
// Retrieval info: PRIVATE: USE_CLKENA2 STRING "0"
|
|
|
// Retrieval info: PRIVATE: USE_CLKENA3 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_components.all
|
|
|
// Retrieval info: CONSTANT: BANDWIDTH_TYPE STRING "AUTO"
|
|
|
-// Retrieval info: CONSTANT: CLK0_DIVIDE_BY NUMERIC "220"
|
|
|
-// Retrieval info: CONSTANT: CLK0_DUTY_CYCLE NUMERIC "50"
|
|
|
-// Retrieval info: CONSTANT: CLK0_MULTIPLY_BY NUMERIC "63"
|
|
|
-// Retrieval info: CONSTANT: CLK0_PHASE_SHIFT STRING "0"
|
|
|
-// Retrieval info: CONSTANT: CLK1_DIVIDE_BY NUMERIC "55"
|
|
|
-// Retrieval info: CONSTANT: CLK1_DUTY_CYCLE NUMERIC "50"
|
|
|
-// Retrieval info: CONSTANT: CLK1_MULTIPLY_BY NUMERIC "126"
|
|
|
-// Retrieval info: CONSTANT: CLK1_PHASE_SHIFT STRING "0"
|
|
|
// Retrieval info: CONSTANT: CLK2_DIVIDE_BY NUMERIC "125"
|
|
|
// Retrieval info: CONSTANT: CLK2_DUTY_CYCLE NUMERIC "50"
|
|
|
// Retrieval info: CONSTANT: CLK2_MULTIPLY_BY NUMERIC "63"
|
|
@@ -324,7 +272,7 @@ endmodule
|
|
|
// Retrieval info: CONSTANT: CLK3_DUTY_CYCLE NUMERIC "50"
|
|
|
// Retrieval info: CONSTANT: CLK3_MULTIPLY_BY NUMERIC "63"
|
|
|
// Retrieval info: CONSTANT: CLK3_PHASE_SHIFT STRING "0"
|
|
|
-// Retrieval info: CONSTANT: COMPENSATE_CLOCK STRING "CLK0"
|
|
|
+// Retrieval info: CONSTANT: COMPENSATE_CLOCK STRING "CLK2"
|
|
|
// Retrieval info: CONSTANT: INCLK0_INPUT_FREQUENCY NUMERIC "20000"
|
|
|
// Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "Cyclone IV E"
|
|
|
// Retrieval info: CONSTANT: LPM_TYPE STRING "altpll"
|
|
@@ -355,8 +303,8 @@ endmodule
|
|
|
// Retrieval info: CONSTANT: PORT_SCANDONE STRING "PORT_UNUSED"
|
|
|
// Retrieval info: CONSTANT: PORT_SCANREAD STRING "PORT_UNUSED"
|
|
|
// Retrieval info: CONSTANT: PORT_SCANWRITE STRING "PORT_UNUSED"
|
|
|
-// Retrieval info: CONSTANT: PORT_clk0 STRING "PORT_USED"
|
|
|
-// Retrieval info: CONSTANT: PORT_clk1 STRING "PORT_USED"
|
|
|
+// Retrieval info: CONSTANT: PORT_clk0 STRING "PORT_UNUSED"
|
|
|
+// Retrieval info: CONSTANT: PORT_clk1 STRING "PORT_UNUSED"
|
|
|
// Retrieval info: CONSTANT: PORT_clk2 STRING "PORT_USED"
|
|
|
// Retrieval info: CONSTANT: PORT_clk3 STRING "PORT_USED"
|
|
|
// Retrieval info: CONSTANT: PORT_clk4 STRING "PORT_UNUSED"
|
|
@@ -374,16 +322,12 @@ endmodule
|
|
|
// Retrieval info: CONSTANT: WIDTH_CLOCK NUMERIC "5"
|
|
|
// Retrieval info: USED_PORT: @clk 0 0 5 0 OUTPUT_CLK_EXT VCC "@clk[4..0]"
|
|
|
// Retrieval info: USED_PORT: areset 0 0 0 0 INPUT GND "areset"
|
|
|
-// Retrieval info: USED_PORT: c0 0 0 0 0 OUTPUT_CLK_EXT VCC "c0"
|
|
|
-// Retrieval info: USED_PORT: c1 0 0 0 0 OUTPUT_CLK_EXT VCC "c1"
|
|
|
// Retrieval info: USED_PORT: c2 0 0 0 0 OUTPUT_CLK_EXT VCC "c2"
|
|
|
// Retrieval info: USED_PORT: c3 0 0 0 0 OUTPUT_CLK_EXT VCC "c3"
|
|
|
// Retrieval info: USED_PORT: inclk0 0 0 0 0 INPUT_CLK_EXT GND "inclk0"
|
|
|
// Retrieval info: CONNECT: @areset 0 0 0 0 areset 0 0 0 0
|
|
|
// Retrieval info: CONNECT: @inclk 0 0 1 1 GND 0 0 0 0
|
|
|
// Retrieval info: CONNECT: @inclk 0 0 1 0 inclk0 0 0 0 0
|
|
|
-// Retrieval info: CONNECT: c0 0 0 0 0 @clk 0 0 1 0
|
|
|
-// Retrieval info: CONNECT: c1 0 0 0 0 @clk 0 0 1 1
|
|
|
// Retrieval info: CONNECT: c2 0 0 0 0 @clk 0 0 1 2
|
|
|
// Retrieval info: CONNECT: c3 0 0 0 0 @clk 0 0 1 3
|
|
|
// Retrieval info: GEN_FILE: TYPE_NORMAL NTSC_pll.v TRUE
|