📄 dc_2.mdl
字号:
Block {
BlockType Display
Name "BER Metric"
Ports [1]
Position [700, 56, 790, 124]
Decimation "1"
Lockdown off
}
Block {
BlockType SubSystem
Name "Baseband Rx"
Ports [1, 1]
Position [615, 59, 675, 121]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Baseband Rx"
Location [403, 80, 962, 476]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "IQ in"
Position [15, 128, 45, 142]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [250, 219, 325, 271]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sampPerSymb "1"
offsetEye "0"
numTraces "40"
numNewFrames "40"
LineMarkers "."
LineColors "b"
fading off
render off
AxisGrid on
xMin "-2.5"
xMax "2.5"
yMin "-2.5"
yMax "2.5"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[750 67 230 238]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [375, 97, 450, 148]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "Frame+2*RRC_Delay"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType From
Name "From"
Position [250, 45, 305, 75]
CloseFcn "tagdialog Close"
GotoTag "Tx_data"
TagVisibility "global"
}
Block {
BlockType Reference
Name "M-PSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [240, 110, 315, 160]
DialogController "commDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "commdigbbndpm3/M-PSK\nDemodulator\nBaseband"
SourceType "M-PSK Demodulator Baseband"
M "4"
Ph "pi/4"
Dec "Binary"
Mapping "[0:7]"
OutType "Integer"
DecType "Hard decision"
VarSource "Dialog"
Variance "1"
outDtype1 "Inherit via internal rule"
outDtype2 "Inherit via internal rule"
derotateFactorDTMode "Same word length as input"
derotateFactorWordLen "16"
}
Block {
BlockType Reference
Name "Raised Cosine\nReceive Filter"
Ports [1, 1]
Position [90, 113, 170, 157]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag1"
SourceBlock "commfilt2/Raised Cosine\nReceive Filter"
SourceType "Raised Cosine Receive Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
filtType "Square root"
N "8"
D "RRC_Delay"
R "0.25"
sampMode "Frame-based"
rateMode "Downsampling"
downFactor "D"
downOffset "6"
checkGain "Normalized"
filterGain "1"
checkCoeff off
variableName "rcRxFilt"
launchFVT off
roundingMode "Floor"
overflowMode off
coeffMode "Same word length as input"
coeffWordLength "16"
coeffFracLength "15"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
accumMode "Same as product output"
accumWordLength "32"
accumFracLength "30"
outputMode "Same as accumulator"
outputWordLength "16"
outputFracLength "15"
LockScale off
}
Block {
BlockType Outport
Name "BER"
Position [485, 118, 515, 132]
IconDisplay "Port number"
}
Line {
SrcBlock "Raised Cosine\nReceive Filter"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 110]
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Branch {
DstBlock "M-PSK\nDemodulator\nBaseband"
DstPort 1
}
}
Line {
SrcBlock "From"
SrcPort 1
Points [50, 0]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Line {
SrcBlock "M-PSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "IQ in"
SrcPort 1
DstBlock "Raised Cosine\nReceive Filter"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "BER"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Direct Conversion Rx"
Ports [1, 2]
Position [400, 60, 440, 120]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Direct Conversion Rx"
Location [190, 80, 837, 507]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 123, 55, 137]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Alpha"
Ports [1, 1]
Position [305, 110, 335, 140]
SourceBlock "simulink/Math\nOperations/Slider\nGain"
SourceType "Slider Gain"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
low "0"
gain "0"
high "0.1"
}
Block {
BlockType Reference
Name "Analog\nAA Filter I"
Ports [1, 1]
Position [485, 71, 535, 109]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Bessel"
filttype "Lowpass"
N "5"
Wlo "2*pi*2*Fsym"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nAA Filter Q"
Ports [1, 1]
Position [485, 211, 535, 249]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Bessel"
filttype "Lowpass"
N "5"
Wlo "2*pi*2*Fsym"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Constant
Name "Constant"
Position [235, 110, 265, 140]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [160, 111, 165, 149]
BackgroundColor "black"
ShowName off
Outputs "2"
DisplayOption "bar"
Port {
PortNumber 1
Name "I_lo"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "Q_lo"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType SubSystem
Name "Mixer IP2 Impairment"
Ports [4, 2]
Position [375, 18, 425, 302]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Mixer IP2 Impairment"
Location [290, 173, 760, 568]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [25, 143, 55, 157]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In3"
Position [25, 193, 55, 207]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In4"
Position [25, 88, 55, 102]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [230, 27, 260, 58]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [220, 177, 250, 208]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [80, 80, 110, 110]
Operator "square"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Product
Name "m1"
Ports [2, 1]
Position [155, 87, 185, 118]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [300, 38, 330, 52]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "Out2"
Position [305, 188, 335, 202]
Port "2"
IconDisplay "Port number"
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "m1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "m1"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -55]
DstBlock "Add1"
DstPort 2
}
Branch {
Points [0, 80]
DstBlock "Add2"
DstPort 1
}
}
Line {
SrcBlock "In3"
SrcPort 1
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "In2"
SrcPort 1
Points [80, 0]
DstBlock "m1"
DstPort 2
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Out1"
DstPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -