📄 wcdmaspreadandmod.mdl
字号:
AxisLegend "off"
AxisZoom "off"
OpenScopeAtSimStart "on"
OpenScopeImmediately "off"
FigPos "[158 290 594 257]"
AxisProperties "off"
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr "on"
XIncr "1.0"
XLabel "Samples"
YUnits "Magnitude"
YMin "-20"
YMax "20"
YLabel "Magnitude, dB"
LineProperties "off"
LineColors "[1 0 0]"
}
Block {
BlockType Reference
Name "Rx Signal"
Ports [1]
Position [230, 310, 265, 360]
SourceBlock "dspsnks3/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties "on"
Domain "Frequency"
HorizSpan "1"
UseBuffer "on"
BufferSize "2048"
Overlap "0"
inpFftLenInherit "off"
FFTlength "128"
numAvg "100"
DisplayProperties "off"
AxisGrid "on"
Memory "off"
FrameNumber "off"
AxisLegend "off"
AxisZoom "off"
OpenScopeAtSimStart "on"
OpenScopeImmediately "off"
FigPos "[330 98 608 260]"
AxisProperties "off"
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr "on"
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-20"
YMax "20"
YLabel "Magnitude, dB"
LineProperties "off"
LineColors "[1 0 0]"
}
Block {
BlockType Reference
Name "Tx Signal"
Ports [1]
Position [230, 240, 265, 290]
SourceBlock "dspsnks3/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties "on"
Domain "Frequency"
HorizSpan "1"
UseBuffer "on"
BufferSize "2048"
Overlap "0"
inpFftLenInherit "off"
FFTlength "128"
numAvg "100"
DisplayProperties "off"
AxisGrid "on"
Memory "off"
FrameNumber "off"
AxisLegend "off"
AxisZoom "off"
OpenScopeAtSimStart "on"
OpenScopeImmediately "off"
FigPos "[260 153 598 257]"
AxisProperties "off"
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr "on"
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-50"
YMax "20"
YLabel "Magnitude, dB"
LineProperties "off"
LineColors "[1 0 0]"
}
Line {
SrcBlock "Rx"
SrcPort 1
DstBlock "Rx Signal"
DstPort 1
}
Line {
SrcBlock "Bef Spread"
SrcPort 1
DstBlock "Before Spreading \nSpectrum"
DstPort 1
}
Line {
SrcBlock "Before Pulse"
SrcPort 1
DstBlock "Before Pulse Shaping"
DstPort 1
}
Line {
SrcBlock "Channel"
SrcPort 1
DstBlock "Tx Signal"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Instrumentation\nSwitch"
Ports [0, 1]
Position [135, 55, 235, 75]
ShowName off
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "InstrOn"
InterpretAs1D "off"
SampleMode "Discrete"
Ts "1/15e3"
FramebasedOutput "off"
}
Line {
SrcBlock "In6"
SrcPort 1
DstBlock "Collect Data"
DstPort 4
}
Line {
SrcBlock "In4"
SrcPort 1
DstBlock "Collect Data"
DstPort 3
}
Line {
SrcBlock "In3"
SrcPort 1
DstBlock "Collect Data"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Collect Data"
DstPort 1
}
Line {
SrcBlock "Instrumentation\nSwitch"
SrcPort 1
Points [20, 0]
DstBlock "Collect Data"
DstPort enable
}
}
}
Block {
BlockType Reference
Name "Rx Pulse Shaping Filter"
Ports [1, 1]
Position [335, 350, 400, 390]
ShowName off
FontName "Arial"
SourceBlock "wcdmalib/WCDMA Common/Rx Pulse Shaping Filter"
SourceType "RX FIR Pulse Shaping Filter"
numTaps "numTapsRRC"
Fs "3.84e6"
beta "0.22"
N_Tx "overSampling"
}
Block {
BlockType Reference
Name "Slot Rebuilder"
Ports [1, 1]
Position [685, 331, 750, 369]
ShowName off
SourceBlock "wcdmalib/Wcdma UE Receiver/Slot Rebuilder"
SourceType "WCDMA Slot Rebuilder"
numBits "numBits"
totalDelay "rxDelay*2"
Port {
PortNumber 1
Name "dpch\nslots"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum"
Ports [5, 1]
Position [795, 114, 805, 186]
ShowName off
IconShape "rectangular"
Inputs "+++++"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "TimeScopes"
Ports [4]
Position [165, 507, 235, 583]
ShowName off
OpenFcn "temp=get_param(gcb,'On');set_param(gcb,'On', ge"
"t_param(gcb,'Off'));set_param(gcb,'Off', temp);"
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Instrumentation: Power Spectrum"
MaskPromptString "On|Off"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "On=&1;Off=&2;"
MaskInitialization "ssName=gcs;\nif strcmp(On,'on')\n [picture, ma"
"p]=imread('switch_on.jpg');\n set_param([ssName '/TimeScopes/Real Part'],'Op"
"en','on');\n set_param([ssName '/TimeScopes/Imag Part'],'Open','on');\n set"
"_param([ssName '/TimeScopes/Channel Estimates'],'Open','on');\nelse\n [pic"
"ture, map]=imread('switch_off.jpg');\n set_param([ssName '/TimeScopes/Real P"
"art'],'Open','off');\n set_param([ssName '/TimeScopes/Imag Part'],'Open','of"
"f');\n set_param([ssName '/TimeScopes/Channel Estimates'],'Open','off');\nen"
"d"
MaskDisplay "image(picture,'center')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "pixels"
MaskValueString "off|on"
MaskVariableAliases ","
System {
Name "TimeScopes"
Location [139, 235, 814, 611]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [45, 93, 75, 107]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [40, 153, 70, 167]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In3"
Position [40, 213, 70, 227]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In5"
Position [45, 273, 75, 287]
Port "4"
LatchInput off
Interpolate on
}
Block {
BlockType Scope
Name "Channel Estimates"
Ports [2]
Position [305, 250, 345, 310]
Floating off
Location [246, 340, 1013, 736]
Open off
NumInputPorts "2"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "Output of Channel Estimator - Real Part"
axes2 "Output of Channel Estimator - Imag Part"
}
Grid "on"
TimeRange "0.1"
YMin "0.2~-0.025"
YMax "0.25~0.02"
SaveToWorkspace off
SaveName "ScopeData4"
DataFormat "Structure"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Collect Data"
Ports [4, 8, 1]
Position [150, 74, 250, 306]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Collect Data"
Location [179, 206, 665, 651]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Bef Spread"
Position [30, 118, 60, 132]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "After Spread"
Position [30, 238, 60, 252]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Before Pulse"
Position [50, 318, 80, 332]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "chEst"
Position [30, 403, 60, 417]
Port "4"
LatchInput off
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [250, 30, 270, 50]
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag1"
Ports [1, 2]
Position [205, 228, 235, 257]
ShowName off
Output "RealAndImag"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag2"
Ports [1, 2]
Position [175, 308, 205, 337]
ShowName off
Output "RealAndImag"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag3"
Ports [1, 2]
Position [230, 393, 260, 422]
ShowName off
Output "RealAndImag"
}
Block {
BlockType Reference
Name "Deinterlacer"
Ports [1, 2]
Position [170, 98, 250, 147]
SourceBlock "commsequence2/Deinterlacer"
SourceType "Deinterlacer"
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [110, 395, 165, 425]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort "off"
outframe "Sample-based"
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [290, 198, 330, 222]
ShowName off
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unbuffer1"
Ports [1, 1]
Position [290, 243, 330, 267]
ShowName off
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unbuffer2"
Ports [1, 1]
Position [285, 288, 325, 312]
ShowName off
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -