Skip to content

Conversation

@StancaPop
Copy link
Contributor

@StancaPop StancaPop commented Aug 5, 2025

PR Description

Add testbench support for cn0577 & adaq2387x.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • New test (change that adds new test program and/or testbench)
  • Breaking change (has dependencies in other repositories/testbenches)
  • Documentation (change that adds or modifies documentation)

PR Checklist

  • I have followed the code style guidelines
  • I have performed a self-review of changes
  • I have ran all testbenches affected by this PR
  • I have commented my code, at least hard-to-understand parts
  • I have signed off all commits from this PR
  • I have updated the documentation (wiki pages, ReadMe files, Copyright etc)
  • I have not introduced new Warnings/Errors on compilation/elaboration/simulation
  • I have set the verbosity level to none for the test program

@StancaPop StancaPop requested a review from a team as a code owner August 5, 2025 16:06
@StancaPop StancaPop added the new New testbench label Aug 5, 2025
@StancaPop StancaPop marked this pull request as draft August 5, 2025 16:08
@StancaPop
Copy link
Contributor Author

To be tested with analogdevicesinc/hdl#1870

@StancaPop StancaPop marked this pull request as ready for review August 6, 2025 12:57
@StancaPop StancaPop force-pushed the add_cn0577_tb_s branch 2 times, most recently from 8138e90 to 8979778 Compare August 12, 2025 12:34
github-actions bot added a commit that referenced this pull request Sep 9, 2025
github-actions bot added a commit that referenced this pull request Sep 9, 2025
github-actions bot added a commit that referenced this pull request Sep 9, 2025
github-actions bot added a commit that referenced this pull request Sep 9, 2025
github-actions bot added a commit that referenced this pull request Sep 9, 2025
github-actions bot added a commit that referenced this pull request Sep 9, 2025
github-actions bot added a commit that referenced this pull request Sep 9, 2025
github-actions bot added a commit that referenced this pull request Sep 9, 2025
@StancaPop
Copy link
Contributor Author

To be used with the HDL main branch.

github-actions bot added a commit that referenced this pull request Sep 17, 2025
@StancaPop
Copy link
Contributor Author

Converting the testbench to draft since the cn0577 HDL reference design will be updated here: analogdevicesinc/hdl#1919

This will cause the testbench to fail because of the following modification:

  • ADC_RES parameter has been removed; the cn0577 design will support only the LTC2387-18 variant

Solution:

  • This testbench can be renamed and repurposed for the adaq2387x family, that was separated from the cn0577 (both being built around axi_ltc2387) and supports both resolutions. The HDL project is still under development.

@StancaPop
Copy link
Contributor Author

CRITICAL WARNING: [BD 41-759] The input pins (listed below) are either not connected or do not have a source port, and they don't have a tie-off specified. These pins are tied-off to all 0's to avoid error in Implementation flow. Please check your design and connect them as needed: /axi_ltc2387/delay_clk Related: WARNING: [BD 41-597] NET <sys_200m_clk> has no source

Resolved in 176ab82
Disconnected the delay_clk from sys_200m_clk and connected it to sys_dma_clk.

github-actions bot added a commit that referenced this pull request Oct 29, 2025
github-actions bot added a commit that referenced this pull request Nov 3, 2025
github-actions bot added a commit that referenced this pull request Nov 6, 2025
github-actions bot added a commit that referenced this pull request Nov 6, 2025
github-actions bot added a commit that referenced this pull request Nov 6, 2025
github-actions bot added a commit that referenced this pull request Nov 6, 2025
github-actions bot added a commit that referenced this pull request Nov 19, 2025
github-actions bot added a commit that referenced this pull request Nov 20, 2025
github-actions bot added a commit that referenced this pull request Nov 24, 2025
github-actions bot added a commit that referenced this pull request Nov 25, 2025
github-actions bot added a commit that referenced this pull request Nov 25, 2025
Comment on lines 53 to 55
delete_bd_objs [get_bd_nets sys_200m_clk]

ad_disconnect sys_200m_clk axi_ltc2387/delay_clk
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build fails in this current state, the sys_200m_clk net cannot be disconnected since it has been deleted prior.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please specify the variable names on function calls, similar to method instantiations when connecting the signals.
.<variable>(<value/variable>)

Copy link
Collaborator

@IstvanZsSzekely IstvanZsSzekely left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation related change request.

transfer_cnt = 0;
forever begin
@(posedge cnv);
if (transfer_status) begin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation.

Comment on lines +186 to +187
dco_p <= #(DCO_DELAY * 1ns) dco_init;
dco_n <= #(DCO_DELAY * 1ns) ~dco_init;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix indentation

Comment on lines +190 to +191
dco_p <= #(DCO_DELAY * 1ns) dco_init;
dco_n <= #(DCO_DELAY * 1ns) ~dco_init;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

Comment on lines 293 to 296
//ltc2387_common_api.sanity_test();
dmac_api_inst.sanity_test();
pwm_gen_api_inst.sanity_test();
`INFO(("Sanity Tests Done"), ADI_VERBOSITY_LOW);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

bit [31:0] config_wr_SIMPLE = 'h0; // write request sent result
bit [31:0] config_SIMPLE = 'h0; // channel static data setup

task data_acquisition_test();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

github-actions bot added a commit that referenced this pull request Nov 25, 2025
github-actions bot added a commit that referenced this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new New testbench

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants