📄 dspilbc_mic_duplex_9a.mdl
字号:
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
AccumDataTypeStr "Inherit: Inherit via internal rule"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as first input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Same as first input"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
}
System {
Name "dspilbc_mic_duplex"
Location [37, 87, 1152, 649]
Open on
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 "157"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "From Audio\nDevice"
Ports [0, 1]
Position [95, 129, 150, 181]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspsrcs4/From Audio\nDevice"
SourceType "From Audio Device"
deviceName "Default"
numChannels "1"
sampleRate "8000"
deviceDatatype "Determine from output data type"
autoBufferSize on
bufferSize "4096"
queueDuration "1.0"
frameSize "240"
outputDatatype "int16"
}
Block {
BlockType Reference
Name "To Audio Device"
Ports [1]
Position [525, 279, 580, 331]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "dspsnks4/To Audio\nDevice"
SourceType "To Audio Device"
deviceName "Default"
inheritSampleRate off
sampleRate "8000"
deviceDatatype "Determine from input data type"
autoBufferSize on
bufferSize "4096"
queueDuration "0.5"
}
Block {
BlockType "M-S-Function"
Name "UDP Receive"
Ports [0, 1]
Position [95, 279, 170, 331]
ShowName off
FunctionName "dspUDPReceive"
Parameters "port, outputLength, sampleTime"
MaskPromptString "Port|Output signal length|Sample time (seconds)"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "port=@1;outputLength=@2;sampleTime=@3;"
MaskDisplay "disp(sprintf('UDP Receive'));\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskPortRotate "default"
MaskIconUnits "autoscale"
MaskValueString "25000|50|0.03"
MaskTabNameString ",,"
}
Block {
BlockType "M-S-Function"
Name "UDP Send"
Ports [1]
Position [510, 130, 590, 180]
ShowName off
FunctionName "dspUDPSend"
Parameters "url, port"
MaskPromptString "URL|Port"
MaskStyleString "edit,edit"
MaskTunableValueString "off,off"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "url=&1;port=@2;"
MaskDisplay "disp(sprintf('UDP Send'));\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskPortRotate "default"
MaskIconUnits "autoscale"
MaskValueString "localhost|25000"
MaskTabNameString ","
}
Block {
BlockType SubSystem
Name "iLBC Decoder"
Ports [1, 1]
Position [245, 268, 425, 342]
BackgroundColor "lightBlue"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Reusable function"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "iLBC Decoder"
Location [50, 97, 983, 594]
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 "Packet"
Position [20, 163, 50, 177]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Data Type\nDuplicate"
Ports [2]
Position [820, 70, 860, 110]
ShowName off
SourceBlock "simulink/Signal\nAttributes/Data Type\nDuplicate"
SourceType "Data Type Duplicate"
NumInputPorts "2"
}
Block {
BlockType Reference
Name "Data Type\nDuplicate1"
Ports [2]
Position [485, 265, 525, 305]
ShowName off
SourceBlock "simulink/Signal\nAttributes/Data Type\nDuplicate"
SourceType "Data Type Duplicate"
NumInputPorts "2"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [820, 130, 865, 150]
ShowName off
OutDataTypeMode "int16"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "int16"
RndMeth "Floor"
}
Block {
BlockType SubSystem
Name "Decode Sub-Blocks (4.1 - 4.4)"
Ports [7, 2, 1]
Position [225, 54, 350, 256]
NamePlacement "alternate"
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Reusable function"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Decode Sub-Blocks (4.1 - 4.4)"
Location [214, 120, 1066, 453]
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 "Lsf Indices"
Position [40, 123, 70, 137]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Start State Number"
Position [40, 228, 70, 242]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "State First"
Position [40, 268, 70, 282]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Start State Gain Index"
Position [275, 83, 305, 97]
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Start State Indices"
Position [275, 33, 305, 47]
Port "5"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Code Indices"
Position [550, 148, 580, 162]
Port "6"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Gain Indices"
Position [550, 188, 580, 202]
Port "7"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [40, 35, 60, 55]
}
Block {
BlockType SubSystem
Name "Decode Remaining Sub-Blocks (4.3 - 4.4)"
Ports [5, 1]
Position [615, 95, 770, 295]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Decode Remaining Sub-Blocks (4.3 - 4.4)"
Location [214, 120, 825, 565]
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 "Initial Codebook"
Position [50, 88, 80, 102]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Code Indices"
Position [150, 163, 180, 177]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Gain Indices"
Position [150, 213, 180, 227]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Start State Number"
Position [250, 323, 280, 337]
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "State First"
Position [250, 373, 280, 387]
Port "5"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Compare\nTo Constant2"
Ports [1, 1]
Position [235, 121, 290, 139]
ShowName off
SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant"
SourceType "Compare To Constant"
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"
relop ">"
const "0"
LogicOutDataTypeMode "uint8"
ZeroCross "off"
}
Block {
BlockType Reference
Name "Decode Remaining Sub-Blocks (4.3 - 4.4)"
Ports [7, 1]
Position [325, 55, 495, 405]
SourceBlock "dspilbclib/Decode Sub-Block"
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 ForIterator
Name "For Iterator"
Ports [0, 1]
Position [140, 265, 185, 295]
ShowName off
ResetStates "reset"
IterationLimit "ilbc.NSUB{ilbcMode}-1"
IndexMode "Zero-based"
}
Block {
BlockType FrameConversion
Name "Frame Conversion1"
Ports [1, 1]
Position [45, 51, 90, 79]
ShowName off
OutFrame "Sample-based"
}
Block {
BlockType FrameConversion
Name "Frame Conversion3"
Ports [1, 1]
Position [235, 65, 290, 95]
ShowName off
}
Block {
BlockType Reference
Name "Pad"
Ports [1, 1]
Position [110, 86, 150, 104]
ShowName off
SourceBlock "dspsigops/Pad"
SourceType "Pad"
padAlong "Columns"
dimsToPad "1"
valSrc "Specify via dialog"
padVal "0"
spec "Pad size"
padNumOutRowsSpecMethod "User-specified"
numOutRows "ilbc.BLOCKL{ilbcMode}-40"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
isVarDimsMode "off"
padBeginning "90"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -