📄 wimax_test_4.mdl
字号:
Position [100, 398, 155, 432]
SourceBlock "dspsrcs4/Signal From\nWorkspace"
SourceType "Signal From Workspace"
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"
X "input_data"
Ts "1/29"
nsamps "29"
OutputAfterFinalValue "Cyclic repetition"
ignoreOrWarnInputAndFrameLengths "off"
}
Block {
BlockType Constant
Name "Type : Payload Type"
Position [75, 115, 110, 135]
Value "[ 0 0 0 1 0 1]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Concatenate
Name "Vector\nConcatenate"
Ports [11, 1]
Position [400, 24, 410, 436]
NumInputs "11"
Mode "Multidimensional array"
}
Block {
BlockType Outport
Name "MAC PDU"
Position [435, 223, 465, 237]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "HT : Header Type"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 1
}
Line {
SrcBlock "EC : Encryption Control"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 2
}
Line {
SrcBlock "Type : Payload Type"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 3
}
Line {
SrcBlock "RSV : Reserved"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 4
}
Line {
SrcBlock "CI : CRC Indicator"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 5
}
Line {
SrcBlock "EKS : Encryption Key Sequence"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 6
}
Line {
SrcBlock "RSV : Reserved "
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 7
}
Line {
SrcBlock "LEN : Length of Packet"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 8
}
Line {
SrcBlock "CID : Conection Identifier"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 9
}
Line {
SrcBlock "HCS : Header Check Sequence"
SrcPort 1
DstBlock "Vector\nConcatenate"
DstPort 10
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [0, -40]
DstBlock "Manual Switch"
DstPort 2
}
Line {
SrcBlock "Sample Data"
SrcPort 1
DstBlock "Manual Switch"
DstPort 1
}
Line {
SrcBlock "Manual Switch"
SrcPort 1
DstBlock "Data Payload"
DstPort 1
}
Line {
SrcBlock "Data Payload"
SrcPort 1
Points [0, -20]
DstBlock "Vector\nConcatenate"
DstPort 11
}
Line {
SrcBlock "Vector\nConcatenate"
SrcPort 1
DstBlock "MAC PDU"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Data to MAC"
Ports [1]
Position [35, 298, 90, 342]
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp(' MAC PDU \\nReceiver');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Data to MAC"
Location [210, 293, 918, 668]
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 "MAC PDU"
Position [15, 28, 45, 42]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Bit to Integer\nConverter"
Ports [1, 1]
Position [95, 13, 175, 57]
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "8"
outDtype "Same as input"
}
Block {
BlockType Terminator
Name "Terminator"
Position [225, 28, 235, 42]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
ShowName off
}
Line {
SrcBlock "MAC PDU"
SrcPort 1
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "De-Randomizer"
Ports [1, 1]
Position [35, 228, 90, 272]
Orientation "left"
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('De- \\n Randomizer');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "De-Randomizer"
Location [433, 403, 931, 703]
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 "In"
Position [15, 28, 45, 42]
IconDisplay "Port number"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [195, 28, 230, 57]
Operator "XOR"
OutDataTypeMode "Specify via dialog"
LogicDataType "float('double')"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [65, 108, 145, 152]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1]"
ini_sta "[0 0 0 1 1 1 0 1 1 1 1 0 0 0 1]"
outBitMaskSource "Dialog parameter"
shift "15"
Ts "1/280"
frameBased "on"
sampPerFrame "280"
reset "off"
bitPackedOutputs "off"
outDataType "double"
numPackedBits "8"
bitPackDataSigned "off"
bitPackedOutDType "double"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [95, 13, 145, 57]
IndexOptions "Index vector (dialog)"
Indices "[1:280]"
OutputSizes "1"
InputPortWidth "288"
}
Block {
BlockType Outport
Name "Out"
Position [280, 38, 310, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
Points [0, -80]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Deinterleaver"
Ports [1, 1]
Position [275, 228, 330, 272]
Orientation "left"
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('Deinterleaver');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Deinterleaver"
Location [332, 504, 830, 804]
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 "In"
Position [15, 33, 45, 47]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "General Block\nDeinterleaver"
Ports [1, 1]
Position [95, 13, 175, 67]
SourceBlock "commblkintrlv2/General Block\nDeinterleaver"
SourceType "General Block Deinterleaver"
elements "int_idx'"
}
Block {
BlockType Outport
Name "Out"
Position [225, 33, 255, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "General Block\nDeinterleaver"
DstPort 1
}
Line {
SrcBlock "General Block\nDeinterleaver"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [165, 379, 290, 431]
ShowName off
FontName "Arial"
FontSize 8
Format "long"
Decimation "1"
Lockdown off
}
Block {
BlockType From
Name "From1"
Position [15, 405, 65, 415]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "IQ_RX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType From
Name "From2"
Position [15, 375, 65, 385]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "DATA_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType From
Name "From3"
Position [15, 385, 65, 395]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "DATA_RX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType From
Name "From4"
Position [15, 395, 65, 405]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "IQ_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType From
Name "From5"
Position [15, 425, 65, 435]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "OFDM_RX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType From
Name "From6"
Position [15, 415, 65, 425]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "OFDM_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto1"
Position [355, 135, 405, 145]
Orientation "left"
ShowName off
FontName "Arial"
FontSize 8
GotoTag "IQ_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -