Date: Tue, 21 Dec 2010 21:05:31 +0100 From: [email protected] To: [email protected] Subject: Re: [Ghdl-discuss] crash in GHDL 0.29 : printing an enumerated value Le 21/12/2010 18:02, Kevin Steffensen a écrit : That's not legal VHDL. I'm pretty sure what you mean is this : entity hello is end; architecture bug of hello is type state_type is (s0,s1); signal state : state_type; begin stim : process begin report state_type'image(state); wait; end process stim; end bug; Hi Kevin No, I really wanted to print the enumerated value s0 directly. I believe it is legal, but may be I am wrong. JCLL _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss 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
