Hi there,
I am reviewing some digital stuffs done about 10 years ego in order to take a more advanced courses in mid-january. I need some help: how can I design a counter that counts the number of times the number 5 appears in an 4-bit input stream.
Note: NumberIn : 4-bits wide (input)
Start: Reset counter and overflow flag to zero while start is high (input)
Count: 8-bit unsigned count (of the number of “5”s that have occurred since start went
low (output)
Overflow: Goes high if count overflows (count is unsigned, so you only need to monitor
the adder carry out) and stays high until reset is asserted.
Thank you.
acy.
I am reviewing some digital stuffs done about 10 years ego in order to take a more advanced courses in mid-january. I need some help: how can I design a counter that counts the number of times the number 5 appears in an 4-bit input stream.
Note: NumberIn : 4-bits wide (input)
Start: Reset counter and overflow flag to zero while start is high (input)
Count: 8-bit unsigned count (of the number of “5”s that have occurred since start went
low (output)
Overflow: Goes high if count overflows (count is unsigned, so you only need to monitor
the adder carry out) and stays high until reset is asserted.
Thank you.
acy.