Skip to content

ad485x_fmcz_dual: Add tb - #305

Open
StancaPop wants to merge 6 commits into
mainfrom
add_ad485x_dual_tb
Open

StancaPop wants to merge 6 commits into
mainfrom
add_ad485x_dual_tb

Conversation

@StancaPop

Copy link
Copy Markdown
Collaborator

PR Description

To be used with analogdevicesinc/hdl#2142.

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)
  • Update (change that modifies existing functionality)
  • 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 self-assigned this Oct 23, 2026
@StancaPop
StancaPop requested a review from a team as a code owner October 23, 2026 11:51
@StancaPop StancaPop added the new New testbench label Oct 23, 2026
@StancaPop
StancaPop marked this pull request as draft October 23, 2026 11:52
Signed-off-by: Stanca Pop <stanca.pop@analog.com>
Signed-off-by: Stanca Pop <stanca.pop@analog.com>
@StancaPop
StancaPop marked this pull request as ready for review November 2, 2026 13:30
@StancaPop
StancaPop requested a review from a team as a code owner November 2, 2026 13:30
Signed-off-by: Stanca Pop <stanca.pop@analog.com>

@IstvanZsSzekely IstvanZsSzekely left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

There are some unresolved comments from the previous review.

Signed-off-by: Stanca Pop <stanca.pop@analog.com>
Fix the compile errors in adi_datatypes_pkg: the size() and insert()
  functions had wrong end labels.

Make pop() usable with any data type. It returned null, which is only
  valid for class types. It now returns a bit that tells whether data
  was available and gives the value through an output argument.

Add get() for non-destructive access by index.

Add adi_datatypes.sv to the common includes so it gets compiled.

Signed-off-by: Stanca Pop <stanca.pop@analog.com>
Store the test cases in an adi_fifo instead of a plain queue, as
  requested in the PR review. Use push() to add the cases and get() to
  select one by index.

Signed-off-by: Stanca Pop <stanca.pop@analog.com>

This branch has not been deployed

No deployments
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.

2 participants