📄 rechmtl.mdl
字号:
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]
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 Display
Name "BER2"
Ports [1]
Position [410, 293, 490, 357]
ForegroundColor "red"
NamePlacement "alternate"
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "Data Rate1"
Ports [0, 1]
Position [15, 134, 90, 176]
ForegroundColor "magenta"
BackgroundColor "gray"
NamePlacement "alternate"
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Data Rate"
MaskStyleString "popup(Full|Half|Quarter|One-Eighth)"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "rate=@1;"
MaskDisplay "disp('Mobile Station\\n Transmitter \\nData Rat"
"e')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Full"
System {
Name "Data Rate1"
Location [61, 226, 334, 334]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Constant
Name "Rate"
Position [5, 25, 45, 45]
Value "rate-1"
VectorParams1D on
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [95, 20, 125, 50]
ShowName off
SampleTime "1/50"
}
Block {
BlockType Outport
Name "Out1"
Position [195, 28, 225, 42]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Zero-Order\nHold3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Rate"
SrcPort 1
DstBlock "Zero-Order\nHold3"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Determine Data Index2"
Ports [1, 1]
Position [190, 330, 245, 360]
ForegroundColor "red"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Determine Data Index"
MaskDescription "Deterime index of valid data in the frame based"
" upon rate set and rate input."
MaskPromptString "Rate set:"
MaskStyleString "popup(Rate Set I|Rate Set II)"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "rateSet=@1;"
MaskInitialization "if(rateSet==1)\n% --- Rate Set 1\n R1F = buff"
"er(1:172,268);\n R1H = buffer(1:80,268);\n R1Q = buffer(1:40,268);\n R1"
"E = buffer(1:16,268);\n idxMat = [R1F R1H R1Q R1E];\nelse\n % --- Rate Se"
"t 2\n R2F = [1:268]';\n R2H = buffer(1:126,268);\n R2Q = buffer(1:56,26"
"8);\n R2E = buffer(1:22,268);\n idxMat = [R2F R2H R2Q R2E];\nend;\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Rate Set I"
System {
Name "Determine Data Index2"
Location [593, 236, 976, 385]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Rate"
Position [60, 58, 90, 72]
Port "1"
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [115, 100, 135, 120]
Orientation "up"
NamePlacement "alternate"
ShowName off
Value "1"
VectorParams1D on
}
Block {
BlockType Reference
Name "Matrix\nConstant"
Ports [0, 1]
Position [45, 29, 100, 51]
ShowName off
SourceBlock "dspmtrx2/Matrix\nConstant"
SourceType "Matrix Constant"
M "idxMat"
}
Block {
BlockType Reference
Name "Permute\nMatrix"
Ports [2, 1]
Position [165, 26, 255, 79]
SourceBlock "dspmtrx2/Permute\nMatrix"
SourceType "Permute Matrix"
mode "Columns"
errmode "Clip Index"
cols "4"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [115, 55, 135, 75]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Idx"
Position [280, 48, 310, 62]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Matrix\nConstant"
SrcPort 1
DstBlock "Permute\nMatrix"
DstPort 1
}
Line {
SrcBlock "Permute\nMatrix"
SrcPort 1
DstBlock "Idx"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Permute\nMatrix"
DstPort 2
}
Line {
SrcBlock "Rate"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Error Rate Calculation 2"
Ports [3, 1]
Position [295, 296, 390, 354]
ForegroundColor "red"
BackgroundColor "darkGreen"
ShowName off
SourceBlock "commsink/Error Rate Calculation"
SourceType "Error Rate Calculation"
N "2*268"
st_delay "2*268"
cp_mode "Select samples from port"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
}
Block {
BlockType From
Name "From1"
Position [75, 335, 115, 355]
ForegroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rate"
}
Block {
BlockType From
Name "From2"
Position [320, 405, 360, 425]
Orientation "left"
ForegroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rate"
}
Block {
BlockType From
Name "From3"
Position [770, 435, 810, 455]
Orientation "left"
ForegroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rate"
}
Block {
BlockType From
Name "From4"
Position [715, 225, 755, 245]
ForegroundColor "red"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rate"
}
Block {
BlockType Goto
Name "Goto"
Position [615, 98, 655, 112]
BackgroundColor "magenta"
ShowName off
GotoTag "Rate"
TagVisibility "local"
}
Block {
BlockType Reference
Name "IS-95A CRC Generator1"
Ports [2, 1]
Position [115, 136, 190, 194]
ForegroundColor "magenta"
BackgroundColor "yellow"
ShowName off
SourceBlock "cdmalib/IS-95A Common/IS-95A CRC Generator"
SourceType "IS-95A CRC Generator"
rate_set "Rate Set I"
ch_type "Traffic"
}
Block {
BlockType SubSystem
Name "IS-95A Frame Quality\nDetector"
Ports [3, 2]
Position [60, 423, 135, 497]
Orientation "left"
ForegroundColor "red"
BackgroundColor "yellow"
AncestorBlock "cdmalib/IS-95A Common/IS-95A Frame Quality \nDe"
"tector"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "IS-95A Frame Quality Detector"
MaskDescription "Determine the quality of a received frame of da"
"ta and output the decoded data and a frame quality
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -