Skip to content

AutoWire

Commands: lazyverilog.autowire, lazyverilog.autowirepreview

Declares the logic signals the module uses but never declares. A signal counts when it is driven in this module: connected to an instance output or inout, or assigned by an assign or an always_comb.

systemverilog
m_fifo u_fifo (
    .i_data  (s_data  ),  // input: not a driver, not declared
    .o_data  (s_data_o),  // output: declared
    .o_valid (s_valid )   // output: declared
);

// AutoWire inserts:
logic [7:0] s_data_o;
logic       s_valid;

A signal that only feeds an input is left alone, because nothing in this module drives it. Declare it yourself. The preview command shows the declarations without applying them.

toml
[autowire]
group_by_instance = false
sort_by_name = true
SectionOptionDefaultDescription
autowiregroup_by_instancefalseGroup declarations by the instance they come from
autowiresort_by_namefalseSort declarations alphabetically

Released under the MIT License. Themed with Catppuccin.