Skip to content

[ExportVerilog] Reuse wire/register declarations #2624

Open
@uenoku

Description

@uenoku
; circt-opt -export-verilog
  hw.module @Foo() {
    %0 = sv.wire  : !hw.inout<i3>
    %1 = sv.wire  : !hw.inout<i3>
    hw.output
  }

Currently the output is:

module Foo();  
  wire [2:0] _GEN;  
  wire [2:0] _GEN_0;  

endmodule

Maybe it is better to reuse declaration of wires like port delcrations:

module Foo(); 
  wire [2:0] _GEN, _GEN_0;   

endmodule

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions