Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- You picture is too small to see the signal names. R will get set high as soon as run_i goes high. It wont go low again until done is '1'. --- Quote End --- This is not happening. Run_i is being read as high all the time. I don't know why, even though it is low. --- Quote Start --- and I just noticed that the ACTION process uses the stepper clock in the sensitivity list, but it is NOT a clocked process. So therefore its all wrong. You need to remove stepper_clk_i from the sensitivity list and add count, D, derection_cntrl, R, halt_cntrl, speed+cntrol, H. THis process will also create latches, as you have incomplete if statements. ACTION : process(R, D, H, count,derection_cntrl, halt_cntrl, speed_cntrl) --- Quote End --- If I do not do this then how will I update the count at set intervals. Count is the one creating the delay after the button is released. I was looking at this as a helper signal to avoid debouncing of switches. --- Quote Start --- Plus, putting adders in asynchronous processes is a bad idea. --- Quote End --- What do you mean by this. Can you please explain pointing to the code? Thanks (I will try uploading a bigger picture when I reach home for you, not sure why it came so small.)