Skip to content

projects/xcvr_wizard/scripts: Fix HDL for XCVR automation in TB#1999

Open
hadarauelena wants to merge 7 commits intomainfrom
xcvr_tb
Open

projects/xcvr_wizard/scripts: Fix HDL for XCVR automation in TB#1999
hadarauelena wants to merge 7 commits intomainfrom
xcvr_tb

Conversation

@hadarauelena
Copy link
Copy Markdown
Collaborator

PR Description

Added the new script adi_xcvr_xilinx.tcl under the new scripts folder in the xcvr_wizard project. Updated the adi_xcvr_project function to allow sourcing the script directly from the testbench repository.
Updated adi_xcvr_project function to accept the board name as a new optional parameter. If the parameter is provided, the script will use that value; if not, it will be automatically extracted from the directory name.

PR Type

  • Bug fix (change that fixes an issue)
  • New feature (change that adds new functionality)
  • Breaking change (has dependencies in other repos or will cause CI to fail)
  • Documentation

PR Checklist

  • I have followed the code style guidelines
  • I have performed a self-review of changes
  • I have compiled all hdl projects and libraries affected by this PR
  • I have tested in hardware affected projects, at least on relevant boards
  • 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/Critical Warnings on compilation
  • I have added new hdl testbenches or updated existing ones

@IstvanZsSzekely
Copy link
Copy Markdown
Contributor

RetriggerCI

Copy link
Copy Markdown
Contributor

@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.

Would it make sense to source the adi_xcvr_xilinx.tcl script inside the adi_project_xilinx.tcl?
If it's imported by default in every Xilinx project, then the system_project.tcl files would remain untouched.

Copy link
Copy Markdown
Contributor

@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.

Please rebase the branch on current main. There are some testbenches that fail since they are out of sync.

@hadarauelena
Copy link
Copy Markdown
Collaborator Author

Please rebase the branch on current main. There are some testbenches that fail since they are out of sync.

Done

Signed-off-by: Elena-Hadarau_adi <Elena.Hadarau@analog.com>
Signed-off-by: Elena-Hadarau_adi <Elena.Hadarau@analog.com>
Signed-off-by: Elena-Hadarau_adi <Elena.Hadarau@analog.com>
The previous approach modified util_adxcvr_xc[m|h].v in-place and then reverted it with git checkout. Even though the content was restored, the file timestamp was updated, causing build systems to unnecessarily rebuild util_adxcvr.
Create a temporary .new copy of the file, stage it to record the original content, write the modified attributes to the copy, and generate the diff from the staged vs. working tree version. The original file is never touched, preserving its timestamp.

Signed-off-by: Elena-Hadarau_adi <Elena.Hadarau@analog.com>
Signed-off-by: Elena-Hadarau_adi <Elena.Hadarau@analog.com>
Signed-off-by: Elena-Hadarau_adi <Elena.Hadarau@analog.com>
Signed-off-by: Elena-Hadarau_adi <Elena.Hadarau@analog.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants