📄 convcode_unquantized_f.mdl
字号:
BackgroundColor "[1.000000, 0.501961, 0.250980]"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "rcv_bits"
}
Block {
BlockType Goto
Name "Goto"
Position [175, 255, 240, 275]
BackgroundColor "yellow"
ShowName off
GotoTag "xmit_bits"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto1"
Position [945, 206, 1015, 224]
BackgroundColor "[1.000000, 0.501961, 0.250980]"
ShowName off
GotoTag "rcv_bits"
TagVisibility "local"
}
Block {
BlockType Reference
Name "M-PSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [565, 190, 640, 240]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "commdigbbndpm3/M-PSK\nDemodulator\nBaseband"
SourceType "M-PSK Demodulator Baseband"
M "M"
Ph "0"
Dec "Binary"
Mapping "[0:7]"
OutType "Bit"
DecType "Log-likelihood ratio"
VarSource "Dialog"
Variance "(1*log2(M)*Ts)/(Ts/2*10^(EbNo/10))"
outDtype1 "Inherit via internal rule"
outDtype2 "Inherit via internal rule"
derotateFactorDTMode "Same word length as input"
derotateFactorWordLen "16"
}
Block {
BlockType Reference
Name "M-PSK\nModulator\nBaseband"
Ports [1, 1]
Position [295, 189, 370, 241]
NamePlacement "alternate"
DialogController "commDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "commdigbbndpm3/M-PSK\nModulator\nBaseband"
SourceType "M-PSK Modulator Baseband"
M "M"
InType "Bit"
Enc "Binary"
Mapping "[0:7]"
Ph "0"
outDtype "double"
outWordLen "16"
outUDDataType "sfix(16)"
outFracLenMode "Best precision"
outFracLen "15"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [605, 330, 665, 360]
NamePlacement "alternate"
VariableName "BER"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Reference
Name "Viterbi Decoder"
Ports [1, 1]
Position [705, 187, 790, 243]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "commcnvcod2/Viterbi Decoder"
SourceType "Viterbi Decoder"
trellis "poly2trellis(7, [171 133])"
isPunctured off
punctureVector "[1; 1; 0; 1; 0; 1]"
erasures off
dectype "Unquantized"
runSigValErrCheck off
nsdecb "3"
smWordLength "16"
tbdepth "128"
opmode "Continuous"
reset off
outDataType "Inherit via internal rule"
}
Block {
BlockType SubSystem
Name "zzzzz"
Ports []
Position [63, 339, 587, 440]
BackgroundColor "lightBlue"
DropShadow on
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "zzzzz"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "zzzzz2"
Ports []
Position [15, 138, 393, 280]
BackgroundColor "[0.925490, 0.670588, 0.827451]"
DropShadow on
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "zzzzz2"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "zzzzz3"
Ports []
Position [551, 159, 922, 295]
BackgroundColor "[0.643137, 0.670588, 0.827451]"
DropShadow on
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "zzzzz3"
Location [433, 403, 931, 703]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 50]
DstBlock "Goto"
DstPort 1
}
Branch {
DstBlock "Convolutional\nEncoder"
DstPort 1
}
}
Line {
SrcBlock "M-PSK\nModulator\nBaseband"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "M-PSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "M-PSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Viterbi Decoder"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "Convolutional\nEncoder"
SrcPort 1
DstBlock "M-PSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Viterbi Decoder"
SrcPort 1
DstBlock "Data Type\nConversion3"
DstPort 1
}
Line {
SrcBlock "Data Type\nConversion3"
SrcPort 1
DstBlock "Goto1"
DstPort 1
}
Annotation {
Name "Bit Error Rate"
Position [600, 373]
HorizontalAlignment "left"
}
Annotation {
Name "Num Bit Errors"
Position [597, 395]
HorizontalAlignment "left"
}
Annotation {
Name "Num Bits xmitted"
Position [599, 415]
HorizontalAlignment "left"
}
Annotation {
Name "Compute Bit Error Rate"
Position [168, 318]
BackgroundColor "lightBlue"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Receiver"
Position [598, 138]
BackgroundColor "[0.643137, 0.670588, 0.823529]"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Transmitter"
Position [73, 118]
BackgroundColor "[0.925490, 0.674510, 0.835294]"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "Rate 1/2 Convolutional Coded System\nwith BPSK modulation with Soft Decisions"
Position [12, 29]
HorizontalAlignment "left"
BackgroundColor "darkGreen"
DropShadow on
FontName "Arial"
FontSize 18
FontWeight "bold"
}
}
}
MatData {
NumRecords 4
DataRecord {
Tag DataTag3
Data " %)30 . @ 8 ( 0 % \" $ ! 0 . 4 8 ( ! "
" % \" $ . 0 $ ' %8 :0!T &4 <@!B &D 1 !E &, ;P!D &4 <@ "
}
DataRecord {
Tag DataTag2
Data " %)30 . @ 8 ( 0 % \" $ ! 0 . 4 8 ( ! "
" % \" $ - 0 $ &@ $T 4 !3 $L 30!O &0 =0!L &$ = !O '( "
}
DataRecord {
Tag DataTag1
Data " %)30 . @ 8 ( 0 % \" $ ! 0 . 4 8 ( ! "
" % \" $ / 0 $ '@ $T 4 !3 $L 1 !E &T ;P!D '4 ; !A '0 ;P!R "
}
DataRecord {
Tag DataTag0
Data " %)30 . B 8 ( 0 % \" $ ! 0 . 6 8 ( ! "
" % \" $ 2 0 $ ) $( 90!R &X ;P!U &P ; !I $( :0!N &$ <@!Y $< 90!N "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -