Skip to content

smt backend option --dump-vlogtb produces Verilator error #5122

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trayres
Copy link

@trayres trayres commented May 14, 2025

Duplicate definition of genclock causes Verilator simulation failure.

It looks like this option is only used with option --dump-vlogtb of yosys-smtbmc, and the test for it is in examples/smtbmc with Makefile target demo2; but this test only runs the resulting testbench with Icarus, which appears to be more accepting of such redefinitions(?).

I think this can be greatly simplified - Verilator DOES now cover # style delays. It looks like this DUT instantiation also does not use the full compliment of inputs and outputs, and I can't determine why in one case it is a "standalone" testbench module and in the Verilator case it has inputs/outputs (genclock and clock).

If someone could point me in the right direction I'd be glad to help out with further changes. Thank you!

…or; genclock is defined twice. This patch removes the redefinition of genclock.
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

Successfully merging this pull request may close these issues.

1 participant