2006-08-26 11:35:28 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
|
|
|
// Use this file as a template for submitting bugs, etc.
|
|
|
|
// This module takes a single clock input, and should either
|
2019-06-13 02:41:51 +00:00
|
|
|
// $write("*-* All Finished *-*\n");
|
|
|
|
// $finish;
|
2006-08-26 11:35:28 +00:00
|
|
|
// on success, or $stop.
|
|
|
|
//
|
2007-03-05 13:52:21 +00:00
|
|
|
// The code as shown applies a random vector to the Test
|
|
|
|
// module, then calculates a CRC on the Test module's outputs.
|
|
|
|
//
|
2006-08-26 11:35:28 +00:00
|
|
|
// **If you do not wish for your code to be released to the public
|
2007-03-05 13:52:21 +00:00
|
|
|
// please note it here, otherwise:**
|
|
|
|
//
|
2020-03-21 15:24:24 +00:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
// any use, without warranty, 2020 ____YOUR_NAME_HERE____.
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2006-08-26 11:35:28 +00:00
|
|
|
|
2020-05-08 01:04:26 +00:00
|
|
|
module t(/*AUTOARG*/);
|
|
|
|
|
|
|
|
initial begin
|
|
|
|
// verilator lint_off WIDTH
|
|
|
|
parameter [3:0] val0 = 32'b000x;
|
|
|
|
parameter [3:0] val1 = 32'b000z;
|
|
|
|
parameter [3:0] val2 = 32'b00xz;
|
|
|
|
parameter [3:0] val3 = 32'b0000;
|
|
|
|
$display(":assert: (%d == 1)", $isunknown(val0));
|
|
|
|
$display(":assert: (%d == 1)", $isunknown(val1));
|
|
|
|
$display(":assert: (%d == 1)", $isunknown(val2));
|
|
|
|
$display(":assert: (%d == 0)", $isunknown(val3));
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
$finish;
|
2007-03-05 13:52:21 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
endmodule
|