Commit 0c3fc4d2 authored by Raimundas Bastys's avatar Raimundas Bastys

added simul fifo to sensor/sensor_i2c.v

parent 2ddc7805
...@@ -475,7 +475,23 @@ module sensor_i2c#( ...@@ -475,7 +475,23 @@ module sensor_i2c#(
.rvalid (i2c_rvalid) // output .rvalid (i2c_rvalid) // output
); );
`ifdef SENSOR_SPI
simul_fifo
#(
.WIDTH(32),
.DEPTH(64)
)simmul_fifo_i(
.clk(mclk),
.reset(mrst),
.data_in(di_r),
.load(i2c_cmd_we),
.input_ready(),
.data_out(data_spi),
.valid(valid_spi),
.ready(read_spi));
`else
ram_var_w_var_r #( ram_var_w_var_r #(
.REGISTERS(1), // try to delay i2c_byte_start by one more cycle .REGISTERS(1), // try to delay i2c_byte_start by one more cycle
...@@ -494,5 +510,8 @@ module sensor_i2c#( ...@@ -494,5 +510,8 @@ module sensor_i2c#(
.data_in (di_r) // input[31:0] .data_in (di_r) // input[31:0]
); );
`endif
endmodule endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment