Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Replacing variables with real values for layout.

572 views
Skip to first unread message

Svenn Are Bjerkem

unread,
Jul 24, 2007, 8:46:12 AM7/24/07
to
Hi,

Variables on properties in schematic is nice for simulations, but when
moving over to layout those variables make a little headache. I am now
looking for a way to script a replacement of the variables going from
a "schematic" schematic view to a "schematicWork" schematic view which
will later be used for Virtuoso-XL. I want to keep the original
schematic with the variables so that I can continue to make changes.
(I know, I know, typical designer mentality to change things in
schematic after layouter has started to work ... )

Has anybody got a quick script for such a process? I would probably
need to trigger some callbacks also, but that is a different topic.

--
Svenn

S. Badel

unread,
Jul 25, 2007, 9:05:43 AM7/25/07
to
> Variables on properties in schematic is nice for simulations, but when
> moving over to layout those variables make a little headache. I am now
> looking for a way to script a replacement of the variables going from
> a "schematic" schematic view to a "schematicWork" schematic view which
> will later be used for Virtuoso-XL. I want to keep the original
> schematic with the variables so that I can continue to make changes.
> (I know, I know, typical designer mentality to change things in
> schematic after layouter has started to work ... )

Hi Svenn,

I did write code for doing precisely this. Couldn't find an existing solution, although it seems
this is sort of a gap in the flow : parametric schematic -> optimization -> layout -> verification.

And it really is boring stepping through all the instances in one schematic, replacing the
parameters ! :)

The code copies all views to a new cell, including symbol and any other view. Then, it opens the
schematic, replaces properties on the cellview according to user-given values, and iterates through
all parameters of all instances, using AEL calls to evaluate the final parameter values. Then, it
re-generates the cell CDF, since there are no more parameters.

It also use Andrew's solution CCSabInvokeInstCdfCallbacks to invoke CDF callbacks for all instances
in the new schematic.

It works well most of the time, but I'm pretty sure it may break up with certain evil CDF callbacks.

Also included are two layers of user interface (I'm a UI freak :)), the first prompting the user for
the values of parameters, the second prompting also to select the source and destination cells.

Since the file is a bit large, I have put it online at http://dewww.epfl.ch/~badel/pub/SBMakeCell.il

Give it a try, and tell me what you think.

Stéphane

Andrew Beckett

unread,
Sep 16, 2007, 3:05:33 AM9/16/07
to

I always tend to use pPar("varName") on schematics for values I want to
parameterize, and then only use design variables in testbenches.

That way the design itself has only got inherited parameters, which have default
values in the CDF for the cell - and can be passed up through the hierarchy.

These will be resolved by VirtuosoXL - and VirtuosoXL can also call the
callbacks (there's a cdsenv for that), if you're unlucky enough to have a PDK
which derives values using CDF callbacks.

I liked the reference to "evil CDF callbacks" in Stephane's post above!

Regards,

Andrew.
--
Andrew Beckett
Senior Solution Architect
Cadence Design Systems, UK.

kashy...@gmail.com

unread,
May 21, 2015, 6:41:28 AM5/21/15
to
Andrew,
I was looking for a script which was originally there at
http://dewww.epfl.ch/~badel/pub/SBMakeCell.il

but no longer available. Can you repost it, will be a huge help.
I want to copy cells from one to another including the cdf parameters.

Thanks,
Prasad
0 new messages