📄 mc_cdma_rayleigh_kuirs.mdl
字号:
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType SubSystem
Name "OFDM & Add CP"
Ports [2, 1]
Position [615, 14, 715, 136]
BackgroundColor "cyan"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM & Add CP"
Location [442, 341, 1109, 924]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 13, 50, 27]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [15, 168, 45, 182]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [375, 79, 415, 111]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Complex"
additionalParams off
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Math
Name "Math\nFunction2"
Ports [1, 1]
Position [75, 160, 105, 190]
Operator "transpose"
}
Block {
BlockType Math
Name "Math\nFunction3"
Ports [1, 1]
Position [545, 80, 575, 110]
Operator "transpose"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [3, 1]
Position [280, 40, 335, 130]
FontSize 10
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Horizontal"
}
Block {
BlockType Selector
Name "add cp"
Ports [1, 1]
Position [455, 76, 505, 114]
InputType "Matrix"
Elements "[1 3]"
Rows "[1:32,1:128]"
Columns "-1"
InputPortWidth "3"
}
Block {
BlockType Outport
Name "Out1"
Position [625, 88, 655, 102]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "add cp"
DstPort 1
}
Line {
SrcBlock "add cp"
SrcPort 1
DstBlock "Math\nFunction3"
DstPort 1
}
Line {
SrcBlock "Math\nFunction3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Math\nFunction2"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [90, 0; 0, 60]
Branch {
Points [120, 0]
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Branch {
Points [0, 5]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
Points [0, 10]
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Math\nFunction2"
SrcPort 1
Points "[5, 0; 0, 45; 10, 0; 0, 25; 315, 0; 0, -80;"
" -175, 0]"
DstBlock "Matrix\nConcatenation"
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "QPSK\nSpread"
Ports [2, 1]
Position [445, 66, 575, 144]
BackgroundColor "green"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "QPSK\nSpread"
Location [28, 565, 720, 880]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [50, 328, 80, 342]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [55, 403, 85, 417]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain1"
Position [285, 320, 315, 350]
Gain "1/sqrt(2)"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [150, 395, 180, 425]
Operator "transpose"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [420, 309, 475, 411]
Multiplication "Matrix(*)"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [140, 311, 215, 359]
FontSize 10
SourceBlock "commdigbbndpm3/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels on
InType "Bit"
Enc "Gray"
Ph "0"
outDtype "double"
}
Block {
BlockType Outport
Name "Out1"
Position [565, 353, 595, 367]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [0, 0]
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [145, 0; 0, -25]
DstBlock "Product"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "Reshape"
Ports [1, 1]
Position [871, 85, 969, 120]
Orientation "down"
NamePlacement "alternate"
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[160*10,1]"
}
Block {
BlockType Reference
Name "Reshape1"
Ports [1, 1]
Position [865, 260, 975, 295]
Orientation "down"
NamePlacement "alternate"
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[10,160]"
}
Block {
BlockType SubSystem
Name "Subsystem7"
Ports [3, 1]
Position [590, 255, 690, 395]
Orientation "left"
ForegroundColor "red"
BackgroundColor "yellow"
FontSize 10
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('channel estimate\\nequilization')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem7"
Location [123, 104, 1276, 670]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "r_sig"
Position [15, 88, 45, 102]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "r_pn "
Position [20, 178, 50, 192]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "t_pn"
Position [15, 238, 45, 252]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [670, 227, 720, 263]
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [400, 285, 430, 315]
Operator "magnitude^2"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [520, 210, 540, 240]
ShowName off
Operator "conj"
OutputSignalType "complex"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [140, 234, 195, 276]
FontSize 10
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Mean"
Ports [1, 1]
Position [440, 199, 480, 251]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
FontSize 10
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run off
reset_popup "None"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Mean1"
Ports [1, 1]
Position [480, 272, 520, 328]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag3"
FontSize 10
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run off
reset_popup "Non-zero sample"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [255, 152, 295, 288]
Inputs "*/"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [830, 98, 850, 162]
Inputs "**"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [600, 207, 635, 278]
Inputs "*/"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Reference
Name "Repeat"
Ports [1, 1]
Position [723, 170, 777, 200]
Orientation "up"
ShowName off
SourceBlock "dspsigops/Repeat"
SourceType "Repeat"
N "8"
ic "0"
mode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Transpose1"
Ports [1, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -