I have to read data from memory and perform some operations for N number of times. I wrote a for loop in software for that but I don't understand how to design that in hardware.
I want to know how the counter circuit should be to count 1 2 3 2 1 in 5 cycles
can you help me in solving this
please help me to get hardware for this in form of flipflops or something
Mod edit: added code tags
I want to know how the counter circuit should be to count 1 2 3 2 1 in 5 cycles
can you help me in solving this
Code:
count=0;
for i=1:5
if i<=3
count =count+1;
else
count=count-1;
end
end
Mod edit: added code tags