verilog code

Status
Not open for further replies.

Feryal Al-shamali

Newbie level 1
Joined
Mar 22, 2014
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
0
Activity points
0
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.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…