📄 ds_cdma2.mdl
字号:
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 TriggerPort
TriggerType "rising"
StatesWhenEnabling "inherit"
ShowOutputPort off
OutputDataType "auto"
SampleTimeType "triggered"
SampleTime "1"
ZeroCross on
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "DS_CDMA"
Location [2, 82, 1270, 753]
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 [620, 159, 700, 201]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "67"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "10"
EsNodB "10"
SNRdB "SNR"
bitsPerSym "1"
Ps "1"
Tsym "1e-4/32"
variance "1"
}
Block {
BlockType Reference
Name "BPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [925, 86, 1000, 134]
SourceBlock "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
SourceType "BPSK Demodulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nDemodulator\nBaseband1"
Ports [1, 1]
Position [935, 346, 1010, 394]
SourceBlock "commdigbbndpm2/BPSK\nDemodulator\nBaseband"
SourceType "BPSK Demodulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband"
Ports [1, 1]
Position [200, 46, 275, 94]
SourceBlock "commdigbbndpm2/BPSK\nModulator\nBaseband"
SourceType "BPSK Modulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband1"
Ports [1, 1]
Position [210, 251, 285, 299]
SourceBlock "commdigbbndpm2/BPSK\nModulator\nBaseband"
SourceType "BPSK Modulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "BPSK\nModulator\nBaseband2"
Ports [1, 1]
Position [215, 146, 290, 194]
SourceBlock "commdigbbndpm2/BPSK\nModulator\nBaseband"
SourceType "BPSK Modulator Baseband"
ShowPortLabels on
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "Delay1"
Ports [1, 1]
Position [535, 259, 585, 291]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "32"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Delay3"
Ports [1, 1]
Position [510, 55, 565, 85]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "32"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType SubSystem
Name "EGC"
Ports [3, 1]
Position [810, 312, 895, 428]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "EGC"
Location [2, 82, 1270, 753]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [80, 28, 110, 42]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [80, 83, 110, 97]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In3"
Position [85, 148, 115, 162]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle1"
Ports [1, 1]
Position [675, 90, 705, 120]
Output "Magnitude"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle2"
Ports [1, 1]
Position [675, 465, 705, 495]
Output "Magnitude"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle3"
Ports [1, 1]
Position [690, 255, 720, 285]
Output "Magnitude"
}
Block {
BlockType Reference
Name "Delay1"
Ports [1, 1]
Position [150, 74, 200, 106]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "16"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Delay2"
Ports [1, 1]
Position [250, 240, 305, 280]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "8"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Delay3"
Ports [1, 1]
Position [255, 70, 310, 110]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "16"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Product
Name "Divide1"
Ports [2, 1]
Position [730, 75, 770, 115]
Inputs "*/"
InputSameDT off
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide2"
Ports [2, 1]
Position [740, 450, 780, 490]
Inputs "*/"
InputSameDT off
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide3"
Ports [2, 1]
Position [745, 240, 785, 280]
Inputs "*/"
InputSameDT off
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [515, 135, 545, 165]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [540, 295, 565, 325]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction2"
Ports [1, 1]
Position [500, 510, 530, 540]
Operator "conj"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [400, 26, 445, 59]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [385, 131, 430, 164]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [570, 86, 615, 119]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [590, 251, 635, 284]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [395, 201, 440, 234]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product6"
Ports [2, 1]
Position [395, 291, 440, 324]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product7"
Ports [2, 1]
Position [565, 461, 610, 494]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product8"
Ports [2, 1]
Position [370, 441, 415, 474]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product9"
Ports [2, 1]
Position [365, 506, 410, 539]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [965, 189, 1035, 301]
ShowName off
Inputs "|+++"
InputSameDT off
}
Block {
BlockType Sum
Name "Sum of\nElements"
Ports [1, 1]
Position [465, 25, 505, 65]
Inputs "+"
InputSameDT off
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum of\nElements1"
Ports [1, 1]
Position [460, 130, 500, 170]
Inputs "+"
InputSameDT off
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum of\nElements2"
Ports [1, 1]
Position [475, 200, 515, 240]
Inputs "+"
InputSameDT off
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum of\nElements3"
Ports [1, 1]
Position [480, 290, 520, 330]
Inputs "+"
InputSameDT off
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum of\nElements4"
Ports [1, 1]
Position [445, 440, 485, 480]
Inputs "+"
InputSameDT off
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum of\nElements5"
Ports [1, 1]
Position [440, 505, 480, 545]
Inputs "+"
InputSameDT off
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [1080, 238, 1110, 252]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Delay1"
DstPort 1
}
Line {
SrcBlock "Sum of\nElements1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Sum of\nElements1"
DstPort 1
}
Line {
SrcBlock "Sum of\nElements"
SrcPort 1
Points [25, 0; 0, 50]
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -