The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 20th, 2024, 10:23pm
Pages: 1
Send Topic Print
how to create macromodel in spectre (Read 3903 times)
avlsi
Community Member
***
Offline



Posts: 91
singapore
how to create macromodel in spectre
Nov 09th, 2006, 11:09pm
 
Hi,

I want to design to a macromodel with components like capacitors ,resistors to emulate a device. So that i can use it like the VCVS as used for running opamp based simulations.

I would like to know the way to create the macromodel and then use it.

Thanks in advance.
Back to top
 
 

Winners never Quit,Quitters never Win
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2386
Silicon Valley
Re: how to create macromodel in spectre
Reply #1 - Nov 10th, 2006, 7:19am
 
Use Verilog-A. It is available in every copy of Spectre.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
avlsi
Community Member
***
Offline



Posts: 91
singapore
Re: how to create macromodel in spectre
Reply #2 - Nov 25th, 2006, 11:30pm
 
hi,

I actually want to calculate a capacitance value based on the voltages given to its terminals. I have done this in SPICE.
I was using V(node1, node2) to get the voltage and calculate the capacitance values using an expression.
In spectre, I am unable to do the same thing. I am getting an error.

Is there a better way to use voltages in expressions.

Thanks in advance.

RE
Back to top
 
 

Winners never Quit,Quitters never Win
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2386
Silicon Valley
Re: how to create macromodel in spectre
Reply #3 - Nov 26th, 2006, 4:19pm
 
The approach you are trying to take is very common, but is not correct. Doing it that way leads to a variety of problems. See http://www.designers-guide.org/Modeling/varactors.pdf for a description of what can go wrong it you use that approach and how to model a capacitor correctly.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: how to create macromodel in spectre
Reply #4 - Dec 12th, 2006, 2:17pm
 
I agree entirely with Ken in this specific case, but it is possible to formulate voltage dependent capacitors (preferrably using a charge-based approach) using the "bsource" component in spectre. This is internally implemented in Verilog-A, and allows voltage or current dependencies to be expressed using spectre syntax.

See spectre -h bsource for more details, or look in the documentation.

However, Verilog-A is a good thing to learn and have under your belt - it gives you far more flexibility than bsource does. Ken and Olaf's book The Designer's Guide to Verilog-AMS is a good place to start on this.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.