📄 t4r4_16qam.mdl
字号:
Position [605, 265, 690, 345]
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation2"
Ports [2, 1]
Position [415, 207, 490, 258]
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType FrameConversion
Name "Frame Conversion1"
Ports [1, 1]
Position [435, 440, 490, 480]
Orientation "left"
}
Block {
BlockType FrameConversion
Name "Frame Conversion3"
Ports [1, 1]
Position [1135, 65, 1190, 105]
NamePlacement "alternate"
}
Block {
BlockType From
Name "From"
Position [1225, 536, 1265, 564]
Orientation "left"
CloseFcn "tagdialog Close"
GotoTag "H"
TagVisibility "global"
}
Block {
BlockType Gain
Name "Gain"
Position [390, 95, 420, 125]
Gain "sqrt(1/10)"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Goto
Name "Goto"
Position [1040, 135, 1080, 165]
GotoTag "H"
TagVisibility "global"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenate"
Ports [2, 1]
Position [960, 439, 1015, 481]
Orientation "left"
Mode "Multidimensional array"
}
Block {
BlockType Reference
Name "Rectangular QAM\nModulator\nBaseband"
Ports [1, 1]
Position [260, 84, 335, 136]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "commdigbbndam3/Rectangular QAM\nModulator\nBaseband"
SourceType "Rectangular QAM Modulator Baseband"
M "16"
InType "Bit"
Enc "Binary"
Mapping "[0:15]"
PowType "Min. distance between symbols"
MinDist "2"
AvgPow "1"
PeakPow "1"
Ph "0"
outDtype "double"
outWordLen "16"
outUDDataType "sfix(16)"
outFracLenMode "Best precision"
outFracLen "15"
}
Block {
BlockType Reshape
Name "Reshape"
Position [925, 133, 975, 167]
OutputDimensionality "Customize"
OutputDimensions "[4 4]"
}
Block {
BlockType Reshape
Name "Reshape1"
Position [1095, 533, 1145, 567]
Orientation "left"
OutputDimensionality "Customize"
OutputDimensions "[16 1]"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [440, 286, 480, 324]
Orientation "left"
InputPortWidth "3"
IndexOptions "Index vector (dialog)"
Indices "1"
OutputSizes "1"
}
Block {
BlockType Reference
Name "Submatrix"
Ports [1, 1]
Position [720, 65, 770, 105]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "All rows"
RowStartMode "First"
RowStartIndex "1"
RowEndMode "Last"
RowEndIndex "1"
ColSpan "Range of columns"
ColStartMode "Index"
ColStartIndex "1"
ColEndMode "Index"
ColEndIndex "4"
}
Block {
BlockType Reference
Name "Submatrix1"
Ports [1, 1]
Position [720, 130, 770, 170]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "All rows"
RowStartMode "First"
RowStartIndex "1"
RowEndMode "Last"
RowEndIndex "1"
ColSpan "Range of columns"
ColStartMode "Index"
ColStartIndex "5"
ColEndMode "Index"
ColEndIndex "20"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [460, 25, 520, 55]
VariableName "simout"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [360, 290, 420, 320]
Orientation "left"
NamePlacement "alternate"
VariableName "BER"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Transpose"
Ports [1, 1]
Position [925, 65, 980, 105]
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
ShowPortLabels "FromPortIcon"
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 "Transpose1"
Ports [1, 1]
Position [790, 440, 845, 480]
Orientation "left"
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
ShowPortLabels "FromPortIcon"
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 MATLABFcn
Name "channel"
Ports [1, 1]
Position [505, 95, 565, 125]
MATLABFcn "channel"
OutputDimensions "[1 20]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "select&LLR"
Ports [1, 1]
Position [640, 445, 700, 475]
Orientation "left"
MATLABFcn "chase_function"
OutputDimensions "[16 1]"
OutputSignalType "real"
Output1D off
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 110]
DstBlock "Error Rate\nCalculation2"
DstPort 1
}
Branch {
DstBlock "Rectangular QAM\nModulator\nBaseband"
DstPort 1
}
}
Line {
SrcBlock "Rectangular QAM\nModulator\nBaseband"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "channel"
SrcPort 1
Points [135, 0]
Branch {
DstBlock "Submatrix"
DstPort 1
}
Branch {
DstBlock "Submatrix1"
DstPort 1
}
}
Line {
SrcBlock "Submatrix"
SrcPort 1
DstBlock "Transpose"
DstPort 1
}
Line {
SrcBlock "Submatrix1"
SrcPort 1
DstBlock "Reshape"
DstPort 1
}
Line {
SrcBlock "Transpose"
SrcPort 1
DstBlock "Frame Conversion3"
DstPort 1
}
Line {
SrcBlock "Reshape"
SrcPort 1
DstBlock "Goto"
DstPort 1
}
Line {
SrcBlock "Reshape1"
SrcPort 1
Points [-40, 0; 0, -80]
DstBlock "Matrix\nConcatenate"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "channel"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "Reshape1"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenate"
SrcPort 1
DstBlock "Transpose1"
DstPort 1
}
Line {
SrcBlock "Transpose1"
SrcPort 1
DstBlock "select&LLR"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation2"
SrcPort 1
Points [10, 0; 0, 70; -10, 0]
Branch {
DstBlock "Display1"
DstPort 1
}
Branch {
DstBlock "Selector1"
DstPort 1
}
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
Line {
SrcBlock "Frame Conversion3"
SrcPort 1
Points [100, 0]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 140]
DstBlock "Matrix\nConcatenate"
DstPort 1
}
Line {
SrcBlock "select&LLR"
SrcPort 1
DstBlock "Frame Conversion1"
DstPort 1
}
Line {
SrcBlock "Frame Conversion1"
SrcPort 1
Points [-190, 0; 0, -215]
DstBlock "Error Rate\nCalculation2"
DstPort 2
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . < 8 ( 0 % \" $ ! 0 . 0 8 ( ! % \" $ - 0 0 #0 %)104U-;V1U;&%T;W( "
}
DataRecord {
Tag DataTag0
Data " %)30 . > 8 ( 0 % \" $ ! 0 . 2 8 ( ! % \" $ 2 0 0 $@ $)E<FYO=6QL:4)I;F%R>4=E;@ "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -