[SI-LIST] Re: update to "ack" program

  • From: "Gregory R Edlund" <gedlund@xxxxxxxxxx>
  • To: si-list@xxxxxxxxxxxxx, ibis@xxxxxxxx, ibis-users@xxxxxxxx
  • Date: Mon, 25 Feb 2002 16:57:36 -0600

Thanks to some helpful scrutiny by members of the SI and IBIS communities,
we found the bug that was causing the crash Ray observed.  I was
referencing a location beyond the bounds of an array.  I am going to spend
2-3 more days checking for other similar problems.  When I'm done, I'll
post the latest code to the IBIS web site and send out another note.

Thanks for the help!

p.s.  If you want to get back up and running, make the following tweaks:

in function regrid:
   float xint[WINDOW + 1];   /*x interpolation vector*/
   float yint[WINDOW + 1];   /*y interpolation vector*/

in function linterp:
   for (j=1;j<=n;++j) if (xx==x[j]) return(y[j]);

Greg Edlund
Electronic Packaging & Integration
IBM Server Technology Development
3605 Hwy. 52 N, Dept. HDC
Rochester, MN 55901
gedlund@xxxxxxxxxx

----- Forwarded by Gregory R Edlund/Rochester/IBM on 02/25/02 04:48 PM
-----
                                                                                
                                                
                      Gregory R                                                 
                                                
                      Edlund/Rochester/        To:       si-list@xxxxxxxxxxxxx, 
ibis-users@xxxxxxxx, ibis@xxxxxxxx              
                      IBM@IBMUS                cc:                              
                                                
                      Sent by:                 Subject:  Re: [SI-LIST] update 
to "ack" program                                  
                      owner-ibis-users@                                         
                                                
                      eda.org                                                   
                                                
                                                                                
                                                
                                                                                
                                                
                      02/25/02 08:14 AM                                         
                                                
                                                                                
                                                
                                                                                
                                                



Dear SI and IBIS compatriots:

Ray Anderson ran into a bus error when he ran ack on the Solaris platform.
Apparently there is still a bug lurking in my code that didn't show up when
I tested it on the aix and Windows platforms.  Believe it or not, I used
the program on a couple dozen waveforms for a project I worked on over a
year ago, and I never ran into a snag.  I'm going to check around and see
if I can come up with a Sun box that I can use for further testing.  In the
meantime, if anyone wants to take a crack at debugging, be my guest!  It's
probably another one of those memory conflicts that are so easy to fall
into when you're allocating memory in C.

Sorry for the trouble.  You may still be able to run on Windows or aix
without trouble.

Greg Edlund
Electronic Packaging & Integration
IBM Server Technology Development
3605 Hwy. 52 N, Dept. HDC
Rochester, MN 55901
gedlund@xxxxxxxxxx

----- Forwarded by Gregory R Edlund/Rochester/IBM on 02/25/02 08:06 AM
-----

                      Ray Anderson

                      <Raymond.Anderson        To:       Gregory R
Edlund/Rochester/IBM@IBMUS
                      @sun.com>                cc:
raymond.anderson@xxxxxxx
                                               Subject:  Re: [SI-LIST]
update to "ack" program
                      02/22/02 03:35 PM

                      Please respond to

                      Ray Anderson






Greg-

I've compiled your ack.c code with both Gnu gcc and
also with Sun cc with no apparent errors.

When I try to run the program on your sample data using the
command line specified in your readme.txt file I get a "Bus Error"
crash (with both the gcc and cc compiled versions). Have you seen
this before? (I'm running on a Sun Ultra-1 with Solaris 8)

-Ray Anderson
Sun Microsystems

-------------------------------------------------------------------------------------


radium% ack -f1 hspice.dat -f2 lab.dat -e r -dx 0.05 -xu 1e-9 -yt 1.4 -yw
3.3 > out.dat
Accuracy Figure-of-Merit Calculator

Found 501 datapoints in hspice.dat.
Found 301 datapoints in lab.dat.
Waveform 1 crosses y =  1.4000e+00 at x =  1.6615e+00.
Waveform 2 crosses y =  1.4000e+00 at x =  1.1407e+00.
Shifting waveform 2 right by  5.2086e-01.
Bounding interval = (  5.2086e-01,  6.5209e+00 )
Bus Error

-------------------------------------------------------------------------------------




>
>Hello Everyone,
>
>I recently made a long-overdue bug fix to "ack," a C program I wrote a
>while back that overlays two waveforms (in ASCII x-y format) and
>numerically compares the datapoints.  This program is useful in comparing
>lab vs. simulation or behavioral vs. transistor-level simulations.  The
bug
>was causing floating point overflows in certain cases.
>
>You can find the new code on the IBIS web site.  It's a free-ware program
>that you have to compile yourself on your favorite system.
>
>http://www.vhdl.org/pub/ibis/accuracy/








------------------------------------------------------------------
To unsubscribe from si-list:
si-list-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field

or to administer your membership from a web page, go to:
//www.freelists.org/webpage/si-list

For help:
si-list-request@xxxxxxxxxxxxx with 'help' in the Subject field

List archives are viewable at:     
                //www.freelists.org/archives/si-list
or at our remote archives:
                http://groups.yahoo.com/group/si-list/messages 
Old (prior to June 6, 2001) list archives are viewable at:
                http://www.qsl.net/wb6tpu
  

Other related posts: