Stephen,

After successfully installing the 0.9.devel version of IV, I came across the
following error when trying to parse the source files.

error:  True and False clauses of ternary expression have different types.
True clause is logic, false clause is <no_type>.

The failure occurs with the following code:

wire a;
reg b, c, d, e;

assign a = b ? c : (d & e);

It seems that mixing an expression and non-expressions in ternary operators
is no prohibited.  The previous versions of IV handled this without error.

If I change the code to:

wire a, x;
reg b, c, d;

assign x = d & e;
assign a = b ? c : x;

Any ideas?

Thanks,
Trevor Williams

Everything compiles fine.

Reply via email to