Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Actually, y_den is a single signed number, not an array of signed. Y_den(0) is a single bit - you cannot add that to a signed. --- Quote End --- Oh.. Yes..sorry. i forget to post the first file.. with the definition of subtype and type.. so i correct y_den into array32to2 but the error of "+" don't change.. LIBRARY ieee; USE ieee.std_logic_1164.ALL; use ieee.numeric_std.all; use ieee.std_logic_signed.all; PACKAGE width_bit_signed IS SUBTYPE BITS16 IS signed(15 downto 0) ; --11bit SUBTYPE BITS32 IS signed(31 downto 0); --22bit TYPE ARRAY16TO3 IS ARRAY (0 TO 2) OF BITS16; TYPE ARRAY32TO2 IS ARRAY (0 TO 1) OF BITS32; TYPE ARRAY32TO3 IS ARRAY (0 TO 2) OF BITS32; END width_bit_signed; Mh... i compile this program last week and it function ..then i change the size of the register into 11 and 22 bit instead of 16 and 32 and it don't function so i rewrite the original program with 16 and 32 bit but.. there is alway the error that don't recognize "+" why????:confused::( thank for your response Tricky..