sarthak wrote
CHIP Mux {
IN a,b,sel;
OUT out;
BUILTIN Mux;
CLOCKED out;
}
The stubs for the built-in parts only tell the Hardware Simulator how the .class file that implements the part behaves.
Unless you change the behavior of the Mux.class file (edit and recompile the Mux.java source) it will not behave as a clocked chip.
If you want to experiment with sequential circuits, I suggest investigating
Logisim. It can handle asynchronous feedback like the D Latch you are trying to build.
--Mark