|
From: Stephen W. <st...@ic...> - 2015-12-07 18:12:06
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 First guess, I think the best would be to implement $sformatf. It is something that we would need anyhow. On 12/07/2015 08:52 AM, Maciej Sumi?ski wrote: > Hi, > > I am wondering what would be the right way to implement VHDL > 'image attribute, which returns a string representation of a > variable. > > The first idea is to use SV $sformatf system function, which > returns a string based on the formatting string (e.g. "%d" and > input data, but it is currently not available in Icarus. I could > add it, but as far as I know, the VPI standard does not allow to > write functions that return strings. > > What's your opinion? Should I extend VPI in Icarus to allow > returning strings or is there another, more elegant solution to the > problem? > > Regards, Orson > > > > ------------------------------------------------------------------------------ > > Go from Idea to Many App Stores Faster with Intel(R) XDK > Give your users amazing mobile app experiences with Intel(R) XDK. > Use one codebase in this all-in-one HTML5 development environment. > Design, debug & build mobile apps & 2D/3D high-impact games for > multiple OSs. > http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140 > > > > _______________________________________________ Iverilog-devel > mailing list Ive...@li... > https://lists.sourceforge.net/lists/listinfo/iverilog-devel > - -- 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 iEYEARECAAYFAlZly+4ACgkQrPt1Sc2b3im7sACgzRDRyA8tZkjZ0wIuVtLpqMr2 vXgAn0DOH3qd291wbhZq1fKtIZnLorOU =d2S0 -----END PGP SIGNATURE----- |