High-speed transmission interface at around 3 meters for FPGA to FPGA communication
Hi,
I’m looking for a high-speed transmission interface at around 3 meters for FPGA to FPGA communication.
My development environment:
- MAX10 10m08sae144c8g
- Quartus Prime Lite 23.1.1
Currently, I am considering options like LVDS and dividing the task into two parts:
- Writing the transmission interface myself
- Using the IP Catalog
Considering that I am new to the Intel FPGA development environment and not very familiar with Quartus Prime and the IP Catalog, I decided to first try writing the transmission interface myself. Here is my design:
LVDS Transmitter:
- Input: Enable
- Output: lvds_clk & lvds_data
LVDS Receiver:
- Input: lvds_clk & lvds_data
- Output: 12-pin IO
I have completed writing my transmission interface and confirmed the transmission signal using an oscilloscope and logic analyzer.
I am transmitting a fixed 12-bit data, but the receiving interface is still unable to correctly receive the data according to the transmitted signal.
(Using LVTTL to test the transmission and reception logic for now, not using the LVDS interface.)
This is my transmission signal:
My Verilog receiver module:
Receive data on the rising edge of lvds_clk.
(gpio_1、gpio_2 are just for my observation purposes)
module lvds_receiver (
input wire clk,
input wire reset,
input wire lvds_clk,
input wire lvds_data,
output reg [11:0] data_out,
output reg gpio_1,
output reg gpio_2
);
reg [3:0] loop = 0;
reg [11:0] data_reg = 0;
always @(posedge lvds_clk or negedge reset) begin
if(!reset) begin
data_reg <= 12'h0;
loop <= 4'd0;
gpio_1 <= 1'b0;
gpio_2 <= 1'b0;
end
else begin
if(loop == 4'd11) begin
data_out <= {data_reg[10:0], lvds_data};
loop <= 4'd0;
gpio_1 <= ~gpio_1;
end
else begin
data_reg <= {data_reg[10:0], lvds_data};
loop <= loop + 1'b1;
gpio_2 <= ~gpio_2;
end
end
end
endmoduleMy ModelSIM simulations:
Transmit 0xABD (101010111101) and output to 12 pins in parallel after receiving.
FPGA self-transmission and self-reception simulations (FPGA to FPGA) of the transmission waveform :
But the actual results are different from the simulated ones.
My question:
1. I can’t figure out why the actual results and the simulation don’t match. I need help. Is there something I might have overlooked?
2. Regarding the use of the IP Catalog, I am still researching how to use the Soft LVDS IP. I haven’t found a detailed procedure for using this IP yet.
3. What interfaces can be considered for FPGA transmission over a distance of 3 meters?