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

Store persistent state for devices in onidriver_test #20

Open
bparks13 opened this issue Feb 22, 2024 · 1 comment
Open

Store persistent state for devices in onidriver_test #20

bparks13 opened this issue Feb 22, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@bparks13
Copy link
Contributor

Making changes to the Enable register for test devices has no effect as they only update during a reset. Resetting in this context means restarting the whole program, which overwrites any changes made to the registers anyway.

It would be good to store a persistent state for test devices that can be loaded by oni-repl and applied, mimicking real world hardware via a virtual state. For Linux, this configuration could be placed in /tmp, but I don't know the best place to store it for Windows installations.

@bparks13 bparks13 added the enhancement New feature or request label Feb 22, 2024
@jonnew jonnew changed the title Store persistent state for Test0 devices Store persistent state for onidriver_test Feb 22, 2024
@jonnew
Copy link
Collaborator

jonnew commented Feb 22, 2024

For the record, Test0 devices that exist in actual hardware (like those used for debug during FPGA development) do store persistent state. What we want is for the onidriver_test's internal Test0 devices to have this behavior.

@jonnew jonnew changed the title Store persistent state for onidriver_test Store persistent state for devices in onidriver_test Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants