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

📄 vco_phase_noise.mdl

📁 pll matlab程序~~对于系统级别的pll仿真很好~~
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      SignalConversion
      OverrideOpt	      off
    }
    Block {
      BlockType		      Inport
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      Interpolate	      on
    }
    Block {
      BlockType		      Math
      Operator		      "exp"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
    }
    Block {
      BlockType		      "M-S-Function"
      MFile		      "mlfile"
    }
    Block {
      BlockType		      Memory
      X0		      "0"
      InheritSampleTime	      off
      LinearizeMemory	      off
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      MinMax
      Function		      "min"
      Inputs		      "1"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Probe
      ProbeWidth	      on
      ProbeSampleTime	      on
      ProbeComplexSignal      on
      ProbeSignalDimensions   off
      ProbeFramedSignal	      off
      ProbeWidthDataType      "double"
      ProbeSampleTimeDataType "double"
      ProbeComplexityDataType "double"
      ProbeDimensionsDataType "double"
      ProbeFrameDataType      "double"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      RealImagToComplex
      Input		      "Real and imag"
      ConstantPart	      "0"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Selector
      InputType		      "Vector"
      IndexMode		      "One-based"
      ElementSrc	      "Internal"
      Elements		      "1"
      RowSrc		      "Internal"
      Rows		      "1"
      ColumnSrc		      "Internal"
      Columns		      "1"
      InputPortWidth	      "-1"
      IndexIsStartValue	      off
      OutputPortSize	      "1"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Sin
      SineType		      "Time based"
      TimeSource	      "Use simulation time"
      Amplitude		      "1"
      Bias		      "0"
      Frequency		      "1"
      Phase		      "0"
      Samples		      "10"
      Offset		      "0"
      SampleTime	      "-1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      StateSpace
      A			      "1"
      B			      "1"
      C			      "1"
      D			      "1"
      X0		      "0"
      AbsoluteTolerance	      "auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutDataTypeMode	      "Inherit via internal rule"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      ToWorkspace
      VariableName	      "simulink_output"
      MaxDataPoints	      "1000"
      Decimation	      "1"
      SampleTime	      "0"
      FixptAsFi		      off
    }
    Block {
      BlockType		      ZeroOrderHold
      SampleTime	      "1"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Courier New"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Courier New"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "vco_phase_noise"
    Location		    [217, 386, 805, 567]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Constant
      Name		      "Center Freq Offset"
      Position		      [55, 65, 80, 85]
      Value		      "0"
      VectorParams1D	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "RF Spectum Analyzer (Image Reject)"
      Description	      "Spectrum Analyzer"
      Ports		      [1]
      Position		      [390, 48, 515, 102]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskPromptString	      "Bandwidth|Center Freq"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "BW=@1;Fc=@2;"
      MaskDisplay	      "fprintf('Spectrum Analyzer \\n Fc=%7.2f MHz \\n"
" BW=%7.2f MHz',Fc/1e6,BW/1e6)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "4e6|49e6"
      MaskTabNameString	      ","
      System {
	Name			"RF Spectum Analyzer (Image Reject)"
	Location		[70, 89, 952, 636]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Input Signal"
	  Position		  [20, 102, 60, 118]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Display
	  Name			  "Carrier Plus Noise Power (1 Ohm)"
	  Ports			  [1]
	  Position		  [765, 250, 855, 280]
	}
	Block {
	  BlockType		  Math
	  Name			  "Math\nFunction1"
	  Ports			  [1, 1]
	  Position		  [675, 250, 705, 280]
	  Operator		  "square"
	}
	Block {
	  BlockType		  Reference
	  Name			  "RMS1"
	  Ports			  [1, 1]
	  Position		  [535, 247, 610, 283]
	  SourceBlock		  "dspstat3/RMS"
	  SourceType		  "RMS"
	  run			  off
	  reset_popup		  "None"
	}
	Block {
	  BlockType		  RealImagToComplex
	  Name			  "Real-Imag to\nComplex"
	  Ports			  [2, 1]
	  Position		  [510, 98, 540, 127]
	  Input			  "Real and imag"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave1"
	  Ports			  [0, 1]
	  Position		  [25, 35, 55, 65]
	  ShowName		  off
	  SineType		  "Time based"
	  Amplitude		  "1/7.2"
	  Frequency		  "2*pi*(Fc)"
	  Phase			  "-pi/2"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave2"
	  Ports			  [0, 1]
	  Position		  [25, 160, 55, 190]
	  ShowName		  off
	  SineType		  "Time based"
	  Amplitude		  "1/7.2"
	  Frequency		  "2*pi*(Fc)"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Spectrum Estimate"
	  Ports			  [1, 3]
	  Position		  [530, 327, 825, 453]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskPromptString	  "Frame Size|Navg"
	  MaskStyleString	  "edit,edit"
	  MaskTunableValueString  "on,on"
	  MaskCallbackString	  "|"
	  MaskEnableString	  "on,on"
	  MaskVisibilityString	  "on,on"
	  MaskToolTipString	  "on,on"
	  MaskVarAliasString	  ","
	  MaskVariables		  "Frame=@1;Navg=@2;"
	  MaskDisplay		  "disp('Power Spectrum Estimate')\nport_label"
"('input',1,'y(t)');\nport_label('output',1,'Power Spectrum')\nport_label('out"
"put',2,'Scaled for dBc/Hz')\nport_label('output',3','Total Power');"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "1024|100"
	  MaskTabNameString	  ","
	  System {
	    Name		    "Spectrum Estimate"
	    Location		    [-19, 151, 993, 631]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Time History"
	      Position		      [35, 263, 65, 277]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Buffer"
	      Ports		      [1, 1]
	      Position		      [180, 245, 230, 295]
	      SourceBlock	      "dspbuff3/Buffer"
	      SourceType	      "Buffer"
	      N			      "Frame"
	      V			      "0"
	      ic		      "0"
	    }
	    Block {
	      BlockType		      DataTypeConversion
	      Name		      "Data Type Conversion"
	      Position		      [110, 251, 150, 289]
	      OutDataTypeMode	      "single"
	      RndMeth		      "Floor"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Magnitude\nFFT"
	      Ports		      [1, 1]
	      Position		      [545, 89, 625, 141]
	      SourceBlock	      "dspspect3/Magnitude\nFFT"
	      SourceType	      "Magnitude FFT"
	      ShowPortLabels	      on
	      mag_or_magsq	      "Magnitude squared"
	      fftLenInherit	      on
	      fftsize		      "fftsize"
	    }
	    Block {
	      BlockType		      Display
	      Name		      "Power Correction due to bin spreading "
"\neffect of analysis window "
	      Ports		      [1]
	      Position		      [605, 160, 695, 190]
	      Decimation	      "100"
	    }
	    Block {
	      BlockType		      Probe
	      Name		      "Probe"
	      Ports		      [1, 1]
	      Position		      [320, 349, 420, 381]
	      ProbeWidth	      off
	      ProbeComplexSignal      off
	      ProbeWidthDataType      "single"
	      ProbeSampleTimeDataType "single"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [475, 97, 505, 128]
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product1"
	      Ports		      [2, 1]
	      Position		      [880, 159, 915, 246]
	      Inputs		      "*/"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product2"
	      Ports		      [2, 1]
	      Position		      [930, 299, 965, 386]
	      Inputs		      "**"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector"
	      Ports		      [1, 1]
	      Position		      [530, 346, 570, 384]
	      Elements		      "[1]"
	      InputPortWidth	      "2"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Spectral Averaging"
	      Ports		      [1, 1]
	      Position		      [655, 88, 755, 142]

⌨️ 快捷键说明

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