16-bit counter with settable limit
Circuit Description
This applet demonstrates a synchronous
16-bit counter with user-settable count limit,
built from register-transfer level components.
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.
|