2015-12-19 00:01:55 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2006 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2015-12-19 00:01:55 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
module t ( /*AUTOARG*/
|
|
|
|
|
// Outputs
|
|
|
|
|
b,
|
|
|
|
|
// Inputs
|
|
|
|
|
clk,
|
|
|
|
|
en,
|
|
|
|
|
a
|
|
|
|
|
);
|
2015-12-19 00:01:55 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
// bug1017
|
2015-12-19 00:01:55 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
input clk;
|
2015-12-19 00:01:55 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
input en;
|
|
|
|
|
input a[1];
|
|
|
|
|
output logic b[1];
|
2015-12-19 00:01:55 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
always_ff @(posedge clk) begin
|
|
|
|
|
b <= en ? a : b;
|
|
|
|
|
end
|
2015-12-19 00:01:55 +01:00
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
always @(posedge clk) begin
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2015-12-19 00:01:55 +01:00
|
|
|
|
|
|
|
|
endmodule
|