Is it possible to see code sequence in VHDL using Xilinx ISE Design Suite 14.7? I want to know which code line executes one after the other when the program is running. Hope you understood what I am trying to ask.
Vhdl is not a programming language, and is not executed inside an FPGA. It describes hardware. So you cannot do line by line debug as all hardware runs in parallel.
Xilinx has chipscope tool to debug hardware signals
Vhdl is not a programming language, and is not executed inside an FPGA. It describes hardware. So you cannot do line by line debug as all hardware runs in parallel.
Xilinx has chipscope tool to debug hardware signals
Thanks for the clarification. I am new to VHDL , so asking silly questions. thanks.
- - - Updated - - -
I have below VHDL code for RC Servo motor. I am using Spartan-6. When I execute the program the Servo moves to 180 degree position and again comes back to 0 degree position and it happens continuously. Why it is so? Is it the signal 'divrel1' reset to initial value of '1' every time?
Reviewing your code can help. Look at the integer range definition of divrel1. Range of 0 to 1500 is implemented as 11 bit unsigned in synthesis, thus it overflows to zero before reaching 2100.
Although FPGA code isn't executed sequentially line by line, as TrickyDicky explained, it can be debugged almost like sequential code in a simulator like Modelsim.
I got stuck in my project. Small servo(MG90S) works perfectly with the above program. But when I connect little bigger servo(KS3527), it looks like the power is not enough and I can hear buzz... sound from inside the casing. In scope I am seeing the PWM signal.I am using 5V , 5A normal power adaptor. I read somewhere in the article that , servo will draw large current at the beginning. so I connected 100uf Capacitor(Later tried 200 uf, 300uf, 400uf, 500uf as well) across the power supply. But still the issue is same. BTW servo is not under any load. Do the servo need 5V SMPS ?
Are you sure that the supplied servo signal is regular (not rapidly varying pulse width)? Otherwise, follow the manufacturer data sheet. Current consumption of servos is beyond the topics of programmable logic.
Yes. I am sure the pulse width is not rapidly varying. I tried with increment of "1" for "divrel1"in the below code line. The issue remains the same. So now I ordered 5V 20A SMPS to try.