📄 uwb.mdl
字号:
SrcPort 1
DstBlock "Deinterleave across\nOFDM frames"
DstPort 1
}
Line {
SrcBlock "Buffer7"
SrcPort 1
DstBlock "Deinterleave within\nOFDM frame"
DstPort 1
}
Line {
SrcBlock "Deinterleave within\nOFDM frame"
SrcPort 1
DstBlock "Buffer6"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Compensate for\ninterleaver delay"
DstPort 1
}
Line {
SrcBlock "Deinterleave across\nOFDM frames"
SrcPort 1
DstBlock "Buffer3"
DstPort 1
}
Line {
SrcBlock "Buffer3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Compensate for\ninterleaver delay"
SrcPort 1
DstBlock "Buffer7"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "DocBlock"
Ports []
Position [607, 51, 647, 74]
BackgroundColor "[0.752941, 0.752941, 0.752941]"
ShowName off
UserDataPersistent on
UserData "DataTag0"
CopyFcn "docblock('breaklink',gcb);"
DeleteFcn "docblock('close_document',gcb);"
PreSaveFcn "docblock('save_document',gcb);"
OpenFcn "docblock('edit_document',gcb);"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "DocBlock"
MaskDescription "Use this block to save long descriptive text wi"
"th the model. Double-clicking the block will open an editor."
MaskPromptString "E Coder Flag|Document Type"
MaskStyleString "edit,popup(Text|RTF|HTML)"
MaskTunableValueString "off,off"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,off"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "ECoderFlag=&1;DocumentType=&2;"
MaskDisplay "plot([.8 0 0 1 1 .8 .8 1],[1 1 0 0 .8 1 .8 .8])"
";\ntext(.5,.5,'DOC','horizontalalignment','center');\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "|Text"
MaskTabNameString ","
System {
Name "DocBlock"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "EmptySubsystem"
Ports []
Position [115, 50, 145, 80]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "EmptySubsystem"
Location [146, 180, 902, 673]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
}
}
Block {
BlockType Reference
Name "Error Rate\nCalculation1"
Ports [2, 1]
Position [120, 190, 200, 245]
BackgroundColor "[1.000000, 1.000000, 0.658824]"
DropShadow on
ShowName off
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "uwb.linkDelay"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType SubSystem
Name "Interleaver"
Ports [1, 1]
Position [215, 130, 290, 160]
BackgroundColor "lightBlue"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Interleaver')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Interleaver"
Location [166, 137, 768, 243]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [105, 32, 120, 58]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "3*uwb.NSD"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [285, 32, 300, 58]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "uwb.NSD"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer2"
Ports [1, 1]
Position [470, 32, 485, 58]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "2*uwb.NSD"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Interleave across\nOFDM frames"
Ports [1, 1]
Position [170, 29, 230, 61]
SourceBlock "commblkintrlv2/Matrix\nInterleaver"
SourceType "Matrix Interleaver"
ShowPortLabels on
Nrows "uwb.NSD*uwb.spreadFactor/uwb.codedBitsPerQP"
"SKSymbol"
Ncols "3"
}
Block {
BlockType Reference
Name "Interleave within\nOFDM frame"
Ports [1, 1]
Position [360, 28, 415, 62]
SourceBlock "commblkintrlv2/Matrix\nInterleaver"
SourceType "Matrix Interleaver"
ShowPortLabels on
Nrows "10"
Ncols "10"
}
Block {
BlockType Outport
Name "Out1"
Position [540, 38, 570, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Interleave across\nOFDM frames"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Interleave within\nOFDM frame"
SrcPort 1
DstBlock "Buffer2"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Interleave within\nOFDM frame"
DstPort 1
}
Line {
SrcBlock "Buffer2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Interleave across\nOFDM frames"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "OFDM Receiver"
Ports [1, 1]
Position [445, 283, 510, 317]
Orientation "left"
BackgroundColor "orange"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('OFDM\\nReceiver')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM Receiver"
Location [6, 281, 1003, 535]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 104, 35, 116]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "2x despreading"
Ports [1, 1]
Position [715, 93, 800, 127]
BackgroundColor "orange"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('2x Despreading')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "2x despreading"
Location [176, 480, 877, 607]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [70, 53, 100, 67]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [160, 35, 210, 85]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "uwb.spreadFactor*uwb.NSD"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [490, 40, 540, 80]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "50"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Gain
Name "Gain"
Position [425, 46, 470, 74]
BackgroundColor "orange"
Gain "0.5"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 2]
Position [245, 30, 305, 90]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{[1:uwb.NSD], [uwb.NSD+1:2*uwb.NSD]}"
idxErrMode "Clip Index"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [370, 40, 390, 80]
BackgroundColor "orange"
ShowName off
Inputs "+|+"
InputSameDT off
}
Block {
BlockType Outport
Name "Out1"
Position [570, 53, 600, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Multiport\nSelector"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Delay"
DstPort 1
}
Line {
SrcBlock "Delay"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 2
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "CE Sequence"
Ports [0, 1]
Position [400, 171, 475, 189]
BackgroundColor "orange"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('CE Sequence')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "CE Sequence"
Location [240, 218, 806, 317]
Open off
ModelBrowserVisibility off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -