📄 rake.mdl
字号:
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 58, 45, 72]
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [175, 50, 235, 80]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "QPSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [75, 40, 150, 90]
SourceBlock "commdigbbndpm2/QPSK\nDemodulator\nBaseband"
SourceType "QPSK Demodulator Baseband"
OutType "Bit"
Dec "Gray"
Ph "qpsk_phase_offset"
numSamp "1"
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [270, 41, 320, 89]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Outport
Name "Out1"
Position [350, 58, 380, 72]
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "QPSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "QPSK\nDemodulator\nBaseband"
DstPort 1
}
}
}
Block {
BlockType Display
Name "Display6"
Ports [1]
Position [775, 100, 865, 160]
Orientation "left"
ShowName off
Decimation "1"
}
Block {
BlockType SubSystem
Name "Equivalent\nRake meMRC1"
Ports [4, 1]
Position [545, 28, 685, 127]
NamePlacement "alternate"
ShowName off
TreatAsAtomicUnit off
MaskType "Rake receiver (chip-spaced sampling)"
MaskDescription "This Rake receiver is used for simulation with "
"one sample per chip. The delay of the Rake receiver is equal to two symbol du"
"rations, one for timing adjustment and the other due to symbol match filterin"
"g."
MaskHelp "file:///u:/ckpoon/mymatlab/mylib/rakeeqrx.html"
MaskPromptString "Number of fingers :|Total delay (#Tc) :|Path de"
"lay (#Tc) :|Processing gain :|Symbol time :|Chip time (sample time) :"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "M=@1;TD=@2;D=@3;PG=@4;Tb=@5;Tc=@6;"
MaskInitialization "TD=TD-PG; M; D = D(1:M);"
MaskDisplay "disp('Rake\\nReceiver\\n(complex spreading)')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "M|(Drake)*PG|PathDelay|PG|Tb|Tc"
System {
Name "Equivalent\nRake meMRC1"
Location [511, 204, 1116, 439]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "RxSig"
Position [15, 44, 45, 56]
NamePlacement "alternate"
}
Block {
BlockType Inport
Name "SC"
Position [15, 83, 45, 97]
Port "2"
}
Block {
BlockType Inport
Name "noise"
Position [450, 18, 480, 32]
Orientation "left"
Port "3"
}
Block {
BlockType Inport
Name "Weight"
Position [160, 138, 190, 152]
Port "4"
}
Block {
BlockType SubSystem
Name "Fingers"
Ports [2, 1]
Position [320, 36, 405, 89]
TreatAsAtomicUnit off
MaskType "Finger for Rake receiver"
MaskPromptString "Total delay :|Path delay (#Tc) :|Processing"
" gain :|Symbol time :|Chip time :"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "TD=@1;D=@2;PG=@3;Tb=@4;Tc=@5;"
MaskDisplay "disp('Finger')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "TD|D|PG|Tb|Tc"
System {
Name "Fingers"
Location [172, 267, 642, 465]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [20, 78, 50, 92]
NamePlacement "alternate"
}
Block {
BlockType Inport
Name "SC"
Position [20, 93, 50, 107]
Port "2"
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [185, 76, 260, 114]
ShowName off
SourceBlock "dspbdsp2/Integer Delay"
SourceType "Integer Delay"
delay "TD-D"
ic "0"
frame off
df on
numChans "1"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [100, 77, 130, 108]
ShowName off
}
Block {
BlockType SubSystem
Name "SMF"
Ports [1, 1]
Position [285, 68, 375, 122]
TreatAsAtomicUnit off
MaskType "Symbol-matched filter for DS-SS"
MaskPromptString "Symbol time :|Chip time :"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "Tb=@1;Tc=@2;"
MaskDisplay "disp('Symbol-Matched\\nFilter')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Tb|Tc"
System {
Name "SMF"
Location [63, 705, 550, 882]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "*In"
Position [15, 88, 45, 102]
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [125, 78, 155, 107]
ShowName off
Output "Real and imag"
}
Block {
BlockType Gain
Name "Gain"
Position [70, 80, 100, 110]
ShowName off
Gain "1/Tb"
}
Block {
BlockType Reference
Name "Integrate and Dump"
Ports [1, 1]
Position [180, 48, 260, 92]
ShowName off
SourceBlock "comminteg2/Integrate and Dump"
SourceType "Integrate and Dump"
limit "inf"
td "Tb"
ts "Tc"
}
Block {
BlockType Reference
Name "Integrate and Dump1"
Ports [1, 1]
Position [180, 98, 260, 142]
ShowName off
SourceBlock "comminteg2/Integrate and Dump"
SourceType "Integrate and Dump"
limit "inf"
td "Tb"
ts "Tc"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [350, 78, 380, 107]
ShowName off
Input "Real and imag"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [290, 55, 320, 85]
ShowName off
SampleTime "Tb"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [290, 105, 320, 135]
ShowName off
SampleTime "Tb"
}
Block {
BlockType Outport
Name "*Out"
Position [415, 88, 445, 102]
}
Line {
SrcBlock "*In"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "Integrate and Dump"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [5, 0]
DstBlock "Integrate and Dump"
DstPort 1
}
Line {
SrcBlock "Integrate and Dump1"
SrcPort 1
DstBlock "Zero-Order\nHold1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [10, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
Points [10, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "*Out"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [5, 0]
DstBlock "Integrate and Dump1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [400, 88, 430, 102]
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
DstBlock "SMF"
DstPort 1
}
Line {
SrcBlock "SMF"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Integer Delay"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "SC"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Annotation {
Name "compensate for the delay of CMF (1Tc) a"
"nd path"
Position [276, 145]
}
}
}
Block {
BlockType From
Name "From16"
Position [160, 174, 215, 196]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Fingers"
}
Block {
BlockType Goto
Name "Goto4"
Position [505, 50, 560, 70]
ShowName off
GotoTag "Fingers"
TagVisibility "local"
}
Block {
BlockType Math
Name "Math\nFunction16"
Ports [1, 1]
Position [245, 134, 265, 156]
ShowName off
Operator "conj"
}
Block {
BlockType Product
Name "Produt16"
Ports [2, 1]
Position [285, 137, 315, 168]
ShowName off
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [205, 75, 250, 105]
ShowName off
TreatAsAtomicUnit off
System {
Name "Subsystem1"
Location [197, 630, 505, 809]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 43, 55, 57]
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [40, 99, 75, 131]
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
Value "ones(M,1)"
SampleMode "Discrete"
discreteOutput "Sample-based (interpret vectors as 1-D)"
continuousOutput "Sample-based"
sampTime "Tc"
framePeriod "Tc"
additionalParams off
dataType "Inherit from 'Constant value'"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "on"
Ts "Tc"
FramebasedOutput "off"
}
Block {
BlockType Reference
Name "Integer Delay3"
Ports [1, 1]
Position [180, 45, 210, 75]
ShowName off
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "D"
ic "0"
reset_popup "None"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -