07-03-2020 08:45 PM
I have to implement in verilog this function
inputs are A1, A2 and ext1
ext1 is a float number from 0 to 1 and will come from adc
x = A1* (1-ext1) + A2 * ext1
how could i translate that ? it is basically an interpolation between value A1 and A2 with ext1 being the control of the operation
07-04-2020 06:34 AM
If you can do it in fixed-point, it'll be a lot easier.
Floating-point can be done via the Xilinx Floating Point IP core. You'll need to design a state machine to drive that. Whereas fixed-point can probably be done as a single line of code.