3 pck0, ck_1356meg, ck_1356megb,
4 pwr_lo, pwr_hi, pwr_oe1, pwr_oe2, pwr_oe3, pwr_oe4,
6 ssp_frame, ssp_din, ssp_dout, ssp_clk,
9 xcorr_is_848, snoop, xcorr_quarter_freq // not used.
11 input pck0, ck_1356meg, ck_1356megb;
12 output pwr_lo, pwr_hi, pwr_oe1, pwr_oe2, pwr_oe3, pwr_oe4;
16 output ssp_frame, ssp_din, ssp_clk;
17 input cross_hi, cross_lo;
19 input xcorr_is_848, snoop, xcorr_quarter_freq; // not used.
21 // We are only snooping, all off.
22 assign pwr_hi = 1'b0;// ck_1356megb & (~snoop);
23 assign pwr_oe1 = 1'b0;
24 assign pwr_oe2 = 1'b0;
25 assign pwr_oe3 = 1'b0;
26 assign pwr_oe4 = 1'b0;
31 reg [7:0] adc_d_out = 8'd0;
32 reg [7:0] ssp_cnt = 8'd0;
33 reg [7:0] pck_divider = 8'd0;
35 reg bit_to_send = 1'b0;
37 always @(ck_1356meg, pck0) // should synthetisize to a mux..
40 ssp_clk = ~ck_1356meg;
43 reg [7:0] cnt_test = 8'd0; // test
45 always @(posedge pck0)
50 always @(posedge ssp_clk) // ~1356 (hf)
52 if(ssp_cnt[7:0] == 8'd255) // SSP counter for divides.
55 ssp_cnt <= ssp_cnt + 1;
57 if((ssp_cnt[2:0] == 3'b000) && !ant_lo) // To set frame length
59 adc_d_out[7:0] = adc_d; // disable for test
60 bit_to_send = adc_d_out[0];
65 adc_d_out[6:0] = adc_d_out[7:1];
66 adc_d_out[7] = 1'b0; // according to old lf_read.v comment prevents gliches if not set.
67 bit_to_send = adc_d_out[0];
72 assign ssp_din = bit_to_send && !ant_lo;//bit_to_send && !ant_lo; // && .. not needed i guess?
74 assign pwr_lo = ant_lo;