LC filter simualtion in HSPICE

Status
Not open for further replies.

bharatsmile2007

Full Member level 3
Joined
Sep 19, 2007
Messages
179
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
2,306
hi,,

i want to simualte LC filter in HPSICE:

below is the sp file for LC filter:

***LC Filter Transfer function***

.option post=2
* INPUT PARAMETERS:
Vu1 in 0 3.3 ac 1
* TRANSFER FUNCTION
Glowpass out 0 laplace in 0 1/1,0,0.136n
* ANALYSIS
.AC DEC 10 1 1000K

* VIEW RESULTS
.PLOT V(*)
.PROBE
.END
==============================================

when i simualate the same i get any error:

**warning** unknown analysis mode

**error** only 1 connection at node 0ut defined in subckt 0

================================================

can anyone tell me how to solve the problem?

Thanks
 

Well, it's not really an LC filter - no inductors or capacitors!

The line:

Glowpass out 0 laplace in 0 1/1,0,0.136n

has a syntax problem: 1/1 will not be allowed.

You have no load - hence the error. Add a resistor from OUT to node zero.

I am a bit puzzled by the error reference to a subcircuit as a G source isn't a subcircuit.

Keith.
 

Thanks for the reply...

I have TF for the circuit attached here...is 1/(1+s²LC)
L=12mH
C=11nF
i wanted to see the gain of it by ac sim....Cant i do the sim without connecting a load?
 

bharatsmile2007 said:
Thanks for the reply...

i wanted to see the gain of it by ac sim....Cant i do the sim without connecting a load?

Some simulators will complain about floating nodes. As you are using a G source it will drive any load. If it was a real circuit then you could simple use a very large load say 1G ohm so it doesn't affect the circuit but keeps the simulator happy.

Keith.

Added after 1 hours 31 minutes:

The syntax of my simulator is different, but for Hspice I think it should look like the following:

Glowpass out 0 LAPLACE in 0 1 / 1 0 0.136n

The only differences with what you used are spaces instead of commas. Commas may be ok, but then I think the syntax might have to be

Glowpass out 0 LAPLACE in 0 1,/,1,0,0.136n

but I am not sure.

Keith.
 

Thanks keith1200rs...

i got simulation done when i connected the load and the syntax is correct it takes spaces and commas also...

thanks once again....
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…