📄 decode_new.mdl
字号:
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 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 Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
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 "decode_new"
Location [85, 57, 673, 456]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Block\nDecoder"
Ports [0, 1]
Position [275, 13, 330, 57]
Orientation "left"
BackgroundColor "[1.000000, 0.501961, 0.000000]"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Block\nDecoder"
Location [0, 44, 792, 590]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "Bit to Integer\nConverter1"
Ports [1, 1]
Position [125, 113, 205, 157]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "8"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter1"
Ports [1, 1]
Position [790, 113, 870, 157]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "8"
}
Block {
BlockType Reference
Name "Integer-Output\nRS Decoder1"
Ports [1, 1]
Position [560, 113, 655, 157]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
SourceBlock "commblkcod2/Integer-Output\nRS Decoder"
SourceType "Integer-Output RS Decoder"
n "255"
k "239"
specPrimPoly on
primPoly "primPoly"
specGenPoly on
genPoly "genPoly"
showNumErr off
}
Block {
BlockType Selector
Name "Selector5"
Ports [1, 1]
Position [250, 113, 300, 157]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
Elements "rs_selector1"
InputPortWidth "rs_selector1_len"
}
Block {
BlockType Selector
Name "Selector6"
Ports [1, 1]
Position [695, 113, 745, 157]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
Elements "rs_selector2"
InputPortWidth "rs_selector2_len"
}
Block {
BlockType Reference
Name "Signal From\nWorkspace"
Ports [0, 1]
Position [25, 118, 80, 152]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
SourceBlock "dspsrcs4/Signal From\nWorkspace"
SourceType "Signal From Workspace"
ShowPortLabels on
X "deconv"
Ts "sample_time_deRS"
nsamps "1/sample_time_deRS"
OutputAfterFinalValue "Setting to zero"
}
Block {
BlockType Reference
Name "Zero Pad to\nCode Word Size3"
Ports [1, 1]
Position [350, 117, 395, 153]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "Beginning"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "239"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Reference
Name "Zero Pad to\nCode Word Size4"
Ports [1, 1]
Position [455, 117, 500, 153]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "255"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out2"
Position [915, 128, 945, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Integer to Bit\nConverter1"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Selector5"
SrcPort 1
DstBlock "Zero Pad to\nCode Word Size3"
DstPort 1
}
Line {
SrcBlock "Selector6"
SrcPort 1
DstBlock "Integer to Bit\nConverter1"
DstPort 1
}
Line {
SrcBlock "Zero Pad to\nCode Word Size3"
SrcPort 1
DstBlock "Zero Pad to\nCode Word Size4"
DstPort 1
}
Line {
SrcBlock "Zero Pad to\nCode Word Size4"
SrcPort 1
DstBlock "Integer-Output\nRS Decoder1"
DstPort 1
}
Line {
SrcBlock "Signal From\nWorkspace"
SrcPort 1
DstBlock "Bit to Integer\nConverter1"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter1"
SrcPort 1
DstBlock "Selector5"
DstPort 1
}
Line {
SrcBlock "Integer-Output\nRS Decoder1"
SrcPort 1
DstBlock "Selector6"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "De-Randomizer"
Ports [1, 1]
Position [130, 13, 185, 57]
Orientation "left"
BackgroundColor "[1.000000, 0.501961, 0.000000]"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "De-Randomizer"
Location [-6, 50, 786, 596]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In2"
Position [90, 288, 120, 302]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [2, 1]
Position [435, 288, 470, 317]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
Operator "XOR"
OutDataTypeMode "Specify via dialog"
LogicDataType "float('double')"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator1"
Ports [0, 1]
Position [260, 353, 340, 397]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
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 "pn_initial"
shift "15"
Ts "sample_time_deRS_out"
frameBased on
sampPerFrame "1/sample_time_deRS_out"
reset off
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [260, 273, 310, 317]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
Elements "[1:1/sample_time_deRS_out]"
InputPortWidth "1/sample_time_deRS_out"
}
Block {
BlockType Outport
Name "Out2"
Position [555, 298, 585, 312]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "PN Sequence\nGenerator1"
SrcPort 1
Points [35, 0; 0, -65]
DstBlock "Logical\nOperator1"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Selector1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Received\nData"
Ports [1]
Position [15, 13, 70, 57]
Orientation "left"
BackgroundColor "[1.000000, 0.501961, 0.000000]"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Received\nData"
Location [46, 187, 762, 668]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In2"
Position [15, 98, 45, 112]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [230, 90, 290, 120]
VariableName "final_decode_result"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "To Workspace1"
DstPort 1
}
}
}
Line {
SrcBlock "Block\nDecoder"
SrcPort 1
DstBlock "De-Randomizer"
DstPort 1
}
Line {
SrcBlock "De-Randomizer"
SrcPort 1
DstBlock "Received\nData"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -