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 value change triggers as methods to handles #3855

Open
ktbarrett opened this issue Apr 21, 2024 · 0 comments
Open

Add value change triggers as methods to handles #3855

ktbarrett opened this issue Apr 21, 2024 · 0 comments
Assignees

Comments

@ktbarrett
Copy link
Member

I'm not entirely sure why triggers like RisingEdge, FallingEdge, and Edge were made as standalone functions, but since they are parameterizable and only support certain objects, it makes more sense if they are associated only with the objects that support them by making them a method.

await dut.handle.rising_edge()

This will also allow the ability to not have to check the argument type and allow bad behavior.

In lock-step we should deprecate the free-function calls.

@ktbarrett ktbarrett self-assigned this Apr 21, 2024
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

No branches or pull requests

1 participant