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

SymbiYosys doesn't handle latches properly #111

Open
ZipCPU opened this issue Aug 25, 2020 · 1 comment
Open

SymbiYosys doesn't handle latches properly #111

ZipCPU opened this issue Aug 25, 2020 · 1 comment

Comments

@ZipCPU
Copy link
Contributor

ZipCPU commented Aug 25, 2020

Steps to reproduce the issue

Given the attached file, first change its name to latchchk.sby and then run sby -f latchchk.sby. It contains a series of 9 tests describing latch behavior, ranging from a basic latch and enable, to one with a set, reset, and enable. While the latch with enable passes, all of the more complex tests (tests 2-9) fail.

Expected behavior

I expect this design to pass a formal verification check.

Actual behavior

Tests 2-9 fail. Failures are marked within by the assertion failing. In general, the latch fails to take on the value of the input when enabled. In two cases, the test also fails on a negative set condition failing to set the latch.

This failure was seen when using the SymbioticEDA Suite, dated 20200803A.

Dan
latchchk.txt

@clairexen
Copy link
Member

It passes with YOSYS_NOVERIFIC=1. So for some reason we get a different semantic when we import through Verific.

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

2 participants