3 pwr_lo, pwr_hi, pwr_oe1, pwr_oe2, pwr_oe3, pwr_oe4,
5 ssp_frame, ssp_din, ssp_clk
8 output pwr_lo, pwr_hi, pwr_oe1, pwr_oe2, pwr_oe3, pwr_oe4;
11 output ssp_frame, ssp_din, ssp_clk;
13 // We are only snooping, all off.
16 assign pwr_oe1 = 1'b0;
17 assign pwr_oe2 = 1'b0;
18 assign pwr_oe3 = 1'b0;
19 assign pwr_oe4 = 1'b0;
22 reg [7:0] adc_d_out = 8'd0;
23 reg [2:0] ssp_cnt = 3'd0;
25 assign adc_clk = ck_1356meg;
26 assign ssp_clk = ~ck_1356meg;
28 always @(posedge ssp_clk)
30 if(ssp_cnt[2:0] == 3'd7)
33 ssp_cnt <= ssp_cnt + 1;
35 if(ssp_cnt[2:0] == 3'b000) // set frame length
37 adc_d_out[7:0] <= adc_d;
42 adc_d_out[7:0] <= {1'b0, adc_d_out[7:1]};
48 assign ssp_din = adc_d_out[0];