VHDL Operator associativity (Quartus II VHDL parser bug?)

Joined
Jun 18, 2008
Messages
1
Reaction score
0
I am working on a compiler which generates VHDL and uses precedence and associativity to generate the least parenthesis possible.

According to VHDL for Engineers (http://books.google.com/books?id=7GKpXrMuZTIC&dq), this too expressions are equivalent:

a and not b or not a and b

((a and (not b)) or (not a)) and b

However, while Quartus II and Simulink accept the second one, they raise a parser error on the first one.

If the or is changed with and the expression doens't cause any problems:

a and not b and not a and b

Can anyone confirm wither is a bug or the book is wrong?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top