priyanka24
Advanced Member level 4
Hi...
i have suppose 8 bit binary number.
for example consider it as 00101001, then in this i have to count run length i.e number of continuous 0's.
so for above number i get 3 run lengths N1=2,N2=1,N3=2.
suppose i hv another number consider it as 01100101, then i get 4 run lengths N1=1, N2=0, N3=2, N4=1.
i want to implement this in verilog but not getting how to do it. because i hv to count each run length and want to store it.
in this me getting problems are
1. How can i return to original sequence after counting the previous run length.
2. How can i store each run length and where to store and how as it can be any in variable numbers.
plz help me how to do it in verilog as its only one module of my project i cant go further.
i have suppose 8 bit binary number.
for example consider it as 00101001, then in this i have to count run length i.e number of continuous 0's.
so for above number i get 3 run lengths N1=2,N2=1,N3=2.
suppose i hv another number consider it as 01100101, then i get 4 run lengths N1=1, N2=0, N3=2, N4=1.
i want to implement this in verilog but not getting how to do it. because i hv to count each run length and want to store it.
in this me getting problems are
1. How can i return to original sequence after counting the previous run length.
2. How can i store each run length and where to store and how as it can be any in variable numbers.
plz help me how to do it in verilog as its only one module of my project i cant go further.