📄 wcdmaphlayer.mdl
字号:
Ports [1, 1]
Position [230, 61, 295, 99]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort "off"
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Random Source"
Ports [0, 1]
Position [65, 26, 100, 64]
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "dspsrcs3/Random\nSource"
SourceType "Random Source"
SrcType "Uniform"
Min "0"
Max "1"
Mean "0"
Var "1"
RepMode "Specify seed"
Seed "seed(:)'.*ones(1,max(length(P),length(seed)"
"))"
Inherit "off"
SampMode "Discrete"
SampTime "Ts"
SampFrame "dsp_sampFrame"
OutComplex "Real"
}
Block {
BlockType RelationalOperator
Name "Relational Operator"
Position [160, 62, 190, 93]
ShowName off
Operator ">"
}
Block {
BlockType Reference
Name "Reshape"
Ports [1, 1]
Position [340, 68, 370, 92]
ShowName off
SourceBlock "simulink3/Signals\n& Systems/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[sampPerFrame,max(length(P),length(seed))]"
}
Block {
BlockType Outport
Name "Out"
Position [405, 73, 435, 87]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Random Source"
SrcPort 1
Points [40, 0]
DstBlock "Relational Operator"
DstPort 1
}
Line {
SrcBlock "DSP Constant"
SrcPort 1
Points [40, 0]
DstBlock "Relational Operator"
DstPort 2
}
Line {
SrcBlock "Relational Operator"
SrcPort 1
DstBlock "Frame Status Conversion"
DstPort 1
}
Line {
SrcBlock "Reshape"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Frame Status Conversion"
SrcPort 1
DstBlock "Reshape"
DstPort 1
}
}
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [165, 592, 225, 608]
ShowName off
SampleTime "0.001"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [810, 444, 900, 486]
ShowName off
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [240, 589, 315, 611]
ShowName off
FontSize 9
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Reference
Name "Error Rate Calculation"
Ports [2, 1]
Position [705, 500, 790, 540]
ShowName off
SourceBlock "commsink2/Error Rate Calculation"
SourceType "Error Rate Calculation"
N "totalBitsDelay(1)"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Error Rate Calculation2"
Ports [2, 1]
Position [705, 560, 790, 600]
ShowName off
SourceBlock "commsink2/Error Rate Calculation"
SourceType "Error Rate Calculation"
N "totalBitsDelay(2)"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType From
Name "From1"
Position [585, 448, 675, 462]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "synd1"
}
Block {
BlockType From
Name "From10"
Position [45, 532, 135, 548]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "DPCH_Tx_all"
}
Block {
BlockType From
Name "From12"
Position [290, 532, 375, 548]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "ToChannel"
}
Block {
BlockType From
Name "From14"
Position [290, 552, 375, 568]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "RxSignal"
}
Block {
BlockType From
Name "From15"
Position [585, 562, 675, 578]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "dcch_Tx"
}
Block {
BlockType From
Name "From16"
Position [585, 582, 675, 598]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "dcch_Rx"
}
Block {
BlockType From
Name "From2"
Position [585, 463, 675, 477]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "synd2"
}
Block {
BlockType From
Name "From3"
Position [585, 502, 675, 518]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "dtch_Tx"
}
Block {
BlockType From
Name "From4"
Position [290, 492, 370, 508]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "DPCH_Tx"
}
Block {
BlockType From
Name "From5"
Position [585, 522, 675, 538]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "dtch_Rx"
}
Block {
BlockType From
Name "From6"
Position [290, 512, 380, 528]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "DPCH_Tx_all"
}
Block {
BlockType From
Name "From7"
Position [45, 552, 130, 568]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "chEst"
}
Block {
BlockType From
Name "From8"
Position [45, 492, 125, 508]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "DPCH_Tx"
}
Block {
BlockType From
Name "From9"
Position [45, 512, 145, 528]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "DPCH_Tx_sprd"
}
Block {
BlockType Goto
Name "Goto1"
Position [220, 87, 270, 103]
ShowName off
GotoTag "dtch_Tx"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [85, 312, 175, 328]
Orientation "left"
NamePlacement "alternate"
ShowName off
GotoTag "dtch_Rx"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [215, 202, 270, 218]
ShowName off
GotoTag "dcch_Tx"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [85, 353, 175, 367]
Orientation "left"
NamePlacement "alternate"
ShowName off
GotoTag "dcch_Rx"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto5"
Position [85, 332, 175, 348]
Orientation "left"
NamePlacement "alternate"
ShowName off
GotoTag "synd1"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto6"
Position [85, 372, 175, 388]
Orientation "left"
NamePlacement "alternate"
ShowName off
GotoTag "synd2"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Info"
Ports []
Position [895, 60, 959, 110]
BackgroundColor "cyan"
DropShadow on
ShowName off
FontSize 12
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Info');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Info"
Location [209, 325, 785, 613]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Position [281, 140]
BackgroundColor "cyan"
Text "INFO - Demo:\n\nThis demo presents the simu"
"lation of the Physical Layer for \nFDD downlink as specified by 3GPP (Rel 99)"
".\n\nWCDMA Downlink physical layer supports all the\nfunctions required for t"
"he transmission of bit streams on the \nphysical medium as well their posteri"
"or recovery at the receiver end.\n\nIn the current implementation, there is a"
" inherited delay of two TTI \nbetween transmitted and received data.\n"
DropShadow on
FontName "Arial"
}
}
}
Block {
BlockType SubSystem
Name "Power Spectrum"
Ports [4]
Position [410, 492, 480, 568]
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 "if strcmp(On,'on')\n [picture, map]=imread('sw"
"itch_on.jpg');\n assignin('caller','InstrOn',1);\nelse\n [picture, map]=imr"
"ead('switch_off.jpg');\n assignin('caller','InstrOn',0);\nend"
MaskDisplay "image(picture,'center')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "off|on"
MaskVariableAliases ","
System {
Name "Power Spectrum"
Location [139, 235, 627, 618]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [125, 123, 155, 137]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In3"
Position [130, 183, 160, 197]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In4"
Position [125, 243, 155, 257]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In6"
Position [125, 303, 155, 317]
Port "4"
LatchInput off
Interpolate on
}
Block {
BlockType SubSystem
Name "Collect Data"
Ports [4, 0, 1]
Position [210, 104, 310, 336]
ShowPortLabels on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -