smt backend option --dump-vlogtb produces Verilator error #5122
+0
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Duplicate definition of genclock causes Verilator simulation failure.
It looks like this option is only used with option
--dump-vlogtb
ofyosys-smtbmc
, and the test for it is in examples/smtbmc with Makefile targetdemo2
; 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 theVerilator
case it has inputs/outputs (genclock
andclock
).If someone could point me in the right direction I'd be glad to help out with further changes. Thank you!