Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- For loops unroll into parallel or sequential logic depending on their usage. I suggest going back to your circuit diagram and ensuring that it meets your design specification. Modify your diagram before writing any code --- Quote End --- This is definitely sequential logic. It has to be since the LED gets turned on for 250ms and then off for 500ms then on again for 250ms and then off for 1 second and then this same sequence repeats 4 more times, then repeats every 10 seconds for 15 minutes. Where I am having the problem is figuring out how to write this as a for loop and how to use a timer in the for loop. I have pages of code to do much of this sequence without using a for loop but it seems extremely inefficient.