hi all am trying to write a code using verilog language for the laser speed gun the idea is to send a laser light then recieve this light after a period of time i wanna calculate the # time that the light go from the gun and back to the gun again then calculate the speed please i wanna some help :-( :-( :-( :-(
You can try having a counter which counts the number of clock pulses from the time light goes from the gun and returns back to the gun. The obtained count value implies the distance. You need to have some ideal values of speed and distance(in terms of time) based on which you can calculate the speed of gun for a specific scenario.