Forum Discussion
Altera_Forum
Honored Contributor
12 years agoWithout this commented-out line flagVal stays zero (at least in provided code). At the end Q_DATA_ACC_ALU calculation happens in a different way than with the commented-out line.
I would write this one in a bit different way: 1. Use "normal" clock frequency and clock enable signal. 2. Use clocked process for manipulating signals and don't use variables at all. 3. Use only std_logic_vector and std_logic type in entity declaration. And in the design too. 4. Avoid bidirectional pins outside top level vhdl file.