2022-03-27 18:42:36 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module for Issue#2863
|
|
|
|
//
|
|
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
|
|
// without warranty, 2021 by Julien Margetts (Originally provided by Thomas Sailer)
|
|
|
|
|
|
|
|
module test
|
|
|
|
(input logic [1:0] a,
|
|
|
|
input logic e,
|
|
|
|
output logic [1:0] z);
|
|
|
|
|
|
|
|
always_latch
|
|
|
|
if (e)
|
2022-05-15 15:03:32 +00:00
|
|
|
z[0] = a[0];
|
2022-03-27 18:42:36 +00:00
|
|
|
|
|
|
|
always_latch
|
|
|
|
if (e)
|
2022-05-15 15:03:32 +00:00
|
|
|
z[1] = a[1];
|
2022-03-27 18:42:36 +00:00
|
|
|
|
|
|
|
endmodule
|