?? encode_de.mdl
字號:
}
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 Reference
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Reshape
OutputDimensionality "1-D array"
OutputDimensions "[1,1]"
}
Block {
BlockType Selector
IndexMode "One-based"
InputPortWidth "-1"
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
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
}
}
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 "encode_de"
Location [58, 82, 1070, 726]
Open on
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"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "AWGN\nChannel"
Ports [1, 1]
Position [425, 75, 475, 115]
NamePlacement "alternate"
AncestorBlock "commchan3/AWGN\nChannel"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
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 "6100|Signal to noise ratio (SNR)|20|10|5|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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
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]
NamePlacement "alternate"
DialogController "commDDGCreate"
DialogControllerArgs "DataTag0"
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
P "0.5"
seed "6100"
Ts "1/18000"
frameBased on
sampPerFrame "60"
orient off
outDataType "double"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [1155, 38, 1245, 122]
NamePlacement "alternate"
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [990, 52, 1065, 103]
NamePlacement "alternate"
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "60"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reshape
Name "Reshape"
Position [305, 90, 345, 130]
NamePlacement "alternate"
OutputDimensionality "Customize (N-D)"
OutputDimensions "[160,1]"
}
Block {
BlockType Reshape
Name "Reshape1"
Position [560, 80, 600, 120]
NamePlacement "alternate"
OutputDimensionality "Customize (N-D)"
OutputDimensions "[80,2]"
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [215, 80, 255, 140]
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem1"
Location [61, 305, 775, 704]
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 "In1"
Position [20, 33, 50, 47]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [455, 29, 495, 61]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
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 Concatenate
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [185, 29, 240, 71]
Mode "Horizontal matrix concatenation"
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [95, 26, 140, 54]
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBaseband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
InType "Bit"
Enc "Binary"
Ph "pi/4"
numSamp "1"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1]
Position [105, 170, 145, 230]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem"
Location [344, 430, 894, 677]
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 Concatenate
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [335, 34, 390, 76]
Mode "Vertical matrix concatenation"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [15, 33, 95, 77]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 1 1]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "1/300/15"
frameBased on
sampPerFrame "15"
reset off
outDataType "double"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [145, 33, 225, 77]
SourceBlock "commutil2/Unipolar to\nBipolar\nConvert"
"er"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -