Unlike the counter circuits presented in the gate-level applets, the construction from individual function blocks is clearly visible. The 16-bit register holds the current count value, and the incrementer is used to calculate the next count value. The comparator block compares the current count value with the preset maximum count value and controls the multiplexer which selects the value that is loaded into the count register on the rising edge of the clock.
Run the applet | Run the editor (via Webstart)