📄 convcode_quantized_f.mdl
字号:
SourceType "Bernoulli Binary Generator"
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"
P "0.5"
seed "61"
Ts "Ts"
frameBased on
sampPerFrame "log2(M)*1e4"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Convolutional\nEncoder"
Ports [1, 1]
Position [160, 187, 250, 243]
NamePlacement "alternate"
SourceBlock "commcnvcod2/Convolutional\nEncoder"
SourceType "Convolutional Encoder"
trellis "poly2trellis(7, [171 133])"
opMode "Continuous"
hasIniStPort off
hasFinStPort off
usePuncVector off
punctureVector "[1; 1; 0; 1; 0; 1]"
reset "Unused parameter value"
}
Block {
BlockType DataTypeConversion
Name "Data Type\nConversion3"
Position [885, 197, 915, 233]
ShowName off
OutDataTypeMode "double"
OutDataType "ufix(3)"
OutScaling "2^0"
OutDataTypeStr "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [495, 364, 585, 426]
ShowName off
Format "short_e"
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [385, 367, 460, 418]
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "128"
st_delay "1e4"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop on
numErr "maxNumErrs"
maxBits "maxNumBits"
}
Block {
BlockType SubSystem
Name "Fixed-pt\nQuantizer"
Ports [1, 1]
Position [625, 184, 685, 246]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Fixed-pt\nQuantizer"
Location [448, 597, 1137, 779]
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 Inport
Name "In1"
Position [15, 33, 45, 47]
IconDisplay "Port number"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 1]
Position [120, 25, 150, 55]
NamePlacement "alternate"
Output "Real"
}
Block {
BlockType DataTypeConversion
Name "Data Type\nConversion"
Position [500, 32, 550, 68]
NamePlacement "alternate"
OutDataTypeMode "Specify via dialog"
OutDataType "fixdt(0,3,0)"
OutDataTypeStr "fixdt(0,3,0)"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [350, 35, 375, 65]
Gain "-1"
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 SubSystem
Name "Noise\nEstimate"
Ports [1, 1]
Position [90, 85, 130, 145]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Noise\nEstimate"
Location [629, 398, 1050, 571]
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 Inport
Name "In2"
Position [25, 28, 55, 42]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "M-PSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [110, 95, 185, 145]
NamePlacement "alternate"
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 "Hard decision"
VarSource "Dialog"
Variance "1"
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 [215, 94, 290, 146]
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 Sum
Name "Sum"
Ports [2, 1]
Position [305, 25, 325, 45]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [350, 28, 380, 42]
IconDisplay "Port number"
}
Line {
SrcBlock "M-PSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "M-PSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "M-PSK\nModulator\nBaseband"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "In2"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "M-PSK\nDemodulator\nBaseband"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [275, 30, 315, 65]
Inputs "*/"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Scalar Quantizer\nEncoder2"
Ports [1, 1]
Position [420, 24, 455, 76]
ShowName off
DialogController "dspfixptddg.SQEncoder"
SourceBlock "dspquant2/Scalar Quantizer\nEncoder"
SourceType "Scalar Quantizer Encoder"
paramSrc "Specify via dialog"
partType "Unbounded"
BBoundary "[-6:2:6]/4"
UBoundary "[-3, -2, -1, 0, 1, 2, 3]*0.5"
SearchMethod "Linear"
tieBreakRule "Choose the higher index"
outQU off
outQError off
codebook "[1.5:9.5]"
outStatus off
invalidin "Clip"
additionalParams off
idtype "uint8"
allowOverrides on
roundingMode "Floor"
overflowMode off
}
Block {
BlockType Reference
Name "Standard\nDeviation1"
Ports [1, 1]
Position [170, 95, 225, 135]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "dspstat3/Standard\nDeviation"
SourceType "Standard Deviation"
run off
reset_popup "None"
directionMode "Each column"
dimension "1"
treatSBRowAsCol on
roiEnable off
roiType "Rectangles"
roiPortion "Entire ROI"
roiOutput "Individual statistics for each ROI"
roiFlag off
}
Block {
BlockType Outport
Name "Out1"
Position [610, 43, 640, 57]
IconDisplay "Port number"
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Scalar Quantizer\nEncoder2"
DstPort 1
}
Line {
SrcBlock "Scalar Quantizer\nEncoder2"
SrcPort 1
DstBlock "Data Type\nConversion"
DstPort 1
}
Line {
SrcBlock "Data Type\nConversion"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "In1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Noise\nEstimate"
DstPort 1
}
}
Line {
Labels [0, 0]
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Noise\nEstimate"
SrcPort 1
DstBlock "Standard\nDeviation1"
DstPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -