Skip to content

parameter array of strings causes an syntax error #101

@fpgauserdude

Description

@fpgauserdude
localparam string TESTED_VERSIONS[] =
   {
     "2023.1",
     "2023.2"
    };

$ svinst test.sv
files:
parse failed: "test.sv"
test.sv:72:42
|
72 | localparam string TESTED_VERSIONS[] =
| ^

The syntax is maybe a little weird, but perfectly legal. This code compiles on a commercial tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions