2 pck0
, ck_1356meg
, ck_1356megb
,
3 pwr_lo
, pwr_hi
, pwr_oe1
, pwr_oe2
, pwr_oe3
, pwr_oe4
,
5 ssp_frame
, ssp_din
, ssp_dout
, ssp_clk
,
8 xcorr_is_848
, snoop
, xcorr_quarter_freq
// not used.
10 input pck0
, ck_1356meg
, ck_1356megb
;
11 output pwr_lo
, pwr_hi
, pwr_oe1
, pwr_oe2
, pwr_oe3
, pwr_oe4
;
15 output ssp_frame
, ssp_din
, ssp_clk
;
16 input cross_hi
, cross_lo
;
18 input xcorr_is_848
, snoop
, xcorr_quarter_freq
; // not used.
20 // We are only snooping, all off.
23 assign pwr_oe1
= 1'b0;
24 assign pwr_oe2
= 1'b0;
25 assign pwr_oe3
= 1'b0;
26 assign pwr_oe4
= 1'b0;
29 reg [7:0] adc_d_out
= 8'd0;
30 reg [2:0] ssp_cnt
= 3'd0;
32 assign adc_clk
= ck_1356meg
;
33 assign ssp_clk
= ~ck_1356meg
;
35 always @(posedge ssp_clk
)
37 if(ssp_cnt
[2:0] == 3'd7)
40 ssp_cnt
<= ssp_cnt
+ 1;
42 if(ssp_cnt
[2:0] == 3'b000) // set frame length
44 adc_d_out
[7:0] <= adc_d
;
49 adc_d_out
[7:0] <= {1'b0, adc_d_out
[7:1]};
55 assign ssp_din
= adc_d_out
[0];