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

%m format argument to $display causes error: ‘SCOPE_OTHER’ is not a member of ‘VerilatedScope’ on compilation #1632

Closed
veripoolbot opened this issue Dec 10, 2019 · 3 comments

Comments

@veripoolbot
Copy link

@veripoolbot veripoolbot commented Dec 10, 2019


Author Name: Julien Margetts
Original Redmine Issue: 1632 from https://www.veripool.org


This issue arrived with 4.020 and I think may have been introduced by the patch for Issue 1469

Test code:

module BUG
(
     input clk,
     input resetn
);

initial $display("%m");

endmodule

Output:

VBUG__Syms.cpp: In constructor ‘VBUG__Syms::VBUG__Syms(VBUG*, const char*)’:
VBUG__Syms.cpp:22:56: error: ‘SCOPE_OTHER’ is not a member of ‘VerilatedScope’
      __Vscope_BUG.configure(this, name(), "BUG", "BUG", VerilatedScope::SCOPE_OTHER);

@veripoolbot

This comment has been minimized.

Copy link
Author

@veripoolbot veripoolbot commented Dec 10, 2019


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-12-10T12:03:54Z


Works for me, what is your command line?

@veripoolbot

This comment has been minimized.

Copy link
Author

@veripoolbot veripoolbot commented Dec 10, 2019


Original Redmine Comment
Author Name: Julien Margetts
Original Date: 2019-12-10T12:29:28Z


My bad.
Hadn't done a make install so compile was picking up 4.018 headers.
Appologies for the noise

@veripoolbot

This comment has been minimized.

Copy link
Author

@veripoolbot veripoolbot commented Dec 10, 2019


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2019-12-10T22:33:52Z


Glad it got resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.