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

Extra "v." in full signal pathnames #1050

Closed
veripoolbot opened this issue Mar 21, 2016 · 5 comments
Closed

Extra "v." in full signal pathnames #1050

veripoolbot opened this issue Mar 21, 2016 · 5 comments
Assignees
Labels
resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800

Comments

@veripoolbot
Copy link
Contributor


Author Name: Arthur Kahlich
Original Redmine Issue: 1050 from https://www.veripool.org
Original Date: 2016-03-21
Original Assignee: Wilson Snyder (@wsnyder)


In a design where "--top-module toplevel" and "--prefix toplevel" are both specified on the verilator command line after "--cc", if the toplevel module instantiates a module named "leveltwo" with signal "a", Verilator currently has the full signal path to "a" as

"toplevel.v.leveltwo.a"

instead of

"toplevel.leveltwo.a"

This is non-obvious from the documentation, especially since no other simulator I know of (Icarus Verilog, Synopsys VCS, Cadence NC_verilog, Mentor Questa) inserts a non-existent module instance name into the hierarchy of the full pathname.

If this is intentional, perhaps an explanation in the documentation would help others avoid my surprise.

If this is un-intentional, could this be fixed to behave as other Verilog simulators?

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2016-03-24T22:47:02Z


Verilator creates an internal shell which is the "v" level. Let me look if it can be hidden, and if not, yes it should be documented.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2016-05-07T18:14:44Z


Fixed in git towards 3.883.

BTW if you instantiate the model with name "BAR" you'll still see the name "BAR.toplevel.leveltwo.a". BAR represents the name of the thing above, e.g. your testbench so is outside the scope of Verilator itself. e.g. see all the regressions which "top.t" is now correct for both Verilator and others - top is either the test C++ wrapper for Verilator, or for other simulators a verilog test wrapper. If this still causes a mess for you, please describe how you use it.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2016-05-07T18:15:50Z


Note --prefix has nothing to do with scope naming, it's just how the C files are named.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Arthur Kahlich
Original Date: 2016-05-18T01:41:24Z


First, thanks for this. It gets rid of a hack and a headache in my debugger interface, which calls DPI-C functions that use VPI to access signals in the model.

Your description indicates to me that it will work as I expect. Of course, I still need to try it out, which I will do shortly.

@veripoolbot
Copy link
Contributor Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2016-05-19T01:17:54Z


In 3.884.

@veripoolbot veripoolbot added resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800 labels Dec 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: fixed Closed; fixed type: feature-IEEE Request to add new feature, described in IEEE 1800
Projects
None yet
Development

No branches or pull requests

2 participants