HSPICE: how do I measure "Vout/(Vin1-Vin2)"?

Status
Not open for further replies.

Nygen Patricia

Newbie level 2
Joined
Oct 13, 2013
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
17
Hi all

This is a rather simple question. The circuit is a differential to single-ended. Meaning the gain is Vout/(Vin1-Vin2).


I have define:
*-----------------------------
*Indepedent voltage sources
* (I have Cmmom-mode of DC=1.5V with small signal *symmetric swing).
*-----------------------------
V+ Vin1 0 DC 1.5V AC 0.5 0 Sin(0 0.05 2kHz)
V- Vin2 0 DC 1.5V AC 0.5 180 Sin(0 -0.05 2kHz)



*printing out the gain
.print AC VDB(Vout,Vin1).

However, it should be Vout/(Vin1-Vin2). And I have trouble doing this. What can I do to make it happen?
 

Actually there is no need to give 180 degree phase shifted input to the second input.

you can set AC gain for one input and set 0 for second input

so no need to worry about vin1-vin2 as vin2 is zero..

Try this.

thanks
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…