stbc_ofdm_tx2_rx1_cost_207_blockfading_grassman_a.mdl
来自「线形内插在MIMO OFDM上的实现,包括格拉斯曼域的仿真」· MDL 代码 · 共 2,194 行 · 第 1/5 页
MDL
2,194 行
outPathGains "off"
outDelay "off"
}
Block {
BlockType SubSystem
Name "OFDM Receiver 1"
Ports [1, 1]
Position [645, 94, 745, 136]
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 1"
Location [514, 377, 1223, 715]
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 "DataTag7"
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 [375, 60, 430, 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 [465, 73, 495, 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 [260, 94, 360, 136]
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 [215, 302, 713, 602]
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 [50, 108, 80, 122]
IconDisplay "Port number"
}
Block {
BlockType Selector
Name "Add Cyclic Prefix"
Ports [1, 1]
Position [320, 96, 360, 134]
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 [220, 100, 250, 130]
Gain "32"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [130, 99, 170, 131]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag8"
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 [425, 108, 455, 122]
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
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [160, 98, 190, 127]
ShowName off
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [15, 0; 0, 50]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Bernoulli Binary\nGenerator1"
SrcPort 1
Points [15, 0; 0, -50]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "OFDM Transmitter 1"
DstPort 1
}
Line {
SrcBlock "OFDM Transmitter 1"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel 1"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel 1"
SrcPort 1
DstBlock "OFDM Receiver 1"
DstPort 1
}
Line {
SrcBlock "OFDM Receiver 1"
SrcPort 1
DstBlock "Goto"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "CE for H_2"
Ports []
Position [118, 16, 165, 59]
ShowName off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('CE\\nH_13')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "CE for H_2"
Location [2, 82, 1014, 704]
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 Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [65, 53, 145, 97]
ShowName off
DialogController "commDDGCreate"
DialogControllerArgs "DataTag9"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
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"
P "0"
seed "61"
Ts "1e-4/ (1024)"
frameBased "on"
sampPerFrame "1024"
orient "off"
outDataType "double"
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator1"
Ports [0, 1]
Position [65, 168, 145, 212]
ShowName off
DialogController "commDDGCreate"
DialogControllerArgs "DataTag10"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
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"
P "1"
seed "73"
Ts "1e-4/ (1024)"
frameBased "on"
sampPerFrame "1024"
orient "off"
outDataType "double"
}
Block {
BlockType Goto
Name "Goto"
Position [1000, 120, 1040, 150]
GotoTag "H_13"
TagVisibility "global"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel 2"
Ports [1, 1]
Position [530, 106, 625, 164]
SourceBlock "commchan3/Multipath Rayleigh\nFading Channe"
"l"
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 "9"
enableProbe "0"
openVisAtStart "off"
outPathGains "off"
outDelay "off"
}
Block {
BlockType SubSystem
Name "OFDM Receiver 1"
Ports [1, 1]
Position [685, 114, 785, 156]
ShowName off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?