A
Amit
Hello group,
I'm writing a code to recognize two strings of 0s and 1s base on a
Moore machine. The goal is to wait for two numbers (let's say 75). One
string will represent 7 and the other represents 5.
Let's say:
5= 000010000100
7= 000010000110
Now, when the appropriate string (digit) is recongnized the number
must be displayed on an LED on Altera board (DE2). I understand that
I have to add a mulitplexer to do this but the thing I am not sure
that how can I keep the number (7) intact till recognizing the next
appropriate number (5)? (other numbers must be ignored)
Do I need a latch? if this is right, then can I only simulate it using
if statement?
Regards,
ak
I'm writing a code to recognize two strings of 0s and 1s base on a
Moore machine. The goal is to wait for two numbers (let's say 75). One
string will represent 7 and the other represents 5.
Let's say:
5= 000010000100
7= 000010000110
Now, when the appropriate string (digit) is recongnized the number
must be displayed on an LED on Altera board (DE2). I understand that
I have to add a mulitplexer to do this but the thing I am not sure
that how can I keep the number (7) intact till recognizing the next
appropriate number (5)? (other numbers must be ignored)
Do I need a latch? if this is right, then can I only simulate it using
if statement?
Regards,
ak