📄 transmission.mdl
字号:
DialogControllerArgs "DataTag4"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Complex"
additionalParams off
allowOverrides on
firstCoeffMode "Specify word length"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as input"
outputWordLength "16"
outputFracLength "12"
accumMode "Same as product output"
accumWordLength "32"
accumFracLength "24"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "24"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [195, 51, 245, 89]
Elements "[1793:2048 1:2048]"
InputPortWidth "2048"
}
Block {
BlockType Outport
Name "Out"
Position [305, 63, 335, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband2"
Ports [1, 1]
Position [135, 31, 210, 79]
BackgroundColor "yellow"
SourceBlock "commdigbbndpm3/QPSK\nModulator\nBaseban"
"d"
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 "Gray"
Ph "pi/4"
outDtype "double"
outWordLen "16"
outUDDataType "sfix(16)"
outFracLenMode "Best precision"
outFracLen "15"
}
Block {
BlockType SubSystem
Name "add zeros1"
Ports [1, 1]
Position [265, 25, 305, 85]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "add zeros1"
Location [184, 275, 459, 365]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [145, 26, 195, 64]
Elements "[1793:2048 1:1792]"
InputPortWidth "2048"
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [80, 27, 125, 63]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns"
padNumOutRowsSpecMethod "User-specified"
numOutRows "2048"
padNumOutColsSpecMethod "User-specified"
numOutCols "1"
trunc_flag "None"
isVarDimsMode off
}
Block {
BlockType Outport
Name "Out1"
Position [220, 38, 250, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "Zero Pad"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [805, 48, 835, 62]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "MATLAB Fcn3"
SrcPort 1
Points [0, 0]
DstBlock "MATLAB Fcn4"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn4"
SrcPort 1
Points [0, 0]
DstBlock "OFDM Transmitter1"
DstPort 1
}
Line {
SrcBlock "QPSK\nModulator\nBaseband2"
SrcPort 1
Points [0, 0]
DstBlock "add zeros1"
DstPort 1
}
Line {
SrcBlock "Bernoulli Binary\nGenerator2"
SrcPort 1
Points [0, 0]
DstBlock "QPSK\nModulator\nBaseband2"
DstPort 1
}
Line {
SrcBlock "add zeros1"
SrcPort 1
DstBlock "MATLAB Fcn3"
DstPort 1
}
Line {
SrcBlock "OFDM Transmitter1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [0, 1]
Position [665, 30, 705, 90]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('User2')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem1"
Location [18, 240, 933, 415]
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 Reference
Name "Bernoulli Binary\nGenerator1"
Ports [0, 1]
Position [25, 33, 105, 77]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag5"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerato"
"r"
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 "seed+1"
Ts "Ts"
frameBased on
sampPerFrame "256"
orient off
outDataType "double"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn1"
Position [380, 41, 430, 69]
NamePlacement "alternate"
ShowName off
MATLABFcn "reshape((reshape(u,[],16).'),[],1)"
Output1D off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn2"
Position [485, 41, 535, 69]
NamePlacement "alternate"
ShowName off
MATLABFcn "u.*H_fre(:,2)"
Output1D off
}
Block {
BlockType SubSystem
Name "OFDM Transmitter3"
Ports [1, 1]
Position [620, 27, 685, 83]
ShowName off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('OFDM\\nTransmitter')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM Transmitter3"
Location [297, 327, 674, 512]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [30, 63, 60, 77]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [95, 54, 135, 86]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag6"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Complex"
additionalParams off
allowOverrides on
firstCoeffMode "Specify word length"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as input"
outputWordLength "16"
outputFracLength "12"
accumMode "Same as product output"
accumWordLength "32"
accumFracLength "24"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "24"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [195, 51, 245, 89]
Elements "[1793:2048 1:2048]"
InputPortWidth "2048"
}
Block {
BlockType Outport
Name "Out"
Position [305, 63, 335, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Selector2"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband1"
Ports [1, 1]
Position [135, 31, 210, 79]
BackgroundColor "yellow"
SourceBlock "commdigbbndpm3/QPSK\nModulator\nBaseban"
"d"
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 "Gray"
Ph "pi/4"
outDtype "double"
outWordLen "16"
outUDDataType "sfix(16)"
outFracLenMode "Best precision"
outFracLen "15"
}
Block {
BlockType SubSystem
Name "add zeros"
Ports [1, 1]
Position [265, 25, 305, 85]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "add zeros"
Location [184, 275, 459, 365]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [145, 26, 195, 64]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -