Forum Discussion
Altera_Forum
Honored Contributor
12 years agoThere are applications for that, usually related to dealing with asynchronous signals. Ie, the following code toggles between "0" and "1" every time there's a rising edge om my_discriminator, which is useful to detect pulses shorter than one clock
always @ (posedge my_discriminator_input)
toggle <= !toggle; But that's the exception rather than the norm. If you have a signal generated by synchronous logic... then don't do that. It will just create complications.