Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- I cant see the package that contains the image_derivadas type. Have you accidently used std_logic_arith instead of numeric_std? Just to note - all the Ix, Iy and It outputs are going to be 0 because 1/4 = 0 --- Quote End --- the package is defined in another file as folowing: package imagens is type image_array is array(0 to 49, 0 to 49) of unsigned(7 downto 0); type image_derivadas is array(0 to 49, 0 to 49) of signed (8 downto 0); type image_19bits is array (0 to 49, 0 to 49) of signed (18 downto 0); end imagens; I've already had that kind of problem with divisions. Which is the best way to do a division in vhdl? thanks.