B
Bta241460
Guest

How to interface sensor with fpga using serial communication like uart or i2c? And how to store serial data from sensor with 115200 baud rate on 100 Mhz fpga?
module df(
input wire [7:0] d,
input wire enable,
input wire clk,
output reg [7:0] q
);
always@(posedge clk)
begin
if(enable==1)
q<=d;
else
q<=0;
end
endmodule