2014-12-24 02:42:33 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
2020-03-21 15:24:24 +00:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
// any use, without warranty, 2010 by Wilson Snyder.
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2014-12-24 02:42:33 +00:00
|
|
|
|
|
|
|
module t (/*AUTOARG*/
|
|
|
|
// Outputs
|
|
|
|
bl, cl, bc, cc,
|
|
|
|
// Inputs
|
|
|
|
a
|
|
|
|
);
|
|
|
|
|
|
|
|
input logic a;
|
|
|
|
output logic bl;
|
|
|
|
output logic cl;
|
|
|
|
always_latch begin
|
|
|
|
bl <= a; // No warning
|
|
|
|
cl = a;
|
|
|
|
end
|
|
|
|
|
|
|
|
output logic bc;
|
2018-10-27 14:03:28 +00:00
|
|
|
output logic cc;
|
2014-12-24 02:42:33 +00:00
|
|
|
always_comb begin
|
|
|
|
bc <= a; // Warning
|
|
|
|
cc = a;
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
endmodule
|