Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Gcd RTL example generates inferred latches #138

Open
gl387 opened this issue May 27, 2015 · 1 comment
Open

Gcd RTL example generates inferred latches #138

gl387 opened this issue May 27, 2015 · 1 comment

Comments

@gl387
Copy link

gl387 commented May 27, 2015

In the state output logic of the RTL Gcd example, the if condition is missing "else" branch, which will generate inferred latches when pushing through synthesis flow.
Specifically, if current_state == 3, then we're not writing to the outputs, resulting in inferred latches:

https://github.com/cornell-brg/pymtl/blob/master/examples/gcd/GcdUnitRTL.py#L212-L242

@cbatten
Copy link
Contributor

cbatten commented May 27, 2015

Yep ... I noticed that too -- of course I wrote it, so I should probably fix it too :)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants