The nreset and clk inputs are directly connected to the D-type with reset flipflop (hades.models.flipflops.DFFR). The loadenable-input controls the 2:1 multiplexer in front of the D input of the flipflop. If loadenable is high, the value from the D input port is propagated to the flipflop and allows synchronous loading on the next rising clock edge.
Otherwise, the feedback logic is enabled. If nclear is low, the flipflop is reset on the next rising clock edge. If countEnable is high, the counter is enabled.
Run the applet | Run the editor (via Webstart)