📄 ofdm_fh.mdl
字号:
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "Spectrum\nScope2"
Ports [1]
Position [840, 110, 875, 160]
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag1"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "512"
Overlap "256"
inpFftLenInherit on
FFTlength "512"
numAvg "256"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-43.0087975171762"
YMax "-8.99487880294571"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 1]
Position [435, 95, 535, 150]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('OFDM Modulator\\nand\\nAdd Cyclic Prefix'"
")"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem1"
Location [197, 172, 853, 405]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 13, 45, 27]
ShowName off
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [15, 108, 45, 122]
ShowName off
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [155, 99, 190, 131]
ShowName off
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
ShowPortLabels on
Value "0"
SampleMode "Discrete"
discreteOutput "Frame-based"
continuousOutput "Sample-based"
sampTime "4.4e-5"
framePeriod "4.4e-5"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "off"
Ts "4.4e-5"
FramebasedOutput "on"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [450, 89, 490, 121]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Real"
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 Reference
Name "Matrix\nConcatenation"
Ports [3, 1]
Position [210, 55, 270, 175]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [300, 84, 355, 126]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 2]
Position [70, 35, 130, 195]
ShowName off
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1:15,16:30}"
idxErrMode "Clip Index"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [515, 74, 580, 136]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('Add\\nCyclic Prefix')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [517, 196, 717, 286]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Selector
Name "Selector3"
Ports [1, 1]
Position [80, 26, 120, 64]
InputType "Matrix"
Elements "[51:64,1:64]"
Rows "[49:64,1:64]"
Columns "-1"
InputPortWidth "64"
}
Block {
BlockType Outport
Name "Out1"
Position [145, 38, 175, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Selector3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Selector3"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [375, 76, 430, 134]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('Zero Pad')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem1"
Location [252, 196, 547, 286]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [165, 26, 215, 64]
InputType "Matrix"
Elements "[16:64,1:15]"
Rows "[16:64,1:15]"
Columns "-1"
InputPortWidth "64"
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [80, 27, 125, 63]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns and rows"
padNumOutRowsSpecMethod "User-specified"
numOutRows "64"
padNumOutColsSpecMethod "User-specified"
numOutCols "2"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out1"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Zero Pad"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [605, 98, 635, 112]
ShowName off
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 2
DstBlock "Matrix\nConcatenation"
DstPort 3
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Multiport\nSelector"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
DstBlock "Subsystem1"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
Points [235, 0]
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem10"
Ports [1, 1]
Position [270, 311, 325, 359]
Orientation "left"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('Remove\\nZero')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem10"
Location [227, 463, 527, 671]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [145, 38, 175, 52]
Orientation "left"
IconDisplay "Port number"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [80, 26, 120, 64]
Orientation "left"
ShowName off
InputType "Matrix"
Elements "[1:15,17:31]"
Rows "[1:15,17:31]"
Columns "-1"
InputPortWidth "31"
}
Block {
BlockType Outport
Name "Out1"
Position [25, 38, 55, 52]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Selector2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem11"
Ports [1, 1]
Position [295, 111, 350, 159]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('QPSK\\nMapping')"
MaskIconFrame on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -