📄 rechmtl.mdl
字号:
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [210, 27, 240, 58]
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [210, 67, 240, 98]
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [395, 48, 425, 77]
ShowName off
Input "RealAndImag"
ConstantPart "0"
}
Block {
BlockType Reference
Name "Upsample"
Ports [1, 1]
Position [260, 29, 295, 61]
ShowName off
SourceBlock "dspbdsp2/Upsample"
SourceType "Upsample"
N "8"
phase "0"
ic "0"
frame "on"
nchans "1"
mode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Upsample1"
Ports [1, 1]
Position [260, 69, 295, 101]
ShowName off
SourceBlock "dspbdsp2/Upsample"
SourceType "Upsample"
N "8"
phase "0"
ic "0"
frame "on"
nchans "1"
mode "Maintain input frame rate"
}
Block {
BlockType Outport
Name "Out "
Position [450, 58, 480, 72]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "PN I"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "PN Q"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Upsample"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Upsample1"
DstPort 1
}
Line {
SrcBlock "Upsample1"
SrcPort 1
DstBlock "OQPSK \nDelay"
DstPort 1
}
Line {
SrcBlock "OQPSK \nDelay"
SrcPort 1
Points [10, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Upsample"
SrcPort 1
Points [80, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [0, 0]
DstBlock "Out "
DstPort 1
}
Line {
SrcBlock "data in\n"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -20]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 20]
DstBlock "Product2"
DstPort 1
}
}
}
}
Block {
BlockType Reference
Name "IS-95A Short Code \nGenerator"
Ports [1, 2]
Position [89, 100, 151, 130]
Orientation "up"
ForegroundColor "magenta"
BackgroundColor "darkGreen"
NamePlacement "alternate"
ShowName off
SourceBlock "cdmalib/IS-95A Common/IS-95A Short Code"
"\nGenerator"
SourceType "IS-95A Short Code Generator"
numOut "64"
sampTime "1/(50*384)"
}
Block {
BlockType Constant
Name "PN Mask"
Position [87, 160, 123, 180]
Orientation "up"
ForegroundColor "magenta"
BackgroundColor "blue"
Value "[0 0]"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "Transmit Filter"
Ports [1, 1]
Position [240, 37, 315, 83]
ForegroundColor "magenta"
BackgroundColor "darkGreen"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "FIR Pulse Shaping Filter"
MaskDescription "The length of the FIR filter is the dur"
"ation of 12 PN sequence chips. The coefficient spacing and the sample time of"
" this filter is one-eighth of the PN sequence chip duration, resulting in a t"
"otal of 96 coefficients. The filter introduces a delay of 48 samples."
MaskPromptString "Interpolation factor:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "N=@1;"
MaskInitialization "load txfiltx8.mat;\nh = (TxFiltCoefx8*N"
");"
MaskDisplay "plot( 1:prod( size( h)), h);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1"
System {
Name "Transmit Filter"
Location [622, 131, 917, 226]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name " "
Position [70, 38, 100, 52]
Port "1"
Interpolate on
}
Block {
BlockType SubSystem
Name "FIR\nInterpolation"
Ports [1, 1]
Position [135, 28, 195, 62]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "FIR Interpolation"
MaskDescription "Upsample input signal by an integer"
" factor, then apply an FIR filter. Implemented using an efficient polyphase "
"interpolation structure. The filter coefficients are scaled by the interpola"
"tion factor."
MaskHelp "web(dspbhelp);"
MaskPromptString "FIR filter coefficients:|Interpolat"
"ion factor:|Frame-based inputs|Number of channels:|Framing:"
MaskStyleString "edit,edit,checkbox,edit,popup(Maint"
"ain input frame size|Maintain input frame rate)"
MaskTunableValueString "off,off,off,off,off"
MaskCallbackString "||dspblkupfir||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVariables "h=@1;L=@2;frame=&3;numChans=@4;fram"
"ing=@5;"
MaskInitialization "outputBufInitCond = 0;\n[str,numCha"
"ns] = dspblkupfir('setup1',numChans);\n[h,framing,str]= dspblkupfir('setup2',"
"h,L,framing);"
MaskDisplay "disp(str)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "h|N|on|1|Maintain input frame rate"
MaskVariableAliases ",,,,"
System {
Name "FIR\nInterpolation"
Location [64, 59, 323, 160]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "in_1"
Position [15, 25, 35, 45]
Port "1"
Interpolate on
}
Block {
BlockType "S-Function"
Name "upfir"
Ports [1, 1]
Position [90, 14, 165, 56]
FunctionName "sdspupfir"
Parameters "h,L,numChans,framing,outputBufIni"
"tCond"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Outport
Name "out_1"
Position [220, 25, 240, 45]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "upfir"
DstPort 1
}
Line {
SrcBlock "upfir"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name " "
Position [220, 38, 250, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "FIR\nInterpolation"
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "FIR\nInterpolation"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Data Out"
Position [425, 48, 455, 62]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "PN Mask"
SrcPort 1
Points [0, -10]
DstBlock "IS-95A Short Code \nGenerator"
DstPort 1
}
Line {
SrcBlock "IS-95A Short Code \nGenerator"
SrcPort 2
DstBlock " 1"
DstPort 3
}
Line {
SrcBlock "IS-95A Short Code \nGenerator"
SrcPort 1
Points [0, -35]
DstBlock " 1"
DstPort 2
}
Line {
SrcBlock " 1"
SrcPort 1
DstBlock "Transmit Filter"
DstPort 1
}
Line {
SrcBlock "Rate"
SrcPort 1
Points [75, 0]
DstBlock " 1"
DstPort 1
}
Line {
SrcBlock "Transmit Filter"
SrcPort 1
Points [90, 0]
DstBlock "Data Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "oQpsk and fir1"
Ports [1, 1]
Position [675, 141, 750, 189]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "oQpsk and fir1"
Location [126, 176, 606, 380]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Rate"
Position [25, 28, 55, 42]
NamePlacement "alternate"
Port "1"
Interpolate on
}
Block {
BlockType SubSystem
Name " 1"
Ports [3, 1]
Position [150, 35, 210, 85]
ForegroundColor "magenta"
BackgroundColor "orange"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name " 1"
Location [328, 542, 831, 803]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "data in\n"
Position [70, 48, 100, 62]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "PN I"
Position [140, 43, 170, 57]
Port "2"
Interpolate on
}
Block {
BlockType Inport
Name "PN Q"
Position [140, 83, 170, 97]
Port "3"
Interpolate on
}
Block {
BlockType Reference
Name "OQPSK \nDelay"
Ports [1, 1]
Position [320, 72, 365, 98]
SourceBlock "dspbdsp2/Integer Delay"
SourceType "Integer Delay"
delay "4"
ic "0"
frame "on"
df "on"
numChans "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [210, 27, 240, 58]
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [210, 67, 240, 98]
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [395, 48, 425, 77]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -