?? ofdm02.mdl
字號:
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Ground
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Outport
Port "1"
UseBusObject off
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 Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RealImagToComplex
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
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 Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
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 "OFDM"
Location [2, 82, 1270, 977]
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 "AWGN\nChannel"
Ports [1, 1]
Position [400, 90, 450, 130]
AncestorBlock "commchan3/AWGN\nChannel"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "AWGN Channel"
MaskDescription "Add white Gaussian noise to the input signal. T"
"he input and output signals can be real or complex. This block supports multi"
"channel input and output signals as well as frame-based processing.\n\nWhen u"
"sing either of the variance modes with complex inputs, the variance values ar"
"e equally divided among the real and imaginary components of the input signal"
"."
MaskHelp "helpview(commbhelp)"
MaskPromptString "Initial seed:|Mode:|Eb/No (dB):|Es/No (dB):|SNR"
" (dB):|Number of bits per symbol:|Input signal power (watts):|Symbol period ("
"s):|Variance:"
MaskStyleString "edit,popup(Signal to noise ratio (Eb/No)|Signa"
"l to noise ratio (Es/No)|Signal to noise ratio (SNR)|Variance from mask|Var"
"iance from port),edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,off,on,on,on,on,on,on,on"
MaskCallbackString "|commblkawgnchan2(gcb,'Mode');|||||||"
MaskEnableString "on,on,off,off,on,off,on,off,off"
MaskVisibilityString "on,on,off,off,on,off,on,off,off"
MaskToolTipString "on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,"
MaskVariables "seed=@1;noiseMode=@2;EbNodB=@3;EsNodB=@4;SNRdB="
"@5;bitsPerSym=@6;Ps=@7;Tsym=@8;variance=@9;"
MaskInitialization "[mode,s]=commblkawgnchan2(gcb,'init');\nif ~ise"
"mpty(s.status) error(s.status); end"
MaskDisplay "plot(-10,-10,110, 110,[05 15 10 10 05 10 18 14 "
"13 7.5 13 41 44 47 50 53 57\n59 100-[13 7.5 13 14 18 10 5 10 10 15 5]],[70 70"
" 70 85 92 85 79 82 90 88.5\n90 90 87 93 87 93 87 90 90 88.5 90 82 79 85 92 85"
" 70 70 70]);\ndisp('AWGN');\nport_label('input',s.i1,s.i1s);\nport_label('inp"
"ut',s.i2,s.i2s);\nport_label('output',s.o1,s.o1s);\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "61000|Signal to noise ratio (SNR)|20|10|20|1|0"
".5|1|1"
MaskTabNameString ",,,,,,,,"
System {
Name "AWGN\nChannel"
Location [70, 82, 605, 327]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [40, 53, 70, 67]
IconDisplay "Port number"
}
Block {
BlockType "S-Function"
Name "Dynamic AWGN"
Ports [3, 1]
Position [210, 26, 305, 214]
FunctionName "scomawgnchan2"
Parameters "noiseMode, EbNodB, EsNodB, SNRdB, bitsPerSy"
"m, Ps, Tsym, variance"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Reference
Name "Random\nSource"
Ports [0, 1]
Position [40, 101, 75, 139]
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "dspsrcs4/Random\nSource"
SourceType "Random Source"
SrcType "Gaussian"
NormMethod "Ziggurat"
CltLength "12"
MinVal "0"
MaxVal "1"
MeanVal "0"
VarVal "1"
RepMode "Specify seed"
rawSeed "seed"
IsInherit on
SampMode "Discrete"
SampTime "1"
SampFrame "1"
DataType "Double"
OutComplex "Real"
}
Block {
BlockType Ground
Name "Variance"
Position [45, 173, 75, 187]
}
Block {
BlockType Outport
Name "Out1"
Position [490, 113, 520, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Variance"
SrcPort 1
DstBlock "Dynamic AWGN"
DstPort 3
}
Line {
SrcBlock "Dynamic AWGN"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Dynamic AWGN"
DstPort 1
}
Line {
SrcBlock "Random\nSource"
SrcPort 1
DstBlock "Dynamic AWGN"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [25, 58, 105, 102]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "61000"
Ts "1/18000"
frameBased on
sampPerFrame "64"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [515, 90, 565, 140]
FontSize 10
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "40"
V "0"
ic "0"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [1150, 23, 1240, 107]
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [990, 37, 1065, 88]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "64"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [645, 167, 675, 198]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [215, 80, 255, 140]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem1"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -