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

Generated test banches cannot be used with Xcelium or Iverilog #300

Open
zputrle opened this issue Oct 11, 2024 · 0 comments
Open

Generated test banches cannot be used with Xcelium or Iverilog #300

zputrle opened this issue Oct 11, 2024 · 0 comments

Comments

@zputrle
Copy link

zputrle commented Oct 11, 2024

The test benches generated by Sby when an assertion fails cannot be used with the Xcelium or Iverilog simulators.

The problem that I encountered is that, when you try to use the generated test benches with Xcelium and Iverilog, they report that hierarchical name component lookup fails:

xmelab: *E,CUVHNF (../rtl/trace7_tb.v,460|59): Hierarchical name component lookup failed at 'UUT.i_byd_axi_mlic.i_dec.\dec_for_loop[0] '.
    UUT.i_axi_mlic.i_dec.\dec_for_loop[0] .i_dec_rd.len_cnt = 8'b00000000; 

After discussing this with @nakengelhardt on Yosy's Slack channel, he pointed out that "Yosys doesn't retain enough information about the original structure of the RTL to be able to correctly address the signals that need to be set to the right initial state for the simulation to reproduce the same result."

I'm posting this as an issue so that others looking into using the generated test benches will know that currently they cannot be used.

(Being able to use the test benches would be great because it would allow you test that an issue that you encountered was fixed for that specific test benches before continuing with the verification.)

@zputrle zputrle changed the title Generated test banches cannot be used by Xcelium or Iverilog Generated test banches cannot be used with Xcelium or Iverilog Oct 13, 2024
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

1 participant