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

45 lines
1.1 KiB
Plaintext

# a blocking assignment in an always_ff is flagged
module m;
always_ff @(posedge clk) q = d;
//^ 28 always-ff-non-blocking
endmodule
====
# a non-blocking assignment in an always_ff is what the rule wants
module m;
always_ff @(posedge clk) q <= d;
endmodule
====
# always-ff-non-blocking waived on the same line
module m;
always_ff @(posedge clk) q = d; // lucisv: waive always-ff-non-blocking
endmodule
====
# an always-ff waiver that waives nothing is reported
module m;
always_ff @(posedge clk) q <= d; // lucisv: waive always-ff-non-blocking
//^ 36 unused-waiver
endmodule
====
# a non-blocking assignment in an always_comb is flagged
module m;
always_comb x <= y;
//^ 15 always-comb-blocking
endmodule
====
# a blocking assignment in an always_comb is what the rule wants
module m;
always_comb x = y;
endmodule
====
# always-comb-blocking waived with the verible spelling
module m;
// verilog_lint: waive always-comb-blocking
always_comb x <= y;
endmodule
====
# an always-comb waiver that waives nothing is reported
module m;
always_comb x = y; // lucisv: waive always-comb-blocking
//^ 22 unused-waiver
endmodule