Chargement…
Count the ones among each 16 accepted samples with valid=1. At the end of each window, output the count from 0 to 16 and pulse sample_valid for one cycle. Cycles without valid are ignored.
valid=1
sample_valid
valid