Hardware interview practice
Modulo Counter Fails to Wrap
count is a three-bit modulo-8 counter. en and load are sampled before each edge; count is shown immediately afterward, and load remains 0 throughout. Rule to apply: load has priority over en and would replace count with a programmed value. With load=0, en=1 increments modulo 8 and en=0 holds the prior count. Which assertion fails at C3?
Choose one
Answer choices
- A. count must become 0 after an enabled edge from 7.
- B. load is high at C3, so count may legally remain 7.
- C. count must become 8 after an enabled edge from 7.
- D. en must become 0 before count reaches 7.
