📄 ieee802153a_channel_model_test.mdl
字号:
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "IEEE802153a_channel_model_test"
Location [196, 98, 720, 429]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType DiscretePulseGenerator
Name "Discrete Pulse\nGenerator"
Ports [0, 1]
Position [110, 80, 140, 110]
Period "5000"
SampleTime "0.02e-9"
}
Block {
BlockType SubSystem
Name "IEEE 802.15.3a\nChannel Model"
Description "IEEE 802.15.3a channel model. It includes the f"
"our modes of the standard: CM1 through CM4, plus a custom setting"
Ports [1, 1]
Position [270, 68, 330, 122]
BackgroundColor "orange"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "IEEE Multipath Channel"
MaskDescription "Filters the discrete-time input with a UWB chan"
"nel realization.\nEnter Sample Time in nsec.\nEnter Symbol Period as a positi"
"ve integer (number of sample times).\nEnter Symbols per Fade as a positive in"
"teger to set duration over which the channel response is constant.\nChoose a "
"standard IEEE or Intel channel model, or enter custom parameters."
MaskHelp "The IEEE Multipath Channel block simulates an i"
"ndoor UWB channel as described in \"A Channel Model for Ultrawideband Indoor "
"Communications\" by J.R. Foerster, M. Pendergrass and A.F. Molisch, November "
"2003 and attempts to incorporate the processes used in their Matlab scripts."
"\n\nThe discrete input is convolved with a realization of the channel impulse"
" response. This response can be one of 4 types (CM1, CM2, CM3 or CM4) descri"
"bed in the paper or a custom channel with user-defined parameters. A new cha"
"nnel realization is generated every symbol period. Response terms that exten"
"d beyond one symbol period (ISI) are added to the output for the next symbol "
"period.\n\nSample time is the rate at which the discrete signal is processed "
"through the channel. It represents the time resolution of the channel and is"
" entered in nsec. The symbol period is the time period of each data symbol a"
"nd is entered as an integral number of sample times. For example, enter\nSam"
"ple Time: 0.02\nSymbol Period: 100\nfor a signal with a symbol period of 2 "
"nsec. and a sampling period of 20 psec.\n\nChannel choices are\nCM1 "
" IEEE line of sight, < 4m\nCM2 IEEE non-line of sight, < 4m\nCM"
"3 IEEE non-line of sight, 4-10m\nCM4 IEEE strong disp"
"ersion, delay spread of 25 nsec.\ncustom define parameters manually"
MaskPromptString "Sample Time (nsec)|Symbol Period|Symbols per Fa"
"de|Channel Type|LOS Channel|LAMBDA|lambda|GAMMA|gamma|sigma1 (dB)|sigma2 (dB)"
"|Shadow sigma (dB)"
MaskStyleString "edit,edit,edit,popup(CM1|CM2|CM3|CM4|Custom),ch"
"eckbox,edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "|||channel_maskcallback3||||||||"
MaskEnableString "on,on,on,on,off,off,off,off,off,off,off,off"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,"
MaskVariables "T=@1;nT=@2;SPF=@3;chantype=@4;LOSflag=&5;LAMBDA"
"=@6;lambda=@7;GAMMA=@8;gamma=@9;sigma1=@10;sigma2=@11;std_shadow=@12;"
MaskInitialization "nTF = SPF * nT;"
MaskDisplay "plot([.1 .9],[0.1 0.1]);\nplot([.1 .1],[0.1 .8]"
");\nplot([.23 .23],[0.1 .35]);\nplot([.3 .3],[0.1 .65]);\nplot([.4 .4],[0.1 ."
"2]);\nplot([.55 .55],[0.1 0.3]);\nplot([.7 .7],[0.1 .15]);\nplot([.85 .85],[0"
".1 0.18]);"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "0.02|5000|2|CM3|off|0.0667|2.1|14|7.9|3.3941|3."
"3941|3"
MaskTabNameString ",,,,,,,,,,,"
System {
Name "IEEE 802.15.3a\nChannel Model"
Location [158, 249, 1146, 662]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [85, 88, 115, 102]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [140, 70, 190, 120]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "nT"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Convolution"
Ports [2, 1]
Position [240, 122, 290, 158]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspsigops/Convolution"
SourceType "Convolution"
domain "Time"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [140, 179, 190, 211]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [490, 284, 540, 316]
Orientation "left"
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Sample-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion2"
Ports [1, 1]
Position [395, 170, 445, 200]
Orientation "up"
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion3"
Ports [1, 1]
Position [310, 124, 360, 156]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [0, 1]
Position [25, 175, 100, 215]
FunctionName "multipath_sim2a"
Parameters "T,nTF,LAMBDA,lambda,GAMMA,gamma,sigma1,sigm"
"a2,std_shadow,LOSflag"
}
Block {
BlockType Reference
Name "Submatrix"
Ports [1, 1]
Position [530, 195, 580, 235]
Orientation "down"
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "Index"
RowStartIndex "nT+1"
RowEndMode "Last"
RowEndIndex "1"
ColSpan "All columns"
ColStartMode "First"
ColStartIndex "1"
ColEndMode "Last"
ColEndIndex "1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [410, 130, 430, 150]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Reference
Name "Unbuffer"
Ports [1, 1]
Position [705, 116, 755, 164]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [430, 280, 465, 320]
Orientation "left"
SampleTime "nT*T*1e-9"
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [620, 122, 665, 158]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "nT"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Reference
Name "Zero Pad1"
Ports [1, 1]
Position [397, 220, 443, 260]
Orientation "up"
NamePlacement "alternate"
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "10000+nT-1"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out1"
Position [780, 133, 810, 147]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
Points [20, 0; 0, 35]
DstBlock "Convolution"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
Points [20, 0; 0, -45]
DstBlock "Convolution"
DstPort 2
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Unbuffer"
DstPort 1
}
Line {
SrcBlock "Convolution"
SrcPort 1
DstBlock "Frame Status\nConversion3"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 120, 0]
Branch {
DstBlock "Zero Pad"
DstPort 1
}
Branch {
DstBlock "Submatrix"
DstPort 1
}
}
Line {
SrcBlock "Submatrix"
SrcPort 1
DstBlock "Frame Status\nConversion1"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [-5, 0]
DstBlock "Zero Pad1"
DstPort 1
}
Line {
SrcBlock "Zero Pad1"
SrcPort 1
DstBlock "Frame Status\nConversion2"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion2"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Unbuffer"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion3"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Annotation {
Position [151, 295]
}
Annotation {
Position [99, 297]
}
}
}
Block {
BlockType Reference
Name "Model Info"
Ports []
Position [144, 194, 407, 286]
BackgroundColor "lightBlue"
ShowName off
FontName "Arial"
FontSize 11
FontWeight "bold"
SourceBlock "simulink/Model-Wide\nUtilities/Model Info"
SourceType "CMBlock"
ShowPortLabels on
InitialBlockCM "none"
BlockCM "none"
Frame "on"
DisplayStringWithTags "IEEE 802.15.3a channel model\n%<Created> by Tim"
" Becker\nTestbench Version %<ModelVersion> \nby Robert Morelos-Zaragoza\nSan "
"Jose State University\nEmail: R.Morelos-Zaragoza@IEEE.org"
MaskDisplayString "IEEE 802.15.3a channel model\\nMon Nov 01 00:17"
":37 2004 by Tim Becker\\nTestbench Version 1.36 \\nby Robert Morelos-Zaragoza"
"\\nSan Jose State University\\nEmail: R.Morelos-Zaragoza@IEEE.org"
HorizontalTextAlignment "Center"
LeftAlignmentValue "0.5"
SourceBlockDiagram "IEEE802153a_channel_model_test"
TagMaxNumber "20"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [385, 79, 415, 111]
Location [756, 74, 1229, 338]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "1e-007"
YMin "-0.6"
YMax "0.6"
DataFormat "StructureWithTime"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [190, 76, 225, 114]
SampleTime "0.02e-9"
}
Line {
SrcBlock "Discrete Pulse\nGenerator"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "IEEE 802.15.3a\nChannel Model"
DstPort 1
}
Line {
SrcBlock "IEEE 802.15.3a\nChannel Model"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . : 8 ( 0 % "
"\" $ ! 0 . . 8 ( ! % \" $ "
"( 0 0 \" $-O;G9#;W)R"
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -