verilator/test_regress/t/t_x_assign.v

20 lines
545 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of either the GNU Lesser General Public License Version 3
// or the Perl Artistic License Version 2.0.
// SPDX-FileCopyrightText: 2020 Geza Lore
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
module t_x_assign (
input wire clk,
output reg o,
output reg [31:0] o_int
);
always @(posedge clk) begin
if (1'bx) o <= 1'd1;
else o <= 1'd0;
o_int <= 'x;
end
endmodule