Altera_Forum
Honored Contributor
12 years agoconstant manipulation in VHDL statement
Hi,
I am puzzled by the result of a VHDL code and hope someone could help understand the problem. ...... constant PERIOD : integer := 1000; constant A : integer := 4; constant B : integer := 23; ...... ...... process variable count : integer := 0; ...... ...... if count < (PERIOD* (A+B )) then It appears that the behavior of the statement above is not as I expected: "if count < (1000 * (4+23)) then". 1. Where did my 'logic' go wrong? 2. How do I find out how VHDL codes are parsed in Quartus? Thanks