📄 uwb.mdl
字号:
Port "2"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [235, 20, 255, 40]
}
Block {
BlockType Product
Name "Estimate eq gain"
Ports [2, 1]
Position [235, 90, 250, 170]
BackgroundColor "orange"
Inputs "*/"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16"
" 14; 12 11; 10 9; 8 7]) "
}
Block {
BlockType Outport
Name "c"
Position [315, 123, 345, 137]
OutputWhenDisabled "reset"
InitialOutput "1"
}
Line {
SrcBlock "Estimate eq gain"
SrcPort 1
DstBlock "c"
DstPort 1
}
Line {
SrcBlock "b"
SrcPort 1
DstBlock "Estimate eq gain"
DstPort 2
}
Line {
SrcBlock "a"
SrcPort 1
DstBlock "Estimate eq gain"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [555, 123, 585, 137]
}
Line {
SrcBlock "In1"
SrcPort 1
Points [185, 0]
Branch {
Points [0, 100]
DstBlock "Conversion2"
DstPort 1
}
Branch {
DstBlock "c = a/b"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [90, 0]
Branch {
DstBlock "c = a/b"
DstPort 2
}
Branch {
Points [0, -110]
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Logical\nOperator1"
DstPort 1
}
Branch {
DstBlock "c = a/b"
DstPort enable
}
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "c = a"
DstPort enable
}
Line {
SrcBlock "c = a/b"
SrcPort 1
DstBlock "Merge"
DstPort 1
}
Line {
SrcBlock "c = a"
SrcPort 1
Points [25, 0; 0, -60]
DstBlock "Merge"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Conversion2"
SrcPort 1
DstBlock "c = a"
DstPort 1
}
Line {
SrcBlock "Merge"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Gain2"
Position [75, 170, 105, 200]
BackgroundColor "orange"
ShowName off
Gain "1/16"
ShowAdditionalParam on
ParameterDataTypeMode "Specify via dialog"
ParameterDataType "uwb.OFDMDataType"
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16 12; 1"
"2 9; 10 9; 8 7]) "
}
Block {
BlockType Reference
Name "Matrix\nSum"
Ports [1, 1]
Position [605, 88, 635, 112]
BackgroundColor "orange"
ShowName off
SourceBlock "dspmtrx3/Matrix\nSum"
SourceType "Matrix Sum"
Dim "Rows"
additionalParams on
allowOverrides on
outputMode "User-defined"
outputWordLength "uwb.OFDMWordLength"
outputFracLength "fpscaling(uwb.OFDMWordLength, [16 11; 1"
"2 8; 10 6; 8 4], 1) "
accumMode "User-defined"
accumWordLength "uwb.OFDMWordLength"
accumFracLength "fpscaling(uwb.OFDMWordLength, [16 11; 1"
"2 8; 10 6; 8 4], 1) "
roundingMode "Floor"
overflowMode off
}
Block {
BlockType Reference
Name "Matrix\nSum1"
Ports [1, 1]
Position [605, 137, 635, 163]
BackgroundColor "orange"
ShowName off
SourceBlock "dspmtrx3/Matrix\nSum"
SourceType "Matrix Sum"
Dim "Rows"
additionalParams on
allowOverrides on
outputMode "User-defined"
outputWordLength "uwb.OFDMWordLength"
outputFracLength "fpscaling(uwb.OFDMWordLength, [16 11; 1"
"2 8; 10 6; 8 6], 1) "
accumMode "User-defined"
accumWordLength "uwb.OFDMWordLength"
accumFracLength "fpscaling(uwb.OFDMWordLength, [16 11; 1"
"2 8; 10 6; 8 6], 1) "
roundingMode "Floor"
overflowMode on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [275, 66, 290, 179]
BackgroundColor "orange"
ShowName off
Inputs "**"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16 12; 1"
"2 10; 10 8; 8 7]) "
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [915, 80, 930, 260]
BackgroundColor "orange"
ShowName off
Inputs "**"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16 8; 12"
" 8; 10 6; 8 5]) "
}
Block {
BlockType Selector
Name "Remove\nDC component\nfrom signal"
Ports [1, 1]
Position [140, 171, 185, 199]
InputType "Matrix"
Elements "[1:26 27:53]"
Rows "[1:61 63:123]"
Columns "-1"
InputPortWidth "53"
}
Block {
BlockType Selector
Name "Remove\nDC component\nfrom training sig"
Ports [1, 1]
Position [70, 81, 115, 109]
InputType "Matrix"
Elements "[1:26 27:53]"
Rows "[1:61 63:123]"
Columns "-1"
InputPortWidth "53"
}
Block {
BlockType Reference
Name "Reshape2"
Ports [1, 1]
Position [745, 112, 790, 138]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[122, 3]"
}
Block {
BlockType Reference
Name "Reshape3"
Ports [1, 1]
Position [335, 115, 380, 135]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[122*3,uwb.spreadFactor]"
}
Block {
BlockType Reference
Name "Select\ntraining/data"
Ports [1, 2]
Position [215, 116, 260, 249]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Columns"
idxCellArray "{1:uwb.CEPerFrame, uwb.CEPerFrame+1:uwb"
".OFDMSpreadSymPerFrame+uwb.CEPerFrame}"
idxErrMode "Clip Index"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [830, 113, 875, 137]
ShowName off
InputType "Matrix"
Elements "[1 3]"
Rows "-1"
Columns "mod([0:uwb.OFDMSpreadSymPerFrame-1],3)+"
"1"
InputPortWidth "3"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [555, 140, 575, 160]
BackgroundColor "orange"
ShowName off
IconShape "round"
Inputs "|++"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16 12; 1"
"2 10; 10 8; 8 6]) "
}
Block {
BlockType Reference
Name "fp analysis"
Ports [1]
Position [355, 20, 435, 60]
BackgroundColor "[1.000000, 1.000000, 0.658824]"
SourceBlock "uwb_lib/fp scope"
SourceType "Fixed-point analysis and visualization."
nBits "uwb.OFDMWordLength"
tolPercent "1"
eMin "-15"
eMax "10"
startFrame "2"
enableScope off
resetHistogram off
refCase on
override "True Doubles"
}
Block {
BlockType Outport
Name "out"
Position [970, 163, 990, 177]
}
Block {
BlockType Outport
Name "rxconst"
Position [730, 232, 750, 248]
Port "2"
}
Line {
SrcBlock "Complex\nConjugate"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Remove\nDC component\nfrom training sig"
SrcPort 1
DstBlock "Complex\nConjugate"
DstPort 1
}
Line {
SrcBlock "Remove\nDC component\nfrom signal"
SrcPort 1
DstBlock "Select\ntraining/data"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "out"
DstPort 1
}
Line {
SrcBlock "Select\ntraining/data"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "trainsig"
SrcPort 1
DstBlock "Remove\nDC component\nfrom training sig"
DstPort 1
}
Line {
SrcBlock "rxsig"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Reshape3"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "fp analysis"
DstPort 1
}
}
Line {
SrcBlock "Select\ntraining/data"
SrcPort 2
Points [420, 0]
Branch {
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, 25]
DstBlock "rxconst"
DstPort 1
}
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Remove\nDC component\nfrom signal"
DstPort 1
}
Line {
SrcBlock "Reshape2"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Reshape3"
SrcPort 1
Points [35, 0]
Branch {
Points [0, -25]
DstBlock "Complex\nConjugate3"
DstPort 1
}
Branch {
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
}
Line {
SrcBlock "Complex\nConjugate3"
SrcPort 1
DstBlock "Matrix\nSum"
DstPort 1
}
Line {
SrcBlock "Division with\ndivisor checking"
SrcPort 1
DstBlock "Reshape2"
DstPort 1
}
Line {
SrcBlock "Matrix\nSum"
SrcPort 1
DstBlock "Division with\ndivisor checking"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -