📄 ofdmtransmitter.mdl
字号:
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
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 Reference
}
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"
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 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 "ofdmtransmitter"
Location [2, 78, 1022, 718]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Inport
Name "inport"
Position [65, 205, 85, 225]
Port "1"
IconDisplay "Port number"
PortDimensions "1"
LatchInput off
}
Block {
BlockType Reference
Name "Binary-Input\nRS Encoder"
Ports [1, 1]
Position [340, 193, 425, 237]
BackgroundColor "[1.000000, 1.000000, 0.501961]"
NamePlacement "alternate"
SourceBlock "commblkcod2/Binary-Input\nRS Encoder"
SourceType "Binary-Input RS Encoder"
ShowPortLabels on
n "15"
k "9"
specPrimPoly off
primPoly "[1 0 0 1 1]"
specGenPoly on
genPoly "rsgenpoly(15,9)"
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [260, 190, 310, 240]
BackgroundColor "cyan"
NamePlacement "alternate"
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "36"
V "0"
ic "0"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [865, 353, 895, 382]
Output "Real and imag"
}
Block {
BlockType Constant
Name "Constant"
Position [560, 275, 590, 305]
BackgroundColor "orange"
NamePlacement "alternate"
Value "[0;0;0;0;0;0;0;0]"
}
Block {
BlockType Reference
Name "Convolutional\nEncoder"
Ports [1, 1]
Position [470, 185, 590, 245]
BackgroundColor "darkGreen"
NamePlacement "alternate"
SourceBlock "commcnvcod2/Convolutional\nEncoder"
SourceType "Convolutional Encoder"
trellis "poly2trellis(7, [133 171])"
reset "On each frame"
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [635, 450, 690, 490]
BackgroundColor "yellow"
NamePlacement "alternate"
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Frames"
delay "0"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [395, 504, 490, 566]
BackgroundColor "[1.000000, 0.501961, 0.501961]"
NamePlacement "alternate"
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Complex"
additionalParams off
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [655, 204, 710, 246]
BackgroundColor "magenta"
NamePlacement "alternate"
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [755, 479, 810, 521]
BackgroundColor "darkGreen"
NamePlacement "alternate"
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nInterleaver"
Ports [1, 1]
Position [755, 198, 835, 252]
BackgroundColor "gray"
NamePlacement "alternate"
SourceBlock "commblkintrlv2/Matrix\nInterleaver"
SourceType "Matrix Interleaver"
ShowPortLabels on
Nrows "8"
Ncols "16"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [200, 511, 275, 559]
BackgroundColor "lightBlue"
NamePlacement "alternate"
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels on
InType "Bit"
Enc "Gray"
Ph "pi/4"
numSamp "1"
}
Block {
BlockType Reference
Name "Scrambler"
Ports [1, 1]
Position [140, 193, 220, 237]
BackgroundColor "[0.752941, 0.752941, 0.752941]"
NamePlacement "alternate"
SourceBlock "commsequence2/Scrambler"
SourceType "Scrambler"
M "2"
poly "[1 0 0 0 1 0 0 1]"
ini_sta "[1 1 1 0 1 0 1]"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [635, 516, 685, 554]
BackgroundColor "yellow"
NamePlacement "alternate"
Elements "[57:64]"
InputPortWidth "64"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [850, 485, 910, 515]
BackgroundColor "green"
VariableName "out"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Outport
Name "real"
Position [970, 315, 990, 335]
IconDisplay "Port number"
BusOutputAsStruct off
SampleTime "72"
DataType "double"
SamplingMode "Frame based"
InitialOutput "0"
}
Block {
BlockType Outport
Name "imaginary"
Position [970, 385, 990, 405]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
SampleTime "72"
DataType "double"
SamplingMode "Frame based"
InitialOutput "0"
}
Line {
SrcBlock "Binary-Input\nRS Encoder"
SrcPort 1
DstBlock "Convolutional\nEncoder"
DstPort 1
}
Line {
SrcBlock "Convolutional\nEncoder"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0; 0, -55]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Matrix\nInterleaver"
DstPort 1
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Delay"
SrcPort 1
Points [20, 0; 0, 40]
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
SrcBlock "Selector"
SrcPort 1
Points [40, 0; 0, -45]
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
Line {
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "To Workspace"
DstPort 1
}
Branch {
Points [0, -130]
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
Line {
SrcBlock "IFFT"
SrcPort 1
Points [85, 0]
Branch {
DstBlock "Selector"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Delay"
DstPort 1
}
}
Line {
SrcBlock "Matrix\nInterleaver"
SrcPort 1
Points [55, 0; 0, 105; -770, 0; 0, 205]
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [15, 0; 0, -35]
DstBlock "real"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [15, 0; 0, 20]
DstBlock "imaginary"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Binary-Input\nRS Encoder"
DstPort 1
}
Line {
SrcBlock "Scrambler"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "inport"
SrcPort 1
DstBlock "Scrambler"
DstPort 1
}
Annotation {
Name "OFDM Transmitter"
Position [499, 77]
BackgroundColor "[0.501961, 0.501961, 0.752941]"
DropShadow on
FontName "Arial"
FontSize 48
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"$ 0 0 0 249&5 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -