📄 wifi_lib.mdl
字号:
BlockType Reference
Name "Column\nvector"
Ports [1, 1]
Position [680, 113, 705, 137]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[1,1]"
}
Block {
BlockType Reference
Name "Column\nvector1"
Ports [1, 1]
Position [145, 313, 170, 337]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector10"
Ports [1, 1]
Position [545, 288, 565, 312]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Row vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector2"
Ports [1, 1]
Position [290, 238, 315, 262]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector3"
Ports [1, 1]
Position [290, 288, 315, 312]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector4"
Ports [1, 1]
Position [290, 338, 315, 362]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector5"
Ports [1, 1]
Position [290, 388, 315, 412]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector6"
Ports [1, 1]
Position [820, 313, 835, 337]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector7"
Ports [1, 1]
Position [545, 238, 565, 262]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Row vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector8"
Ports [1, 1]
Position [545, 388, 565, 412]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Row vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType Reference
Name "Column\nvector9"
Ports [1, 1]
Position [545, 338, 565, 362]
ShowName off
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Row vector"
OutputDimensions "[8,PSDU_size/8]"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle1"
Ports [1, 1]
Position [475, 335, 500, 365]
ShowName off
Output "Angle"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle2"
Ports [1, 1]
Position [475, 285, 500, 315]
ShowName off
Output "Angle"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle3"
Ports [1, 1]
Position [475, 385, 500, 415]
ShowName off
Output "Angle"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle4"
Ports [1, 1]
Position [475, 235, 500, 265]
ShowName off
Output "Angle"
}
Block {
BlockType Reference
Name "DQPSK\nModulator\nBaseband"
Ports [1, 1]
Position [375, 233, 425, 267]
ShowName off
SourceBlock "commdigbbndpm2/DQPSK\nModulator\nBaseband"
SourceType "DQPSK Modulator Baseband"
InType "Bit"
Enc "Binary"
Ph "0"
numSamp "1"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [80, 26, 85, 424]
BackgroundColor "black"
ShowName off
Outputs "[PLCP_size PSDU_size]"
Port {
PortNumber 1
Name "PLCP"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "PSDU"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [755, 106, 775, 144]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [8, 1]
Position [760, 214, 765, 431]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "8"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation4"
Ports [2, 1]
Position [890, 26, 895, 424]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType SubSystem
Name "PLCP mod"
Ports [1, 1]
Position [255, 105, 355, 145]
AttributesFormatString "%<BlockChoice>"
BlockChoice "PLCP mod for long preamble"
TemplateBlock "WiFi_lib/PLCP mod"
MemberBlocks "PLCP mod for long preamble,PLCP mod for sho"
"rt preamble"
TreatAsAtomicUnit off
System {
Name "PLCP mod"
Location [148, 182, 646, 482]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [20, 40, 40, 60]
ForegroundColor "yellow"
}
Block {
BlockType Reference
Name "PLCP mod\nfor long preamble"
Ports [1, 1]
Position [100, 40, 140, 80]
SourceBlock "WiFi_lib/PLCP mod\nfor long preamble"
SourceType "SubSystem"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Outport
Name "Out"
Position [200, 40, 220, 60]
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "PLCP mod\nfor long preamble"
DstPort 1
}
Line {
SrcBlock "PLCP mod\nfor long preamble"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband1"
Ports [1, 1]
Position [370, 284, 425, 316]
ShowName off
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
InType "Bit"
Enc "Binary"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband2"
Ports [1, 1]
Position [370, 334, 425, 366]
ShowName off
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
InType "Bit"
Enc "Binary"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband3"
Ports [1, 1]
Position [370, 384, 425, 416]
ShowName off
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
InType "Bit"
Enc "Binary"
Ph "0"
numSamp "1"
}
Block {
BlockType Reference
Name "Row\nvector"
Ports [1, 1]
Position [445, 113, 470, 137]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Row vector"
OutputDimensions "[1,1]"
}
Block {
BlockType Reference
Name "Select dibits"
Ports [1, 4]
Position [225, 224, 235, 426]
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{ [1 2], [3 4], [5 6], [ 7 8] }"
idxErrMode "Generate Error"
}
Block {
BlockType Gain
Name "Spread with\nBarker code"
Position [535, 109, 610, 141]
Gain "[1; -1; 1; 1; -1; 1; 1; 1; -1; -1; -1 ]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType SubSystem
Name "calculate chips"
Ports [4, 8]
Position [625, 225, 705, 420]
TreatAsAtomicUnit off
System {
Name "calculate chips"
Location [216, 127, 885, 700]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "phi1"
Position [55, 53, 85, 67]
}
Block {
BlockType Inport
Name "phi2"
Position [55, 108, 85, 122]
Port "2"
}
Block {
BlockType Inport
Name "phi3"
Position [55, 188, 85, 202]
Port "3"
}
Block {
BlockType Inport
Name "phi4"
Position [55, 268, 85, 282]
Port "4"
}
Block {
BlockType Reference
Name "Complex\nExponential"
Ports [1, 1]
Position [410, 53, 455, 77]
ShowName off
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
}
Block {
BlockType Reference
Name "Complex\nExponential1"
Ports [1, 1]
Position [410, 128, 455, 152]
ShowName off
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
}
Block {
BlockType Reference
Name "Complex\nExponential2"
Ports [1, 1]
Position [415, 193, 460, 217]
ShowName off
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
}
Block {
BlockType Reference
Name "Complex\nExponential3"
Ports [1, 1]
Position [415, 253, 460, 277]
ShowName off
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
}
Block {
BlockType Reference
Name "Complex\nExponential4"
Ports [1, 1]
Position [415, 308, 460, 332]
ShowName off
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
}
Block {
BlockType Reference
Name "Complex\nExponential5"
Ports [1, 1]
Position [415, 373, 460, 397]
ShowName off
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
}
Block {
BlockType Reference
Name "Complex\nExponential6"
Ports [1, 1]
Position [415, 433, 460, 457]
ShowName off
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
}
Block {
BlockType Reference
Name "Complex\nExponential7"
Ports [1, 1]
Position [415, 513, 460, 537]
ShowName off
SourceBlock "dspmathops/Complex\nExponential"
SourceType "Complex Exponential"
}
Block {
BlockType From
Name "From"
Position [230, 34, 270, 46]
NamePlacement "alternate"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "phi1"
}
Block {
BlockType From
Name "From1"
Position [230, 49, 270, 61]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "phi2"
}
Block {
BlockType From
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -