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

Verilog::Parser can't handle "`\" token in macro definition #915

Closed
veripoolbot opened this issue May 3, 2015 · 3 comments
Closed

Verilog::Parser can't handle "`\" token in macro definition #915

veripoolbot opened this issue May 3, 2015 · 3 comments
Assignees

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Anton Rapp
Original Redmine Issue: 915 from https://www.veripool.org
Original Date: 2015-05-03
Original Assignee: Wilson Snyder (@wsnyder)


On:

define ABC(a,b,c) \ $display(a,"bc\n`")

`ABC("a",b,c)

Parser fails with
%Error: T.v:9: " not terminated at EOF When "\n" character is replaced by "n" the error doesn't appear. "\n" doesn't work either.
According to http://www.eda.org/sv/SystemVerilog_3.1a.pdf document (page 343) `\ is acceptable.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2015-05-08T01:44:48Z


Fixed in git towards 3.413. This is a IEEE spec hole, as \n' is actually an legal identifier name in other contexts, but I'll do what other simulators do.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2015-06-06T18:04:39Z


In Verilator 3.874.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2015-06-26T10:30:40Z


In 3.414.

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

2 participants