-
Notifications
You must be signed in to change notification settings - Fork 131
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
🐞 Bug Input pre
is not used in the Verilog code for DflipFlop
.
#321
Comments
pre
is not used in the Verilog code for DflipFlop
.
@philipabbey |
In short: In order for the Verilog code to match your Longer Answer: The code as written has a redundant input This does beg the question, "what was intended by the input You need to read the related issue at CircuitVerse/CircuitVerse#4985 where I solved the simulation mismatch. I solved it with the suggested code change and proved it by simulation and synthesis in Vivado. Therefore my answer is proven to be correct. Please study it and the
As for your suggestion, I think you are confused about the intended function of |
@philipabbey ohkay understood! Thanks |
Is there an existing issue for this?
Describe the bug
Input
pre
is not used in the Verilog code forDflipFlop
.This can cause the entire design to be optimised away during synthesis in Xilinx's Vivado, and it took some finding (since I only know VHDL ;-)
Steps to Reproduce
Not used the cv-frontend-vue code base at all, just noted the same mistake has been copied across from the original simulator.
Expected Behavior
The
pre
input should be used to set the value on reset witha_rst
.The following is a guess at the correction since I don't actually code in Verilog.
Screenshots
No response
Is the faced issue/bug related to the Vue simulator?
Yes
Used Vue simulator with or without backend?
None
Is the bug present only on the dev server, the build, or both?
Both
Device Information
In truth, no idea. I only note you have copied the mistake across from the original simulator and its there in your source code at https://github.com/CircuitVerse/cv-frontend-vue/blob/main/src/simulator/src/sequential/DflipFlop.js#L151-L152, so its there in at least one of the servers.
Additional Context
CircuitVerse/CircuitVerse#4985
Are you working on this issue?
No
The text was updated successfully, but these errors were encountered: