2019-12-07 18:53:01 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
|
|
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
2020-03-21 16:24:24 +01:00
|
|
|
// without warranty, 2019 by Driss Hafdi.
|
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2019-12-07 18:53:01 +01:00
|
|
|
|
2025-09-25 13:31:18 +02:00
|
|
|
interface Foo;
|
|
|
|
|
logic quux;
|
2019-12-07 18:53:01 +01:00
|
|
|
endinterface
|
|
|
|
|
|
2025-09-25 13:31:18 +02:00
|
|
|
module Bar;
|
|
|
|
|
// Issue# 1623 - seems legal
|
|
|
|
|
always_comb foo.quux = '0;
|
2019-12-07 18:53:01 +01:00
|
|
|
endmodule
|
|
|
|
|
|
2025-09-25 13:31:18 +02:00
|
|
|
module Baz;
|
|
|
|
|
Foo foo ();
|
|
|
|
|
Bar bar ();
|
2019-12-07 18:53:01 +01:00
|
|
|
endmodule
|
|
|
|
|
|
2025-09-13 15:28:43 +02:00
|
|
|
module t;
|
2019-12-07 18:53:01 +01:00
|
|
|
|
2025-09-25 13:31:18 +02:00
|
|
|
Baz baz ();
|
2019-12-07 18:53:01 +01:00
|
|
|
|
2025-09-25 13:31:18 +02:00
|
|
|
initial begin
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2019-12-07 18:53:01 +01:00
|
|
|
endmodule
|