The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> How does a circuit simulator actually measure S-parameters?
https://designers-guide.org/forum/YaBB.pl?num=1370461427

Message started by rfmagic on Jun 5th, 2013, 12:43pm

Title: How does a circuit simulator actually measure S-parameters?
Post by rfmagic on Jun 5th, 2013, 12:43pm

Hi,

I am trying to figure out how the circuit simulators (ADS or Cadence and so forth..) actually measure the S-parameters of a 2-port network.
The classical definition of S-parameters is to use the incident (Vi) and reflected (Vr) voltage waves. For example in order to measure S11 we will calculate S11=Vr/Vi. This is actually the way a network analyzer works. It drives the port with an incident wave and using a directional coupler it separates the reflected wave and thus can measure it.

What I find hard to understand is, suppose that my 2-port network includes a series resistor and a shunt capacitor (both lumped) with 50 ohm ports.How does the simulator measure the reflected wave (Vr). there is no directional coupler used...

Is it possible to reproduce the S-parameters simulation results using an AC simulation?

Thanks in advance....

Title: Re: How does a circuit simulator actually measure S-parameters?
Post by Frank Wiedmann on Jun 6th, 2013, 1:46am

Yes, see http://web.archive.org/web/20091123013419/http://w7zoi.net/S-param%20extraction.pdf.

Title: Re: How does a circuit simulator actually measure S-parameters?
Post by rfmagic on Jun 6th, 2013, 2:07am

Frank, Thank you for the link.
In this document it actually plots the S11 over frequency. Do you know how it calculated the S11 from the simulation?
One way I can think of is that it finds the input impedance by dividing the voltage by the current on the input node. and then it uses the relationship gamma=(Zin-50)/(Zin+50) to find S11. so effectively there is no reflected wave measurements here like in a real network analyzer...

Title: Re: How does a circuit simulator actually measure S-parameters?
Post by Frank Wiedmann on Jun 6th, 2013, 4:09am

S11 is the ac voltage at the node S11 in the example circuit (at the negative terminal of the ac voltage source V3). The ac voltage you get there is (2*Zin/(Zin+R1))-1=(Zin-R1)/(Zin+R1).

Title: Re: How does a circuit simulator actually measure S-parameters?
Post by RFICDUDE on Jun 6th, 2013, 6:45pm

Hi Rfmagic,

The measurement setup is as follows:
1. The AC source has a magnitude of 2 V
2. The source resistor is the port impedance (50 ohms)
3. S11 is the AC voltage at the input of the DUT minus 1.

S11=20*log10(Vin-1)

In Wes' simulation he performs the subtraction by using a 1 Vac source from the input node to the node labeled S11.

You can understand the relation by thinking of limiting cases.

1. If Zin=50 ohms then Vin=1 (i.e. it is matched) and S11=1 or -inf dB
2. If Zin=inf then Vin=+2V and S11=+1 or 0dB
3. If Zin=0 then Vin=0 and S11=-1 or 0dB

Have fun.

Title: Re: How does a circuit simulator actually measure S-parameters?
Post by Frank Wiedmann on Jun 7th, 2013, 12:31am

Some minor corrections:


RFICDUDE wrote on Jun 6th, 2013, 6:45pm:
S11=20*log10(Vin-1)

S11=Vin-1
S11[dB]=20*log10(|Vin-1|)


RFICDUDE wrote on Jun 6th, 2013, 6:45pm:
1. If Zin=50 ohms then Vin=1 (i.e. it is matched) and S11=1 or -inf dB

Should of course be S11=0 instead of S11=1.

Title: Re: How does a circuit simulator actually measure S-parameters?
Post by rfmagic on Jun 7th, 2013, 5:33am

Frank and RFICDUDE thanks for your answers.

so if we use the wave terminology, (Vin-1) is the reflected wave and 1V is the incident wave?

Title: Re: How does a circuit simulator actually measure S-parameters?
Post by Frank Wiedmann on Jun 7th, 2013, 6:09am

Yes, neglecting a possible common factor containing the reference impedance (depending on the wave definition). By the way, we are talking here about the so-called pseudo-waves as defined in section 3.2 of http://archive.org/details/jresv97n5p533.

Title: Re: How does a circuit simulator actually measure S-parameters?
Post by rfmagic on Jun 7th, 2013, 6:59am

thanks a lot, Now it is well understood.



Title: Re: How does a circuit simulator actually measure S-parameters?
Post by RFICDUDE on Jun 8th, 2013, 8:02pm

Yes, S11 should be 0 when the input is matched and not 1 as I posted.
I'm glad all is clear despite my error.
8-)

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.