Help with logic to find number after certain duration

D

Deepu

Guest
Hi,

I have a problem where in there is a 'reg' of size [5000:0] which will
have content like:

1zzzzzzzzzzzzz011zzzzzzzzzzzzzzzzz111zzzzzz000zzzzzzzzzzz0001zzzzzzzz .......

I need to go through the content of this reg and make sure there is a
minimum of 10 'z' between numbers. Can somebody provide me with some
ideas on how this can be accomplished..

Thanks for the help..
 
On Thursday, March 29, 2012 8:15:34 PM UTC-7, Deepu wrote:
Hi,

I have a problem where in there is a 'reg' of size [5000:0] which will
have content like:

1zzzzzzzzzzzzz011zzzzzzzzzzzzzzzzz111zzzzzz000zzzzzzzzzzz0001zzzzzzzz ........

I need to go through the content of this reg and make sure there is a
minimum of 10 'z' between numbers. Can somebody provide me with some
ideas on how this can be accomplished..
A simple counter loop to index the reg, a counter to keep track of 'z's since last 1 or 0. Pretty trivial. However, is this supposed to be synthesizable? I hope not and that you understand that real logic doesn't have 'x's or 'z's. Also, if you don't already understand, read about the difference between == and ===.

David
 

Welcome to EDABoard.com

Sponsor

Back
Top