mirror of
https://github.com/verilator/verilator.git
synced 2025-01-07 15:17:36 +00:00
25 lines
526 B
Verilog
25 lines
526 B
Verilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2015 by Wilson Snyder.
|
|
|
|
package pkg;
|
|
typedef struct packed {
|
|
logic [3:0] msk;
|
|
logic [3:0] dat;
|
|
} STR_t;
|
|
endpackage;
|
|
|
|
package csr_pkg;
|
|
typedef pkg::STR_t reg_t;
|
|
localparam reg_t REG_RST = 8'h34;
|
|
endpackage
|
|
|
|
module t (/*AUTOARG*/);
|
|
initial begin
|
|
if (csr_pkg::REG_RST.msk != 4'h3) $stop;
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
endmodule
|