How to reference and changing values in read-only illabels i

R

Ryuji

Guest
Hi:
I just started learning the skill language and Cadence Virtuoso schematic
tool. I need to be able to write some results back to the read-only
schematic, and after some reading and research I found that ilLabel is the
way to go. Problem is I still can't change the read-only symbols' illabels
(cdsTerms) on a read-only schematic and symbol. I know Analog Environments
allows you to annotate your results bac k to the read-only schematic.
So far I know how to retrieve information from an instance such as:

car(geGetSelSet())~>master~>?? ;this prints out master symbol cellview

car(geGetSelSet())~>master~>shapes~>theLabel ; this print out the text of
the label.

I am wondering how I can change ilLabel of an instance on a read-only
schematic and able to display it like Analog Environment is doing. Any
pointers please? thank you
 
Hi:
Please keep in mind that I have tried to use dbReopen to open the cellview
in cadence and Virtuoso schematic tool and change cellview mode to "w" and
"a", but it gave me a permission denied error, where Analog Environment
can do the Annotate with the same schematic no problem.
Please advise =)
 
Ryuji,
I think the only way one can add shapes( including labels) into a read
only graphics window is by means of the highlight sets.
Look at the cdsdoc documentation for the following functions:
geCreateHilightSet()
geAddHilight*()

One thing you have to remember is that after creating the highlight set
you should enable it - by default its not enabled.
hsId->enable = t

I am not sure whether Analog Environment uses hilite sets.

regards,
Suresh

Ryuji wrote:
Hi:
I just started learning the skill language and Cadence Virtuoso schematic
tool. I need to be able to write some results back to the read-only
schematic, and after some reading and research I found that ilLabel is the
way to go. Problem is I still can't change the read-only symbols' illabels
(cdsTerms) on a read-only schematic and symbol. I know Analog Environments
allows you to annotate your results bac k to the read-only schematic.
So far I know how to retrieve information from an instance such as:

car(geGetSelSet())~>master~>?? ;this prints out master symbol cellview

car(geGetSelSet())~>master~>shapes~>theLabel ; this print out the text of
the label.

I am wondering how I can change ilLabel of an instance on a read-only
schematic and able to display it like Analog Environment is doing. Any
pointers please? thank you
 
Hi:
I don't know if Analog Environment is using hilite sets, but I will give
it a try. I rather not add more shapes or label to the schematic because
it will be difficult and confusing. I know Analog Environment calls
sevAnnotateResults(session, type) and to annotate the results back to the
schematic in any mode. The labels that showed up in each instance are
exactly where the ilLabels are in the symbol, where the symbol is alos
read-only mode. I am wondering if there is a way to change the ilLabel
values and let it appear in the schematic.
thank you =)
 
Ryuji wrote:
Hi:
Please keep in mind that I have tried to use dbReopen to open the cellview
in cadence and Virtuoso schematic tool and change cellview mode to "w" and
"a", but it gave me a permission denied error, where Analog Environment
can do the Annotate with the same schematic no problem.
Please advise =)

Just a random idea: I remember once using a "scratch" mode for
dbReopen. I was then modifying symbols for which I had no write access.
That could do it for you. (search the group for "christmas decoration").
I am not saying that this is what ADE/sev does, but it could be a
solution for you.
 
Hi Fogh:
I tried use dbReopen the schematic in scratch mode, and I was able to
change the name of the instance.
car(geGetSelSet())~>baseName~> = "hello" or
ilInst~>baseName = "hello". This changed the label in the schematic to
"hello", and it is exactly where cdsName() is in the symbol, but the
symbol's cdsName was not changed, only the schematic changed. This was
great! But I can't find a way to change the cdsTerm() in the schematic the
same way. I don't know where it is. Any hints? Thank you
 
On Thu, 28 Jul 2005 14:12:41 -0400, "Ryuji" <ryuji81@gmail.com> wrote:

Hi Fogh:
I tried use dbReopen the schematic in scratch mode, and I was able to
change the name of the instance.
car(geGetSelSet())~>baseName~> = "hello" or
ilInst~>baseName = "hello". This changed the label in the schematic to
"hello", and it is exactly where cdsName() is in the symbol, but the
symbol's cdsName was not changed, only the schematic changed. This was
great! But I can't find a way to change the cdsTerm() in the schematic the
same way. I don't know where it is. Any hints? Thank you
ADE does not use hilight sets. The ILLabels on the master of an instantiated
symbol use the SKILL functions cdsTerm("termName"), cdsName() and
cdsParam(num) - these are evaluated as the labels on each instance are being
drawn, and the global variable ilInst is set to the dbId of the instance.
cds.*() use values from the effective CDF for that instance to determine what is
displayed there - i.e. it alters the return value of the function to reflect
what is displayed.

Changing the "baseName" (which from memory is an alias for name) is just
changing the instance name, and so that alters that return value. Changing the
return value of the other functions will be harder.

Most likely you'd need to alter (perhaps in scratch mode) the symbol master
itself to change the expressions on the ILLabels.

It's not clear from your description what you actually want to display - if you
explained that, then perhaps an alternative could be proposed. I'm wondering if
what you want to do is annotate the results of simulation somehow - in which
case altering the effective CDF (which is what the sevAnnotate functions do)
might be an option.

Regards,

Andrew.
 
Hi Andrew:
Thank you for your response. I am trying to annotate my simulation
results back to the schematic just like sevAnnotate function is doing. I
briefly read through CDF user tutorial and my first impression was CDF
symbol would affect all instance that is used in the schematic. So
changing 1 illabel to "hello" will have all instance's illabels to
"hello". I don't know how to use the effective CDF to a specific
instance. Can you please give me some pointers on this? It would be best
if I can change cdsTerm()s of each symbol.

Thank you so much.
 

Welcome to EDABoard.com

Sponsor

Back
Top