thhor_crs/fpga/thhor_crs.v

38 lines
618 B
Coq
Raw Permalink Normal View History

2025-12-21 21:40:54 +01:00
module thhor_crs
2025-12-21 21:40:54 +01:00
(
input xclk,
input spi_ssel, spi_sck, spi_mosi,
output spi_miso,
2025-12-21 21:40:54 +01:00
// Barometer
output pt_MCLK, pt_SCLK, pt_Din,
input pt_Dout,
2025-12-21 21:40:54 +01:00
// ADCs
output [3:0] ADC_nCS, ADC_SCK, ADC_DIN,
input [3:0] ADC_DOUT,
2025-12-21 21:40:54 +01:00
// LVDS
output S_OUT, D_OUT,
input S_IN, D_IN,
2025-12-21 21:40:54 +01:00
// Spare Pins
inout [18:0] P25,
inout [7:0] P33
2025-12-21 21:40:54 +01:00
);
wire pll_locked;
wire mclk;
pll192 pll(.inclk0(xclk),
.c3(mclk),
2025-12-21 21:40:54 +01:00
.locked(pll_locked)
);
reg r;
assign spi_miso = r;
always @(posedge mclk)
if (spi_ssel)
r <= spi_mosi;
endmodule // thhor_crs