2012-12-31 23:05:13 +01:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2020 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2012-12-31 23:05:13 +01:00
|
|
|
|
|
|
|
|
module t;
|
2026-03-10 02:38:29 +01:00
|
|
|
Test0 t0 (.val0('0));
|
|
|
|
|
Test1 t1 (.val1('0));
|
|
|
|
|
initial begin
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2012-12-31 23:05:13 +01:00
|
|
|
endmodule
|
|
|
|
|
|
|
|
|
|
package params;
|
2026-03-10 02:38:29 +01:00
|
|
|
parameter P = 7;
|
2012-12-31 23:05:13 +01:00
|
|
|
endpackage
|
|
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
module Test0 (
|
|
|
|
|
val0
|
|
|
|
|
);
|
|
|
|
|
parameter Z = 1;
|
|
|
|
|
input [Z : 0] val0;
|
2012-12-31 23:05:13 +01:00
|
|
|
endmodule
|
|
|
|
|
|
2026-03-10 02:38:29 +01:00
|
|
|
module Test1 (
|
|
|
|
|
val1
|
|
|
|
|
);
|
|
|
|
|
input logic [params::P : 0] val1; // Fully qualified parameter
|
2012-12-31 23:05:13 +01:00
|
|
|
endmodule
|