Changed all bits types to std_logic