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.

Cadence SKILL Few Questions

Status
Not open for further replies.

wholegrain

Newbie level 3
Newbie level 3
Joined
Nov 19, 2009
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,311
Hi, recently I've been working with Cadence SKILL and I have several questions.

First, From my understanding if i do something like
wi = "1u"
I am making a string. If I have a variable, let us say width1, which contains an integer/float number inside, how do I make the variable number a string.

Second, how do I truncate a variable (float number)?

Third, it is a continuation from this answer

Mr. Hughes said "Where w and l are the parameters' name and can be found from CDF Edit Form."
where can I exactly find this parameters' name?

Thank you for helping me, I really appreciate it.
 

sprintf(
{s_Var | nil }
t_formatString
[ g_arg1 ... ]
)

Formats the output and assigns the resultant string to the variable given as the first argument. This is a syntax form

Ex:sprintf(numString "%d" 10) : converts 10 to "10" and stores it in numString.

Hope this helps .I did not quite get your second query..
 

    wholegrain

    Points: 2
    Helpful Answer Positive Rating
wholegrain said:
Mr. Hughes said "Where w and l are the parameters' name and can be found from CDF Edit Form."
w and l are the parameters' names!

wholegrain said:
where can I exactly find this parameters' name?
In the icfb CIW (window) use Tools -> CDF -> Edit... . A new window called Edit Component CDF will open. Fill in the Library & Cell Name (e.g. via Browse), then you can see and/or change these default parameters (change: only if you have write access right, of course).

To see/change the w, l, (m, f, ...) parameters of individual devices, just select the component and [q]uery its Object Properties in the appropriate Edit Object Properties window.
 

    wholegrain

    Points: 2
    Helpful Answer Positive Rating
thank you all. My second question was, let's say you have a number 1.666666e-10 but you want to make it 1.66e-10, how would you do that?
 

wholegrain said:
thank you all. My second question was, let's say you have a number 1.666666e-10 but you want to make it 1.66e-10, how would you do that?
Try:
sprintf(s_Var "%4.2e" 1.666666e-10)
It will be rounded up, of course, but I guess that's what you would like anyway ;-)
 

    wholegrain

    Points: 2
    Helpful Answer Positive Rating
Thank you very much.

Added after 1 hours 22 minutes:

Sorry to ask another question. The code
sprintf(s_Var "%4.2e" 1.666666e-10)
provided by erikl works perfectly. However, I was wondering what would I do to produce the same thing with a float number output instead of a string.

Also, how would I convert from string to float number.

Thanks.
 

Hint: Look at SKILL commands atoi() & atof()
Use these with sprintf() & you can convert no.s to strings & vice-versa with relative ease.

;)

Best regards,
I-FAB
 

    wholegrain

    Points: 2
    Helpful Answer Positive Rating
TY cop02ia.

I have another question regarding LVS. I used SKILL to create an instance so my layout can include that instance. (easier to flip and shift) For some reason, during LVS, it doesn't recognize the instance. Only after I flatten the instance that the LVS passes. Is there anyway to pass LVS without flattening my instances?

Thank you guys. Help is appreciated.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top