📄 dspddc_r12p1.mdl
字号:
# $Revision: 1.2 $
Model {
Name "dspddc_R12p1"
Version 4.1.1
SampleTimeColors on
LibraryLinkDisplay "none"
WideLines on
ShowLineDimensions on
ShowPortDataTypes on
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Tue Feb 19 10:13:38 2002"
Creator "schim"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "sconahan"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Jun 03 10:15:02 2002"
ModelVersionFormat "1.%<AutoIncrement:359>"
ConfigurationManager "None"
SimParamPage "Optimization"
StartTime "0.0"
StopTime "inf"
SolverMode "SingleTasking"
Solver "FixedStepDiscrete"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
LimitDataPoints off
MaxDataPoints "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWOptions "-aEnforceIntegerDowncast=1 -aExtMode=0 -aFoldNonRol"
"ledExpr=1 -aForceParamTrailComments=0 -aGenerateComments=1 -aIgnoreCustomStor"
"ageClasses=1 -aIncHierarchyInIds=0 -aInlineInvariantSignals=1 -aLocalBlockOut"
"puts=1 -aLogVarNameModifier=\"rt_\" -aRTWVerbose=1 -aRollThreshold=5 -aShowEl"
"iminatedStatements=1"
RTWInlineParameters on
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
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
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt on
RTWExpressionDepthLimit 5
BooleanDataType on
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
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 "dspddc_R12p1"
Location [30, 91, 447, 514]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "89"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "CFIR1"
Ports [1, 1]
Position [172, 240, 288, 270]
Orientation "down"
ShowName off
FontName "Arial"
FontSize 12
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Compensation FIR')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "CFIR1"
Location [220, 234, 757, 333]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 28, 55, 42]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Goto
Name "Goto"
Position [430, 65, 515, 85]
ShowName off
GotoTag "CFIR_OUT"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [140, 17, 185, 53]
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Coarse Gain (0,1, ... 7)"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "bits=@1;"
MaskDisplay "disp(['Coarse' 10 'Gain'])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0"
System {
Name "Subsystem"
Location [163, 371, 728, 470]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "24-bit In"
Position [25, 28, 55, 42]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Conversion"
Ports [1, 1]
Position [245, 15, 285, 55]
SourceBlock "fixpt_lib_3p1/Data Type/Conversion"
SourceType "Fixed-Point to Fixed-Point Conversion"
ConvertRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfix(24)"
OutScaling "2^12"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType Reference
Name "Conversion1"
Ports [1, 1]
Position [365, 15, 405, 55]
SourceBlock "fixpt_lib_3p1/Data Type/Conversion"
SourceType "Fixed-Point to Fixed-Point Conversion"
ConvertRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfix(20)"
OutScaling "2^12"
LockScale off
RndMeth "Nearest"
DoSatur off
DblOver off
dolog on
}
Block {
BlockType SubSystem
Name "Shift\nArithmetic"
Ports [1, 1]
Position [130, 24, 170, 46]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Shift bits right how many places (negat"
"ive is shift left):|Shift binary point right how many places (negative is shi"
"ft left):"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "nBitShiftRight=@1;nBinPtShiftRight=@2;"
MaskInitialization "netExponent = nBinPtShiftRight - nBitSh"
"iftRight;\ndstr = ['Vy = Vu'];\nif netExponent ~= 0\n dstr = [dstr,' * 2^',n"
"um2str(netExponent)];\nend\ndstr = [dstr,'\\nQy = Qu'];\nif nBitShiftRight > "
"0\n dstr = [dstr,' >> ',num2str(nBitShiftRight)];\nelseif nBitShiftRight < 0"
"\n dstr = [dstr,' << ',num2str(-nBitShiftRight)];\nend\ndstr = [dstr,'\\nEy ="
" Eu'];\nif nBinPtShiftRight > 0\n dstr = [dstr,' + ',num2str(nBinPtShiftRigh"
"t)];\nelseif nBinPtShiftRight < 0\n dstr = [dstr,' - ',num2str(-nBinPtShiftR"
"ight)];\nend"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "-1*bits|0"
MaskVariableAliases ","
System {
Name "Shift\nArithmetic"
Location [161, 387, 650, 661]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "u"
Position [25, 158, 55, 172]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Data Type\nPropagation"
Ports [3]
Position [295, 50, 335, 90]
SourceBlock "fixpt_lib_3p1/Data Type/Data Type\n"
"Propagation"
SourceType "Fixed-Point Data Type Propagation"
PropDataTypeMode "Inherit via propagation rule"
PropDataType "sfix(16)"
IfRefDouble "double"
IfRefSingle "single"
IsSigned "IsSigned1"
NumBitsBase "NumBits1"
NumBitsMult "1"
NumBitsAdd "0"
NumBitsAllowFinal "1:128"
PropScalingMode "Inherit via propagation rule"
PropScaling "2^-10"
ValuesUsedBestPrec "[5 -7]"
SlopeBase "Slope1"
SlopeMult "2^nBinPtShiftRight"
SlopeAdd "0"
BiasBase "Bias1"
BiasMult "2^netExponent"
BiasAdd "0"
DblOver off
}
Block {
BlockType Reference
Name "Gain"
Ports [1, 1]
Position [120, 143, 165, 187]
SourceBlock "fixpt_lib_3p1/Math/Gain"
SourceType "Fixed-Point Gain"
gainval "2^netExponent"
GainDataTypeScalingMode "Specify via dialog"
GainDataType "sfix(24)"
GainScaling "2^-14"
VecRadixGroup "Best Precision: Matrix-wise"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfix(24)"
OutScaling "2^8"
LockScale off
RndMeth "Floor"
DoSatur off
DblOver off
dolog on
ElevsMatrix "Element-wise(K.*u)"
}
Block {
BlockType Outport
Name "y"
Position [345, 158, 375, 172]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [90, 0]
Branch {
Points [0, -80]
DstBlock "Data Type\nPropagation"
DstPort 3
}
Branch {
DstBlock "y"
DstPort 1
}
}
Line {
SrcBlock "u"
SrcPort 1
Points [35, 0]
Branch {
Points [0, -110; 160, 0]
Branch {
Points [0, 15]
DstBlock "Data Type\nPropagation"
DstPort 2
}
Branch {
DstBlock "Data Type\nPropagation"
DstPort 1
}
}
Branch {
DstBlock "Gain"
DstPort 1
}
}
}
}
Block {
BlockType Outport
Name "20-bit Out"
Position [485, 28, 515, 42]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Shift\nArithmetic"
SrcPort 1
DstBlock "Conversion"
DstPort 1
}
Line {
SrcBlock "24-bit In"
SrcPort 1
DstBlock "Shift\nArithmetic"
DstPort 1
}
Line {
SrcBlock "Conversion"
SrcPort 1
DstBlock "Conversion1"
DstPort 1
}
Line {
SrcBlock "Conversion1"
SrcPort 1
DstBlock "20-bit Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [265, 15, 320, 55]
ShowName off
ShowPortLabels on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -