📄 gsm_blocks.mdl
字号:
OutFrame "Frame based"
}
Block {
BlockType Ground
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType MATLABFcn
MATLABFcn "sin"
OutputDimensions "-1"
OutputSignalType "auto"
Output1D on
SampleTime "-1"
}
Block {
BlockType MultiPortSwitch
Inputs "4"
zeroidx off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Terminator
}
Block {
BlockType TriggerPort
TriggerType "rising"
StatesWhenEnabling "inherit"
ShowOutputPort off
OutputDataType "auto"
SampleTimeType "triggered"
SampleTime "1"
ZeroCross on
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Width
OutputDataTypeScalingMode "Choose intrinsic data type"
DataType "double"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "GSM_Blocks"
Location [221, 123, 1134, 794]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "."
Ports [1, 1]
Position [275, 467, 565, 623]
Orientation "left"
BackgroundColor "[0.756863, 1.000000, 0.701961]"
FontName "Arial"
FontSize 20
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Receptor')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "."
Location [258, 530, 995, 729]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 98, 45, 112]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Decoder"
Ports [1, 1]
Position [400, 40, 645, 170]
BackgroundColor "[0.474510, 0.784314, 0.992157]"
FontName "Arial"
FontSize 18
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Decodificacion')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Decoder"
Location [98, 275, 1157, 624]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 78, 45, 92]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType MATLABFcn
Name "Bits Clase 1\n+ CRC (185)"
Position [385, 70, 435, 100]
MATLABFcn "u(1:378)"
OutputDimensions "[378,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Clase 1a\n+ CRC (53)"
Position [685, 70, 735, 100]
MATLABFcn "u(1:53)"
OutputDimensions "[53,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Clase 1b\n(132)"
Position [755, 205, 805, 235]
MATLABFcn "u(54:185)"
OutputDimensions "[132,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Clase 2\n(78)"
Position [600, 280, 650, 310]
MATLABFcn "u(379:456)"
OutputDimensions "[78,1]"
Output1D off
}
Block {
BlockType Reference
Name "Decodificador\nViterbi"
Ports [1, 1]
Position [480, 55, 600, 115]
SourceBlock "commcnvcod2/Viterbi Decoder"
SourceType "Viterbi Decoder"
trellis "poly2trellis(7, [133 171])"
dectype "Hard Decision"
nsdecb "4"
tbdepth "10"
opmode "Truncated"
reset off
}
Block {
BlockType SubSystem
Name "Desentrelazado"
Ports [1, 1]
Position [220, 54, 295, 116]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Desentrelazado"
Location [156, 538, 534, 679]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 68, 45, 82]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Des-entrelazado"
Ports [1, 1]
Position [185, 48, 265, 102]
SourceBlock "commblkintrlv2/Matrix\nDeinterleave"
"r"
SourceType "Matrix Deinterleaver"
ShowPortLabels on
Nrows "57"
Ncols "8"
}
Block {
BlockType Reference
Name "Reshape"
Ports [1, 1]
Position [95, 64, 125, 86]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Column vector"
OutputDimensions "[1,1]"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 68, 355, 82]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Reshape"
DstPort 1
}
Line {
SrcBlock "Des-entrelazado"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Reshape"
SrcPort 1
DstBlock "Des-entrelazado"
DstPort 1
}
Annotation {
Name "Desentrelazado"
Position [192, 21]
FontName "Arial"
FontSize 20
FontWeight "bold"
}
}
}
Block {
BlockType Reference
Name "Detector\nde CRC"
Ports [1, 2]
Position [780, 58, 870, 107]
SourceBlock "commcrc2/General CRC\nSyndrome\nDetecto"
"r"
SourceType "General CRC Syndrome Detector"
genPoly "[1 1 0 1]"
iniStates "[0]"
numChecksums "1"
}
Block {
BlockType Display
Name "Error"
Ports [1]
Position [750, 145, 840, 175]
Orientation "left"
Decimation "1"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [3, 1]
Position [925, 199, 980, 241]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Vertical"
}
Block {
BlockType SubSystem
Name "Separaci髇\nRafagas"
Ports [1, 1]
Position [110, 54, 175, 116]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Separaci髇\nRafagas"
Location [79, 88, 1167, 828]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 368, 45, 382]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 2\n+ SF2"
Position [545, 175, 595, 205]
MATLABFcn "u(88:145)"
OutputDimensions "[58,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 4\n+ SF2"
Position [545, 335, 595, 365]
MATLABFcn "u(88:145)"
OutputDimensions "[58,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 6\n+ SF2"
Position [545, 495, 595, 525]
MATLABFcn "u(88:145)"
OutputDimensions "[58,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 8\n+ SF2"
Position [545, 655, 595, 685]
MATLABFcn "u(88:145)"
OutputDimensions "[58,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 1"
Position [750, 94, 805, 126]
MATLABFcn "u(4:60)"
OutputDimensions "[57,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 1\n+ Tail Bits"
Position [645, 94, 700, 126]
MATLABFcn "u(1:60)"
OutputDimensions "[60,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 1\n+ Tail Bits + S"
"F1"
Position [540, 95, 590, 125]
MATLABFcn "u(1:61)"
OutputDimensions "[61,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 1\n+ Tail Bits + S"
"F4"
Position [540, 575, 590, 605]
ShowName off
MATLABFcn "u(1:61)"
OutputDimensions "[61,1]"
Output1D off
}
Block {
BlockType MATLABFcn
Name "Bits Encriptados 1 +\nTail Bits + S"
"F1 + Training"
Position [420, 95, 470, 125]
MATLABFcn "u(1:87)"
OutputDimensions "[87,1]"
Output1D off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -