Altera_Forum
Honored Contributor
11 years agoVHDL expression error ( different data width)
Hello,
I am not expert in VHDL, and I got stuck with this problem. In the original code 'fifo_data_out' was defined as 24 bit (INPUT_DATAWIDTH = 24) and the compilation was successful
SIGNAL fifo_data_out : STD_LOGIC_VECTOR(INPUT_DATAWIDTH-1 DOWNTO 0);
I just changed INPUT_DATAWIDTH to 16, then the compilation was not successful as shown in the below picture, can some body explain to me, why? https://www.alteraforum.com/forum/attachment.php?attachmentid=8885