From: Stephen W. <st...@ic...> - 2008-01-15 19:37:16
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephen Williams wrote: > I'm wondering if this attribute format is SystemVerilog-ish, given > that at least some other Verilog tools parse it. (Otherwise, Stefan > wouldn't be encountering it.) If so, can someone track down the > pertinent SystemVerilog babble? We may be able to actually do a > proper job of this, if it is documented somewhere. Why not add > smarter attribute to Icarus Verilog? I've done a little digging. The "const" keyword in the example appears to indeed be a part of SystemVerilog and is similar to the localparam in behavior. (Except it can be used in a few more places.) My SystemVerilog draft is too old to show this, but I think the attribute assignment may include a type declaration along with the assignment. That would mean that in principle the existing attribute code can be extended in a SV-ish way to make the given code work. I think *this* is what we want to do. - -- 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 v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFHjQtvrPt1Sc2b3ikRAikiAKDtIc8sSBecuiUwPlreuUfbbvRtagCbB2Oq +vviAmHOFcU8ZvHLa6d6PXw= =VMNd -----END PGP SIGNATURE----- |