I am fairly new to the field of vhdl programming. I am trying to write a code in vhdl to control a stepper motor(bi-directional). I have written the code which compiled successfully. My problem now is to include a delay subroutine within that code to delay the process clock to a very reasonable motor speed. Process clock is 100Mhz.I don't know if i am to write a different entity for the subroutine or not. Can someone assist me with an example synthesisable code which incoporates the delay. I am using an altera cpld.
Thanks to all.