acquisition_theoretic.mdl
来自「本人做的GPS整个基带的捕获模型.用的是SIMULINK,捕获方式采用码并行捕获」· MDL 代码 · 共 2,298 行 · 第 1/5 页
MDL
2,298 行
overflowMode off
LockScale off
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [635, 105, 665, 135]
Operator "conj"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [715, 42, 745, 73]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex1"
Ports [2, 1]
Position [285, 103, 315, 132]
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex2"
Ports [2, 1]
Position [285, 43, 315, 72]
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [450, 102, 495, 138]
DialogControllerArgs "DataTag3"
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "1024"
padNumOutColsSpecMethod "User-specified"
numOutCols "1024"
truncOrWrapMode "Truncate"
trunc_flag "None"
wrap_flag "None"
isVarDimsMode off
outputMode "Same as input"
outputWordLength "16"
outputFracLength "15"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Zero Pad1"
Ports [1, 1]
Position [450, 32, 495, 68]
DialogControllerArgs "DataTag4"
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "1024"
padNumOutColsSpecMethod "User-specified"
numOutCols "1024"
truncOrWrapMode "Truncate"
trunc_flag "None"
wrap_flag "None"
isVarDimsMode off
outputMode "Same as input"
outputWordLength "16"
outputFracLength "15"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Outport
Name "corr result"
Position [965, 53, 995, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "local"
SrcPort 1
Points [170, 0]
Branch {
DstBlock "Real-Imag to\nComplex1"
DstPort 1
}
Branch {
Points [0, 15]
DstBlock "Real-Imag to\nComplex1"
DstPort 2
}
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Zero Pad"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Zero Pad1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [20, 0; 0, -55]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "FFT1"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex1"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "corr result"
DstPort 1
}
Line {
SrcBlock "Zero Pad1"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "FFT1"
DstPort 1
}
Line {
SrcBlock "I"
SrcPort 1
Points [95, 0; 0, 10]
DstBlock "Real-Imag to\nComplex2"
DstPort 1
}
Line {
SrcBlock "Q"
SrcPort 1
Points [95, 0; 0, -5]
DstBlock "Real-Imag to\nComplex2"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex2"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "Buffer"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "2048FFT&IFFT"
Ports [4, 1]
Position [415, 496, 525, 574]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "2048FFT&IFFT"
Location [83, 275, 906, 465]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "I"
Position [50, 38, 80, 52]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Q"
Position [50, 68, 80, 82]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "local_I"
Position [50, 108, 80, 122]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "local_Q"
Position [50, 143, 80, 157]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Abs
Name "Abs"
Position [710, 50, 740, 80]
SaturateOnIntegerOverflow off
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [235, 30, 285, 80]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "1023*2"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [235, 100, 285, 150]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "1023*2"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [425, 38, 465, 72]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag5"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
additionalParams off
SkipNorm on
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
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 "FFT1"
Ports [1, 1]
Position [425, 108, 465, 142]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag6"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Trigonometric fcn"
TableOpt "Speed"
BitRevOrder off
additionalParams off
SkipNorm on
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
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 "IFFT"
Ports [1, 1]
Position [635, 49, 675, 81]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag7"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Complex"
additionalParams off
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
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 Math
Name "Math\nFunction1"
Ports [1, 1]
Position [500, 110, 530, 140]
Operator "conj"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [575, 47, 605, 78]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex1"
Ports [2, 1]
Position [170, 108, 200, 137]
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex2"
Ports [2, 1]
Position [170, 38, 200, 67]
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [335, 107, 380, 143]
DialogControllerArgs "DataTag8"
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "2048"
padNumOutColsSpecMethod "User-specified"
numOutCols "1024"
truncOrWrapMode "Truncate"
trunc_flag "None"
wrap_flag "None"
isVarDimsMode off
outputMode "Same as input"
outputWordLength "16"
outputFracLength "15"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Zero Pad1"
Ports [1, 1]
Position [335, 37, 380, 73]
DialogControllerArgs "DataTag9"
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "2048"
padNumOutColsSpecMethod "User-specified"
numOutCols "1024"
truncOrWrapMode "Truncate"
trunc_flag "None"
wrap_flag "None"
isVarDimsMode off
outputMode "Same as input"
outputWordLength "16"
outputFracLength "15"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Outport
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?