Hello,
I was tasked with creating asynchronous counter modulo 9 using d flip flops and synthesis calculation method.
When trying to resolve the task I managed to create a counter that counted to 8 (as it should) however after number 6 instead of number 7 there appear 14 and 15 before 8 (which is wrong).
I counted everything from the beginning but result is the same and I can't find mistake in calculations.
Below is image from simulation:

Below is are my calculations:

And below is image of the whole counter:

Can you please point what is the error?
I was tasked with creating asynchronous counter modulo 9 using d flip flops and synthesis calculation method.
When trying to resolve the task I managed to create a counter that counted to 8 (as it should) however after number 6 instead of number 7 there appear 14 and 15 before 8 (which is wrong).
I counted everything from the beginning but result is the same and I can't find mistake in calculations.
Below is image from simulation:

Below is are my calculations:

And below is image of the whole counter:

Can you please point what is the error?