|
From: Stephen W. <st...@ic...> - 2014-10-01 16:35:38
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/01/2014 08:55 AM, Maciej Sumiński wrote: > Now I would like to take care of 'range and 'reverse_range > attributes. I think these should be easily translatable using $left > & $right system functions. For example: Yes, although you can also use "foreach" loops. For example, translate "for i in inp'range" to "foreach (inp[i])" to get a more direct match. The foreach loop support was added to Icarus Verilog a month or two ago. - -- 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.19 (GNU/Linux) iEYEARECAAYFAlQsLVMACgkQrPt1Sc2b3ikgVwCg15Jz9GhVmyTffz3k4IEb4tAk 2D8AoLqzOvyj2eJsDKXplmwooOvLzLDc =XAER -----END PGP SIGNATURE----- |