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

  1. Xref: sparky comp.sys.next.programmer:5823 comp.dsp:2038
  2. Path: sparky!uunet!overload!dillon
  3. From: dillon@overload.Berkeley.CA.US (Matthew Dillon)
  4. Newsgroups: comp.sys.next.programmer,comp.dsp
  5. Subject: Re:  Finding how much DSP56001 RAM is installed via program??
  6. Distribution: world
  7. Message-ID: <dillon.0mck@overload.Berkeley.CA.US>
  8. References:  <1992Aug26.060638.10407@ee.ubc.ca> <17fb61INN572@agate.berkeley.edu>
  9. Date: 26 Aug 92 07:31:49 PST
  10. Organization: Not an Organization
  11. Lines: 58
  12.  
  13. In article <17fb61INN572@agate.berkeley.edu> izumi@pinoko.berkeley.edu (Izumi Ohzawa) writes:
  14. >In article <1992Aug26.060638.10407@ee.ubc.ca>
  15. >  williamb@ee.ubc.ca (william burchill) writes:
  16. >>A floating bus is not going to confuse a memory testing program, that's
  17. >>what it's looking for.  What do you mean "didn't work well"?
  18. >
  19. >Well, at the risk of making myself look totally stupid, the following is a
  20. >simplified version of what I am trying to do.    I do use other test patterns
  21. >in addition to $5a5a5a.  Failure on any one pattern should break the loop.
  22. >..
  23. >
  24. >ERAM_Base    equ    8192        ; Start address of external DSP RAM on NeXT
  25. >
  26. >    <some init stuff>
  27. >
  28. >    move    #>ERAM_Base,R0
  29. >TestLoop
  30. >    move    #>$5a5a5a,b        ;load test pattern
  31. >    move    b,x:(R0)        ;write to a memory loc
  32. >    move    x:(R0)+,a        ;read back into A1, post-incr address.
  33. >    cmp    a,b
  34. >    jne    memory_fail
  35. >
  36. >    <same things with different test patterns>
  37.  
  38.     *NEVER* read back a memory location just after writing it!    If the
  39.     databus is floating it will generally hold on to the previously
  40.     written value.
  41.  
  42.     I would suggest the following:
  43.  
  44.     (1) Write pattern to (R0)
  45.     (2) Write  a DIFFERENT pattern to the next address
  46.     (3) Read back the FIRST address and test for the original pattern
  47.  
  48.     Generally you want to go through memory several times using different
  49.     patterns.
  50.  
  51.                     -Matt
  52.  
  53. >    jmp    TestLoop
  54. >
  55. >memory_fail
  56. >    <report R0 value to host>
  57. >
  58. >--
  59. >Izumi Ohzawa
  60. >USMail: University of California, 360 Minor Hall, Berkeley, CA 94720
  61. >Telephone: (510) 642-6440     Fax:  (510) 642-3323
  62. >Internet: izumi@pinoko.berkeley.edu (NeXT Mail OK)
  63.  
  64. --
  65.  
  66.     Matthew Dillon        dillon@Overload.Berkeley.CA.US
  67.     891 Regal Rd.        uunet.uu.net!overload!dillon
  68.     Berkeley, Ca. 94708     ham: KC6LVW (no mail drop)
  69.     USA
  70.  
  71.