How to make and simulate cyclic closed circuits in Quartus
Looks like you need a reset signal for this circuit, otherwise it may never get into a predictable state. And this is not a simulation-specific or Quartus-specific trick - unknown states affect pretty much any non-trivial circuit with internal memory. All microprocessors have a reset signal exactly for this reason.