simulation or gates