Hey.
The question goes like this:
The machine has one input and one output.
The machine receive a series of M bits each time (in each clock, a bit is received).
The machine returns a series of M bits, in which if in the input series, '1' appeared firstly in index 'i', then the machine would return '1' in the same index, and zero in the rest.
For example:
for M=3:
CLK:____ 1-2-3-4-5-6-7-8-9
Input:___ 1-1-0-1-0-1-0-0-1
Output:__1-0-0-1-0-0-0-0-1
That is what I did so far:
However, How can I nicely restart everything after M-bit series is received?
Thanks!
The question goes like this:
The machine has one input and one output.
The machine receive a series of M bits each time (in each clock, a bit is received).
The machine returns a series of M bits, in which if in the input series, '1' appeared firstly in index 'i', then the machine would return '1' in the same index, and zero in the rest.
For example:
for M=3:
CLK:____ 1-2-3-4-5-6-7-8-9
Input:___ 1-1-0-1-0-1-0-0-1
Output:__1-0-0-1-0-0-0-0-1
That is what I did so far:
However, How can I nicely restart everything after M-bit series is received?
Thanks!
Attachments
Last edited: