https://www.kolls.net/gatesim/

Logic Gate Simulator is an open-source tool for experimenting with and learning about logic gates. The simulator tool was originally designed for CIS students at South Puget Sound Community College but is free for anyone to use and modify under the GPL v3.