Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to find dc gain, cmrr, and bandwith for a differential amplifier in hspice

Status
Not open for further replies.

techie12

Newbie level 5
Joined
Feb 6, 2017
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
103
how to find dc gain,cmrr and bandwith for differential amplifier in hspice

I have written a code positive feedback diff amp for gain enhancement but not getting correct output.Please correct it
Code:
.title'differential amplifier'
Vdd 12 0  1V
Vb3 6 0  1V
V0 12 10 0V
Vin1 2 0 sin(2V 0.3V 1Meg)
Vin2 5 0 0V
Vb1 11 0 1V
vb2 8 0 1V
CA 1 0 1uf
CB 4 0 1uf
M1 1 2 3 3 NCH L=32n W=12u
M2 4 5 3 3 NCH L=32n W=12u
M3 1 11 10 10 PCH L=32n W=60u
M4 4 11 10 10 PCH L=32n W=60u
M5 3 6 0 0 NCH L=32n W=150u
M1C 1 4 7 7 NCH L=32n W=12u
M2C 4 1 9 9 NCH L=32n W=12u
M3C 7 8 0 0 NCH L=32n W=12u
M4C 9 8 0 0 NCH L=32n W=12u
.model NCH NMOS level=1
.model PCH PMOS level=1
.tran 0.01us 10us
*.dc 	vdd	0	1V	0.2V
.print  v(1) v(2) v(4) v(5) v(V0) i(vdd)
.print p(vdd)
.measure pwr avg p(vdd) from=0us to=10us
.end
 
Last edited by a moderator:

Re: how to find dc gain,cmrr and bandwith for differential amplifier in hspice

I believe you sketched a schematic before typing-in the net list. You may want to show it.

You should also tell what "expected output" specifically means.

You are using default MOS models. Do you have any indications that they can work with 1V supply voltage? I'm not using HSPICE. My simulator gives me a warning that length parameter is below useful level=1 range.

Generally, before asking others to correct others to "correct" your net list, you should check for reasonable operation points of each transistor to narrow down the problem.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top