|
|
Subject:
Verilog (Car wheel sensor) Dividing speed by time taken to give distance
Category: Computers > Programming Asked by: earger_beaver-ga List Price: $20.00 |
Posted:
03 Feb 2005 07:31 PST
Expires: 09 Feb 2005 10:14 PST Question ID: 468095 |
I am creating a module in verlog to simulate a sensor on car wheel which will count the number of wheel turns and therefore work out the speed at which the car is travelling and the total distance is has travelled.The sensor will be represented by a push button.I am trying to MULTIPLY the number of turns of wheel by the wheel circum(fixed) to get the distance travelled and then DIVIDE this by the time taken(count of a clock divider running at a second). All these inputs and reg values are binary and verilog wont let me use the operators * and / for this. Will i have to use a divider/multiply module to implement this or is there some sort of convert_to_integer shortcut? Also some advice and sample code would help enormously and would be rewarded, Thanks |
|
There is no answer at this time. |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |