📄 dspilbclib_9a.mdl
字号:
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode "off"
LockScale "off"
}
Block {
BlockType Reference
Name "Matrix\nScaling3"
Ports [1, 1]
Position [705, 145, 775, 185]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspmtrx3/Array-Vector\nMultiply"
SourceType "Array-Vector Multiply"
mode "Mute"
saveAsFlag "0"
Dimension "1"
V_Source "Dialog parameter"
V_VectFromMask "[1 0.8 0.6 0.4 0.2]"
additionalParams "off"
allowOverrides "on"
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as product output"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode "off"
LockScale "off"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [3, 1]
Position [190, 25, 215, 135]
ShowName off
Inputs "2"
zeroidx on
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
Ports [3, 1]
Position [970, 21, 990, 169]
ShowName off
Inputs "2"
zeroidx on
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [125, 27, 155, 58]
ShowName off
InputSameDT off
LogicOutDataTypeMode "boolean"
OutDataTypeStr "boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [910, 29, 945, 56]
ShowName off
InputSameDT off
LogicOutDataTypeMode "boolean"
OutDataTypeStr "boolean"
}
Block {
BlockType Saturate
Name "Saturation"
Position [280, 90, 310, 120]
ShowName off
UpperLimit "107"
LowerLimit "0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Saturate
Name "Saturation1"
Position [280, 240, 310, 270]
ShowName off
UpperLimit "127"
LowerLimit "108"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Selector
Name "Selector"
Ports [2, 1]
Position [400, 203, 465, 272]
ShowName off
NumberOfDimensions "2"
IndexMode "Zero-based"
InputPortWidth "3"
IndexOptions "Select all,Index vector (port)"
Indices "[1 3],1"
OutputSizes "1,1"
}
Block {
BlockType Selector
Name "Selector1"
Ports [2, 1]
Position [400, 65, 465, 120]
ShowName off
NumberOfDimensions "2"
InputPortWidth "3"
IndexOptions "Starting index (port),Select all"
Indices "1,-1"
OutputSizes "40,1"
}
Block {
BlockType Selector
Name "Selector2"
Ports [2, 1]
Position [505, 203, 570, 252]
ShowName off
NumberOfDimensions "2"
InputPortWidth "3"
IndexOptions "Index vector (port),Select all"
Indices "[1 3],1"
OutputSizes "1,1"
}
Block {
BlockType Selector
Name "Selector3"
Ports [2, 1]
Position [615, 219, 680, 266]
ShowName off
NumberOfDimensions "2"
IndexMode "Zero-based"
InputPortWidth "3"
IndexOptions "Starting index (port),Select all"
Indices "[1 3],1"
OutputSizes "5,5"
}
Block {
BlockType Selector
Name "Selector4"
Ports [1, 1]
Position [615, 153, 680, 177]
ShowName off
NumberOfDimensions "2"
InputPortWidth "3"
IndexOptions "Index vector (dialog),Select all"
Indices "[143:147],1"
OutputSizes "1,1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [335, 95, 355, 115]
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 Sum
Name "Sum4"
Ports [2, 1]
Position [800, 235, 820, 255]
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 Sum
Name "Sum5"
Ports [2, 1]
Position [335, 245, 355, 265]
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 ForIterator
Name "Used for reset\nfeature only"
Ports []
Position [1015, 255, 1060, 285]
ResetStates "reset"
IterationLimit "1"
ShowIterationPort off
IterationVariableDataType "int8"
}
Block {
BlockType Outport
Name "Codebook Vector"
Position [1035, 88, 1065, 102]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Base Codebook"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 2
}
Line {
SrcBlock "Multiport\nSwitch"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Selector1"
DstPort 1
}
Branch {
Points [0, 85; 230, 0]
Branch {
DstBlock "Selector4"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Selector2"
DstPort 1
}
}
}
Line {
SrcBlock "Expanded\nCodebook"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 3
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Selector1"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 1
}
Line {
SrcBlock "Multiport\nSwitch1"
SrcPort 1
DstBlock "Codebook Vector"
DstPort 1
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 2
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Constant6"
SrcPort 1
Points [10, 0]
Branch {
Points [110, 0]
DstBlock "Sum5"
DstPort 2
}
Branch {
Points [0, -150]
Branch {
Points [110, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, -85]
DstBlock "Relational\nOperator1"
DstPort 2
}
}
}
Line {
SrcBlock "Saturation1"
SrcPort 1
DstBlock "Sum5"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Saturation1"
DstPort 1
}
Branch {
Points [0, -150]
Branch {
DstBlock "Saturation"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Relational\nOperator1"
DstPort 1
}
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Math\nFunction"
DstPort 2
}
Branch {
Points [0, -210]
DstBlock "Relational\nOperator"
DstPort 2
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Multiport\nSwitch"
DstPort 1
}
Line {
SrcBlock "Code Index"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, 210]
DstBlock "Math\nFunction"
DstPort 1
}
}
Line {
SrcBlock "Sum5"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Selector"
DstPort 2
}
Branch {
Points [0, 30]
DstBlock "Bias"
DstPort 1
}
}
Line {
SrcBlock "Selector3"
SrcPort 1
DstBlock "Matrix\nScaling2"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Selector3"
DstPort 1
}
Branch {
Labels [0, 0]
Points [0, -25]
DstBlock "Assignment"
DstPort 1
}
}
Line {
Labels [1, 0]
SrcBlock "Selector"
SrcPort 1
DstBlock "Selector2"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Matrix\nScaling2"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Selector4"
SrcPort 1
DstBlock "Matrix\nScaling3"
DstPort 1
}
Line {
SrcBlock "Matrix\nScaling3"
SrcPort 1
Points [30, 0]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Assignment"
DstPort 2
}
Line {
SrcBlock "Bias"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -30]
DstBlock "Selector3"
DstPort 2
}
Branch {
Labels [0, 0]
DstBlock "Assignment"
DstPort 3
}
}
Line {
SrcBlock "Assignment"
SrcPort 1
Points [20, 0; 0, -100]
DstBlock "Multiport\nSwitch1"
DstPort 3
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -