verilator/test_regress/t/t_lint_unsup_mixed.v

34 lines
502 B
Coq
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2016 by Wilson Snyder.
module t
(
input wire clk,
input wire a,
input wire b
);
integer q;
2017-09-11 23:18:58 +00:00
// bug1120
always @ (a or posedge clk)
begin
if (a)
q = 0;
2017-09-11 23:18:58 +00:00
else
q = q + 1;
end
// bug934
integer qb;
always @((a && b) or posedge clk) begin
if (a)
qb = 0;
else
qb = qb + 1;
end
endmodule