Skip to content

The connection name causes errors #1271

@L3odr0id

Description

@L3odr0id

Compilation of the following SystemVerilog module throws an error:

module a(output real wreal);
  assign wreal = 1.0;
endmodule: a

Command:

iverilog -g2012 test.sv

Error output:

test.sv:2: syntax error
test.sv:2: error: Syntax error in left side of continuous assignment.

Expected behavior:
it seems real support is not that important, but the message is misleading. It should state that real is not supported in continuous assignments.

This issue occurs in Icarus Verilog version 13.0 (devel) (s20250103-64-gdad78d525)

Found by a verilog model using deptycheck

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