📄 fxpmult_add.mdl
字号:
Model {
Name "fxpmult_add"
Version 5.0
SaveDefaultBlockParams on
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines on
ShowLineDimensions off
ShowPortDataTypes on
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "d"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Wed Jul 22 13:25:13 1998"
Creator "ciolfi"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "ewsgan"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Thu Dec 12 00:41:33 2002"
ModelVersionFormat "1.%<AutoIncrement:54>"
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 "oneshot"
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 off
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
BufferReuse on
RTWExpressionDepthLimit 5
SimulationMode "normal"
Solver "FixedStepDiscrete"
SolverMode "SingleTasking"
StartTime "0.0"
StopTime "8"
MaxOrder 5
MaxStep "0.01"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "1/1000"
RelTol "1e-3"
AbsTol "1e-6"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints off
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 "none"
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 off
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 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 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 Sin
SineType "Time based"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
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
}
}
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 "fxpmult_add"
Location [66, 213, 580, 426]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "FixPt\nGUI"
Ports []
Position [455, 15, 495, 55]
BackgroundColor "orange"
ShowName off
SourceBlock "fixpt_lib_3p1/FixPt\nGUI"
SourceType "Fixed-Point GUI"
}
Block {
BlockType Product
Name "FixPt Product"
Ports [2, 1]
Position [210, 135, 250, 175]
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutDataType "sfrac(32)"
OutScaling "2^-8"
RndMeth "Nearest"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "FixPt Sum"
Ports [2, 1]
Position [215, 60, 255, 100]
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutDataType "sfrac(32)"
OutScaling "2^-2"
RndMeth "Nearest"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "From FixPt1"
Ports [1, 1]
Position [325, 60, 365, 100]
SourceBlock "fixpt_lib_4/Data Type/Gateway Out"
SourceType "Fixed-Point Gateway Out"
OutRealWorld "Real World Value"
OutBuiltInType "double"
RndMeth "Floor"
DoSatur off
Port {
PortNumber 1
Name "summed signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "From FixPt2"
Ports [1, 1]
Position [325, 140, 365, 180]
SourceBlock "fixpt_lib_4/Data Type/Gateway Out"
SourceType "Fixed-Point Gateway Out"
OutRealWorld "Real World Value"
OutBuiltInType "double"
RndMeth "Floor"
DoSatur off
Port {
PortNumber 1
Name "Muliplied signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [460, 107, 490, 138]
Location [1, 49, 1025, 739]
Open on
NumInputPorts "2"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "10"
YMin "-2.5~-1"
YMax "2~1"
SaveToWorkspace on
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave\n1 rad/sec"
Position [15, 145, 35, 165]
SineType "Time based"
SampleTime "1/1000"
}
Block {
BlockType Sin
Name "Sine Wave\n2 rad/sec"
Position [15, 50, 35, 70]
SineType "Time based"
Frequency "2"
SampleTime "1/1000"
}
Block {
BlockType Reference
Name "To FixPt1"
Ports [1, 1]
Position [85, 50, 125, 90]
SourceBlock "fixpt_lib_4/Data Type/Gateway In"
SourceType "Fixed-Point Gateway In"
InRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfrac(16)"
OutScaling "2^-7"
LockScale off
RndMeth "Nearest"
DoSatur on
}
Block {
BlockType Reference
Name "To FixPt2"
Ports [1, 1]
Position [85, 130, 125, 170]
SourceBlock "fixpt_lib_4/Data Type/Gateway In"
SourceType "Fixed-Point Gateway In"
InRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "sfrac(16)"
OutScaling "2^-6"
LockScale off
RndMeth "Floor"
DoSatur on
}
Line {
SrcBlock "Sine Wave\n1 rad/sec"
SrcPort 1
Points [30, 0]
DstBlock "To FixPt2"
DstPort 1
}
Line {
SrcBlock "Sine Wave\n2 rad/sec"
SrcPort 1
Points [0, 10]
DstBlock "To FixPt1"
DstPort 1
}
Line {
SrcBlock "To FixPt1"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "FixPt Sum"
DstPort 1
}
Branch {
DstBlock "FixPt Product"
DstPort 1
}
}
Line {
SrcBlock "To FixPt2"
SrcPort 1
Points [0, 5; 55, 0]
Branch {
Points [0, -65]
DstBlock "FixPt Sum"
DstPort 2
}
Branch {
Points [0, 10]
DstBlock "FixPt Product"
DstPort 2
}
}
Line {
Name "summed signal"
Labels [0, 0]
SrcBlock "From FixPt1"
SrcPort 1
Points [75, 0]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "FixPt Sum"
SrcPort 1
DstBlock "From FixPt1"
DstPort 1
}
Line {
Name "Muliplied signal"
Labels [0, 0]
SrcBlock "From FixPt2"
SrcPort 1
Points [75, 0]
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "FixPt Product"
SrcPort 1
Points [0, 5]
DstBlock "From FixPt2"
DstPort 1
}
Annotation {
Name "Example showing sum and multiplication of two s"
"ine signals"
Position [150, 16]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -