📄 convolution.mdl
字号:
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Reference
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "convolution"
Location [2, 72, 1278, 748]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Add FQI"
Ports [1, 1]
Position [280, 181, 355, 229]
SourceBlock "commcrc2/General CRC\nGenerator"
SourceType "General CRC Generator"
genPoly "[12 11 10 9 8 4 1 0];"
iniStates "[0]"
numChecksums "1"
}
Block {
BlockType Display
Name "BER Measurements2"
Ports [1]
Position [390, 514, 480, 576]
Orientation "left"
NamePlacement "alternate"
ShowName off
Decimation "1"
}
Block {
BlockType Reference
Name "Binary Data\nSource"
Ports [0, 1]
Position [155, 180, 245, 230]
ShowName off
AttributesFormatString "Samples per Frame = %<sampPerFrame>\\nSample Ti"
"me = %<Ts>"
LinkData {
BlockName "DSP Constant"
DialogParameters {
Value "[P(:,ones(1,sampPerFrame))']"
discreteOutput "Frame-based"
sampTime "Ts"
framePeriod "inf"
dataType "double"
InterpretAs1D "off"
Ts "inf"
FramebasedOutput "on"
}
BlockName "Relational Operator"
DialogParameters {
LogicOutDataTypeMode "Specify via dialog"
LogicDataType "float('double')"
}
BlockName "Reshape"
DialogParameters {
OutputDimensionality "Customize"
}
}
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "61"
Ts "20/1000/172"
frameBased on
sampPerFrame "172"
orient off
}
Block {
BlockType Reference
Name "Binary Symmetric\nChannel"
Ports [1, 2]
Position [845, 184, 925, 226]
FontSize 10
SourceBlock "commchan2/Binary Symmetric\nChannel"
SourceType "Binary Symmetric Channel"
ShowPortLabels on
P "0.05"
s "71"
E on
}
Block {
BlockType Reference
Name "Convolutional\nEncoder"
Ports [1, 1]
Position [575, 175, 695, 235]
SourceBlock "commcnvcod2/Convolutional\nEncoder"
SourceType "Convolutional Encoder"
trellis "poly2trellis(9,[765 671 513 473])"
reset "On each frame"
}
Block {
BlockType Reference
Name "Derepeat"
Ports [1, 1]
Position [650, 373, 730, 417]
Orientation "left"
SourceBlock "commsequence2/Derepeat"
SourceType "Derepeat"
N "1"
ic "0"
mode "Maintain input frame rate"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [790, 80, 880, 110]
Orientation "left"
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [790, 460, 880, 490]
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [650, 85, 740, 115]
Orientation "left"
Decimation "1"
}
Block {
BlockType Display
Name "Display3"
Ports [1]
Position [795, 505, 885, 535]
Orientation "left"
Decimation "1"
}
Block {
BlockType Display
Name "Display4"
Ports [1]
Position [455, 85, 545, 115]
Orientation "left"
Decimation "1"
}
Block {
BlockType Display
Name "Display5"
Ports [1]
Position [620, 295, 710, 325]
NamePlacement "alternate"
Decimation "1"
}
Block {
BlockType Reference
Name "Encoder\nTail Bits"
Ports [1, 1]
Position [490, 187, 535, 223]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "384"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [547, 415, 603, 490]
Orientation "down"
NamePlacement "alternate"
ShowName off
AttributesFormatString "Received Delay = %<N>"
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 "1e10"
}
Block {
BlockType Reference
Name "Repeat"
Ports [1, 1]
Position [725, 183, 805, 227]
SourceBlock "dspsigops/Repeat"
SourceType "Repeat"
N "1"
ic "0"
mode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Viterbi Decoder"
Ports [1, 1]
Position [825, 365, 945, 425]
Orientation "left"
SourceBlock "commcnvcod2/Viterbi Decoder"
SourceType "Viterbi Decoder"
trellis "poly2trellis(9,[765 671 513 473])"
dectype "Hard Decision"
nsdecb "16"
tbdepth "100"
opmode "Terminated"
reset off
}
Line {
SrcBlock "Convolutional\nEncoder"
SrcPort 1
DstBlock "Repeat"
DstPort 1
}
Line {
SrcBlock "Repeat"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -45; -55, 0; 0, -60]
DstBlock "Display2"
DstPort 1
}
Branch {
DstBlock "Binary Symmetric\nChannel"
DstPort 1
}
}
Line {
SrcBlock "Binary Data\nSource"
SrcPort 1
DstBlock "Add FQI"
DstPort 1
}
Line {
SrcBlock "Add FQI"
SrcPort 1
DstBlock "Encoder\nTail Bits"
DstPort 1
}
Line {
SrcBlock "Encoder\nTail Bits"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Convolutional\nEncoder"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Branch {
DstBlock "Display4"
DstPort 1
}
}
}
Line {
SrcBlock "Viterbi Decoder"
SrcPort 1
Points [-50, 0]
Branch {
DstBlock "Derepeat"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Display1"
DstPort 1
}
}
Line {
SrcBlock "Binary Symmetric\nChannel"
SrcPort 1
Points [0, 10; 40, 0]
Branch {
Points [0, -110]
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, 185]
Branch {
Points [0, 5]
DstBlock "Viterbi Decoder"
DstPort 1
}
Branch {
Points [0, 130]
DstBlock "Display3"
DstPort 1
}
}
}
Line {
SrcBlock "Derepeat"
SrcPort 1
Points [-55, 0]
Branch {
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
Points [0, -85]
DstBlock "Display5"
DstPort 1
}
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
Points [0, 50]
DstBlock "BER Measurements2"
DstPort 1
}
Annotation {
Position [902, 236]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -