Forum Discussion
Altera_Forum
Honored Contributor
12 years agoJust use my above code. The max_val updates and stores din by itself until it is updated (if at all).
I am sorry I have not done verilog for years so can't help directly at code level. Yourlast code and waveforms looks ok to me