Project 4- number of flip flops in question 1

hello,
How many flip flops do I need to use in the structure of simplified stack. Is it One flip flop per dash? 3 flip flops for every bit so 24 in general?
Because the same functionality can be implemented by one flip flop per bit, 8 FF in total.

Thanks…
Maor

One can combine flip-flops (and save cost by a constant factor).
This however, complicates the understanding of retiming.
Conclusion:

  1. it is useful to separate (and in fact duplicate) flip-flip on separate edges.
  2. Once you have an understanding of what’s ahppening, you can try to combine flip-flops.