-
Notifications
You must be signed in to change notification settings - Fork 22
testbenches/ip/spi_engine: Upgrade spi_engine testbench for SDO extension #240
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
base: main
Are you sure you want to change the base?
Conversation
IstvanZsSzekely
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial review.
The projects that have updated documentation: AD463x, AD738x, AD7606 have broken testbenches. It seems that the HDL block design is out of date.
| set ad_project_params(NUM_OF_SDI) 4 | ||
| set ad_project_params(NUM_OF_SDO) 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps some of the cfgs could have different NUM_OF_SDI/NUM_OF_SDO (all are currently 4)
| parameter NUM_OF_SDI = 1, | ||
| parameter NUM_OF_SDO = 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider renaming these to NUM_OF_MISO/MOSI (or something in this vein), since the VIP could have MOSI as input or output depending on the mode in the future.
IstvanZsSzekely
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Triggered another CI run to check the current status of the PR with the changes from HDL and TB PRs. The AD463x, AD7606x, AD7616 (parallel mode) projects have build issues in the testbenches, while AD57xx has issues when compiling the simulation files.
Several changes to support n lanes on the vip From Vivado 2024.2 and on, it is required a type for mailbox. This commit defines an int for the type of mailbox. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
* Update to support n lanes for the SDI and SDO; * Insert SDI lane mask instruction; * Insert SDO lane mask instruction; Signed-off-by: Carlos Souza <carlos.souza@analog.com>
* Update major version; * Update NUM_OF_SDI parameter to NUM_OF_SDIO. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
Several changes to support more than one lane for SDI and SDO: * Update config files. All config files have 4 lanes now; * Insert a new test for lane mask. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
Updated from NUM_OF_SDI to NUM_OF_SDIO parameter in the documentation of the following projects: * ad463x; * ad738x; * ad7606; * pulsar_adc. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
Testbench was updated to use the new features related to the spi lane mask. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
offload can accept different lane masks for testing. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
This commit fixes the read and write test for the offload mode of the test_lanes. The DDR read was removed by accident in latest commit. It also fixes the mask and the num of active lanes. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
Both tests were not generic regarding the sdi_lane_mask. They were relying on the default value, which is not guaranteed that it is going to enable all lanes. Added instructions to change the sdi_lane_mask before executing the tests for the FIFO and Offload modes. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
Update the version of the spi engine to 2.0 since it is not backwards compatible. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
All configurations files were updated to include the SPI VIP. New variables were included to reflect the delays according to the mode of operation. The TB was also updated to use the SPI VIP API. TODO: FIFO operations are being inserted into the DMA even though it is not enabled. Need to find the cause for this bug. Signed-off-by: Carlos Souza <carlos.souza@analog.com>
Signed-off-by: Carlos Souza <carlos.souza@analog.com>
Signed-off-by: Carlos Souza <carlos.souza@analog.com>
|
Please rebase the branch on the current main to solve the conflicts. |
It changes spi_vip and spi_engine driver so it can support the new testbench for the SPI Engine. Several tasks and functions were changed due to this modification.
This modification requires this spi engine version: analogdevicesinc/hdl#1808
PR Type
PR Checklist