Logisim: a graphical tool for designing and simulating logic circuits

Click http://www.cburch.com/logisim/index.html link to open resource.