Guest
Hi,
I have the following code.
signal a,b,c,d:std_logic_vector(17 downto 0);
signal out :std_logic_vector(36 downto 0);
out <= a*b + c*d;
My synthesis tool errors out complaining of mismatched array sizes.
A work around I used was this:
out <= ('0' & (a*b)) + ('0' & (c*d)) ;
Is this the general practice or is there an easier way around?
Thanks.
I have the following code.
signal a,b,c,d:std_logic_vector(17 downto 0);
signal out :std_logic_vector(36 downto 0);
out <= a*b + c*d;
My synthesis tool errors out complaining of mismatched array sizes.
A work around I used was this:
out <= ('0' & (a*b)) + ('0' & (c*d)) ;
Is this the general practice or is there an easier way around?
Thanks.