Hello, Just stepping into the discussion to give my humbre point of view (I don't have the standard by hand right now), but if you'd write:
constant something : state_type := s0; ... state_type'image(something) ... that would be legal, because 'something' is a scalar, no? then, using directly the value would be the same too? But at current time, my first concern is that, whether legal or not, the current behaviour of GHDL is not right, because (for those who did not actually try - or had more luck?) on my side it just crashes! :-( Regards, Christophe. On Tuesday 21 December 2010 21:34, Kevin Steffensen wrote: > Hmm. I just checked the VHDL-2008 standard and it says the following: > > T'IMAGE(X) > > Prefix: Any scalar type or subtype T > Parameter: An expression whose type is the base type of T > Result: Type STRING > > ...and then a long piece of prose on how the string result is formatted. It > has a piece on enumerated types so I guess there is no problem there. > > > I would interpret the above to mean that X should be a variable or signal > of type T. Apparently the Cadence simulator thinks differently though. > > > > Regards, > Kevin _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
