stbc_ofdm_tx2_rx1_cost_207_2007_01_09.mdl
来自「线形内插在MIMO OFDM上的实现,包括格拉斯曼域的仿真」· MDL 代码 · 共 2,276 行 · 第 1/5 页
MDL
2,276 行
SourceBlock "commchan3/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
maxDopplerShift "0.01"
pathDelays "[0, 0.2e-6, 0.6e-6, 1.6e-6, 2.4e-6, 5.0e-6]"
avgPathGaindB "[-3, 0, -2, -6, -8, -10]"
normalizePathGains on
seed "29"
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel 2"
Ports [1, 1]
Position [665, 341, 760, 399]
SourceBlock "commchan3/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
maxDopplerShift "0.01"
pathDelays "[0, 0.2e-6, 0.6e-6, 1.6e-6, 2.4e-6, 5.0e-6]"
avgPathGaindB "[-3, 0, -2, -6, -8, -10]"
normalizePathGains on
seed "19"
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType SubSystem
Name "OFDM Receiver"
Ports [1, 1]
Position [795, 559, 895, 601]
Orientation "left"
ShowName off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('OFDM Receiver')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM Receiver"
Location [323, 538, 1032, 876]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [35, 73, 65, 87]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [210, 63, 250, 97]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag10"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder "off"
additionalParams "off"
SkipNorm "on"
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 FrameConversion
Name "Frame Conversion"
Position [380, 60, 435, 100]
OutFrame "Frame based"
}
Block {
BlockType Gain
Name "Gain"
Position [295, 60, 345, 100]
Gain "1 / 32"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Selector
Name "Remove Cyclic Prefix"
Ports [1, 1]
Position [120, 61, 160, 99]
InputType "Vector"
ElementSrc "Internal"
Elements "[129: 1152]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "1152"
IndexIsStartValue off
}
Block {
BlockType Outport
Name "Out1"
Position [475, 73, 505, 87]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Remove Cyclic Prefix"
DstPort 1
}
Line {
SrcBlock "Remove Cyclic Prefix"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Frame Conversion"
DstPort 1
}
Line {
SrcBlock "Frame Conversion"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "OFDM Transmitter 1"
Ports [1, 1]
Position [525, 239, 625, 281]
ShowName off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('OFDM Transmitter')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM Transmitter 1"
Location [356, 484, 912, 673]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [35, 83, 65, 97]
IconDisplay "Port number"
}
Block {
BlockType Selector
Name "Add Cyclic Prefix"
Ports [1, 1]
Position [290, 71, 330, 109]
InputType "Vector"
ElementSrc "Internal"
Elements "[897:1024, 1:1024]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "1024"
IndexIsStartValue off
}
Block {
BlockType Gain
Name "Gain"
Position [205, 75, 235, 105]
Gain "32"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [115, 74, 155, 106]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag11"
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 Outport
Name "Out1"
Position [385, 83, 415, 97]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Add Cyclic Prefix"
DstPort 1
}
Line {
SrcBlock "Add Cyclic Prefix"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "OFDM Transmitter 2"
Ports [1, 1]
Position [525, 349, 625, 391]
ShowName off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('OFDM Transmitter')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM Transmitter 2"
Location [433, 403, 936, 585]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [35, 68, 65, 82]
IconDisplay "Port number"
}
Block {
BlockType Selector
Name "Add Cyclic Prefix"
Ports [1, 1]
Position [290, 56, 330, 94]
InputType "Vector"
ElementSrc "Internal"
Elements "[897:1024, 1:1024]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "1024"
IndexIsStartValue off
}
Block {
BlockType Gain
Name "Gain"
Position [205, 60, 235, 90]
Gain "32"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [115, 59, 155, 91]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag12"
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 Outport
Name "Out1"
Position [385, 68, 415, 82]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Add Cyclic Prefix"
DstPort 1
}
Line {
SrcBlock "Add Cyclic Prefix"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "QPSK\nDemodulator\nBaseband1"
Ports [1, 1]
Position [280, 620, 355, 670]
Orientation "left"
NamePlacement "alternate"
ShowName off
DialogController "commDDGCreate"
DialogControllerArgs "DataTag13"
SourceBlock "commdigbbndpm3/QPSK\nDemodulator\nBaseband"
SourceType "QPSK Demodulator Baseband"
Ph "pi/4"
Dec "Binary"
OutType "Bit"
DecType "Hard decision"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?