📄 mud.mdl
字号:
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 Reference
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
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 ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
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 "MUD"
Location [202, 119, 941, 659]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [180, 24, 260, 66]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "615"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "SNR"
EsNodB "10"
SNRdB "SNR"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [180, 114, 260, 156]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "654"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "SNR"
EsNodB "10"
SNRdB "SNR"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "AWGN\nChannel2"
Ports [1, 1]
Position [185, 189, 265, 231]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "284"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "SNR"
EsNodB "10"
SNRdB "SNR"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "AWGN\nChannel3"
Ports [1, 1]
Position [185, 259, 265, 301]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "3654"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "SNR"
EsNodB "10"
SNRdB "SNR"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "AWGN\nChannel4"
Ports [1, 1]
Position [185, 344, 265, 386]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "2548"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "SNR"
EsNodB "10"
SNRdB "SNR"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "AWGN\nChannel5"
Ports [1, 1]
Position [190, 434, 270, 476]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "684"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "SNR"
EsNodB "10"
SNRdB "SNR"
bitsPerSym "1"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Gain
Name "Gain"
Position [300, 120, 330, 150]
Gain "20"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [310, 195, 340, 225]
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [310, 265, 340, 295]
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain3"
Position [315, 350, 345, 380]
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain4"
Position [310, 440, 340, 470]
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum"
Ports [6, 1]
Position [445, 105, 515, 165]
ShowName off
IconShape "round"
Inputs "|++++++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType ToWorkspace
Name "r"
Position [555, 121, 585, 149]
VariableName "r"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "r2"
Position [120, 151, 150, 179]
VariableName "s2"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "r3"
Position [130, 226, 160, 254]
VariableName "s3"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "r4"
Position [135, 301, 165, 329]
VariableName "s4"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "r5"
Position [135, 386, 165, 414]
VariableName "s5"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "r6"
Position [140, 486, 170, 514]
VariableName "s6"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "s1"
Position [145, 56, 175, 84]
VariableName "s1"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType SubSystem
Name "user1"
Ports [0, 2]
Position [50, 36, 90, 74]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "user1"
Location [244, 219, 706, 419]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [25, 23, 105, 67]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "3545"
Ts "1"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Constant
Name "Constant1"
Position [185, 145, 215, 175]
}
Block {
BlockType Reference
Name "Gold Sequence\nGenerator"
Ports [0, 1]
Position [25, 108, 105, 152]
SourceBlock "commseqgen2/Gold Sequence\nGenerator"
SourceType "Gold Sequence Generator"
ShowPortLabels on
genPoly1 "[1 0 0 1 0 1]"
iniState1 "[0 0 0 0 1]"
genPoly2 "[1 1 1 1 0 1]"
iniState2 "[0 0 0 0 1]"
index "0"
shift "0"
ts "1/31"
frameBased off
sampPerFrame "1"
reset off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [305, 62, 335, 93]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [250, 117, 280, 148]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [145, 23, 185, 67]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem"
Location [509, 143, 764, 278]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 28, 55, 42]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [145, 37, 175, 68]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant"
Position [25, 70, 55, 100]
Value "2"
}
Block {
BlockType Constant
Name "Constant1"
Position [90, 80, 120, 110]
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [80, 27, 110, 58]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [200, 48, 230, 62]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -35]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [0, -35]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -