four_bit_counter : process ( clock ) is
begin
if rising_edge ( clock ) then
counter <= counter + 1 ; -- counter is defined as an unsigned 4 bit vector
end if ;
end process four_bit_counter ;
thanks if u have full code of 4 bit counter that gives 0 for count 0 t0 7 and 1 for 8 to 15 please post it.I don't know how to write code in vhdl.please post it