Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > VHDL Operator associativity (Quartus II VHDL parser bug?)

Reply
Thread Tools

VHDL Operator associativity (Quartus II VHDL parser bug?)

 
 
fons fons is offline
Junior Member
Join Date: Jun 2008
Posts: 1
 
      06-18-2008
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VHDL Operator associativity (Quartus II parser bug?) Fons VHDL 9 06-20-2008 05:35 AM
Logical operator precedence & associativity marko C Programming 9 11-13-2006 02:27 PM
Associativity of unary operators Ashwin N Java 4 09-09-2006 12:59 PM
question regarding precedence and associativity of ++ and * maadhuu C Programming 3 07-29-2005 11:26 AM
associativity Mantorok Redgormor C Programming 2 01-21-2004 11:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57