📄 wimax_test_4.mdl
字号:
Block {
BlockType Reference
Name "Integer-Input\nRS Encoder"
Ports [1, 1]
Position [320, 13, 405, 57]
SourceBlock "commblkcod2/Integer-Input\nRS Encoder"
SourceType "Integer-Input RS Encoder"
n "255"
k "239"
specPrimPoly "on"
primPoly "Prim_Poly"
specGenPoly "on"
genPoly "Gen_Poly"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [455, 13, 505, 57]
IndexOptions "Index vector (dialog)"
Indices "[240:243,204:239]"
OutputSizes "1"
InputPortWidth "255"
}
Block {
BlockType Reference
Name "Zero Pad to\nCode Word Size"
Ports [1, 1]
Position [225, 17, 270, 53]
SourceBlock "dspsigops/Pad"
SourceType "Pad"
padAlong "Columns"
dimsToPad "1"
valSrc "Specify via dialog"
padVal "0"
spec "Output size"
padNumOutRowsSpecMethod "User-specified"
numOutRows "239"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
isVarDimsMode "off"
padBeginning "0"
padEnd "0"
outSizeMode "User-specified"
outSize "1"
padSigAt "Beginning"
trunc_flag "None"
outputMode "Same as input"
outputWordLength "0"
outputFracLength "0"
accumMode "Same as input"
accumWordLength "0"
accumFracLength "0"
roundingMode "Floor"
overflowMode "off"
LockScale "off"
truncOrWrapMode "Truncate"
wrap_flag "None"
}
Block {
BlockType Outport
Name "Code"
Position [685, 28, 715, 42]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Integer-Input\nRS Encoder"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
Labels [1, 0]
SrcBlock "Zero Pad to\nCode Word Size"
SrcPort 1
DstBlock "Integer-Input\nRS Encoder"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
DstBlock "Zero Pad to\nCode Word Size"
DstPort 1
}
Line {
SrcBlock "Msg"
SrcPort 1
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
DstBlock "Code"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Convolutional\nDecoder"
Ports [1, 1]
Position [195, 228, 250, 272]
Orientation "left"
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('Convolutional \\n Decoder');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Convolutional\nDecoder"
Location [2, 82, 1014, 744]
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 "Code"
Position [15, 38, 45, 52]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Insert Zero"
Ports [1, 1]
Position [225, 23, 305, 67]
SourceBlock "commsequence2/Insert Zero"
SourceType "Insert Zero"
insertZeroVector "reshape([1 0 1 0 1;1 1 0 1 0], 10, 1)"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [95, 23, 175, 67]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
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"
M "2"
polarity "Negative"
dataType "Same as input"
}
Block {
BlockType Reference
Name "Viterbi Decoder"
Ports [1, 1]
Position [355, 15, 475, 75]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "commcnvcod2/Viterbi Decoder"
SourceType "Viterbi Decoder"
trellis "poly2trellis(7, [171 133])"
isPunctured "off"
punctureVector "[1; 1; 0; 1; 0; 1]"
erasures "off"
dectype "Unquantized"
runSigValErrCheck "off"
nsdecb "8"
smWordLength "16"
tbdepth "8"
opmode "Continuous"
reset "off"
outDataType "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Msg"
Position [525, 38, 555, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Insert Zero"
SrcPort 1
DstBlock "Viterbi Decoder"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Insert Zero"
DstPort 1
}
Line {
SrcBlock "Code"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Viterbi Decoder"
SrcPort 1
DstBlock "Msg"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Convolutional\nEncoder"
Ports [1, 1]
Position [195, 88, 250, 132]
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp(' Convolutional \\n Encoder');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Convolutional\nEncoder"
Location [433, 403, 867, 504]
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 "Msg"
Position [15, 33, 45, 47]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Convolutional\nEncoder"
Ports [1, 1]
Position [100, 13, 205, 67]
SourceBlock "commcnvcod2/Convolutional\nEncoder"
SourceType "Convolutional Encoder"
trellis "poly2trellis(7, [171 133])"
opMode "Continuous"
usePuncVector "off"
punctureVector "[1; 1; 0; 1; 0; 1]"
reset "Unused parameter value"
}
Block {
BlockType Reference
Name "Puncture"
Ports [1, 1]
Position [255, 18, 335, 62]
SourceBlock "commsequence2/Puncture"
SourceType "Puncture"
punctureVector "reshape([1 0 1 0 1;1 1 0 1 0], 10, 1)"
}
Block {
BlockType Outport
Name "Code"
Position [385, 33, 415, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Convolutional\nEncoder"
SrcPort 1
DstBlock "Puncture"
DstPort 1
}
Line {
SrcBlock "Puncture"
SrcPort 1
DstBlock "Code"
DstPort 1
}
Line {
SrcBlock "Msg"
SrcPort 1
DstBlock "Convolutional\nEncoder"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Data From MAC"
Ports [0, 1]
Position [35, 18, 90, 62]
Orientation "left"
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('MAC PDU');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Data From MAC"
Location [2, 82, 1014, 744]
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 Constant
Name "CI : CRC Indicator"
Position [75, 185, 110, 205]
Value "[0]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Constant
Name "CID : Conection Identifier"
Position [75, 327, 110, 343]
Value "[ 0 1 1 1 1 0 0 1 1 0 1 0 1 1 0 1]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Reference
Name "Data Payload"
Ports [1, 1]
Position [255, 410, 345, 440]
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "8"
outDtype "double"
}
Block {
BlockType Constant
Name "EC : Encryption Control"
Position [75, 81, 110, 99]
Value "[ 1]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Constant
Name "EKS : Encryption Key Sequence"
Position [75, 221, 110, 239]
Value "[ 1 0]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Constant
Name "HCS : Header Check Sequence"
Position [75, 361, 110, 379]
Value "[ 0 0 0 0 1 1 1 1]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Constant
Name "HT : Header Type"
Position [75, 46, 110, 64]
Value "[ 0]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Constant
Name "LEN : Length of Packet"
Position [75, 291, 110, 309]
Value "[ 0 0 1 1 1 0 0 0 1 0 0]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Reference
Name "Manual Switch"
Ports [2, 1]
Position [200, 407, 230, 443]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
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"
sw "1"
action "0"
varsize "off"
}
Block {
BlockType Constant
Name "RSV : Reserved"
Position [75, 151, 110, 169]
Value "[0]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Constant
Name "RSV : Reserved "
Position [75, 256, 110, 274]
Value "[1]'"
VectorParams1D off
SamplingMode "Frame based"
OutDataTypeMode "double"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [100, 455, 165, 495]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
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"
mul "256"
seed "37"
Ts "1/29"
frameBased "on"
sampPerFrame "29"
orient "off"
outDataType "double"
}
Block {
BlockType Reference
Name "Sample Data"
Ports [0, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -