G
gman
Guest
Hello All,
Assuming that all the following signal are std_logic, why isn't the
following line illegal:
if ( PCI_Frame_n = '0' or PCI_Trdy_n ='0' and Hit='1' and Term='0' or
Term = '1' and Ready ='1') then
The compiler says:
near "and": expecting: ')'
near "or": expecting: ')'
The problem seems to go away if I pair up the operands into groups of
two using parenthesis. Why doesn't the compiler apply
order-of-operation rules and evaluate the boolean statement?
Thanks.
Assuming that all the following signal are std_logic, why isn't the
following line illegal:
if ( PCI_Frame_n = '0' or PCI_Trdy_n ='0' and Hit='1' and Term='0' or
Term = '1' and Ready ='1') then
The compiler says:
near "and": expecting: ')'
near "or": expecting: ')'
The problem seems to go away if I pair up the operands into groups of
two using parenthesis. Why doesn't the compiler apply
order-of-operation rules and evaluate the boolean statement?
Thanks.