2025-09-29 03:23:15 +02: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: 2025 Wilson Snyder
|
2025-09-29 03:23:15 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
module t (
|
|
|
|
|
input logic a,
|
|
|
|
|
input logic [7:0] b,
|
|
|
|
|
output logic [7:0] c
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
always_comb begin : p
|
|
|
|
|
c = b;
|
|
|
|
|
if (a) begin : x
|
|
|
|
|
automatic logic [7:0] n;
|
|
|
|
|
n = b;
|
|
|
|
|
n += 8'h01;
|
|
|
|
|
c = n;
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
endmodule
|