forked from github/verilator
29 lines
606 B
Verilog
29 lines
606 B
Verilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2009 by Wilson Snyder.
|
|
|
|
module t (/*AUTOARG*/
|
|
// Inputs
|
|
clk
|
|
);
|
|
input clk;
|
|
|
|
// No endian warning here
|
|
wire [7:0] pack [3:0];
|
|
|
|
initial begin
|
|
pack[0] = 8'h78;
|
|
pack[1] = 8'h88;
|
|
pack[2] = 8'h98;
|
|
pack[3] = 8'hA8;
|
|
if (pack[0] !== 8'h78) $stop;
|
|
if (pack[1] !== 8'h88) $stop;
|
|
if (pack[2] !== 8'h98) $stop;
|
|
if (pack[3] !== 8'hA8) $stop;
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
|
|
endmodule
|