-
Notifications
You must be signed in to change notification settings - Fork 66
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
Wrong initial flip-flop state #175
Comments
Yes, the phenomenon is confirmed. |
Thanks for the info. Can this problem be related to the If I replace |
The "NODFFE" error is called so conventionally because specifying the --nodffe key when calling yosys (synth_gowin --nodffe) fixes the problem. But it does not define the nature of the error itself. Your case is good in the sense that it is very small in size and I think I'll spend today on experiments with INIT. |
Here it turned out to be a reaction to a global reset. PR: #176 dff.mp4 |
Thanks a lot, I've tried the new version of |
I've just started playing with Yosys/nextpnr on a Tang Nano 9K and encountered an issue which I couldn't explain. And I'm unsure if I did something wrong or this is a bug or current limitation of the open source toolchain. The same design works as expected when synthesized with the vendor tools.
The minimized example which triggers the issue is simply turning on an LED when the corresponding button is pressed. Both the LEDs and buttons are active low on the Tang Nano 9K. The only difference between
led1
andled2
is that the internal state is inverted.With the vendor tools
led1
andled2
are off after the bitstream is loaded and can be turned on with their corresponding button. But with the open source toolchainled1
is already turned on after the bitstream is loaded, without any button presses.led2
works as expected.I did also run a post synthesis simulation and both buttons worked as expected in the simulation.
Source files
top.v
top.cst
Commands used to synthesize the design
Toolchain
oss-cad-suite-linux-x64-20230422
The text was updated successfully, but these errors were encountered: