-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Trevor and Jenny Williams wrote:
| 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.

I've checked into CVS a fix for this. The bug was that the expression
types (a new issue in 0.9.devel) were not handled correctly in this
situation. I also fixed the real valued version of this code. The test
programs I made out of this report are tern7.v and tern8.v in the ivtest
regression test suite on sourceforge.

- --
Steve Williams                "The woods are lovely, dark and deep.
steve at icarus.com           But I have promises to keep,
http://www.icarus.com         and lines to code before I sleep,
http://www.picturel.com       And lines to code before I sleep."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDFx0hrPt1Sc2b3ikRAr7TAKDDE0xj2zWHYp1Nmnqa9dbghwGe0wCfVh0y
xB7WeqPnrhwA9z+9A9cYUQA=
=aZNf
-----END PGP SIGNATURE-----

Reply via email to