Forum Discussion
Altera_Forum
Honored Contributor
9 years agoYour circuit design will not work in real hardware. Because you have no clock to time the registering of your signals, you're basically asking it to store the value of data_ready from 0s ago. Think about the circuit you expect and draw it on paper before writing the code.
FOr simulation, your code does work as you expected, assuming you're doing RTL simulation. If you're doing a netlist simulation (that you get with Quartus) then the problem will be because of what I said above. I suggest using a clock and synchronising your design. Memory elements are not really possible without one.