Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Don't use library std_logic_arith. It's a bad practice of vhdl. use instead numeric_std: library ieee; use ieee.std_logic_1164.all; use ieee.numeric_std.all; signal left_m : unsigned(9 downto 0) ; signal right_m : unsigned(9 downto 0) ; right_m<=to_unsigned(650, 10); left_m <=to_unsigned(750, 10); You cast the numbers to unsigned. The first parameter is the number and the second the bits amount. --- Quote End --- thanx alot for ur help do u hv any good reference for vhdl becz i want to improve my self in coding