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

Spec Clarification: info strings #8

Open
wallento opened this issue Dec 30, 2019 · 4 comments
Open

Spec Clarification: info strings #8

wallento opened this issue Dec 30, 2019 · 4 comments

Comments

@wallento
Copy link

Hi,

just a quick question for clarification. As per the spec the info nodes contain string types. Despite not being explicitly specified strings are used in the spec with quotation marks, also when showing the info notation in listing 82.
I just ran the chisel tutorial from current releases and saw that info nodes are not in quotation marks. I am looking into adding a loFIRRTL frontend into Verilator and it would be nice to spare me some iterations ;)
Cheers,
Stefan

@wallento
Copy link
Author

I think it's preferable to have quotation marks, and to fix chisel to emit them

@jackkoenig
Copy link
Collaborator

jackkoenig commented Dec 30, 2019

Yeah I think you're right. That is what the spec says; I think I just goofed when implementing this in the parser.

@wallento
Copy link
Author

Ah, right, I think I also tracked it down here: https://github.com/freechipsproject/chisel3/blame/e564fff139768e6a232d118ec7155ecf080f1bc4/chiselFrontend/src/main/scala/chisel3/internal/SourceInfo.scala#L46 which should probably be with the quotation marks, right?

@jackkoenig
Copy link
Collaborator

Yeah that's the main offender. The other issue is to make sure we continue to parse the old style for backwards compatibility, but I really don't think it's too difficult.

Did you mean to close the issue?

@jackkoenig jackkoenig reopened this Dec 30, 2019
@dalance dalance mentioned this issue Mar 4, 2022
3 tasks
@seldridge seldridge transferred this issue from chipsalliance/firrtl Mar 4, 2022
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