home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / verilog / 484 next >
Encoding:
Internet Message Format  |  1992-12-22  |  1.6 KB

  1. Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!pacbell.com!network.ucsd.edu!sdcc12!cs!jlodman
  2. From: jlodman@cs.ucsd.edu (Michael Lodman)
  3. Newsgroups: comp.lang.verilog
  4. Subject: Re: execution of always blocks
  5. Message-ID: <42799@sdcc12.ucsd.edu>
  6. Date: 22 Dec 92 02:11:54 GMT
  7. References: <13665@optilink.COM> <1992Dec18.174451.11544@newsgate.sps.mot.com> <1992Dec18.200153.25828@twisto.eng.hou.compaq.com>
  8. Sender: news@sdcc12.ucsd.edu
  9. Organization: CSE Department, UC San Diego
  10. Lines: 21
  11. Nntp-Posting-Host: beowulf.ucsd.edu
  12.  
  13. In article <1992Dec18.200153.25828@twisto.eng.hou.compaq.com> ehlers@tiktok.eng.hou.compaq.com (Steve Ehlers) writes:
  14. >Which is fine if you only care about which ONE is last.  If you have 
  15. >three (or more) registers, you'll still have problems.  Using the
  16. >non-blocking assignment operator ( <= ) will give you the behavior you want:
  17. >
  18. > always @(posedge Clk) c <= b;
  19. > always @(posedge Clk) b <= a;
  20.  
  21. I've always wondered why Verilog, an HDL, had a blocking assignment as
  22. the default to begin with. Early Verilog designs were excessively verbose,
  23. with the creation of non-existant "registers" and wire delay terms to
  24. get around this problem. The recent introduction of the non-blocking
  25. assignemnt seems to me long overdue on the part of the language designers.
  26.  
  27. With the non-blocking assignemnt, what used to be somewhat tedious is now
  28. a breeze as the model works exactly like I expect the hardware to.
  29.  
  30. -- 
  31. Michael Lodman    Department of Computer Science Engineering
  32.     University of California, San Diego
  33. jlodman@cs.ucsd.edu              (619) 455-1500 x2627
  34.