Skip to content

Instantly share code, notes, and snippets.

module ADC(
input clk_50, //50 MHz clock PIN_R8
input dout, //digital output from ADC128S022 (serial 12-bit) PIN_A9
input reset,
output adc_cs_n, //ADC128S022 Chip Select PIN_A10
output din, //Ch. address input to ADC128S022 (serial) PIN_B10
output adc_sck, //2.5 MHz ADC clock PIN_B14
output [11:0]d_out_ch5, //12-bit output of ch. 5 (parallel)
output [11:0]d_out_ch6, //12-bit output of ch. 6 (parallel)
output [11:0]d_out_ch7 //12-bit output of ch. 7 (parallel)