A Tcl/Tk based digital circuit editor and simulator