Giter VIP home page Giter VIP logo

Comments (3)

martinwhitaker avatar martinwhitaker commented on August 16, 2024

The IEEE standard states "White space shall be allowed between the text macro name and the left parenthesis in the macro usage.". Unfortunately the standard is generally silent about where comments are allowed, but unless explicitly stated otherwise (e.g. for the `line directive), I would assume that comments are allowed wherever white space is allowed. Note that unlike C/C++, the compiler directives are part of the language, so I think comments should be removed before the macro is substituted. And a new line is white space, so that is allowed.

I'm fairly sure NC-Verilog used to accept this. Testing on EDA playground, GPL CVer does accept it. And Aldec Riveria will accept a block comment in that place, just not a one-line comment. I don't have an account on EDA playground, so can't test the other commercial simulators.

from ivtest.

Nic30 avatar Nic30 commented on August 16, 2024

Do you see any potential thing which could be broken because of support of comment on such a place?
It seems to me that there is no ambiguity, the '(' is never optional. Hopefully this does not affect line number in expanded macro.

from ivtest.

Nic30 avatar Nic30 commented on August 16, 2024

I still do not know where block comment on this place should ended after preprocessing, but let's close this issue as it is not problem in this repo.

from ivtest.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.