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

[sival,bazel] Add SiVal ROM EXT exec env without hyper310 for use in PMOD tests #25404

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

AlexJones0
Copy link
Contributor

@AlexJones0 AlexJones0 commented Nov 26, 2024

Adds a SiVal ROM EXT environment local to the PMOD tests that overrides the hyper310 bitstream and interface to use the cw310 versions, so that the relevant pins required for PMOD are accessible during the test, and the test can be run in a ROM EXT environment with the local SiVal changes (e.g. OTP changes). This should work with the existing nightly runner as it uses the same fpga_cw310_sival_rom_ext tag, despite being a private exec env.

The current SiVAL ROM EXT execution environment uses the hyperdebug
(hyper310) interface and bitstream, which does not allow all the pins
that are needed for the PMOD tests (e.g. the SPI Macronix flash test) to
be used.

This commit adds a new execution environment that is private to the PMOD
Bazel BUILD file that extends the existing `fpga_cw310_sival_rom_ext`
environment to use the universal cw310 bitstream and interface, such
that this test can be run with the SiVal changes (e.g. OTP) and in ROM
EXT.

Signed-off-by: Alex Jones <[email protected]>
Copy link
Contributor

@jwnrt jwnrt left a comment

Choose a reason for hiding this comment

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

LGTM, do we need to test this in CI or is it purely for sival nightlies?

@AlexJones0
Copy link
Contributor Author

do we need to test this in CI or is it purely for sival nightlies?

I'm not sure, as this change was just to address the failing SiVal nightlies - perhaps @engdoreis would know?

@engdoreis
Copy link
Contributor

do we need to test this in CI or is it purely for sival nightlies?

Only for nightlies.

@jwnrt jwnrt merged commit 5ca4ef3 into lowRISC:master Nov 27, 2024
37 checks passed
@engdoreis engdoreis added the CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0 label Nov 27, 2024
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CherryPick:earlgrey_1.0.0 This PR should be cherry-picked to earlgrey_1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants