📄 phy_cdma_coin_sig_recv_traffic_33_final.mdl
字号:
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "1"
Ts "1/(19.2e3)"
frameBased on
sampPerFrame "384"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [155, 243, 190, 277]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "64"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType FrameConversion
Name "Frame Conversion1"
Position [280, 240, 335, 280]
OutFrame "Frame based"
}
Block {
BlockType FrameConversion
Name "Frame Conversion2"
Position [465, 55, 520, 95]
OutFrame "Frame based"
}
Block {
BlockType FrameConversion
Name "Frame Conversion8"
Position [265, 55, 320, 95]
OutFrame "Frame based"
}
Block {
BlockType Gain
Name "Gain"
Position [490, 150, 520, 180]
Gain "0.1882"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [265, 139, 325, 186]
Operator "XOR"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [40, 238, 120, 282]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[42 35 33 31 27 26 25 22 21 19 18 17 16 10 "
"7 6 5 3 2 1 0]"
ini_sta "[1]"
shift "0"
Ts "1/1.2288e6"
frameBased on
sampPerFrame "384*64"
reset off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [1, 1]
Position [550, 131, 600, 199]
Input "Real"
}
Block {
BlockType Reference
Name "Signal To\nWorkspace1"
Ports [1]
Position [375, 243, 430, 277]
ShowName off
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "LPN_PG"
MaxDataPoints "inf"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType Reference
Name "Signal To\nWorkspace2"
Ports [1]
Position [560, 58, 615, 92]
ShowName off
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "DIN"
MaxDataPoints "inf"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType Reference
Name "Signal To\nWorkspace9"
Ports [1]
Position [360, 58, 415, 92]
ShowName off
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "PGData"
MaxDataPoints "inf"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType Reference
Name "Unbuffer1"
Ports [1, 1]
Position [680, 141, 730, 189]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter3"
Ports [1, 1]
Position [375, 143, 455, 187]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Negative"
}
Block {
BlockType Outport
Name "Out1"
Position [785, 158, 815, 172]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Unbuffer1"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Unipolar to\nBipolar\nConverter3"
DstPort 1
}
Branch {
Points [0, -45; 105, 0]
DstBlock "Frame Conversion2"
DstPort 1
}
}
Line {
SrcBlock "Downsample"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -85]
DstBlock "Logical\nOperator"
DstPort 2
}
Branch {
DstBlock "Frame Conversion1"
DstPort 1
}
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter3"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Downsample"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Frame Conversion8"
SrcPort 1
Points [0, 0]
DstBlock "Signal To\nWorkspace9"
DstPort 1
}
Line {
SrcBlock "Frame Conversion1"
SrcPort 1
Points [0, 0]
DstBlock "Signal To\nWorkspace1"
DstPort 1
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [0, 0; 75, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Frame Conversion8"
DstPort 1
}
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [0, 0]
DstBlock "Unbuffer1"
DstPort 1
}
Line {
SrcBlock "Frame Conversion2"
SrcPort 1
Points [0, 0]
DstBlock "Signal To\nWorkspace2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Pilot Channel"
Ports [0, 1]
Position [180, 15, 240, 35]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Pilot Ch\\nEncoder')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Pilot Channel"
Location [8, 141, 792, 363]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Gain
Name "Channel \nGain"
Position [290, 90, 320, 120]
Gain "0.2000"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [110, 89, 145, 121]
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
ShowPortLabels on
Value "0"
SampleMode "Discrete"
discreteOutput "Frame-based"
continuousOutput "Sample-based"
sampTime "1/1.2288e6"
framePeriod "64/1.2288e6"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "-inf"
Ts "-inf"
FramebasedOutput "-inf"
}
Block {
BlockType FrameConversion
Name "Frame Conversion2"
Position [185, 15, 240, 55]
OutFrame "Frame based"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [1, 1]
Position [390, 38, 445, 172]
Input "Real"
}
Block {
BlockType Reference
Name "Signal Point\n Mapping"
Ports [1, 1]
Position [175, 83, 255, 127]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
M "2"
polarity "Negative"
}
Block {
BlockType Reference
Name "Signal To\nWorkspace4"
Ports [1]
Position [255, 18, 310, 52]
ShowName off
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "PilotData"
MaxDataPoints "inf"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType Outport
Name "Out1"
Position [675, 98, 705, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Signal Point\n Mapping"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Frame Conversion2"
DstPort 1
}
}
Line {
SrcBlock "Channel \nGain"
SrcPort 1
Points [0, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Signal Point\n Mapping"
SrcPort 1
DstBlock "Channel \nGain"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Frame Conversion2"
SrcPort 1
Points [0, 0]
DstBlock "Signal To\nWorkspace4"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [500, 95, 535, 145]
ShowName off
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "512"
Overlap "128"
inpFftLenInherit on
FFTlength "512"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-86.6574731835112"
YMax "9.40536607550809"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -