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

@veripoolbot veripoolbot commented May 3, 2015


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

This comment has been minimized.

Copy link
Collaborator Author

@veripoolbot veripoolbot commented May 8, 2015


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

This comment has been minimized.

Copy link
Collaborator Author

@veripoolbot veripoolbot commented Jun 6, 2015


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


In Verilator 3.874.

@veripoolbot

This comment has been minimized.

Copy link
Collaborator Author

@veripoolbot veripoolbot commented Jun 26, 2015


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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.