Logic gate circuits can perform operations like AND, OR etc. They can be implemented using PN junction diodes for demonstration purpose. A wide range of logic gate ICs are also available.
Study of logic gates using SQ1 and PV1 as inputs, using TTL logic ICs 7408 and 7432.
The results for the OR gate made using the diodes is shown below.
The results for the AND gate made using the IC 7408 is shown below.
The working of the logic gate will be evident from the 3 waveforms. You may shift traces vertically to separate them for clarity.