📄 hiperlan2.mdl
字号:
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [105, 30, 135, 60]
ShowName off
Operator "conj"
OutputSignalType "auto"
}
Block {
BlockType Outport
Name " "
Position [265, 38, 295, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock " "
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "OFDM Receiver"
Ports [1, 2]
Position [805, 353, 890, 422]
Orientation "left"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('OFDM\\nReceiver');\nport_label('output',2"
",'pilots')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM Receiver"
Location [157, 81, 1296, 603]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Received signal"
Position [45, 43, 75, 57]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [210, 33, 250, 67]
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [290, 34, 335, 66]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Selector
Name "Remove\n zero-padding\nand\nreorder"
Ports [1, 1]
Position [375, 28, 425, 72]
InputType "Vector"
ElementSrc "Internal"
Elements "[39:64 1:27]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "64"
}
Block {
BlockType Reference
Name "Remove\nPilots"
Ports [1, 2]
Position [455, 12, 500, 83]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{[1:5 7:19 21:26 28:33 35:47 49:53],[6 20 3"
"4 48]}"
idxErrMode "Clip Index"
Port {
PortNumber 1
Name "Data"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
Port {
PortNumber 2
Name "Pilots"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Selector
Name "Remove Cyclic\nPrefix"
Ports [1, 1]
Position [120, 28, 170, 72]
InputType "Vector"
ElementSrc "Internal"
Elements "[17:80]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "80"
}
Block {
BlockType Outport
Name "Data"
Position [585, 23, 615, 37]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "PIlots"
Position [585, 58, 615, 72]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Remove\n zero-padding\nand\nreorder"
DstPort 1
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Received signal"
SrcPort 1
DstBlock "Remove Cyclic\nPrefix"
DstPort 1
}
Line {
SrcBlock "Remove Cyclic\nPrefix"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Remove\n zero-padding\nand\nreorder"
SrcPort 1
DstBlock "Remove\nPilots"
DstPort 1
}
Line {
Name "Data"
Labels [0, 0]
SrcBlock "Remove\nPilots"
SrcPort 1
DstBlock "Data"
DstPort 1
}
Line {
Name "Pilots"
Labels [0, 0]
SrcBlock "Remove\nPilots"
SrcPort 2
DstBlock "PIlots"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "OFDM Transmitter"
Ports [1, 1]
Position [805, 101, 890, 169]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('OFDM\\nTransmitter')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM Transmitter"
Location [157, 81, 1296, 603]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [55, 223, 85, 237]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Selector
Name "Add Cyclic\nPrefix"
Ports [1, 1]
Position [660, 208, 710, 252]
InputType "Vector"
ElementSrc "Internal"
Elements "[49:64 1:64]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "64"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [285, 218, 320, 242]
ShowName off
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "0+0i"
InterpretAs1D off
SampleMode "Discrete"
Ts "4e-6"
FramebasedOutput on
}
Block {
BlockType Gain
Name "Gain"
Position [290, 295, 320, 325]
ShowName off
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [570, 214, 610, 246]
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Complex"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [11, 1]
Position [345, 126, 405, 334]
SourceBlock "simulink3/Signals\n& Systems/Matrix\nConcat"
"enation"
SourceType "Matrix Concatenation"
numInports "11"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 6]
Position [150, 109, 215, 351]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1:5,6:18,19:24,25:30,31:43,44:48}"
idxErrMode "Clip Index"
}
Block {
BlockType Reference
Name "Pilot Generator"
Ports [0, 1]
Position [50, 38, 130, 82]
SourceBlock "commsource2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 1 0 0 0 1]"
ini_sta "[1 1 1 1 1 1 1]"
Ts "4e-6"
frameBased off
sampPerFrame "1"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [160, 40, 225, 80]
ShowName off
FontSize 10
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
M "2"
polarity "Negative"
}
Block {
BlockType SubSystem
Name "Zero pad for OFDM"
Ports [1, 1]
Position [460, 205, 515, 255]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Zero pad\\nfor OFDM');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Zero pad for OFDM"
Location [191, 421, 703, 556]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 53, 60, 67]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [230, 38, 280, 82]
InputType "Vector"
ElementSrc "Internal"
Elements "[27:64 1:26]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "64"
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [120, 42, 165, 78]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
zpadAlong "Columns"
numOutRows "64"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 53, 390, 67]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "In1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -