aboutsummaryrefslogtreecommitdiffstats
path: root/tests/verilog/global_parameter.ys
diff options
context:
space:
mode:
Diffstat (limited to 'tests/verilog/global_parameter.ys')
-rw-r--r--tests/verilog/global_parameter.ys16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/verilog/global_parameter.ys b/tests/verilog/global_parameter.ys
new file mode 100644
index 000000000..a7a3cddc7
--- /dev/null
+++ b/tests/verilog/global_parameter.ys
@@ -0,0 +1,16 @@
+read_verilog -sv <<EOF
+parameter P = 1;
+module example(
+ output integer out
+);
+ assign out = P;
+endmodule
+module top(
+ output integer out
+);
+ example #(2) e1(out);
+endmodule
+EOF
+
+logger -expect error "Can't find object for defparam" 1
+hierarchy