mirror of
https://github.com/verilator/verilator.git
synced 2025-01-10 00:27:35 +00:00
35 lines
642 B
Coq
35 lines
642 B
Coq
|
// DESCRIPTION: Verilator: Verilog Test module
|
||
|
//
|
||
|
// This file ONLY is placed into the Public Domain, for any use,
|
||
|
// without warranty, 2012 by Chandan Egbert.
|
||
|
|
||
|
// See bug569
|
||
|
|
||
|
module t();
|
||
|
`ifdef T_FUNC_V_NOINL
|
||
|
// verilator no_inline_module
|
||
|
`endif
|
||
|
level1 ul1();
|
||
|
initial ul1.doit(4'b0);
|
||
|
endmodule
|
||
|
|
||
|
module level1();
|
||
|
`ifdef T_FUNC_V_NOINL
|
||
|
// verilator no_inline_module
|
||
|
`endif
|
||
|
level2 ul2();
|
||
|
|
||
|
task doit(input logic [3:0] v);
|
||
|
ul2.mem = v;
|
||
|
$write("*-* All Finished *-*\n");
|
||
|
$finish;
|
||
|
endtask
|
||
|
endmodule
|
||
|
|
||
|
module level2();
|
||
|
`ifdef T_FUNC_V_NOINL
|
||
|
// verilator no_inline_module
|
||
|
`endif
|
||
|
logic [3:0] mem;
|
||
|
endmodule
|