Tag basic logic gates in digital electronics