Design and Simulation Software for Logic Gates and Discretes
You can use a program such as LTSpice.  There are also sites that simulate circuits like http://www.falstad.com/circuit/ and https://www.circuitlab.com/.