[vhdl-200x] VHDL ternary operation

From: Daniel Kho <daniel.kho@gmail.com>
Date: Thu Mar 28 2013 - 02:18:38 PDT
Hi all,
I'm wondering if the current revision supports something like the following?

report to_hstring(index) & ", " & ("pass" when fault else "fail") & lf &
nul;

where "index" is an unsigned vector, and "fault" is a boolean.

The expression ("pass" when fault else "fail") can already be used directly
in clocked processes, but I'm not too sure if the standard allows this to
be used within report statements.

If there's a better way of writing which could produce the same effect, do
share with me as well.

regards, daniel

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Mar 28 02:19:44 2013

This archive was generated by hypermail 2.1.8 : Thu Mar 28 2013 - 02:20:27 PDT