Chisel
A counter module, can also be created using Counter
The maximum value of the counter, does not have to be power of 2
increment the counter
if the counter is at the max value
current value of the counter
A counter module, can also be created using Counter