Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Would you mind giving me an example of a registered output? Thanks a lot, Mike --- Quote End --- just get Z out into a separate process and put clock edge statement. By the way I am just curious why design it the hard way. If it is me I will just do this: --clocked process shift <= shift(2 downto 0) & data; -- z <= '1' when shift = "0110" else '0'; The shift register keeps history of previous inputs instead of state machine. in your second process many of your z assignments are not needed. You can just use default z <= '0' at top then update in last state.