📄 ofdm1.mdl
字号:
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
maxDopplerShift "40"
pathDelays "[0 2e-6 4e-6 6e-6 8e-6 10e-6]"
avgPathGaindB "[0 -6 -12 -18 -24 -30]"
normalizePathGains on
seed "3232"
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel2"
Ports [1, 1]
Position [360, 446, 455, 504]
SourceBlock "commchan3/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
maxDopplerShift "40"
pathDelays "[0 2e-6 4e-6 6e-6 8e-6 10e-6]"
avgPathGaindB "[0 -6 -12 -18 -24 -30]"
normalizePathGains on
seed "3232"
enableProbe "0"
openVisAtStart off
outPathGains off
outDelay off
}
Block {
BlockType SubSystem
Name "OFDM Receiver"
Ports [1, 1]
Position [610, 225, 735, 275]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "OFDM Receiver"
Location [384, 437, 904, 529]
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 "In1"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [280, 28, 320, 62]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
InheritFFTLength on
FFTLength "64"
additionalParams off
SkipNorm off
allowOverrides on
firstCoeffMode "User-defined"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as input"
outputWordLength "16"
outputFracLength "12"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "24"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "24"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [390, 27, 440, 63]
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Gain
Name "Gain3"
Position [190, 30, 220, 60]
Gain "1/32."
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Remove CP"
Ports [1, 1]
Position [80, 25, 130, 65]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "Index"
RowStartIndex "217"
RowEndMode "Index"
RowEndIndex "1240+1024"
ColSpan "All columns"
ColStartMode "First"
ColStartIndex "1"
ColEndMode "Last"
ColEndIndex "1"
}
Block {
BlockType Outport
Name "Out1"
Position [465, 38, 495, 52]
IconDisplay "Port number"
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Status\nConversion1"
DstPort 1
}
Line {
SrcBlock "Remove CP"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Remove CP"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "OFDM Receiver1"
Ports [1, 1]
Position [545, 450, 670, 500]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "OFDM Receiver1"
Location [384, 437, 904, 529]
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 "In1"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [280, 28, 320, 62]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag4"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
InheritFFTLength on
FFTLength "64"
additionalParams off
SkipNorm off
allowOverrides on
firstCoeffMode "User-defined"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as input"
outputWordLength "16"
outputFracLength "12"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "24"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "24"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [390, 27, 440, 63]
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Gain
Name "Gain3"
Position [190, 30, 220, 60]
Gain "1/32."
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Remove CP"
Ports [1, 1]
Position [80, 25, 130, 65]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "Index"
RowStartIndex "217"
RowEndMode "Index"
RowEndIndex "1240+1024"
ColSpan "All columns"
ColStartMode "First"
ColStartIndex "1"
ColEndMode "Last"
ColEndIndex "1"
}
Block {
BlockType Outport
Name "Out1"
Position [465, 38, 495, 52]
IconDisplay "Port number"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Remove CP"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Remove CP"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Status\nConversion1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "OFDM Transmitter"
Ports [1, 1]
Position [240, 228, 325, 272]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "OFDM Transmitter"
Location [258, 305, 723, 403]
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 "In1"
Position [25, 43, 55, 57]
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Add CP"
Ports [1, 1]
Position [280, 27, 385, 73]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Add CP"
Location [162, 101, 815, 586]
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 "In1"
Position [25, 93, 55, 107]
IconDisplay "Port number"
}
Block {
BlockType Concatenate
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [190, 68, 230, 112]
Mode "Multidimensional array"
}
Block {
BlockType Reference
Name "Submatrix"
Ports [1, 1]
Position [90, 25, 140, 65]
SourceBlock "dspmtrx3/Submatrix"
SourceType "Submatrix"
RowSpan "Range of rows"
RowStartMode "Index"
RowStartIndex "809+1024"
RowEndMode "Index"
RowEndIndex "1024+1024"
ColSpan "All columns"
ColStartMode "First"
ColStartIndex "1"
ColEndMode "Last"
ColEndIndex "1"
}
Block {
BlockType Outport
Name "Out1"
Position [315, 83, 345, 97]
IconDisplay "Port number"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Branch {
DstBlock "Submatrix"
DstPort 1
}
}
Line {
SrcBlock "Submatrix"
SrcPort 1
Points [15, 0; 0, 35]
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Gain"
Position [175, 35, 205, 65]
Gain "32"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "IFFT1"
Ports [1, 1]
Position [100, 34, 140, 66]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag5"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
InheritFFTLength on
FFTLength "64"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -