Forum Discussion
Altera_Forum
Honored Contributor
14 years agoVHDL problem: inputs and constants
Hi all, I've a problem in VHDL. This code runs correctly:
library IEEE;
use IEEE.std_logic_1164.all;
entity CLOCK_SIM is
generic
(
constant FREQ : integer:=10000000;
constant DUTY ...
Altera_Forum
Honored Contributor
14 years agoYou have two constants (tclkh and tclkl) that will depend on the value of a signal 'freq' which in turn depends on the value of another signal 'f'.
Fix that up by changing those two constants to signals and give it another go...a calculated constant can't depend on a signal, since a signal is not 'constant' Kevin Jennings