verilator/test_regress/t/t_mem_cond.v

34 lines
525 B
Systemverilog
Raw Normal View History

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