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

Added a new testbench for checking the SPI Engine Sleep and Chip Select Instruction delays #49

Merged
merged 9 commits into from
Oct 30, 2023
Merged

Added a new testbench for checking the SPI Engine Sleep and Chip Select Instruction delays #49

merged 9 commits into from
Oct 30, 2023

Conversation

LBFFilho
Copy link
Contributor

This PR creates a separate test, which was used on creating this other PR to the hdl repo. The aim of these PRs is to address some incosistencies with the sleep and delay behaviors on the Sleep and Chip Select instructions. To run the tests, simply cd to the testbenches/pulsar_adc_pmdz directory, and run:

make TST=sleep_delay_test

For more information about the specifig bug fixes, please look at the PR on the hdl repository:
SPI Engine: Fixed delay behaviour on Chip-Select and Sleep instructions

Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
…eep duration

Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
Both of these tests test related features, which are implemented in a
related way on the DUT. The tests were kept separate from the default ones
since they are specific to this functionality.

Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
Changed comments on test_sleep_delay.sv for accuracy.

Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
@gastmaier gastmaier self-requested a review October 18, 2023 14:27
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
- Removed unnecessary whitespace
- Created a .svh header file with SPI Engine registers, now used by both tests
- Used sleep macro to the sleep test task parametrization more legible
- Removed excessive nesting on pass/fail conditions
- Removed unneeded comments

Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
@gastmaier
Copy link
Contributor

gastmaier commented Oct 20, 2023

Squash and merge when analogdevicesinc/hdl#1200 gets approved too

…s for command FIFO

Signed-off-by: Laez Barbosa <laez.barbosa@analog.com>
Copy link
Contributor

@gastmaier gastmaier left a comment

Choose a reason for hiding this comment

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

Is not configuring the offload module anymore, update comment.

pulsar_adc_pmdz/tests/test_sleep_delay.sv Outdated Show resolved Hide resolved
Signed-off-by: Jorge Marques <jorge.marques@analog.com>
Signed-off-by: Jorge Marques <jorge.marques@analog.com>
@LBFFilho LBFFilho merged commit 2a63f9c into analogdevicesinc:main Oct 30, 2023
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