📄 dspilbclib_9a.mdl
字号:
DstPort 3
}
Line {
SrcBlock "State First"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSwitch1"
SrcPort 1
DstBlock "Start State"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0; 0, -50]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Flip3"
SrcPort 1
DstBlock "Product"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Decode Sub-Block"
Ports [7, 1]
Position [270, 58, 480, 172]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Reusable function"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Decode Sub-Block"
Location [36, 100, 1224, 430]
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 "Codebook"
Position [20, 108, 50, 122]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Full Block"
Position [665, 68, 695, 82]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Code Indices"
Position [330, 198, 360, 212]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Gain Indices"
Position [330, 228, 360, 242]
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Subblock Number"
Position [810, 183, 840, 197]
Port "5"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Start State Number"
Position [795, 63, 825, 77]
Port "6"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "State First"
Position [795, 93, 825, 107]
Port "7"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType SubSystem
Name "3 Stage Decoding of the Code Vector"
Ports [4, 1]
Position [395, 125, 560, 255]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "3 Stage Decoding of the Code Vector"
Location [73, 120, 795, 450]
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 "Base Codebook"
Position [45, 73, 75, 87]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Expanded\nCodebook"
Position [165, 108, 195, 122]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Code Indices"
Position [45, 28, 75, 42]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Gain Indices"
Position [45, 168, 75, 182]
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Abs
Name "Abs"
Position [475, 210, 505, 240]
ShowName off
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Data Type\nDuplicate"
Ports [2]
Position [145, 265, 185, 305]
ShowName off
SourceBlock "simulink/Signal\nAttributes/Data Type\nDuplicate"
SourceType "Data Type Duplicate"
NumInputPorts "2"
}
Block {
BlockType Reference
Name "Decode Index"
Ports [3, 1]
Position [240, 25, 430, 135]
SourceBlock "dspilbclib/Decode Index"
SourceType "SubSystem"
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"
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [560, 115, 590, 135]
BlockMirror on
ShowName off
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Frames"
delay "1"
ic_detail "off"
dif_ic_for_ch "off"
dif_ic_for_dly "off"
ic "0"
reset_popup "None"
}
Block {
BlockType ForIterator
Name "For Iterator"
Ports [0, 1]
Position [40, 121, 85, 149]
ShowName off
ResetStates "reset"
IterationLimit "3"
IndexMode "Zero-based"
}
Block {
BlockType Constant
Name "Gain\ncodebooks"
Position [45, 214, 85, 236]
Value "[ilbc.gain_sq5Tbl; ilbc.gain_sq4Tbl; ilbc.gain_sq3Tbl]"
VectorParams1D off
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via back propagation"
}
Block {
BlockType Reference
Name "Gain Decoder"
Ports [2, 1]
Position [240, 158, 340, 262]
SourceBlock "dspquant2/Scalar Quantizer\nDecoder"
SourceType "Scalar Quantizer Decoder"
CBsource "Input port"
invalidin "Clip"
codebook "ilbc.gain_sq5Tbl"
dataType "User-defined"
isSigned "on"
wordLen "16"
udDataType "float('single')"
fracBitsMode "Best precision"
numFracBits "11"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [470, 68, 500, 117]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [400, 198, 430, 247]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Saturate
Name "Saturation"
Position [530, 210, 560, 240]
ShowName off
UpperLimit "inf"
LowerLimit "0.1"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Selector
Name "Selector1"
Ports [2, 1]
Position [145, 165, 210, 205]
ShowName off
NumberOfDimensions "2"
IndexMode "Zero-based"
InputPortWidth "3"
IndexOptions "Index vector (port),Select all"
Indices "1,1"
OutputSizes "1,1"
}
Block {
BlockType Selector
Name "Selector2"
Ports [2, 1]
Position [145, 25, 210, 65]
ShowName off
NumberOfDimensions "2"
IndexMode "Zero-based"
InputPortWidth "3"
IndexOptions "Index vector (port),Select all"
Indices "1,1"
OutputSizes "1,1"
}
Block {
BlockType Selector
Name "Selector3"
Ports [2, 1]
Position [145, 216, 210, 254]
ShowName off
NumberOfDimensions "2"
IndexMode "Zero-based"
InputPortWidth "3"
IndexOptions "Index vector (port),Select all"
Indices "1,1"
OutputSizes "1,1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [530, 85, 550, 105]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [475, 256, 505, 274]
BlockMirror on
ShowName off
X0 "1"
SampleTime "-1"
}
Block {
BlockType Outport
Name "New Vector"
Position [655, 88, 685, 102]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Selector2"
SrcPort 1
DstBlock "Decode Index"
DstPort 1
}
Line {
SrcBlock "Code Indices"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "Base Codebook"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Decode Index"
DstPort 2
}
Branch {
Points [0, 215]
DstBlock "Data Type\nDuplicate"
DstPort 2
}
}
Line {
SrcBlock "Expanded\nCodebook"
SrcPort 1
DstBlock "Decode Index"
DstPort 3
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Decode Index"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain Decoder"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Abs"
DstPort 1
}
Branch {
Points [0, -120]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "Saturation"
SrcPort 1
Points [15, 0; 0, 40]
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "Gain Decoder"
DstPort 1
}
Line {
SrcBlock "Gain Indices"
SrcPort 1
DstBlock "Selector1"
DstPort 1
}
Line {
SrcBlock "Selector3"
SrcPort 1
DstBlock "Gain Decoder"
DstPort 2
}
Line {
SrcBlock
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -