Fast ADC to DAC multilpication in FPGA
Posted: Mon Nov 28, 2022 11:13 pm
Hi all,
I've been stuck on this problem for a while and was hoping to perhaps get some insight by asking on the forum. I've been using the Red Pitaya for the past couple months, first by SCPI, and now trying to understand how to program in FPGA. I am VERY new to FPGA programming, so would welcome any and all advice.
I am working on creating a signal multiplier with my board. The idea is to capture two signals in IN1 and IN2, multiply them together, and then output the signal through OUT1. The idea is to use the board as a lock-in amplifier, but am starting with just mixing the two signals together first.
I tried creating a Verilog module with the following code: (adapted from https://people.ece.cornell.edu/land/cou ... ckin_amp.v)
I then created a module in the block diagram and connected it as such: https://imgur.com/a/flHqEqM (Was unable to attach an image to the post)
I then ran it, but it wasn't working. Any advice?
Thanks!
I've been stuck on this problem for a while and was hoping to perhaps get some insight by asking on the forum. I've been using the Red Pitaya for the past couple months, first by SCPI, and now trying to understand how to program in FPGA. I am VERY new to FPGA programming, so would welcome any and all advice.
I am working on creating a signal multiplier with my board. The idea is to capture two signals in IN1 and IN2, multiply them together, and then output the signal through OUT1. The idea is to use the board as a lock-in amplifier, but am starting with just mixing the two signals together first.
I tried creating a Verilog module with the following code: (adapted from https://people.ece.cornell.edu/land/cou ... ckin_amp.v)
Code: Select all
module mixermodule(out1, a, b);
output [13:0] out1;
input signed [13:0] a;
input signed [13:0] b;
wire signed [13:0] out1;
wire signed [13:0] mult_out;
assign mult_out = a * b;
assign out1 = mult_out[13:0];
//assign out = {mult_out[35], mult_out[32:16]};
endmodule
I then ran it, but it wasn't working. Any advice?
Thanks!