📄 uwb.mdl
字号:
Line {
SrcBlock "Matrix\nSum1"
SrcPort 1
DstBlock "Division with\ndivisor checking"
DstPort 2
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Abs1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Matrix\nSum1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
DstBlock "Abs1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Conversion3"
Ports [1, 1]
Position [845, 90, 885, 130]
BackgroundColor "lightBlue"
ShowName off
SourceBlock "fixpt_lib_4/Data Type/Conversion"
SourceType "Fixed-Point to Fixed-Point Conversion"
ConvertRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "float('double')"
OutScaling "2^-10"
LockScale off
RndMeth "Floor"
DoSatur on
}
Block {
BlockType Reference
Name "Conversion4"
Ports [1, 1]
Position [70, 89, 110, 131]
BackgroundColor "[0.800000, 0.533333, 0.792157]"
ShowName off
SourceBlock "fixpt_lib_4/Data Type/Conversion"
SourceType "Fixed-Point to Fixed-Point Conversion"
ConvertRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16 13; 12 9;"
" 10 8; 8 6]) "
LockScale on
RndMeth "Nearest"
DoSatur on
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [340, 93, 380, 127]
BackgroundColor "orange"
ShowName off
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
additionalParams on
SkipNorm on
allowOverrides on
firstCoeffMode "User-defined"
firstCoeffWordLength "uwb.OFDMWordLength"
firstCoeffFracLength "fpscaling(uwb.OFDMWordLength, [16 8; 12 5; "
"10 3; 8 2], 1) "
outputMode "User-defined"
outputWordLength "uwb.OFDMWordLength"
outputFracLength "fpscaling(uwb.OFDMWordLength, [16 8; 12 5; "
"10 3; 8 2], 1) "
accumMode "Same as output"
accumWordLength "uwb.OFDMWordLength"
accumFracLength "fpscaling(uwb.OFDMWordLength, [16 8; 12 5; "
"10 3; 8 2], 1) "
prodOutputMode "Same as accumulator"
prodOutputWordLength "uwb.OFDMWordLength"
prodOutputFracLength "fpscaling(uwb.OFDMWordLength, [16 8; 12 5; "
"10 3; 8 2], 1) "
roundingMode "Floor"
overflowMode off
}
Block {
BlockType Goto
Name "Goto"
Position [910, 169, 970, 181]
ShowName off
GotoTag "rxEqConst"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto1"
Position [625, 28, 680, 42]
ShowName off
GotoTag "rxEqSig"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [620, 173, 675, 187]
ShowName off
GotoTag "rxConst"
TagVisibility "global"
}
Block {
BlockType Selector
Name "Remove\nsync preamble"
Ports [1, 1]
Position [255, 95, 300, 125]
InputType "Matrix"
Rows "-1"
Columns "[(uwb.PSPerFrame + uwb.FSPerFrame + 1):uwb."
"OFDMTotSymPerFrame]"
InputPortWidth "53"
}
Block {
BlockType SubSystem
Name "Remove guard period,\nprocess suffix, and\n"
"group frames"
Ports [1, 1]
Position [145, 83, 215, 137]
BackgroundColor "orange"
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('Remove GP,\\nProcess Suffix,\\nand\\n"
"Group Frames')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Remove guard period,\nprocess suffix, and"
"\ngroup frames"
Location [194, 397, 824, 591]
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, 58, 55, 72]
}
Block {
BlockType Reference
Name "Buffer9"
Ports [1, 1]
Position [435, 50, 455, 80]
NamePlacement "alternate"
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "uwb.NFFT * uwb.OFDMTotSymPerFrame"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Demultiplex1"
Ports [1, 1]
Position [500, 50, 550, 80]
NamePlacement "alternate"
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[uwb.NFFT uwb.OFDMTotSymPerFrame]"
}
Block {
BlockType Selector
Name "Remove\nsuffix"
Ports [1, 1]
Position [345, 53, 395, 77]
InputType "Matrix"
Elements "1:uwb.NFFT"
Rows "1:uwb.NFFT"
Columns "-1"
}
Block {
BlockType Selector
Name "Select\nOFDM frame"
Ports [1, 1]
Position [110, 50, 160, 80]
Elements "1:uwb.NFFT2"
Rows "1:uwb.NFFT2"
Columns "-1"
}
Block {
BlockType Selector
Name "Select suffix"
Ports [1, 1]
Position [110, 135, 160, 165]
Elements "uwb.NFFT+1:uwb.NFFT2"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [290, 55, 310, 75]
BackgroundColor "orange"
ShowName off
IconShape "round"
Inputs "|++"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16 10; 1"
"2 9; 10 8; 8 6]) "
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [210, 132, 260, 168]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "uwb.NFFT2"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out1"
Position [595, 58, 625, 72]
}
Line {
SrcBlock "Demultiplex1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Remove\nsuffix"
SrcPort 1
DstBlock "Buffer9"
DstPort 1
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
Points [35, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Remove\nsuffix"
DstPort 1
}
Line {
SrcBlock "Select\nOFDM frame"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Select suffix"
SrcPort 1
DstBlock "Zero Pad"
DstPort 1
}
Line {
SrcBlock "Buffer9"
SrcPort 1
DstBlock "Demultiplex1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 85]
DstBlock "Select suffix"
DstPort 1
}
Branch {
DstBlock "Select\nOFDM frame"
DstPort 1
}
}
Annotation {
Name "Group OFDM Frames"
Position [482, 26]
}
Annotation {
Name "Remove gurad period and append suffix t"
"o start of OFDM frame"
Position [195, 26]
}
}
}
Block {
BlockType SubSystem
Name "Remove pilots\nand ungroup symbols"
Ports [1, 1]
Position [620, 75, 675, 145]
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('Remove\\nPilots\\nand\\nUngroup\\nSym"
"bols')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Remove pilots\nand ungroup symbols"
Location [289, 518, 871, 644]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 48, 60, 62]
}
Block {
BlockType Reference
Name "Buffer5"
Ports [1, 1]
Position [350, 40, 370, 70]
NamePlacement "alternate"
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "uwb.NSD"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [110, 38, 145, 72]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Remove\npilots"
Ports [1, 1]
Position [180, 17, 220, 93]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "5+[1, 3:11, 13:21, 23:31, 33:41, 43:51,"
" 53:56, 57:60, 62:70, 72:80, 82:90, 92:100, 102:110, 112]"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "Reshape1"
Ports [1, 1]
Position [275, 39, 295, 71]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "960"
}
Block {
BlockType Outport
Name "Out1"
Position [420, 48, 450, 62]
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Frame Status\nConversion1"
DstPort 1
}
Line {
SrcBlock "Remove\npilots"
SrcPort 1
DstBlock "Reshape1"
DstPort 1
}
Line {
SrcBlock "Reshape1"
SrcPort 1
DstBlock "Buffer5"
DstPort 1
}
Line {
SrcBlock "Buffer5"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "Remove\npilots"
DstPort 1
}
}
}
Block {
BlockType Selector
Name "Remove zeros\nand shift"
Ports [1, 1]
Position [420, 100, 470, 120]
InputType "Matrix"
Elements "[39:64 1:27]"
Rows "uwb.RXSelectFFTIndices"
Columns "-1"
InputPortWidth "64"
}
Block {
BlockType Reference
Name "fp analysis"
Ports [1]
Position [165, 15, 245, 55]
BackgroundColor "[1.000000, 1.000000, 0.65
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -