Hello friends,
I got a task to create automatic system in which I will program a microcontroller which will have an encoder on the one side and a digital output on the other. The microcontroller will count the impulses received from the encoder and on a specific number of impulses it will produce a digital "1".
Since that's pretty easy I typed one porgram in C and one in VHDL, because I don't know what microcontroller I am supposed to use.
The problem that I actually have is that this program and generally the entire system should be as fast as possible. I figured that I can do that with finding the fastest microcontroller and with optimizing the code.
I am pretty sure that the speed of a microcontroller is regulated by the MIPS and the frequency of the crystal (tell me if I am wrong) and I know how to determine the processing speed of a code in C.
Finally, my question is how can I determine the speed of a VHDL code (like the "ping - pong" order in C) and how can I test the response time of the microcontroller with the program already downloaded on it?
P.S. Is a microcontroller that works with a VHDL code faster than one with a C code? Since VHDL is much lower language and it directly designs the electronic circuit.
Thanks in advance,
Rastapunk
I got a task to create automatic system in which I will program a microcontroller which will have an encoder on the one side and a digital output on the other. The microcontroller will count the impulses received from the encoder and on a specific number of impulses it will produce a digital "1".
Since that's pretty easy I typed one porgram in C and one in VHDL, because I don't know what microcontroller I am supposed to use.
The problem that I actually have is that this program and generally the entire system should be as fast as possible. I figured that I can do that with finding the fastest microcontroller and with optimizing the code.
I am pretty sure that the speed of a microcontroller is regulated by the MIPS and the frequency of the crystal (tell me if I am wrong) and I know how to determine the processing speed of a code in C.
Finally, my question is how can I determine the speed of a VHDL code (like the "ping - pong" order in C) and how can I test the response time of the microcontroller with the program already downloaded on it?
P.S. Is a microcontroller that works with a VHDL code faster than one with a C code? Since VHDL is much lower language and it directly designs the electronic circuit.
Thanks in advance,
Rastapunk