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

Run Bathtub as a default sequence #128

Merged
merged 4 commits into from
Sep 23, 2024
Merged

Conversation

williaml33moore
Copy link
Owner

Closes #119

- modified:   src/bathtub_pkg/bathtub.svh
  - New `as_sequence()` allows user to launch Bathtub as a sequence.

- new file:   src/bathtub_pkg/bathtub_sequence.svh
  - New `bathtub_sequence` class, when started, configures and runs given Bathtub object.

- modified:   src/bathtub_pkg/step_definition_interface.svh
- modified:   src/bathtub_pkg/step_static_attributes_interface.svh
  - Broke include recursion.

- modified:   test/conftest.py
  - New `uvm_version` `opts` attribute calculates special opts required for particular versions.
  - This makes it simpler for tests to iterate over versions; just use the `opts` attribute associated with every version.

- modified:   test/dependency_test.py
  - Added `bathtub_sequence`.

- modified:   test/e2e/basic/basic_test.py
  - To `test_basic_e2e` added new UVM tests for `bathtub_sequence`.
  - Cross the tests with every `uvm_version`.
  - That's many more crosses, so the test runs quite a bit longer now.

- modified:   test/e2e/basic/basic_tests.svh
  - New tests for `bathtub_sequence`.

- new file:   test/e2e/basic/tests/basic_sequence_start_test.svh
  - New test configures and runs Bathtub as a sequence with `start`.

- new file:   test/e2e/basic/tests/basic_sequence_test.svh
  - New test configures and runs Bathtub implicitly as a default sequence.
…iple test runs.

- modified:   test/conftest.py
  - `uvm_versions_from_config()` was not a fixture so it was delivering a static list of simulator objects.
  - Tests that used `uvm_version()` were getting the same simulator object each time they ran, requiring the object to be reset so that the arguments didn't accumulate.
  - Fixed this so that the fixture `uvm_version()` does the simulator object creation, so it's new for each test run.

- modified:   test/e2e/basic/basic_test.py
  - Simulator reset is not longer needed
- modified:   src/bathtub_pkg/bathtub.svh
  - New docstring for `as_sequence()`.

- modified:   test/e2e/basic/tests/basic_sequence_test.svh
  - Changed run phase to main phase to match `basic_sequence_start_test()`.
- modified:   src/bathtub_pkg/bathtub.svh
  - Indented docstrings.
  - Cleaned up indentation overall.
@williaml33moore williaml33moore linked an issue Sep 23, 2024 that may be closed by this pull request
@williaml33moore williaml33moore merged commit 2d6393b into main Sep 23, 2024
@williaml33moore williaml33moore deleted the 119-bathtub-default-sequence branch September 23, 2024 19:08
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.

Run Bathtub as a default sequence
1 participant