adjust adc sizes

This commit is contained in:
Peter McGoron 2023-06-08 21:37:24 -04:00
parent 2eba3e1f2a
commit 7458a98a20
2 changed files with 9 additions and 8 deletions

View File

@ -4,7 +4,7 @@ BR2_RISCV_32=y
# Build options # Build options
BR2_CCACHE=y BR2_CCACHE=y
BR2_TARGET_GENERIC_ROOT_PASSWD=upsilon BR2_TARGET_GENERIC_ROOT_PASSWD="upsilon"
# Instruction Set Extensions # Instruction Set Extensions
BR2_riscv_custom=y BR2_riscv_custom=y

View File

@ -273,11 +273,11 @@ m4_define(CL_DATA_WID, CL_CONSTS_WID)
m4_adc_wires(ADC_TYPE1_WID, 0, ADC_PORTS_CONTROL_LOOP), m4_adc_wires(ADC_TYPE1_WID, 0, ADC_PORTS_CONTROL_LOOP),
m4_adc_wires(ADC_TYPE1_WID, 1, ADC_PORTS), m4_adc_wires(ADC_TYPE1_WID, 1, ADC_PORTS),
m4_adc_wires(ADC_TYPE1_WID, 2, ADC_PORTS), m4_adc_wires(ADC_TYPE1_WID, 2, ADC_PORTS),
m4_adc_wires(ADC_TYPE1_WID, 3, ADC_PORTS), m4_adc_wires(ADC_TYPE2_WID, 3, ADC_PORTS),
m4_adc_wires(ADC_TYPE1_WID, 4, ADC_PORTS), m4_adc_wires(ADC_TYPE2_WID, 4, ADC_PORTS),
m4_adc_wires(ADC_TYPE1_WID, 5, ADC_PORTS), m4_adc_wires(ADC_TYPE2_WID, 5, ADC_PORTS),
m4_adc_wires(ADC_TYPE1_WID, 6, ADC_PORTS), m4_adc_wires(ADC_TYPE3_WID, 6, ADC_PORTS),
m4_adc_wires(ADC_TYPE1_WID, 7, ADC_PORTS), m4_adc_wires(ADC_TYPE3_WID, 7, ADC_PORTS),
output cl_in_loop, output cl_in_loop,
input [M4_CONTROL_LOOP_CMD_WIDTH-1:0] cl_cmd, input [M4_CONTROL_LOOP_CMD_WIDTH-1:0] cl_cmd,
@ -305,14 +305,15 @@ m4_dac_switch(DAC_PORTS, 7);
initial test_clock <= 0; initial test_clock <= 0;
`define MAKE_TEST_CLOCK
`ifdef MAKE_TEST_CLOCK `ifdef MAKE_TEST_CLOCK
reg [8-1:0] counter = 0; reg [3-1:0] counter = 0;
always @ (posedge clk) begin always @ (posedge clk) begin
if (!rst_L) begin if (!rst_L) begin
counter <= 0; counter <= 0;
test_clock <= 0; test_clock <= 0;
end else begin end else begin
if (counter >= 3) begin if (counter == 3) begin
counter <= 0; counter <= 0;
test_clock <= !test_clock; test_clock <= !test_clock;
end else begin end else begin