There used to be a circuit simulator for most discrete logic arcade games of the 70s: DICE.
http://adamulation.blogspot.com
Unfortunately it hasn't been maintained for a while, which is a shame because I don't think any other program does this. MAME/MESS only simulates machines with CPUs.