divide by zero

Guest
hi,

I'm trying to develop a pcell.
I have an expression like:
if(n>>1 then
tmp = foo/(n-1))

When compiling, i have an error message:
*Error* quotient: Attempted to divide by zero - (0.0 0)

how to solve this problem ?

Thanks ^^
 
bedoune@gmail.com wrote, on 02/14/08 01:01:
hi,

I'm trying to develop a pcell.
I have an expression like:
if(n>>1 then
tmp = foo/(n-1))

When compiling, i have an error message:
*Error* quotient: Attempted to divide by zero - (0.0 0)

how to solve this problem ?

Thanks ^^
Don't right shift n by one, but do a comparison to check it's greater than 1.

You probably meant:

if(n>1 then
....

is a right shift operator...
Andrew.
 
ok, i was not aware about this (i'm a beginner in skill development)

Thanks a lot for your help ! ^^v
 

Welcome to EDABoard.com

Sponsor

Back
Top