Files
lucisv/crates/vlog_linter/tests/cases/wire_reg_mixup.lint
T

38 lines
667 B
Plaintext

# reg in a .sv file is flagged at the keyword
#path rtl/m.sv
module m;
reg q;
//^ 3 wire-reg-mixup
endmodule
====
# logic and wire are both fine in a .sv file
#path rtl/m.sv
module m;
logic q;
wire w;
endmodule
====
# reg in a .v file is Verilog and the rule has no opinion
#path rtl/m.v
module m;
reg q;
endmodule
====
# a nameless buffer gets no SystemVerilog-ness decision
module m;
reg q;
endmodule
====
# waived on the same line
#path rtl/m.sv
module m;
reg q; // lucisv: waive wire-reg-mixup
endmodule
====
# a waiver that waives nothing is reported
#path rtl/m.sv
module m;
logic q; // lucisv: waive wire-reg-mixup
//^ 12 unused-waiver
endmodule