Skip to content

DAC_DDS_SEL is incorrect? #2115

Description

@dshekter-lmco

Documentation says there's a loopback mode at 'h8, but in looking at the HDL (and trying it out in practice), this doesn't seem to exist? Nor did it ever according to the git blame?

always @(posedge dac_clk) begin
dac_enable <= (dac_data_sel_s == 4'h2) ? 1'b1 : 1'b0;
case (dac_data_sel_s)
4'hB: dac_data_iq_out <= full_ramp_counter; // full ramp
4'hA: dac_data_iq_out <= {4{full_ramp_counter[3:0]}}; // nibble ramp
4'h7: dac_data_iq_out <= pn15_data;
4'h6: dac_data_iq_out <= pn7_data;
4'h3: dac_data_iq_out <= 16'd0;
4'h2: dac_data_iq_out <= dac_data_in;
4'h1: dac_data_iq_out <= dac_data_sync ? dac_data_iq_out : dac_pat_data_1_s;
default: dac_data_iq_out <= dac_dds_data_s;
endcase
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions