Forum Discussion
Altera_Forum
Honored Contributor
13 years ago[pedant]Its not a variable, with use of the <= assignment I see its a signal - there is a difference between the two [/pedant]
try: DUTY <= ((WIDTH_LTCHD*PERCENT)/PERIOD_LTCHD)(5 downto 0); otherwise just use a temporary 23 bit signal and slice that: temp <= (WIDTH_LTCHD*PERCENT)/PERIOD_LTCHD; DATA <= temp(5 downto 0);