To lucbra
No, I mean to say that the testbench runs well in VHDL Testbench file in PC. But I was unable to synthesize the code on FPGA.
Actually, I have a L6470 IC which drives high current stepper motor (upto 7 A Vpeak). It works on SPI based commands. I was unable to run it by the code which I presented due to the fact that it was not synthesizable on FPGA Spartan 6. If you have some alternative please suggest like in previous post trickydicky suggested one. Unfortunately it didnt work.