|
From: Maciej S. <mac...@ce...> - 2015-12-07 16:53:03
|
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 |