Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYou can create a std_logic_vector of zeros using "others" that's nice.
constant bus_width : integer := 32; signal my_signal : std_logic_vector(bus_width -1 downto 0); constant zeros : std_logic_vector(bus_width -1 downto 0); zeros <= (others => '0'); ... if (my_signal = zeros) then... This makes it a little cleaner.