mirror of
https://github.com/VARCem/PTV_Archive.git
synced 2026-09-25 00:14:38 +00:00
1543 lines
35 KiB
Plaintext
1543 lines
35 KiB
Plaintext
Model {
|
|
Name "dpll"
|
|
Version 5.0
|
|
SaveDefaultBlockParams on
|
|
SampleTimeColors off
|
|
LibraryLinkDisplay "none"
|
|
WideLines off
|
|
ShowLineDimensions off
|
|
ShowPortDataTypes off
|
|
ShowLoopsOnError on
|
|
IgnoreBidirectionalLines off
|
|
ShowStorageClass off
|
|
ExecutionOrder off
|
|
RecordCoverage off
|
|
CovPath "/"
|
|
CovSaveName "covdata"
|
|
CovMetricSettings "dw"
|
|
CovNameIncrementing off
|
|
CovHtmlReporting on
|
|
covSaveCumulativeToWorkspaceVar on
|
|
CovSaveSingleToWorkspaceVar on
|
|
CovCumulativeVarName "covCumulativeData"
|
|
CovCumulativeReport off
|
|
DataTypeOverride "UseLocalSettings"
|
|
MinMaxOverflowLogging "UseLocalSettings"
|
|
MinMaxOverflowArchiveMode "Overwrite"
|
|
BlockNameDataTip off
|
|
BlockParametersDataTip off
|
|
BlockDescriptionStringDataTip off
|
|
ToolBar on
|
|
StatusBar on
|
|
BrowserShowLibraryLinks off
|
|
BrowserLookUnderMasks off
|
|
Created "Mon Dec 18 20:37:08 2006"
|
|
UpdateHistory "UpdateHistoryNever"
|
|
ModifiedByFormat "%<Auto>"
|
|
LastModifiedBy "thh"
|
|
ModifiedDateFormat "%<Auto>"
|
|
LastModifiedDate "Wed Jan 03 11:56:11 2007"
|
|
ModelVersionFormat "1.%<AutoIncrement:287>"
|
|
ConfigurationManager "None"
|
|
SimParamPage "Solver"
|
|
LinearizationMsg "none"
|
|
Profile off
|
|
ParamWorkspaceSource "MATLABWorkspace"
|
|
AccelSystemTargetFile "accel.tlc"
|
|
AccelTemplateMakefile "accel_default_tmf"
|
|
AccelMakeCommand "make_rtw"
|
|
TryForcingSFcnDF off
|
|
ExtModeMexFile "ext_comm"
|
|
ExtModeBatchMode off
|
|
ExtModeTrigType "manual"
|
|
ExtModeTrigMode "normal"
|
|
ExtModeTrigPort "1"
|
|
ExtModeTrigElement "any"
|
|
ExtModeTrigDuration 1000
|
|
ExtModeTrigHoldOff 0
|
|
ExtModeTrigDelay 0
|
|
ExtModeTrigDirection "rising"
|
|
ExtModeTrigLevel 0
|
|
ExtModeArchiveMode "off"
|
|
ExtModeAutoIncOneShot off
|
|
ExtModeIncDirWhenArm off
|
|
ExtModeAddSuffixToVar off
|
|
ExtModeWriteAllDataToWs off
|
|
ExtModeArmWhenConnect on
|
|
ExtModeSkipDownloadWhenConnect off
|
|
ExtModeLogAll on
|
|
ExtModeAutoUpdateStatusClock on
|
|
BufferReuse on
|
|
RTWExpressionDepthLimit 5
|
|
SimulationMode "normal"
|
|
Solver "ode45"
|
|
SolverMode "Auto"
|
|
StartTime "0.0"
|
|
StopTime "10"
|
|
MaxOrder 5
|
|
MaxStep "auto"
|
|
MinStep "auto"
|
|
MaxNumMinSteps "-1"
|
|
InitialStep "auto"
|
|
FixedStep "auto"
|
|
RelTol "1e-9"
|
|
AbsTol "1e-12"
|
|
OutputOption "RefineOutputTimes"
|
|
OutputTimes "[]"
|
|
Refine "1"
|
|
LoadExternalInput off
|
|
ExternalInput "[t, u]"
|
|
LoadInitialState off
|
|
InitialState "xInitial"
|
|
SaveTime on
|
|
TimeSaveName "tout"
|
|
SaveState off
|
|
StateSaveName "xout"
|
|
SaveOutput on
|
|
OutputSaveName "yout"
|
|
SaveFinalState off
|
|
FinalStateName "xFinal"
|
|
SaveFormat "Array"
|
|
Decimation "1"
|
|
LimitDataPoints on
|
|
MaxDataPoints "1000"
|
|
SignalLoggingName "sigsOut"
|
|
ConsistencyChecking "none"
|
|
ArrayBoundsChecking "none"
|
|
AlgebraicLoopMsg "warning"
|
|
BlockPriorityViolationMsg "warning"
|
|
MinStepSizeMsg "warning"
|
|
InheritedTsInSrcMsg "warning"
|
|
DiscreteInheritContinuousMsg "warning"
|
|
MultiTaskRateTransMsg "error"
|
|
SingleTaskRateTransMsg "none"
|
|
CheckForMatrixSingularity "none"
|
|
IntegerOverflowMsg "warning"
|
|
Int32ToFloatConvMsg "warning"
|
|
ParameterDowncastMsg "error"
|
|
ParameterOverflowMsg "error"
|
|
ParameterPrecisionLossMsg "warning"
|
|
UnderSpecifiedDataTypeMsg "none"
|
|
UnnecessaryDatatypeConvMsg "none"
|
|
VectorMatrixConversionMsg "none"
|
|
InvalidFcnCallConnMsg "error"
|
|
SignalLabelMismatchMsg "none"
|
|
UnconnectedInputMsg "warning"
|
|
UnconnectedOutputMsg "warning"
|
|
UnconnectedLineMsg "warning"
|
|
SfunCompatibilityCheckMsg "none"
|
|
RTWInlineParameters off
|
|
BlockReductionOpt on
|
|
BooleanDataType on
|
|
ConditionallyExecuteInputs on
|
|
ParameterPooling on
|
|
OptimizeBlockIOStorage on
|
|
ZeroCross on
|
|
AssertionControl "UseLocalSettings"
|
|
ProdHWDeviceType "Microprocessor"
|
|
ProdHWWordLengths "8,16,32,32"
|
|
RTWSystemTargetFile "grt.tlc"
|
|
RTWTemplateMakefile "grt_default_tmf"
|
|
RTWMakeCommand "make_rtw"
|
|
RTWGenerateCodeOnly off
|
|
RTWRetainRTWFile off
|
|
TLCProfiler off
|
|
TLCDebug off
|
|
TLCCoverage off
|
|
TLCAssertion off
|
|
BlockDefaults {
|
|
Orientation "right"
|
|
ForegroundColor "black"
|
|
BackgroundColor "white"
|
|
DropShadow off
|
|
NamePlacement "normal"
|
|
FontName "Helvetica"
|
|
FontSize 10
|
|
FontWeight "normal"
|
|
FontAngle "normal"
|
|
ShowName on
|
|
}
|
|
BlockParameterDefaults {
|
|
Block {
|
|
BlockType Clock
|
|
DisplayTime off
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Value "1"
|
|
VectorParams1D on
|
|
ShowAdditionalParam off
|
|
OutDataTypeMode "Inherit from 'Constant value'"
|
|
OutDataType "sfix(16)"
|
|
ConRadixGroup "Use specified scaling"
|
|
OutScaling "2^0"
|
|
}
|
|
Block {
|
|
BlockType Fcn
|
|
Expr "sin(u[1])"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Gain "1"
|
|
Multiplication "Element-wise(K.*u)"
|
|
ShowAdditionalParam off
|
|
ParameterDataTypeMode "Same as input"
|
|
ParameterDataType "sfix(16)"
|
|
ParameterScalingMode "Best Precision: Matrix-wise"
|
|
ParameterScaling "2^0"
|
|
OutDataTypeMode "Same as input"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Port "1"
|
|
PortDimensions "-1"
|
|
SampleTime "-1"
|
|
ShowAdditionalParam off
|
|
LatchInput off
|
|
DataType "auto"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
SignalType "auto"
|
|
SamplingMode "auto"
|
|
Interpolate on
|
|
}
|
|
Block {
|
|
BlockType Integrator
|
|
ExternalReset "none"
|
|
InitialConditionSource "internal"
|
|
InitialCondition "0"
|
|
LimitOutput off
|
|
UpperSaturationLimit "inf"
|
|
LowerSaturationLimit "-inf"
|
|
ShowSaturationPort off
|
|
ShowStatePort off
|
|
AbsoluteTolerance "auto"
|
|
ZeroCross on
|
|
}
|
|
Block {
|
|
BlockType Lookup
|
|
InputValues "[-4:5]"
|
|
OutputValues " rand(1,10)-0.5"
|
|
ShowAdditionalParam off
|
|
LookUpMeth "Interpolation-Extrapolation"
|
|
OutDataTypeMode "Same as input"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
}
|
|
Block {
|
|
BlockType Mux
|
|
Inputs "4"
|
|
DisplayOption "none"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Port "1"
|
|
OutputWhenDisabled "held"
|
|
InitialOutput "[]"
|
|
}
|
|
Block {
|
|
BlockType Product
|
|
Inputs "2"
|
|
Multiplication "Element-wise(.*)"
|
|
ShowAdditionalParam off
|
|
InputSameDT on
|
|
OutDataTypeMode "Same as first input"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
}
|
|
Block {
|
|
BlockType Quantizer
|
|
QuantizationInterval "0.5"
|
|
LinearizeAsGain on
|
|
}
|
|
Block {
|
|
BlockType RandomNumber
|
|
Mean "0"
|
|
Variance "1"
|
|
Seed "0"
|
|
SampleTime "-1"
|
|
VectorParams1D on
|
|
}
|
|
Block {
|
|
BlockType Rounding
|
|
Operator "floor"
|
|
}
|
|
Block {
|
|
BlockType Saturate
|
|
UpperLimit "0.5"
|
|
LowerLimit "-0.5"
|
|
LinearizeAsGain on
|
|
ZeroCross on
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Floating off
|
|
ModelBased off
|
|
TickLabels "OneTimeTick"
|
|
ZoomMode "on"
|
|
Grid "on"
|
|
TimeRange "auto"
|
|
YMin "-5"
|
|
YMax "5"
|
|
SaveToWorkspace off
|
|
SaveName "ScopeData"
|
|
LimitDataPoints on
|
|
MaxDataPoints "5000"
|
|
Decimation "1"
|
|
SampleInput off
|
|
SampleTime "0"
|
|
}
|
|
Block {
|
|
BlockType "S-Function"
|
|
FunctionName "system"
|
|
PortCounts "[]"
|
|
SFunctionModules "''"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
ShowPortLabels on
|
|
Permissions "ReadWrite"
|
|
RTWSystemCode "Auto"
|
|
RTWFcnNameOpts "Auto"
|
|
RTWFileNameOpts "Auto"
|
|
SimViewingDevice off
|
|
DataTypeOverride "UseLocalSettings"
|
|
MinMaxOverflowLogging "UseLocalSettings"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
IconShape "rectangular"
|
|
Inputs "++"
|
|
ShowAdditionalParam off
|
|
InputSameDT on
|
|
OutDataTypeMode "Same as first input"
|
|
OutDataType "sfix(16)"
|
|
OutScaling "2^0"
|
|
LockScale off
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
}
|
|
Block {
|
|
BlockType Switch
|
|
Criteria "u2 >= Threshold"
|
|
Threshold "0"
|
|
ShowAdditionalParam off
|
|
InputSameDT on
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
RndMeth "Floor"
|
|
SaturateOnIntegerOverflow on
|
|
ZeroCross on
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
SampleTime "1"
|
|
}
|
|
}
|
|
AnnotationDefaults {
|
|
HorizontalAlignment "center"
|
|
VerticalAlignment "middle"
|
|
ForegroundColor "black"
|
|
BackgroundColor "white"
|
|
DropShadow off
|
|
FontName "Helvetica"
|
|
FontSize 10
|
|
FontWeight "normal"
|
|
FontAngle "normal"
|
|
}
|
|
LineDefaults {
|
|
FontName "Helvetica"
|
|
FontSize 9
|
|
FontWeight "normal"
|
|
FontAngle "normal"
|
|
}
|
|
System {
|
|
Name "dpll"
|
|
Location [1491, 147, 2511, 417]
|
|
Open on
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
ZoomFactor "100"
|
|
ReportName "simulink-default.rpt"
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "DAC"
|
|
Ports [1, 1]
|
|
Position [460, 109, 525, 151]
|
|
TreatAsAtomicUnit off
|
|
System {
|
|
Name "DAC"
|
|
Location [1428, 623, 1931, 822]
|
|
Open on
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "Count"
|
|
Position [45, 103, 75, 117]
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "DAC gain"
|
|
Position [345, 79, 410, 121]
|
|
Gain "Vcc*Mdac"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Manual Switch"
|
|
Ports [2, 1]
|
|
Position [270, 82, 300, 118]
|
|
SourceBlock "simulink/Signal\nRouting/Manual Switch"
|
|
SourceType "Manual Switch"
|
|
sw "0"
|
|
action "0"
|
|
}
|
|
Block {
|
|
BlockType Quantizer
|
|
Name "Quantizer"
|
|
Position [190, 95, 220, 125]
|
|
QuantizationInterval "2^-Nbits"
|
|
}
|
|
Block {
|
|
BlockType Saturate
|
|
Name "Saturation"
|
|
Position [120, 95, 150, 125]
|
|
UpperLimit "1"
|
|
LowerLimit "0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Out"
|
|
Position [450, 93, 480, 107]
|
|
}
|
|
Line {
|
|
SrcBlock "DAC gain"
|
|
SrcPort 1
|
|
DstBlock "Out"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Count"
|
|
SrcPort 1
|
|
DstBlock "Saturation"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Saturation"
|
|
SrcPort 1
|
|
Points [10, 0]
|
|
Branch {
|
|
DstBlock "Quantizer"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, -35; 70, 0; 0, 15]
|
|
DstBlock "Manual Switch"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Manual Switch"
|
|
SrcPort 1
|
|
DstBlock "DAC gain"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Quantizer"
|
|
SrcPort 1
|
|
DstBlock "Manual Switch"
|
|
DstPort 2
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Decimator1"
|
|
Position [115, 114, 180, 156]
|
|
Gain "1/Ndec1"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Decimator2"
|
|
Position [370, 190, 435, 230]
|
|
Orientation "left"
|
|
Gain "1/Ndec2"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Loop filter"
|
|
Ports [1, 1]
|
|
Position [370, 109, 435, 151]
|
|
TreatAsAtomicUnit off
|
|
System {
|
|
Name "Loop filter"
|
|
Location [1934, 528, 2542, 818]
|
|
Open on
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "+/-"
|
|
Position [30, 108, 60, 122]
|
|
}
|
|
Block {
|
|
BlockType Integrator
|
|
Name "Integrator"
|
|
Ports [1, 1]
|
|
Position [280, 150, 310, 180]
|
|
}
|
|
Block {
|
|
BlockType Mux
|
|
Name "Mux"
|
|
Ports [4, 1]
|
|
Position [495, 151, 500, 189]
|
|
ShowName off
|
|
DisplayOption "bar"
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Name "Scope1"
|
|
Ports [1]
|
|
Position [525, 154, 555, 186]
|
|
NamePlacement "alternate"
|
|
Location [229, 268, 790, 749]
|
|
Open on
|
|
NumInputPorts "1"
|
|
ZoomMode "yonly"
|
|
List {
|
|
ListType AxesTitles
|
|
axes1 "%<SignalLabel>"
|
|
}
|
|
List {
|
|
ListType SelectedSignals
|
|
axes1 ""
|
|
}
|
|
TimeRange "10"
|
|
YMin "-0.5"
|
|
YMax "6.5"
|
|
SaveName "ScopeData5"
|
|
DataFormat "StructureWithTime"
|
|
LimitDataPoints off
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum2"
|
|
Ports [2, 1]
|
|
Position [415, 105, 435, 125]
|
|
ShowName off
|
|
IconShape "round"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType ZeroOrderHold
|
|
Name "Zero-Order\nHold"
|
|
Position [95, 96, 130, 134]
|
|
SampleTime "Tpll"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "alpha"
|
|
Position [345, 145, 400, 185]
|
|
ShowName off
|
|
Gain "alpha"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "beta"
|
|
Position [265, 47, 325, 83]
|
|
ShowName off
|
|
Gain "beta"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "discrete 2\ncont gain"
|
|
Position [195, 143, 250, 187]
|
|
Gain "1/Tpll"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Count"
|
|
Position [530, 58, 560, 72]
|
|
}
|
|
Line {
|
|
SrcBlock "+/-"
|
|
SrcPort 1
|
|
DstBlock "Zero-Order\nHold"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum2"
|
|
SrcPort 1
|
|
Points [0, 0; 30, 0]
|
|
Branch {
|
|
Points [0, -50]
|
|
DstBlock "Count"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 60]
|
|
DstBlock "Mux"
|
|
DstPort 3
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "beta"
|
|
SrcPort 1
|
|
Points [0, 0; 95, 0]
|
|
Branch {
|
|
DstBlock "Sum2"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [20, 0; 0, 90]
|
|
DstBlock "Mux"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "alpha"
|
|
SrcPort 1
|
|
Points [0, 0; 20, 0]
|
|
Branch {
|
|
DstBlock "Sum2"
|
|
DstPort 2
|
|
}
|
|
Branch {
|
|
DstBlock "Mux"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Mux"
|
|
SrcPort 1
|
|
DstBlock "Scope1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Integrator"
|
|
SrcPort 1
|
|
DstBlock "alpha"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "discrete 2\ncont gain"
|
|
SrcPort 1
|
|
DstBlock "Integrator"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Zero-Order\nHold"
|
|
SrcPort 1
|
|
Points [35, 0]
|
|
Branch {
|
|
Points [0, -50]
|
|
DstBlock "beta"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 50]
|
|
Branch {
|
|
DstBlock "discrete 2\ncont gain"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 65; 300, 0; 0, -45]
|
|
DstBlock "Mux"
|
|
DstPort 4
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "Phase Detector1"
|
|
Ports [4, 1]
|
|
Position [265, 105, 335, 155]
|
|
TreatAsAtomicUnit off
|
|
System {
|
|
Name "Phase Detector1"
|
|
Location [1626, 126, 2502, 393]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "phase\noffset"
|
|
Position [650, 178, 680, 192]
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "phase\njitter"
|
|
Position [315, 183, 345, 197]
|
|
Port "2"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "fin"
|
|
Position [130, 63, 160, 77]
|
|
Port "3"
|
|
}
|
|
Block {
|
|
BlockType Inport
|
|
Name "ffb"
|
|
Position [130, 133, 160, 147]
|
|
Port "4"
|
|
}
|
|
Block {
|
|
BlockType Integrator
|
|
Name "Integrator"
|
|
Ports [1, 1]
|
|
Position [235, 90, 265, 120]
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Manual Switch"
|
|
Ports [2, 1]
|
|
Position [560, 77, 590, 113]
|
|
NamePlacement "alternate"
|
|
SourceBlock "simulink/Signal\nRouting/Manual Switch"
|
|
SourceType "Manual Switch"
|
|
sw "0"
|
|
action "0"
|
|
}
|
|
Block {
|
|
BlockType Rounding
|
|
Name "Rounding\nFunction"
|
|
Position [470, 89, 510, 121]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
Operator "round"
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Name "Scope1"
|
|
Ports [1]
|
|
Position [510, 209, 540, 241]
|
|
NamePlacement "alternate"
|
|
Location [229, 268, 790, 749]
|
|
Open on
|
|
NumInputPorts "1"
|
|
ZoomMode "xonly"
|
|
List {
|
|
ListType AxesTitles
|
|
axes1 "%<SignalLabel>"
|
|
}
|
|
List {
|
|
ListType SelectedSignals
|
|
axes1 ""
|
|
}
|
|
TimeRange "10"
|
|
YMin "-0.5"
|
|
YMax "6.5"
|
|
SaveName "ScopeData1"
|
|
DataFormat "StructureWithTime"
|
|
LimitDataPoints off
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum"
|
|
Ports [2, 1]
|
|
Position [185, 95, 205, 115]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "+-"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum1"
|
|
Ports [2, 1]
|
|
Position [645, 95, 665, 115]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "|++"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum2"
|
|
Ports [2, 1]
|
|
Position [415, 95, 435, 115]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "|+-"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum3"
|
|
Ports [2, 1]
|
|
Position [695, 95, 715, 115]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "|++"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum4"
|
|
Ports [2, 1]
|
|
Position [365, 95, 385, 115]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "|++"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Tpll phase 2\nclock periods"
|
|
Position [290, 85, 340, 125]
|
|
Gain "Ndec2"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "fi1"
|
|
Position [479, 160, 501, 180]
|
|
Orientation "up"
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
Value "1/2"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "+/-"
|
|
Position [745, 98, 775, 112]
|
|
}
|
|
Line {
|
|
SrcBlock "ffb"
|
|
SrcPort 1
|
|
Points [30, 0]
|
|
DstBlock "Sum"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "fin"
|
|
SrcPort 1
|
|
Points [30, 0]
|
|
DstBlock "Sum"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum"
|
|
SrcPort 1
|
|
DstBlock "Integrator"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Integrator"
|
|
SrcPort 1
|
|
DstBlock "Tpll phase 2\nclock periods"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "fi1"
|
|
SrcPort 1
|
|
Points [0, 0; 0, -15]
|
|
Branch {
|
|
Points [165, 0]
|
|
DstBlock "Sum1"
|
|
DstPort 2
|
|
}
|
|
Branch {
|
|
Points [-65, 0]
|
|
DstBlock "Sum2"
|
|
DstPort 2
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Sum2"
|
|
SrcPort 1
|
|
Points [0, 0; 5, 0]
|
|
Branch {
|
|
Points [0, -45; 85, 0; 0, 25]
|
|
DstBlock "Manual Switch"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [5, 0]
|
|
Branch {
|
|
DstBlock "Rounding\nFunction"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 120]
|
|
DstBlock "Scope1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "phase\noffset"
|
|
SrcPort 1
|
|
Points [20, 0]
|
|
DstBlock "Sum3"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Sum3"
|
|
SrcPort 1
|
|
DstBlock "+/-"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum1"
|
|
SrcPort 1
|
|
DstBlock "Sum3"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Manual Switch"
|
|
SrcPort 1
|
|
Points [30, 0; 0, 10]
|
|
DstBlock "Sum1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Rounding\nFunction"
|
|
SrcPort 1
|
|
DstBlock "Manual Switch"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "phase\njitter"
|
|
SrcPort 1
|
|
Points [25, 0]
|
|
DstBlock "Sum4"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Sum4"
|
|
SrcPort 1
|
|
Points [0, 0]
|
|
DstBlock "Sum2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Tpll phase 2\nclock periods"
|
|
SrcPort 1
|
|
DstBlock "Sum4"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "RC filter"
|
|
Ports [1, 1]
|
|
Position [590, 110, 645, 150]
|
|
TreatAsAtomicUnit off
|
|
System {
|
|
Name "RC filter"
|
|
Location [1959, 515, 2544, 679]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "In"
|
|
Position [125, 48, 155, 62]
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain"
|
|
Position [300, 100, 330, 130]
|
|
Orientation "left"
|
|
Gain "-1/C/R"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Gain1"
|
|
Position [185, 40, 215, 70]
|
|
Gain "1/C/R"
|
|
}
|
|
Block {
|
|
BlockType Integrator
|
|
Name "Integrator"
|
|
Ports [1, 1]
|
|
Position [300, 40, 330, 70]
|
|
InitialCondition "Vvcxo0"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum2"
|
|
Ports [2, 1]
|
|
Position [245, 45, 265, 65]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "|++"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "Out"
|
|
Position [405, 48, 435, 62]
|
|
}
|
|
Line {
|
|
SrcBlock "In"
|
|
SrcPort 1
|
|
DstBlock "Gain1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Integrator"
|
|
SrcPort 1
|
|
Points [0, 0; 30, 0]
|
|
Branch {
|
|
DstBlock "Out"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 60]
|
|
DstBlock "Gain"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Sum2"
|
|
SrcPort 1
|
|
DstBlock "Integrator"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Gain"
|
|
SrcPort 1
|
|
Points [-40, 0]
|
|
DstBlock "Sum2"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Gain1"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType RandomNumber
|
|
Name "Random\nNumber"
|
|
Position [165, 65, 195, 95]
|
|
NamePlacement "alternate"
|
|
Variance "0.05"
|
|
SampleTime "Tpll"
|
|
}
|
|
Block {
|
|
BlockType RandomNumber
|
|
Name "Random\nNumber1"
|
|
Position [545, 50, 575, 80]
|
|
Orientation "down"
|
|
NamePlacement "alternate"
|
|
Variance "0.1e-3"
|
|
SampleTime "Tpll"
|
|
}
|
|
Block {
|
|
BlockType Reference
|
|
Name "Repeating\nSequence3"
|
|
Ports [0, 1]
|
|
Position [230, 30, 260, 60]
|
|
Orientation "down"
|
|
SourceBlock "simulink/Sources/Repeating\nSequence"
|
|
SourceType "Repeating table"
|
|
rep_seq_t "[0 0.5 0.5 1]*5"
|
|
rep_seq_y "[0 0 1 1]*5"
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Name "Scope1"
|
|
Ports [1]
|
|
Position [380, 39, 410, 71]
|
|
NamePlacement "alternate"
|
|
Location [202, 141, 957, 622]
|
|
Open on
|
|
NumInputPorts "1"
|
|
ZoomMode "yonly"
|
|
List {
|
|
ListType AxesTitles
|
|
axes1 "%<SignalLabel>"
|
|
}
|
|
List {
|
|
ListType SelectedSignals
|
|
axes1 ""
|
|
}
|
|
TimeRange "10"
|
|
YMin "-30"
|
|
YMax "180"
|
|
DataFormat "StructureWithTime"
|
|
LimitDataPoints off
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Name "Scope2"
|
|
Ports [1]
|
|
Position [685, 44, 715, 76]
|
|
NamePlacement "alternate"
|
|
Location [272, 286, 833, 767]
|
|
Open on
|
|
NumInputPorts "1"
|
|
ZoomMode "yonly"
|
|
List {
|
|
ListType AxesTitles
|
|
axes1 "%<SignalLabel>"
|
|
}
|
|
List {
|
|
ListType SelectedSignals
|
|
axes1 ""
|
|
}
|
|
TimeRange "10"
|
|
YMin "1.2496"
|
|
YMax "1.2511"
|
|
SaveName "ScopeData3"
|
|
DataFormat "StructureWithTime"
|
|
LimitDataPoints off
|
|
}
|
|
Block {
|
|
BlockType Scope
|
|
Name "Scope4"
|
|
Ports [1]
|
|
Position [940, 114, 970, 146]
|
|
Location [447, 101, 1008, 582]
|
|
Open on
|
|
NumInputPorts "1"
|
|
ZoomMode "yonly"
|
|
List {
|
|
ListType AxesTitles
|
|
axes1 "%<SignalLabel>"
|
|
}
|
|
List {
|
|
ListType SelectedSignals
|
|
axes1 ""
|
|
}
|
|
TimeRange "10"
|
|
YMin "-10"
|
|
YMax "55"
|
|
SaveName "ScopeData2"
|
|
DataFormat "StructureWithTime"
|
|
LimitDataPoints off
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum3"
|
|
Ports [2, 1]
|
|
Position [550, 120, 570, 140]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "++|"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Time to UI1"
|
|
Position [850, 108, 920, 152]
|
|
Gain "10*fvcxo"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "VCXO1"
|
|
Ports [1, 1]
|
|
Position [680, 109, 740, 151]
|
|
TreatAsAtomicUnit off
|
|
System {
|
|
Name "VCXO1"
|
|
Location [1923, 447, 2534, 626]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "Vc"
|
|
Position [40, 98, 70, 112]
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "Kv"
|
|
Position [240, 83, 295, 127]
|
|
Gain "Kvcxo"
|
|
}
|
|
Block {
|
|
BlockType Product
|
|
Name "Product"
|
|
Ports [2, 1]
|
|
Position [410, 81, 455, 114]
|
|
InputSameDT off
|
|
}
|
|
Block {
|
|
BlockType Saturate
|
|
Name "Saturation"
|
|
Position [110, 90, 140, 120]
|
|
UpperLimit "Vvcxomax"
|
|
LowerLimit "Vvcxomin"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum1"
|
|
Ports [2, 1]
|
|
Position [325, 95, 345, 115]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "++|"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum2"
|
|
Ports [2, 1]
|
|
Position [175, 95, 195, 115]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "-+|"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "f0"
|
|
Position [370, 50, 420, 70]
|
|
Orientation "down"
|
|
Value "fvcxo"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "f1"
|
|
Position [326, 50, 344, 70]
|
|
Orientation "down"
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "f2"
|
|
Position [163, 45, 207, 65]
|
|
Orientation "down"
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
Value "Vvcxo0"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "fout"
|
|
Position [510, 93, 540, 107]
|
|
}
|
|
Line {
|
|
SrcBlock "f2"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Vc"
|
|
SrcPort 1
|
|
DstBlock "Saturation"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum2"
|
|
SrcPort 1
|
|
DstBlock "Kv"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Product"
|
|
SrcPort 1
|
|
DstBlock "fout"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Kv"
|
|
SrcPort 1
|
|
DstBlock "Sum1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Sum1"
|
|
SrcPort 1
|
|
DstBlock "Product"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "f1"
|
|
SrcPort 1
|
|
DstBlock "Sum1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "f0"
|
|
SrcPort 1
|
|
DstBlock "Product"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Saturation"
|
|
SrcPort 1
|
|
DstBlock "Sum2"
|
|
DstPort 2
|
|
}
|
|
}
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "fi1"
|
|
Position [35, 125, 85, 145]
|
|
NamePlacement "alternate"
|
|
ShowName off
|
|
Value "27e6"
|
|
}
|
|
Block {
|
|
BlockType SubSystem
|
|
Name "freq to jitter1"
|
|
Ports [1, 1]
|
|
Position [770, 108, 830, 152]
|
|
TreatAsAtomicUnit off
|
|
System {
|
|
Name "freq to jitter1"
|
|
Location [1381, 573, 1968, 787]
|
|
Open off
|
|
ModelBrowserVisibility off
|
|
ModelBrowserWidth 200
|
|
ScreenColor "white"
|
|
PaperOrientation "landscape"
|
|
PaperPositionMode "auto"
|
|
PaperType "A4"
|
|
PaperUnits "centimeters"
|
|
ZoomFactor "100"
|
|
Block {
|
|
BlockType Inport
|
|
Name "f"
|
|
Position [45, 108, 75, 122]
|
|
}
|
|
Block {
|
|
BlockType Integrator
|
|
Name "Integrator1"
|
|
Ports [1, 1]
|
|
Position [155, 100, 185, 130]
|
|
}
|
|
Block {
|
|
BlockType Sum
|
|
Name "Sum1"
|
|
Ports [2, 1]
|
|
Position [110, 105, 130, 125]
|
|
ShowName off
|
|
IconShape "round"
|
|
Inputs "-+|"
|
|
InputSameDT off
|
|
OutDataTypeMode "Inherit via internal rule"
|
|
}
|
|
Block {
|
|
BlockType Constant
|
|
Name "f0"
|
|
Position [95, 55, 145, 75]
|
|
Orientation "down"
|
|
Value "fvcxo"
|
|
}
|
|
Block {
|
|
BlockType Gain
|
|
Name "periods to time"
|
|
Position [225, 91, 285, 139]
|
|
Gain "1/fvcxo"
|
|
}
|
|
Block {
|
|
BlockType Outport
|
|
Name "jitter"
|
|
Position [325, 108, 355, 122]
|
|
}
|
|
Line {
|
|
SrcBlock "periods to time"
|
|
SrcPort 1
|
|
DstBlock "jitter"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "f"
|
|
SrcPort 1
|
|
DstBlock "Sum1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "f0"
|
|
SrcPort 1
|
|
DstBlock "Sum1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Sum1"
|
|
SrcPort 1
|
|
DstBlock "Integrator1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Integrator1"
|
|
SrcPort 1
|
|
DstBlock "periods to time"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "freq to jitter1"
|
|
SrcPort 1
|
|
DstBlock "Time to UI1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Time to UI1"
|
|
SrcPort 1
|
|
DstBlock "Scope4"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "VCXO1"
|
|
SrcPort 1
|
|
Points [0, 0; 5, 0]
|
|
Branch {
|
|
Points [10, 0]
|
|
DstBlock "freq to jitter1"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, 80]
|
|
DstBlock "Decimator2"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Decimator2"
|
|
SrcPort 1
|
|
Points [-125, 0; 0, -65]
|
|
DstBlock "Phase Detector1"
|
|
DstPort 4
|
|
}
|
|
Line {
|
|
SrcBlock "Phase Detector1"
|
|
SrcPort 1
|
|
Points [0, 0; 10, 0]
|
|
Branch {
|
|
DstBlock "Loop filter"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, -75]
|
|
DstBlock "Scope1"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Decimator1"
|
|
SrcPort 1
|
|
DstBlock "Phase Detector1"
|
|
DstPort 3
|
|
}
|
|
Line {
|
|
SrcBlock "fi1"
|
|
SrcPort 1
|
|
DstBlock "Decimator1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Loop filter"
|
|
SrcPort 1
|
|
DstBlock "DAC"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "RC filter"
|
|
SrcPort 1
|
|
Points [0, 0; 10, 0]
|
|
Branch {
|
|
DstBlock "VCXO1"
|
|
DstPort 1
|
|
}
|
|
Branch {
|
|
Points [0, -70]
|
|
DstBlock "Scope2"
|
|
DstPort 1
|
|
}
|
|
}
|
|
Line {
|
|
SrcBlock "Repeating\nSequence3"
|
|
SrcPort 1
|
|
Points [0, 50]
|
|
DstBlock "Phase Detector1"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Random\nNumber"
|
|
SrcPort 1
|
|
Points [5, 0; 0, 45]
|
|
DstBlock "Phase Detector1"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "DAC"
|
|
SrcPort 1
|
|
DstBlock "Sum3"
|
|
DstPort 2
|
|
}
|
|
Line {
|
|
SrcBlock "Sum3"
|
|
SrcPort 1
|
|
DstBlock "RC filter"
|
|
DstPort 1
|
|
}
|
|
Line {
|
|
SrcBlock "Random\nNumber1"
|
|
SrcPort 1
|
|
DstBlock "Sum3"
|
|
DstPort 1
|
|
}
|
|
}
|
|
}
|