2018-01-17 01:53:50 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
|
|
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
|
|
|
// without warranty, 2018 by Alex Solomatnikov
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2018-01-17 01:53:50 +01:00
|
|
|
|
|
|
|
|
module t;
|
2025-10-25 17:00:25 +02:00
|
|
|
sub #(.REAL_PARAM(2.0)) sub();
|
2018-01-17 01:53:50 +01:00
|
|
|
endmodule
|
|
|
|
|
|
|
|
|
|
module sub ();
|
2025-10-25 17:00:25 +02:00
|
|
|
parameter REAL_PARAM = 0.0; // Magic name grepped for in .py file
|
2018-01-17 01:53:50 +01:00
|
|
|
|
|
|
|
|
initial begin
|
2025-10-25 17:00:25 +02:00
|
|
|
$display("REAL_PARAM=%g", REAL_PARAM);
|
2018-01-17 01:53:50 +01:00
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
|
|
|
|
endmodule
|