mirror of
https://github.com/verilator/verilator.git
synced 2025-02-01 11:14:03 +00:00
28 lines
751 B
Systemverilog
28 lines
751 B
Systemverilog
|
// DESCRIPTION: Verilator: Verilog Test module
|
||
|
//
|
||
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
||
|
// any use, without warranty, 2021 by wilson Snyder.
|
||
|
// SPDX-License-Identifier: CC0-1.0
|
||
|
|
||
|
module t;
|
||
|
parameter string ES = "";
|
||
|
parameter EI = ""; // B is an integer of width 8
|
||
|
parameter string OS = "O";
|
||
|
parameter OI = "O"; // B is an integer of width 8
|
||
|
|
||
|
initial begin
|
||
|
$display(">< == >%s<", "");
|
||
|
$display(">< == >%s<", ES);
|
||
|
$display("> < == >%s<", EI);
|
||
|
|
||
|
if ($bits("") != 0) $stop;
|
||
|
if ($bits("A") != 8) $stop;
|
||
|
if ($bits(ES) != 0) $stop;
|
||
|
if ($bits(OS) != 8) $stop;
|
||
|
if ($bits(OI) != 8) $stop;
|
||
|
|
||
|
$write("*-* All Finished *-*\n");
|
||
|
$finish;
|
||
|
end
|
||
|
endmodule
|