home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5807 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  2.7 KB

  1. Xref: sparky comp.sys.next.programmer:5807 comp.dsp:2032
  2. Newsgroups: comp.sys.next.programmer,comp.dsp
  3. Path: sparky!uunet!ftpbox!motsrd!white!rtsg.mot.com!lido16!wiegand
  4. From: wiegand@rtsg.mot.com (Robert Wiegand)
  5. Subject: Re: Finding how much DSP56001 RAM is installed via program??
  6. Message-ID: <wiegand.714838567@lido16>
  7. Keywords: DSP, 56001, NeXT
  8. Sender: news@rtsg.mot.com
  9. Nntp-Posting-Host: lido16
  10. Reply-To: motcid!wiegand@uunet.uu.net
  11. Organization: Motorola Inc., Cellular Infrastructure Group
  12. References: <1992Aug26.060638.10407@ee.ubc.ca> <17fb61INN572@agate.berkeley.edu>
  13. Date: Wed, 26 Aug 1992 14:16:07 GMT
  14. Lines: 58
  15.  
  16. izumi@pinoko.berkeley.edu (Izumi Ohzawa) writes:
  17.  
  18. >In article <1992Aug26.060638.10407@ee.ubc.ca>
  19. >  williamb@ee.ubc.ca (william burchill) writes:
  20. >>A floating bus is not going to confuse a memory testing program, that's
  21. >>what it's looking for.  What do you mean "didn't work well"?
  22.  
  23. >Well, at the risk of making myself look totally stupid, the following is a
  24. >simplified version of what I am trying to do.  I do use other test patterns
  25. >in addition to $5a5a5a.  Failure on any one pattern should break the loop.
  26. >The program just doesn't exit the loop.  I have never written a memory
  27. >test program, so please forgive some ignorance :-)  Thanks.
  28.  
  29. >---------------------------------------------------------------------
  30.  
  31. >ERAM_Base    equ    8192        ; Start address of external DSP RAM on NeXT
  32. >    
  33. >    <some init stuff>
  34.  
  35. >    move    #>ERAM_Base,R0
  36. >TestLoop
  37. >    move    #>$5a5a5a,b        ;load test pattern
  38. >    move    b,x:(R0)        ;write to a memory loc
  39. >    move    x:(R0)+,a        ;read back into A1, post-incr address.
  40. >    cmp    a,b
  41. >    jne    memory_fail
  42.  
  43. >    <same things with different test patterns>
  44.  
  45. >    jmp    TestLoop
  46.  
  47. >memory_fail
  48. >    <report R0 value to host>
  49.  
  50.  
  51. >--
  52. >Izumi Ohzawa
  53. >USMail: University of California, 360 Minor Hall, Berkeley, CA 94720
  54. >Telephone: (510) 642-6440     Fax:  (510) 642-3323
  55. >Internet: izumi@pinoko.berkeley.edu (NeXT Mail OK)
  56.  
  57. A better test would be to load different values in a number of locations,
  58. then go back and verify all the locations. The idea is to seperate the
  59. write and read operations so a floating bus doesn't "remember" the
  60. value. And don't use the address as the data on any processor with
  61. multiplexed address-data lines because this can also cause problems.
  62.  
  63. A good test is to use a psudo-random number generator to write all
  64. locations, then read and verify all locations. Repeat with the inverse
  65. of the data from the first pass. This will catch stuck bits in memory,
  66. and address lines open or shorted.
  67.  
  68.  
  69. -- 
  70. ------------------------------------------------------------------------------
  71. Robert Wiegand - Motorola Inc.
  72. uunet!motcid!wiegand
  73. Disclamer: I didn't do it - I was somewhere else at the time.
  74.