Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jupiter sdr: Updates #1176

Merged
merged 4 commits into from
Sep 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
axi_adrv9001: Change the DDS sync structure
The DDS for each channel was synchronized by the main channel.
One problem with this aporoach is that when a user sets a DDS that
is not from the main channel the sinchronization does not happend.
This behavior is not user friendly in IIO-Oscilloscope or within other
configuration methods.

This commit keeps all channels in sync by triggering the sync on all
channels from each individual channel.
  • Loading branch information
AndreiGrozav committed Sep 18, 2023
commit 984346d8761e712490bb86009a2313eefd90915c
7 changes: 4 additions & 3 deletions library/axi_adrv9001/axi_adrv9001_core.v
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ module axi_adrv9001_core #(
wire adc_sync_m;
wire dac_sync_m;
wire dac_sync_out_1;
wire dac_sync_out_2;

reg tx1_data_valid_A_d;
reg [15:0] tx1_data_i_A_d;
Expand Down Expand Up @@ -533,7 +534,7 @@ module axi_adrv9001_core #(
.up_dac_r1_mode (up_tx1_r1_mode),
.tdd_tx_valid (tdd_tx1_valid),
.dac_clk_ratio (dac_clk_ratio),
.dac_sync_in (external_dac_sync | dac_sync_out_1),
.dac_sync_in (external_dac_sync | dac_sync_out_1 | dac_sync_out_2),
.dac_sync_out (dac_sync_out_1),
.dac_ext_sync_arm (dac_ext_sync_arm),
.dac_enable_i0 (dac_1_enable_i0),
Expand Down Expand Up @@ -588,8 +589,8 @@ module axi_adrv9001_core #(
.dac_sdr_ddr_n (tx2_sdr_ddr_n_loc),
.dac_symb_op (tx2_symb_op_loc),
.dac_symb_8_16b (tx2_symb_8_16b_loc),
.dac_sync_in (external_dac_sync | dac_sync_out_1),
.dac_sync_out (),
.dac_sync_in (external_dac_sync | dac_sync_out_1 | dac_sync_out_2),
.dac_sync_out (dac_sync_out_2),
.dac_valid (dac_2_valid),
.dac_enable_i0 (dac_2_enable_i0),
.dac_data_i0 (dac_2_data_i0[15:0]),
Expand Down