Feeding ADC input to DAC output with Math Operation

Applications, development tools, FPGA, C, WEB
Post Reply
peterbrad
Posts: 4
Joined: Sat Mar 03, 2018 11:51 pm

Feeding ADC input to DAC output with Math Operation

Post by peterbrad » Sat Mar 03, 2018 11:57 pm

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)

amike88
Posts: 89
Joined: Tue Mar 29, 2016 7:41 pm

Re: Feeding ADC input to DAC output with Math Operation

Post by amike88 » Mon Mar 05, 2018 10:33 am

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!

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: Bing [Bot] and 22 guests