C
Cory Shol
Guest
Hello all,
I am working on a project that needs to complete safety crosschecks on a regular basis.
If a User sets up the equipment at a specific setting the FPGA logic will calculate a Reference Voltage (lets say a 16 bit number ). The user will also set a percentage from 10-35% (Overvoltage Threshold).
Once the user says he wants the system to allow 15% of overvoltage.
I want to calculate in the logic the 16 bit referance voltage * .15 .
How does one go about calculating percentages? I am using a Xilinx Spartan 3a 700a. A link to an tutorial or algorithm would be great.
Thanks
I am working on a project that needs to complete safety crosschecks on a regular basis.
If a User sets up the equipment at a specific setting the FPGA logic will calculate a Reference Voltage (lets say a 16 bit number ). The user will also set a percentage from 10-35% (Overvoltage Threshold).
Once the user says he wants the system to allow 15% of overvoltage.
I want to calculate in the logic the 16 bit referance voltage * .15 .
How does one go about calculating percentages? I am using a Xilinx Spartan 3a 700a. A link to an tutorial or algorithm would be great.
Thanks