home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / verilog / 435 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.1 KB

  1. Path: sparky!uunet!imp!ca41!cindy
  2. From: cindy@zoran.hellnet.org (Cindy Eisner)
  3. Newsgroups: comp.lang.verilog
  4. Subject: Re: Avoiding inertial delay in delay lines
  5. Message-ID: <248@ca41.zoran.hellnet.org>
  6. Date: 18 Nov 92 06:16:17 GMT
  7. References: <1992Nov12.053306.12799@afterlife.ncsc.mil> <1992Nov12.142615.10697@m.cs.uiuc.edu> <1992Nov12.163116.17205@dsg.tandem.com> <1992Nov16.045205.22453@afterlife.ncsc.mil> <1992Nov16.163807.15366@dsg.tandem.com>
  8. Sender: news@ca41.zoran.hellnet.org
  9. Organization: Zoran Microelectronics LTD. Haifa, Israel.
  10. Lines: 38
  11. Nntp-Posting-Host: ca45
  12.  
  13. In article <1992Nov16.163807.15366@dsg.tandem.com>, leung@DSG.Tandem.COM (Steven Leung) writes:
  14. > BTW, putting the delay after the assignment operator appears to have
  15. > some effects on scheduling. Even "a = #10 b;" has some difference from
  16. > "#10 a = b;". (Don't know whether this is considered as a bug though.)
  17.  
  18. look in the manual.  "a = #10 b;" means sample b NOW, and assign its value to
  19. a in 10 time units.  on the other hand, "#10 a = b;" means wait 10 time units
  20. starting from now, and then sample b and immediately assign the sampled value
  21. to a.  
  22.  
  23. parts of this discussion seem to have passed my news feed by, but from what
  24. i gather, using "a <= #10 b;" (non-blocking) should work for the original 
  25. poster, since it will schedule the current value of b to be assigned in another
  26. 10 time units.  in the meantime, if b changes, before the 10 time units is up,
  27. say at time 3, verilog will be free the execute the assignment again, and 
  28. schedule another assignment at time 3+10=13.  
  29.  
  30. notice:  1.  you must use a non-blocking assignment, with the delay after
  31.              the equals
  32.  
  33.          2.  you must make sure that the current always statement does not
  34.              contain (other) blocking assignments which will mess up the
  35.              scheduling of this assignment.  
  36.  
  37. hope this helps.
  38.  
  39. cindy.
  40.  
  41. -- 
  42.  
  43.     Cindy Eisner,                     Tel: 972-4-551551
  44.     CAD group,                        Fax: 972-4-551550
  45.     Zoran Microelectronics LTD,       E-mail: cindy@Zoran.HellNet.Org
  46.     Advanced Technology Center
  47.     Haifa 31204, Israel               Could be my employer doesn't agree.
  48.