⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dpll_fixpt.mdl

📁 对一般的PLL及APLL,定点PLL进行了MATLAB SIMULINK仿真
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     off
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      XLimit		      "Auto"
      YUnits		      "dB"
      XMax		      "1"
      XMin		      "0"
      YMin		      "-66.7500151230149"
      YMax		      "24.4293933483218"
      YLabel		      "Magnitude-squared, dB"
      LineProperties	      off
      wintypeSpecScope	      "Kaiser"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Scope
      Name		      "Vco"
      Ports		      [1]
      Position		      [570, 93, 600, 127]
      Floating		      off
      Location		      [6, 712, 507, 956]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-30"
      YMax		      "30"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "PFD"
      SrcPort		      1
      DstBlock		      "Loop Filter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Ref Osc"
      SrcPort		      1
      DstBlock		      "Data Type Conversion"
      DstPort		      1
    }
    Line {
      SrcBlock		      "NCO"
      SrcPort		      1
      Points		      [-100, 0]
      Branch {
	Points			[0, 60]
	DstBlock		"Spectrum\nScope"
	DstPort			1
      }
      Branch {
	Points			[-95, 0; 0, -120; 20, 0]
	Branch {
	  Points		  [0, 0; 0, 65]
	  DstBlock		  "Scope"
	  DstPort		  2
	}
	Branch {
	  DstBlock		  "PFD"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Loop Filter"
      SrcPort		      1
      Points		      [80, 0]
      Branch {
	DstBlock		"Vco"
	DstPort			1
      }
      Branch {
	Labels			[0, 0]
	Points			[0, 135]
	DstBlock		"NCO"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Data Type Conversion"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	Points			[0, 80]
	DstBlock		"Scope"
	DstPort			1
      }
      Branch {
	DstBlock		"PFD"
	DstPort			1
      }
    }
    Annotation {
      Name		      "All Digital Phase-Locked Loop with NCO\n16-bit "
"fixed-point version"
      Position		      [325, 34]
      DropShadow	      on
    }
  }
}
MatData {
  NumRecords		  2
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    ,     8    (    !          %    "
"\"                0         0          "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    ,     8    (    !          %    "
"\"     $    \"     0         0  ( 6UT   "
  }
}

# Finite State Machines
#
#    Stateflow Version 6.6 (R2007a) dated Jan 30 2007, 03:33:34
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"dpll_fixpt"
		created              		"16-Apr-2007 21:21:34"
		isLibrary            		0
		firstTarget          		15
		sfVersion            		66014000
	}

	chart {
		id                                        		2
		name                                      		"PFD/Chart"
		windowPosition                            		[164.25 225 534 247.5]
		viewLimits                                		[42.131 481.619 33.949 223.453]
		zoomFactor                                		0.896
		chartColor                                		[1 1 1]
		screen                                    		[1 1 1280 1024 1.333333333333333]
		treeNode                                  		[0 4 0 0]
		firstTransition                           		7
		viewObj                                   		2
		machine                                   		1
		subviewS {
			x1        		42.131
			y1        		33.949
			zoomFactor		0.896
		}
		decomposition                             		CLUSTER_CHART
		firstEvent                                		11
		firstData                                 		13
		chartFileNumber                           		2
		disableImplicitCasting                    		1
	}

	state {
		id                           		3
		labelString                  		"Ahead\n"
						"s = -1;"
		position                     		[79.25 95.25 90 60]
		fontSize                     		12
		chart                        		2
		treeNode                     		[2 0 5 0]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		CLUSTER_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		4
		labelString                  		"InPhase\n"
						"s=0;"
		position                     		[216.5 94.5 90 60]
		fontSize                     		12
		chart                        		2
		treeNode                     		[2 0 0 5]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		CLUSTER_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		5
		labelString                  		"Behind\n"
						"s=1;"
		position                     		[354.5 94.5 90 60]
		fontSize                     		12
		chart                        		2
		treeNode                     		[2 0 4 3]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		CLUSTER_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	transition {
		id             		6
		labelString    		"ref"
		labelPosition  		[177.623 38.769 15.449 15.426]
		fontSize       		12
		src {
			id          		3
			intersection		[1 0 -1 0.6417 137 95.25 0 -62.25]
		}
		dst {
			id          		4
			intersection		[1 0 -1 0.2 234.5 94.5 0 48.75]
		}
		midPoint       		[164.4189 60.8715]
		chart          		2
		linkNode       		[2 7 10]
		dataLimits     		[137 236.9 56.071 95.25]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		7
		labelString    		"ref"
		labelPosition  		[328.016 39.513 15.449 15.426]
		fontSize       		12
		src {
			id          		4
			intersection		[1 0 -1 0.7417 283.25 94.5 0 -53.25]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.25 377 94.5 0 52.5]
		}
		midPoint       		[312.4784 58.549]
		chart          		2
		linkNode       		[2 0 6]
		dataLimits     		[283.25 379.4 55.206 94.5]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		8
		labelString    		"var"
		labelPosition  		[190.119 203.208 18.135 15.426]
		fontSize       		12
		src {
			id          		4
			intersection		[3 0 1 0.7065 242.9167 154.5 0 -56.4167]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.4037 132.9167 155.25 0 67.0833]
		}
		midPoint       		[206.224 199.0604]
		chart          		2
		linkNode       		[2 10 9]
		dataLimits     		[130.517 242.917 154.5 202.049]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
			midPointSticky		1
		}
		executionOrder 		2
	}

	transition {
		id             		9
		labelString    		"var"
		labelPosition  		[334.917 192.114 18.135 15.426]
		fontSize       		12
		src {
			id          		5
			intersection		[3 0 1 0.7637 375.7666 154.5 0 -51.2666]
		}
		dst {
			id          		4
			intersection		[3 0 1 0.1981 288.6728 154.5 0 47.8272]
		}
		midPoint       		[344.9935 190.9316]
		chart          		2
		linkNode       		[2 8 0]
		dataLimits     		[286.273 375.767 154.5 192.826]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		10
		labelPosition  		[244.08 73.854 8.06 15.426]
		fontSize       		12
		src {
			intersection		[0 0 1 0 258.4803 64.5 0 0]
		}
		dst {
			id          		4
			intersection		[1 0 -1 0.4664 258.4803 94.5 0 0]
		}
		midPoint       		[258.4803 76.8537]
		chart          		2
		linkNode       		[2 6 8]
		dataLimits     		[256.08 260.88 64.5 94.5]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	event {
		id         		11
		name       		"ref"
		linkNode   		[2 0 12]
		scope      		INPUT_EVENT
		trigger    		RISING_EDGE_EVENT
		machine    		1
	}

	event {
		id         		12
		name       		"var"
		linkNode   		[2 11 0]
		scope      		INPUT_EVENT
		trigger    		RISING_EDGE_EVENT
		machine    		1
	}

	data {
		id                            		13
		name                          		"s"
		linkNode                      		[2 0 0]
		scope                         		OUTPUT_DATA
		machine                       		1
		props {
			type {
				method    		SF_CUSTOM_INTEGER_TYPE
				primitive 		SF_DOUBLE_TYPE
				isSigned  		1
				wordLength		"16"
				fixpt {
					scalingMode   		SF_FIXPT_BINARY_POINT
					fractionLength		"14"
				}
			}
			frame                		SF_FRAME_NO
		}
		dataType                      		"int16"
		fixptType {
			slope   		1
			exponent		-14
		}
		dlgFixptMode                  		1
	}

	instance {
		id     		14
		name   		"PFD/Chart"
		machine		1
		chart  		2
	}

	target {
		id                        		15
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		machine                   		1
		linkNode                  		[1 0 0]
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -