Page 1 of 1

Feeding ADC input to DAC output with Math Operation

Posted: Sat Mar 03, 2018 11:57 pm
by peterbrad
Hello everyone, I'm quite new to FPGAs, so excuse me for posting about a rather simple problem. I know how to use Vivado to program the FPGA so that the two fast outputs have the same signal as the two inputs. However, I want to go a step further, and multiply one of the inputs by two.

Basically, I want:
Out1 = In1
Out2 = In2 * 2

However, I am not sure how to do this. Pavel Denim's ADC and DAC cores use the AXI protocol, and I'm not sure how to perform simple math operations on an AXI stream. Do I need to implement a look-up table for something as simple as a multiply-by-2 operation?

Here's my current block diagram:
i.imgur.com/TQ74Pgj.png
(I can't post links apparently)

Re: Feeding ADC input to DAC output with Math Operation

Posted: Mon Mar 05, 2018 10:33 am
by amike88
No you do not need to make a LUT for that. Multiplying by 2 is a simple operation which is basically shifting by one to the left. You can do that in many different ways, check this site to dive in to FPGA programing. You will be able to use RP as your development platform for this examples.

good luck!