Skip to content

Yosys compat: need to include SystemVerilog reserved keywords in Reserved_words #21

@edwintorok

Description

@edwintorok

I tried naming one of my signals "dist", but Yosys failed to parse the resulting file.

Looking at its source code it uses the SystemVerilog reserved word list, even when parsing regular Verilog: https://github.com/YosysHQ/yosys/blob/main/backends/verilog/verilog_backend.cc#L133-L155

I think it'd be better to update 'reserved_words.ml' and include the SystemVerilog list too.

If you want I can send a PR that does that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    forwarded-to-js-devsThis report has been forwarded to Jane Street's internal review system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions