📄 stbc.mdl
字号:
SrcPort 1
Points [45, 0; 0, 45]
DstBlock "Add3"
DstPort 1
}
Line {
SrcBlock "Mean"
SrcPort 1
DstBlock "Mean1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [50, 0; 0, -55]
DstBlock "Add3"
DstPort 2
}
Line {
SrcBlock "Add3"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Mean"
DstPort 1
}
Line {
SrcBlock "Mean1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [500, 108, 585, 152]
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 "40"
pathDelays "[0]"
avgPathGaindB "[0]"
normalizePathGains on
seed "73117"
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel1"
Ports [1, 1]
Position [500, 237, 585, 283]
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 "40"
pathDelays "[0]"
avgPathGaindB "[0]"
normalizePathGains on
seed "17893"
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [110, 178, 190, 222]
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer 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"
mul "2"
seed "871234"
Ts "1e-6"
frameBased on
sampPerFrame "2"
orient off
outDataType "double"
}
Block {
BlockType SubSystem
Name "STBCdecoder"
Ports [1, 2]
Position [835, 179, 895, 221]
BackgroundColor "lightBlue"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "STBCdecoder"
Location [2, 82, 1270, 753]
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, 98, 65, 112]
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [565, 362, 595, 393]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [310, 97, 340, 128]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [310, 152, 340, 183]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant2"
Position [660, 325, 690, 355]
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [750, 357, 780, 388]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [375, 100, 405, 130]
Gain "1/2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [540, 265, 570, 295]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain3"
Position [375, 155, 405, 185]
Gain "1/2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [465, 325, 495, 355]
Operator "magnitude^2"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [275, 410, 305, 440]
Orientation "down"
NamePlacement "alternate"
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction3"
Ports [1, 1]
Position [465, 265, 495, 295]
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction4"
Ports [1, 1]
Position [475, 200, 505, 230]
Orientation "down"
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction5"
Ports [1, 1]
Position [465, 400, 495, 430]
Operator "magnitude^2"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenate3"
Ports [2, 1]
Position [380, 488, 425, 552]
Mode "Vertical matrix concatenation"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenate5"
Ports [2, 1]
Position [585, 99, 635, 161]
Mode "Horizontal matrix concatenation"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenate6"
Ports [2, 1]
Position [590, 228, 645, 297]
Mode "Horizontal matrix concatenation"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenate7"
Ports [2, 1]
Position [715, 164, 765, 226]
Mode "Vertical matrix concatenation"
}
Block {
BlockType Product
Name "Matrix Multiply1"
Ports [2, 1]
Position [560, 489, 615, 531]
Multiplication "Matrix(*)"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Matrix Multiply2"
Ports [2, 1]
Position [869, 390, 911, 445]
Orientation "down"
NamePlacement "alternate"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Transpose1"
Ports [1, 1]
Position [800, 175, 855, 215]
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
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"
Hermitian on
overflowFlag off
}
Block {
BlockType Reference
Name "Transpose2"
Ports [1, 1]
Position [720, 110, 775, 150]
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
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"
Hermitian off
overflowFlag off
}
Block {
BlockType Reference
Name "p1"
Ports [1, 1]
Position [150, 83, 230, 127]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "[1 0 0 0].'"
}
Block {
BlockType Reference
Name "p2"
Ports [1, 1]
Position [150, 153, 230, 197]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "[0 1 0 0].' "
}
Block {
BlockType Reference
Name "p3"
Ports [1, 1]
Position [150, 228, 230, 272]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "[0 0 1 0].'"
}
Block {
BlockType Reference
Name "p4"
Ports [1, 1]
Position [150, 298, 230, 342]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "[0 0 0 1].'"
}
Block {
BlockType Outport
Name "Out1"
Position [800, 123, 830, 137]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [750, 503, 780, 517]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Labels [2, 0]
SrcBlock "p4"
SrcPort 1
Points [55, 0]
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "p3"
SrcPort 1
Points [110, 0; 0, 255]
DstBlock "Matrix\nConcatenate3"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenate5"
SrcPort 1
Points [40, 0]
Branch {
Points [0, 50]
DstBlock "Matrix\nConcatenate7"
DstPort 1
}
Branch {
DstBlock "Transpose2"
DstPort 1
}
}
Line {
SrcBlock "Matrix\nConcatenate6"
SrcPort 1
Points [30, 0; 0, -55]
DstBlock "Matrix\nConcatenate7"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenate7"
SrcPort 1
DstBlock "Transpose1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Matrix\nConcatenate6"
DstPort 2
}
Line {
SrcBlock "Math\nFunction4"
SrcPort 1
Points [0, 10]
DstBlock "Matrix\nConcatenate6"
DstPort 1
}
Line {
SrcBlock "Math\nFunction3"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenate3"
SrcPort 1
DstBlock "Matrix Multiply1"
DstPort 2
}
Line {
SrcBlock "Transpose1"
SrcPort 1
Points [40, 0]
DstBlock "Matrix Multiply2"
DstPort 2
}
Line {
SrcBlock "Matrix Multiply2"
SrcPort 1
Points [0, 20; -345, 0]
DstBlock "Matrix Multiply1"
DstPort 1
}
Line {
SrcBlock "Matrix Multiply1"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "p1"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Add1"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Add2"
DstPort 1
}
}
Line {
SrcBlock "p2"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Add2"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -