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

Add previousValue to Logic #385

Merged
merged 5 commits into from
Jun 20, 2023
Merged

Add previousValue to Logic #385

merged 5 commits into from
Jun 20, 2023

Conversation

mkorbel1
Copy link
Contributor

Description & Motivation

In testbenches, it can be useful to see the "previous" value of a signal before a clock edge when sampling something, e.g. for modelling hardware. This PR includes a previousValue onto Logic that shows the value of a signal before the most recent Simulator.tick.

Related Issue(s)

N/A

Testing

Added new tests

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

No

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

API docs yes

@mkorbel1 mkorbel1 merged commit ad73088 into intel:main Jun 20, 2023
@mkorbel1 mkorbel1 deleted the previousvalue branch June 20, 2023 20:10
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.

1 participant