📄 tenbaset.mdl
字号:
}
}
Line {
SrcBlock "Clock\nShape"
SrcPort 1
DstBlock "Phase1"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Clock\nShape1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType RelationalOperator
Name "Comparator"
Position [400, 52, 430, 83]
Operator ">"
}
Block {
BlockType Gain
Name "Gain"
Position [205, 75, 235, 105]
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Sample\nand Hold"
Ports [1, 1, 0, 1]
Position [475, 50, 525, 90]
NamePlacement "alternate"
SourceBlock "dspsigops/Sample\nand Hold"
SourceType "Sample and Hold"
trig "Rising edge"
initCond "0"
}
Block {
BlockType Switch
Name "Switch1"
Position [320, 25, 350, 55]
Threshold "0.5"
}
Block {
BlockType Switch
Name "Switch2"
Position [320, 85, 350, 115]
Threshold "0.5"
}
Block {
BlockType Outport
Name "Data\nOut"
Position [590, 63, 620, 77]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Clock\nRecovery"
SrcPort 1
Points [5, 0; 0, -45]
Branch {
DstBlock "Switch2"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "Switch1"
DstPort 2
}
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [30, 0]
DstBlock "Comparator"
DstPort 1
}
Line {
SrcBlock "Switch2"
SrcPort 1
Points [30, 0]
DstBlock "Comparator"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
Points [0, -40]
DstBlock "Switch1"
DstPort 3
}
Branch {
DstBlock "Switch2"
DstPort 1
}
}
Line {
SrcBlock "Signal In"
SrcPort 1
Points [65, 0]
Branch {
Points [0, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Clock\nRecovery"
DstPort 1
}
}
Branch {
Points [0, -60; 155, 0]
Branch {
DstBlock "Switch1"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Switch2"
DstPort 3
}
}
}
Line {
SrcBlock "Comparator"
SrcPort 1
DstBlock "Sample\nand Hold"
DstPort 1
}
Line {
SrcBlock "Sample\nand Hold"
SrcPort 1
DstBlock "Data\nOut"
DstPort 1
}
Line {
SrcBlock "Clock\nRecovery"
SrcPort 2
Points [240, 0]
DstBlock "Sample\nand Hold"
DstPort trigger
}
}
}
Block {
BlockType Scope
Name "Transmit\nBits"
Ports [1]
Position [175, 49, 205, 81]
Floating off
Location [41, 53, 971, 292]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1e-005"
YMin "0"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Transmit\nSignal"
Ports [1]
Position [345, 44, 375, 76]
Floating off
Location [45, 162, 978, 401]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1e-006"
YMin "-1.5"
YMax "1.5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Transmitter"
Ports [1, 1]
Position [170, 135, 270, 195]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Transmitter"
Location [125, 201, 782, 399]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Data\nIn"
Position [65, 108, 95, 122]
Port "1"
Interpolate on
}
Block {
BlockType DiscretePulseGenerator
Name "10 MHz Clock"
Position [55, 30, 85, 60]
Amplitude "1"
Period "2"
PulseWidth "1"
PhaseDelay "0"
SampleTime "1/20e6"
VectorParams1D on
}
Block {
BlockType Logic
Name "Clock Phase\nReversed"
Ports [1, 1]
Position [140, 29, 170, 61]
Operator "NOT"
Inputs "2"
}
Block {
BlockType Constant
Name "Constant1"
Position [265, 145, 295, 175]
Value "-1"
VectorParams1D on
}
Block {
BlockType Gain
Name "Gain1"
Position [270, 100, 300, 130]
Gain "2"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [325, 107, 345, 138]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Switch
Name "Switch"
Position [210, 100, 240, 130]
Threshold "0.5"
}
Block {
BlockType Reference
Name "Transmit\nFilter"
Ports [1, 1]
Position [380, 97, 445, 153]
SourceBlock "dsparch3/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "8"
Wlo "9.5e7"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Outport
Name "Signal\nOut"
Position [495, 118, 525, 132]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "10 MHz Clock"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Clock Phase\nReversed"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Switch"
DstPort 3
}
}
Line {
SrcBlock "Clock Phase\nReversed"
SrcPort 1
Points [15, 0; 0, 60]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [10, 0]
DstBlock "Sum"
DstPort 2
}
Line {
Labels [1, 0]
SrcBlock "Data\nIn"
SrcPort 1
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Transmit\nFilter"
DstPort 1
}
Line {
SrcBlock "Transmit\nFilter"
SrcPort 1
DstBlock "Signal\nOut"
DstPort 1
}
}
}
Line {
SrcBlock "Information\nSequence"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -100]
DstBlock "Transmit\nBits"
DstPort 1
}
Branch {
DstBlock "Transmitter"
DstPort 1
}
}
Line {
SrcBlock "Receiver"
SrcPort 1
DstBlock "Received\nBits"
DstPort 1
}
Line {
SrcBlock "Transmitter"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -105]
DstBlock "Transmit\nSignal"
DstPort 1
}
Branch {
DstBlock "CAT3\nCable"
DstPort 1
}
}
Line {
SrcBlock "CAT3\nCable"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Receiver"
DstPort 1
}
Branch {
Points [0, -115]
DstBlock "Received\nSignal"
DstPort 1
}
}
Line {
SrcBlock "Crosstalk\nSequence"
SrcPort 1
DstBlock "Crosstalk\nTransmitter"
DstPort 1
}
Line {
SrcBlock "Crosstalk\nTransmitter"
SrcPort 1
Points [50, 0]
DstBlock "CAT3\nCable"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -