📄 stbc_ofdm_tx2_rx1_cost_207_2007_01_09.mdl
字号:
V "0"
ic "1"
}
Block {
BlockType Goto
Name "Goto"
Position [1015, 120, 1055, 150]
GotoTag "H_12"
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 "19"
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
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 2"
Ports [1, 1]
Position [365, 114, 465, 156]
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, 931, 703]
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 [195, 118, 225, 147]
ShowName off
}
Block {
BlockType Reference
Name "Submatrix"
Ports [1, 1]
Position [930, 115, 980, 155]
ShowName off
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "Index"
RowStartIndex "1"
RowEndMode "Index"
RowEndIndex "1024"
ColSpan "All columns"
ColStartMode "First"
ColStartIndex "1"
ColEndMode "Last"
ColEndIndex "1"
}
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 "Buffer"
DstPort 1
}
Line {
SrcBlock "OFDM Transmitter 2"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel 2"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel 2"
SrcPort 1
DstBlock "OFDM Receiver 1"
DstPort 1
}
Line {
SrcBlock "OFDM Receiver 1"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "OFDM Transmitter 2"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Submatrix"
DstPort 1
}
Line {
SrcBlock "Submatrix"
SrcPort 1
DstBlock "Goto"
DstPort 1
}
}
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [275, 479, 355, 541]
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [145, 482, 220, 533]
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "4096"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [695, 55, 725, 85]
ShowName off
Operator "magnitude^2"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [695, 145, 725, 175]
ShowName off
Operator "magnitude^2"
}
Block {
BlockType Reference
Name "Mean"
Ports [1, 1]
Position [840, 95, 895, 135]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag9"
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 "Multipath Rayleigh\nFading Channel 1"
Ports [1, 1]
Position [665, 231, 760, 289]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -