📄 cdma2k_lib.mdl
字号:
Name "In"
Position [25, 43, 55, 57]
}
Block {
BlockType Reference
Name "AWGN\nChannel2"
Ports [1, 1]
Position [215, 29, 295, 71]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "67"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "EcN0"
SNRdB "10"
Ps "1"
Tsym "1/1.2288e6"
variance "1"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel1"
Ports [1, 1]
Position [90, 28, 170, 72]
SourceBlock "commchan2/Multipath Rayleigh\nFading Ch"
"annel"
SourceType "Multipath Rayleigh Fading Channel"
Fd "dopplerFreq"
simTs "1/(1.2288e6*4)"
delayVec "delayVector"
gainVecdB "gainVector"
normGain off
Seed "73"
}
Block {
BlockType Outport
Name "Out"
Position [330, 43, 360, 57]
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel1"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel1"
SrcPort 1
DstBlock "AWGN\nChannel2"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel2"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "No Channel"
Ports [1, 1]
Position [25, 20, 95, 90]
TreatAsAtomicUnit off
MaskDisplay "port_label('input',1,'In')\nport_label('out"
"put',1,'Out')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "No Channel"
Location [265, 231, 700, 533]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 28, 55, 42]
}
Block {
BlockType Outport
Name "Out"
Position [110, 28, 140, 42]
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
}
}
Block {
BlockType SubSystem
Name "CRC"
Ports [1, 1]
Position [35, 103, 160, 167]
TreatAsAtomicUnit off
MaskPromptString "Radio Configuration|Bit Rate|Frame Length|Frame"
" Duration"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "xRC=@1;xBitRate=@2;xFrameLength=@3;xFrameDurati"
"on=@4;"
MaskInitialization "MSFQIInitialization"
MaskDisplay "disp('Frame Quality Indicator\\n\\n(cdma 2000 M"
"S)')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "mRC|mBitRate|mFrameLength|mFrameDuration"
System {
Name "CRC"
Location [239, 324, 564, 424]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Input"
Position [25, 43, 55, 57]
}
Block {
BlockType Reference
Name " CRC"
Ports [1, 1]
Position [165, 26, 240, 74]
SourceBlock "commcrc2/General CRC\nGenerator"
SourceType "General CRC Generator"
genPoly "p"
iniStates "[0]"
numChecksums "1"
}
Block {
BlockType Outport
Name "Output"
Position [270, 43, 300, 57]
}
Line {
SrcBlock " CRC"
SrcPort 1
DstBlock "Output"
DstPort 1
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock " CRC"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "DeFQI"
Ports [1, 2]
Position [445, 224, 555, 286]
TreatAsAtomicUnit off
MaskPromptString "Radio Configuration|Bit Rate|Frame Length|Frame"
" Duration"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "xRC=@1;xBitRate=@2;xFrameLength=@3;xFrameDurati"
"on=@4;"
MaskInitialization "MSDeFQIInitialization"
MaskDisplay "port_label('input',1,'Bits In');\nport_label('o"
"utput',1,'Channel Bits');\nport_label('output',2,'FQI')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "mRC|mBitRate|mFrameLength|mFrameDuration"
System {
Name "DeFQI"
Location [291, 161, 556, 287]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 48, 55, 62]
}
Block {
BlockType Reference
Name "DeFQI"
Ports [1, 2]
Position [90, 28, 165, 77]
SourceBlock "commcrc2/General CRC\nSyndrome\nDetector"
SourceType "General CRC Syndrome Detector"
genPoly "p"
iniStates "[0]"
numChecksums "1"
}
Block {
BlockType Outport
Name "Channel Bits"
Position [210, 33, 240, 47]
}
Block {
BlockType Outport
Name "FQI"
Position [210, 88, 240, 102]
Port "2"
}
Line {
SrcBlock "DeFQI"
SrcPort 1
DstBlock "Channel Bits"
DstPort 1
}
Line {
SrcBlock "DeFQI"
SrcPort 2
Points [10, 0; 0, 30]
DstBlock "FQI"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "DeFQI"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "DeInterleaver"
Ports [1, 1]
Position [195, 222, 390, 288]
TreatAsAtomicUnit off
MaskPromptString "Radio Configuration|Bit Rate|Frame Length|Frame"
" Duration"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "xRC=@1;xBitRate=@2;xFrameLength=@3;xFrameDurati"
"on=@4;"
MaskInitialization "MSDeInterleaverInitialization"
MaskDisplay "port_label('input',1,'Demodulation Symbols');\n"
"port_label('output',1,'Channel Bits')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "mRC|mBitRate|mFrameLength|mFrameDuration"
System {
Name "DeInterleaver"
Location [34, 117, 790, 299]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Demodulation Symbols"
Position [125, 63, 155, 77]
}
Block {
BlockType Reference
Name "Derepeat"
Ports [1, 1]
Position [470, 48, 550, 92]
SourceBlock "commsequence2/Derepeat"
SourceType "Derepeat"
N "xDerepeatFactor"
ic "0"
mode "Maintain input frame size"
}
Block {
BlockType Reference
Name "General Block\nDeinterleaver"
Ports [1, 1]
Position [220, 43, 300, 97]
SourceBlock "commblkintrlv2/General Block\nDeinterleaver"
SourceType "General Block Deinterleaver"
elements "int_table"
}
Block {
BlockType Reference
Name "Insert Zero"
Ports [1, 1]
Position [360, 48, 440, 92]
SourceBlock "commsequence2/Insert Zero"
SourceType "Insert Zero"
insertZeroVector "xInsertVector"
}
Block {
BlockType Outport
Name "Channel Bits"
Position [580, 63, 610, 77]
}
Line {
SrcBlock "Insert Zero"
SrcPort 1
DstBlock "Derepeat"
DstPort 1
}
Line {
SrcBlock "Derepeat"
SrcPort 1
DstBlock "Channel Bits"
DstPort 1
}
Line {
SrcBlock "Demodulation Symbols"
SrcPort 1
DstBlock "General Block\nDeinterleaver"
DstPort 1
}
Line {
SrcBlock "General Block\nDeinterleaver"
SrcPort 1
DstBlock "Insert Zero"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "DeOrthogonal"
Ports [1, 1]
Position [170, 13, 275, 77]
TreatAsAtomicUnit off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "DeOrthogonal"
Location [99, 353, 749, 557]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Input"
Position [25, 43, 55, 57]
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [435, 50, 485, 100]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "24576"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [525, 58, 560, 92]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "16"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Hadamard\nCode Generator"
Ports [0, 1]
Position [150, 123, 255, 177]
SourceBlock "commseqgen2/Hadamard\nCode Generator"
SourceType "Hadamard Code Generator"
length "16"
index "4"
ts "1/1228800"
frameBased "off"
sampPerFrame "1"
}
Block {
BlockType Product
Name "Spread"
Ports [2, 1]
Position [345, 25, 400, 120]
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [100, 26, 150, 74]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [205, 26, 285, 74]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
M "2"
polarity "Negative"
}
Block {
BlockType Outport
Name "Out1"
Position [590, 63, 625, 87]
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -