📄 wcdmaphlayer3.mdl
字号:
SourceBlock "dspmlti3/FIR Rate\nConversion"
SourceType "FIR Rate Conversion"
L "params.interp5"
h "params.rc5Num"
M "params.decim5"
additionalParams "off"
allowOverrides "on"
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as accumulator"
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 "Frame Status\nConversion"
Ports [1, 1]
Position [105, 107, 155, 143]
SourceBlock "dspsigattribs/Frame Status\nConve"
"rsion"
SourceType "Frame Status Conversion"
ShowPortLabels "off"
growRefPort "off"
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Inherit\nComplexity"
Ports [2, 1]
Position [195, 116, 280, 154]
SourceBlock "dspsigattribs/Inherit\nComplexity"
SourceType "Inherit Complexity"
}
Block {
BlockType Reference
Name "Random\nSource"
Ports [0, 1]
Position [20, 106, 55, 144]
UserDataPersistent on
UserData "DataTag6"
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "dspsrcs4/Random\nSource"
SourceType "Random Source"
SrcType "Gaussian"
NormMethod "Ziggurat"
CltLength "12"
Min "0"
Max "1"
Mean "0"
Var "1"
RepMode "Specify seed"
rawSeed "params.Seed"
Inherit "on"
SampMode "Discrete"
SampTime "1"
SampFrame "1"
DataType "Double"
OutComplex "Real"
}
Block {
BlockType Outport
Name "Out"
Position [945, 128, 975, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "FIR Rate\nConversion4"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "FIR Rate\nConversion1"
SrcPort 1
DstBlock "FIR Rate\nConversion2"
DstPort 1
}
Line {
SrcBlock "FIR Rate\nConversion"
SrcPort 1
DstBlock "FIR Rate\nConversion1"
DstPort 1
}
Line {
SrcBlock "Inherit\nComplexity"
SrcPort 1
DstBlock "FIR Rate\nConversion"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -45]
DstBlock "Inherit\nComplexity"
DstPort 2
}
Line {
SrcBlock "Random\nSource"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Inherit\nComplexity"
DstPort 1
}
Line {
SrcBlock "FIR Rate\nConversion2"
SrcPort 1
DstBlock "FIR Rate\nConversion3"
DstPort 1
}
Line {
SrcBlock "FIR Rate\nConversion3"
SrcPort 1
DstBlock "FIR Rate\nConversion4"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [410, 103, 440, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Rebuffer with \nInput Trigger"
SrcPort 2
DstBlock "Rician Channel \nEffects"
DstPort 1
}
Line {
SrcBlock "Rician Channel \nEffects"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Rebuffer with \nInput Trigger"
SrcPort 1
Points [35, 0; 0, -37; -195, 0]
DstBlock "Triggered Rayleigh Profile"
DstPort trigger
}
Line {
SrcBlock "Triggered Rayleigh Profile"
SrcPort 1
DstBlock "Rebuffer with \nInput Trigger"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Multiple Delayed Signals"
Ports [1, 1]
Position [100, 75, 185, 105]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Multiple Delayed Signals"
MaskPromptString "Path delay vector:|Sample time (sec"
"):"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "delayVector=@1;Ts=@2;"
MaskInitialization "nPaths = length(delayVector);\nmaxD"
"elay = ceil(max(delayVector))+1;"
MaskDisplay "disp('Multiple\\ndelayed signals');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "params.sampleDelayVec|simTs"
MaskTabNameString ","
System {
Name "Multiple Delayed Signals"
Location [4, 467, 841, 667]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [40, 38, 70, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Check signal is\nframe or vector"
Ports [1, 1]
Position [140, 24, 210, 66]
SourceBlock "dspsigattribs/Check Signal\nAttri"
"butes"
SourceType "Check Signal Attributes"
ShowPortLabels "on"
SigAttribCheckMethod "Does not match attributes exactly"
Complexity "Ignore"
Frame "Ignore"
DimsCheckMethod "Is..."
Dimensions "Column vector (2-D) or scalar"
DatatypeCheckMethod "Ignore"
DatatypeGeneral "Boolean"
DtypeFloatSpecific "Any floating-point"
DtypeFixedSpecific "Any fixed-point"
DtypeIntSpecific "Any integer"
SampleMode "Ignore"
}
Block {
BlockType Reference
Name "Check signal is not \nsample-base"
"d vector"
Ports [1, 1]
Position [250, 24, 320, 66]
SourceBlock "dspsigattribs/Check Signal\nAttri"
"butes"
SourceType "Check Signal Attributes"
ShowPortLabels "on"
SigAttribCheckMethod "Matches attributes exactly"
Complexity "Ignore"
Frame "Sample-based"
DimsCheckMethod "Is not..."
Dimensions "Scalar (1-D or 2-D)"
DatatypeCheckMethod "Ignore"
DatatypeGeneral "Boolean"
DtypeFloatSpecific "Any floating-point"
DtypeFixedSpecific "Any fixed-point"
DtypeIntSpecific "Any integer"
SampleMode "Ignore"
}
Block {
BlockType Constant
Name "Constant2"
Position [503, 130, 587, 150]
Orientation "up"
NamePlacement "alternate"
ShowName off
Value "[delayVector(:)]'"
VectorParams1D off
}
Block {
BlockType Constant
Name "Constant3"
Position [343, 130, 427, 150]
Orientation "up"
NamePlacement "alternate"
ShowName off
Value "ones(1,nPaths)"
VectorParams1D off
}
Block {
BlockType Reference
Name "Permute\nMatrix"
Ports [2, 1]
Position [405, 33, 485, 82]
SourceBlock "dspmtrx3/Permute\nMatrix"
SourceType "Permute Matrix"
mode "Columns"
ZeroOneIdxMode "One-based"
errmode "Clip Index"
checkDims "off"
}
Block {
BlockType Reference
Name "Variable\nFractional Delay"
Ports [2, 1]
Position [570, 50, 655, 90]
SourceBlock "dspsigops/Variable\nFractional De"
"lay"
SourceType "Variable Fractional Delay"
mode "FIR Interpolation"
dmax "maxDelay"
L "6"
R "10"
alpha "1"
ic "0"
}
Block {
BlockType Outport
Name "Out"
Position [750, 63, 780, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Check signal is not \nsample-base"
"d vector"
SrcPort 1
DstBlock "Permute\nMatrix"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Check signal is\nframe or vector"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [0, -45]
DstBlock "Variable\nFractional Delay"
DstPort 2
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [0, -55]
DstBlock "Permute\nMatrix"
DstPort 2
}
Line {
SrcBlock "Permute\nMatrix"
SrcPort 1
DstBlock "Variable\nFractional Delay"
DstPort 1
}
Line {
SrcBlock "Check signal is\nframe or vector"
SrcPort 1
DstBlock "Check signal is not \nsample-base"
"d vector"
DstPort 1
}
Line {
SrcBlock "Variable\nFractional Delay"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Multiply with \nback propagation"
Ports [2, 1]
Position [230, 70, 285, 145]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Multiply with back propagation"
MaskDescription "Perform multiplication of the two i"
"nput signals. \n\nThe width and complexity of the output and the port not ta"
"rgeted for propagation must be identical. The width and complexity of the por"
"t targeted for propagation is set to that of the other input.\n\nThe block sa"
"mple time is the product of the number of samples per frame and the sample ti"
"me parameter."
MaskPromptString "Propagation target:|Sample time:|Nu"
"mber of channels:"
MaskStyleString "popup(Input 1|Input 2),edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "propTarget=@1;Ts=@2;numChan=@3;"
MaskDisplay "disp('Multiply\\nwith prop');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Input 2|simTs|params.nPaths"
MaskTabNameString ",,"
System {
Name "Multiply with \nback propagation"
Location [922, 328, 1257, 474]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [35, 38, 65, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [35, 83, 65, 97]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType "S-Function"
Name "S-Function"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -