The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 6:32am
Pages: 1
Send Topic Print
error while simulating using AMS in cadence (Read 2527 times)
bharath
New Member
*
Offline



Posts: 2

error while simulating using AMS in cadence
Dec 14th, 2009, 12:15pm
 
I have a verilog-ams block of low pass fitler...

analog
     begin
                 
           V(filt_out) <+ laplace_nd(I(filt_in), {1,r1*c1}, {0, c12 , r1*c1*c2+ r2*c3*c12, r1*r2*c1*c2*c3}) ;

     end

i have initialised r1,r2,c1,c2,c12,c3 as real and proper values
when i simulate i get the following error

       coefficient of the highest power of `s' filterdenominator is zero.This
       error commonly arises if the coefficients are initialized inside an
       @initial_step statement that does not account for the analysis during
       which this error was reported.

I am new to Verilog-AMS so dont know where i am going qrong ..
Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: error while simulating using AMS in cadence
Reply #1 - Dec 14th, 2009, 12:55pm
 
Try replacing the variables with numbers just to see if the variables aren't being set properly.

I forget: is the first coeff in the denominator the highest power of s or the lowest?
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
bharath
New Member
*
Offline



Posts: 2

Re: error while simulating using AMS in cadence
Reply #2 - Dec 14th, 2009, 1:18pm
 
I will try setting the values instead of variables

the first co-efficient is the lowest power of s -- atleast according to Verilog LRM manual.
Back to top
 
 
View Profile   IP Logged
Peruzzi
Community Member
***
Offline



Posts: 71

Re: error while simulating using AMS in cadence
Reply #3 - Jan 2nd, 2010, 5:55pm
 
Bharath,
You can only use constants or parameters as laplace_nd coefficients, not variables.  If you must use variables, convert your H(s) into a set of differential or integral equations.
Cheers,
Bob P.
www.RPeruzzi.com
Back to top
 
 
View Profile   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.