mirror of
https://github.com/verilator/verilator.git
synced 2025-01-10 08:37:35 +00:00
f71d904a9b
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
29 lines
542 B
Verilog
29 lines
542 B
Verilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2015 by Johan Bjork.
|
|
|
|
interface intf;
|
|
logic a;
|
|
modport source(output a);
|
|
modport sink(input a);
|
|
endinterface
|
|
|
|
module t
|
|
#(
|
|
parameter N = 1
|
|
)
|
|
( input [N-1:0] a_in,
|
|
output[N-1:0] a_out
|
|
);
|
|
intf ifs[N-1:0] ();
|
|
logic [N-1:0] a_q;
|
|
|
|
assign a_out = a_q;
|
|
assign ifs[0].a = a_in[0];
|
|
initial begin
|
|
$write("*-* All Finished *-*\n");
|
|
$finish;
|
|
end
|
|
endmodule
|