Can someone help me, I don't know how to show the differences between the output and input voltages on the graph.

I have two voltages at the input: Vin1 and Vin2, at the output I have Vout1 and Vout2

I wanted to show the differences (Vout2 - Vout1) for different inputs (Vin1 = 0 - 0.4 V and Vin2 = 0 - 0.4 V) on the graph.

This is the code I am using now, but it doesn't show the differences in voltages:

Device NVESFET

{

File

{

* input file

Grid = "N_r50o4_s4e+17_p1e+19_msh.tdr"

* output file:

Plot = "Nx_ddr50o4_s4e+17_p1e+19_des.tdr"

Current = "Nx_ddr50o4_s4e+17_p1e+19_des.plt"

}

Electrode

{

{ Name="Source" Voltage=0.0 }

{ Name="Drain" Voltage=0.0 }

{ Name="Gate1" Voltage=0.0 }

{ Name="Gate2" Voltage=0.0 }

}

Physics

{

AreaFactor=0.2

Fermi

EffectiveIntrinsicDensity

(

BandGapNarrowing (OldSlotboom)

)

Mobility

(

DopingDependence

HighFieldSaturation

# eHighFieldsat(CarrierTempDrive)

# hHighFieldsat(GradQuasiFermi)

Enormal

)

Recombination

(

# SRH (DopingDep)

# eAvalanche(CarrierTempDrive)

# hAvalanche(Eparallel)

# Avalanche(GradQuasiFermi)

)

}

}

Device PVESFET

{

File

{

* input file

Grid = "P_r50o4_s4e+17_p1e+19_msh.tdr"

* output file:

Plot = "Px_ddr50o4_s5e+17_p1e+19_des.tdr"

Current = "Px_ddr50o4_s5e+17_p1e+19_des.plt"

}

Electrode

{

{ Name="Source" Voltage=0.0 }

{ Name="Drain" Voltage=0.0 }

{ Name="Gate1" Voltage=0.0 }

{ Name="Gate2" Voltage=0.0 }

}

Physics

{

AreaFactor=0.2

Fermi

EffectiveIntrinsicDensity

(

BandGapNarrowing (OldSlotboom)

)

Mobility

(

DopingDependence

HighFieldSaturation

# eHighFieldsat(CarrierTempDrive)

# hHighFieldsat(GradQuasiFermi)

Enormal

)

Recombination

(

# SRH (DopingDep)

# eAvalanche(CarrierTempDrive)

# hAvalanche(Eparallel)

# Avalanche(GradQuasiFermi)

)

}

}

System

{

Vsource_pset vdd (dd 0) { dc = 0.0 }

Vsource_pset vin1 (in1 0) { dc = 0.0 }

Vsource_pset vin2 (in2 0) { dc = 0.0 }

Vsource_pset vup (up 0) { dc = 0.0 }

# Differential Amplifier

# Resistor_pset r1 (dd out1) { resistance = 10k}

# Resistor_pset r2 (dd out2) { resistance = 10k}

# Left pair

NVESFET n1 ( "Source"=SN1 "Drain"=out1 "Gate1"=in1 "Gate2"=in1 )

PVESFET p1 ( "Source"=dd "Drain"=out1 "Gate1"=up "Gate2"=up )

# Right pair

NVESFET n4 ( "Source"=SN1 "Drain"=out2 "Gate1"=in2 "Gate2"=in2 )

PVESFET p3 ( "Source"=dd "Drain"=out2 "Gate1"=up "Gate2"=up )

# Current Source

PVESFET p2 ( "Source"=dd "Drain"=DP2 "Gate1"=0 "Gate2"=0 )

NVESFET n2 ( "Source"=0 "Drain"=SN1 "Gate1"=DP2 "Gate2"=DP2 )

NVESFET n3 ( "Source"=0 "Drain"=DP2 "Gate1"=DP2 "Gate2"=DP2 )

Capacitor_pset cout ( out1 0 ){ capacitance = 3e-14 }

Plot "WR_0406.plt"

(

time()

# Input voltage

v(in) v(in2)

# Output voltage

v(out1) v(out2)

# Output current

i(n1,out1) i(n4,out2)

# Current Source current

i(n2,SN1)

)

}

Math

{

Extrapolate

RelErrControl

Digits=4

Notdamped=50

Iterations=12

Transient=BE

Method=Blocked

SubMethod=ParDiSo

}

Solve

{

NewCurrentPrefix="init_wr1"

Coupled(Iterations=100){ Poisson }

Coupled

{

Poisson Electron Hole Contact Circuit

}

Quasistationary

(

InitialStep=1e-3 Increment=1.35

MinStep=1e-5 MaxStep=0.05

Goal

{

Parameter=vdd.dc Voltage= 0.8

}

)

{

Coupled

{

n1.poisson n1.electron n1.hole n1.contact

n2.poisson n2.electron n2.hole n2.contact

n3.poisson n3.electron n3.hole n3.contact

n4.poisson n4.electron n4.hole n4.contact

p1.poisson p1.electron p1.hole p1.contact

p2.poisson p2.electron p2.hole p2.contact

p3.poisson p3.electron p3.hole p3.contact

circuit

}

}

Quasistationary

(

InitialStep=1e-3 Increment=1.35

MinStep=1e-5 MaxStep=0.05

Goal

{

Parameter=vup.dc Voltage= 0.001

}

)

{

Coupled

{

n1.poisson n1.electron n1.hole n1.contact

n2.poisson n2.electron n2.hole n2.contact

n3.poisson n3.electron n3.hole n3.contact

n4.poisson n4.electron n4.hole n4.contact

p1.poisson p1.electron p1.hole p1.contact

p2.poisson p2.electron p2.hole p2.contact

p3.poisson p3.electron p3.hole p3.contact

circuit

}

}

NewCurrentPrefix="0406_"

Quasistationary

(

InitialStep=1e-3 Increment=1.35

MinStep=1e-5 MaxStep=0.01

Goal

{

Parameter=vin1.dc Voltage= 0.0

}

)

{

Coupled

{

n1.poisson n1.electron n1.hole n1.contact

n2.poisson n2.electron n2.hole n2.contact

n3.poisson n3.electron n3.hole n3.contact

n4.poisson n4.electron n4.hole n4.contact

p1.poisson p1.electron p1.hole p1.contact

p2.poisson p2.electron p2.hole p2.contact

p3.poisson p3.electron p3.hole p3.contact

circuit

}

}

Quasistationary

(

InitialStep=1e-3 Increment=1.35

MinStep=1e-5 MaxStep=0.01

Goal

{

Parameter=vin2.dc Voltage= 0.4

}

)

{

Coupled

{

n1.poisson n1.electron n1.hole n1.contact

n2.poisson n2.electron n2.hole n2.contact

n3.poisson n3.electron n3.hole n3.contact

n4.poisson n4.electron n4.hole n4.contact

p1.poisson p1.electron p1.hole p1.contact

p2.poisson p2.electron p2.hole p2.contact

p3.poisson p3.electron p3.hole p3.contact

circuit

}

}

}

More Hossam Aboumarak's questions See All
Similar questions and discussions