|
From: Stephen W. <st...@ic...> - 2008-04-22 17:03:43
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Cary R. wrote: | It appears that the writemem* problems are created by the 1<<(6-count). It look like the 1 is being interpreted as a two bit wide value instead of the normal integer 32 bits. This means that for values of count less than five the result is zero. The following simple program is producing incorrect results: | | module main; | reg [2:0] val; | | initial begin | for (val=0; val<=6; val=val+1) begin | $displayh(val,, 1<<(6-val)); | end | end | endmodule | | This problem appear to be related to a different patch since this is in the compiler not the runtime. I'm not certain when I last ran the tests with a synced source tree, but I know it was not too long ago. This program goes wrong for me too. File it, give it a high priority, and assign it to me. I want to tackle this quickly. - -- Steve Williams "The woods are lovely, dark and deep. steve at icarus.com But I have promises to keep, http://www.icarus.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIDhk7rPt1Sc2b3ikRAhWBAJsFWMlNGKQIH9FMEGBfrbmvEBfLlACeJQJG 1OoCuLtC4aN1N3RGNmE4oSc= =5miW -----END PGP SIGNATURE----- |