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

SimpleClockGenerator doesnt work with period of 1 #567

Open
awmoore-intel opened this issue Feb 25, 2025 · 1 comment
Open

SimpleClockGenerator doesnt work with period of 1 #567

awmoore-intel opened this issue Feb 25, 2025 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@awmoore-intel
Copy link

Describe the bug

Listening on a posedge of the clock when clock period is 1 loops forever but never advances time. I'm thinking 1 is not allowed? Perhaps throw an error.

Code and output in the picture.
Image

To Reproduce

No response

Expected behavior

No response

Actual behavior

No response

Additional: Dart SDK info

No response

Additional: pubspec.yaml

Additional: Context

No response

@awmoore-intel awmoore-intel added the bug Something isn't working label Feb 25, 2025
@mkorbel1 mkorbel1 transferred this issue from intel/rohd-vf Feb 25, 2025
@mkorbel1
Copy link
Contributor

Good catch, thanks!

We should probably document the behavior more clearly here and decide more explicitly what to do for 1, odd numbers in general, and definitely illegal numbers (0, negative), with exceptions thrown for any not supported.

@mkorbel1 mkorbel1 added the help wanted Extra attention is needed label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants