This is an implementation of a logic circuit simulation.