aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorN. Engelhardt <nak@symbioticeda.com>2020-03-30 13:55:39 +0200
committerGitHub <noreply@github.com>2020-03-30 13:55:39 +0200
commitd5e2061687991085de89acc1905a366abd263c90 (patch)
treecbe2cdab06992f8ae95d75f6c8a50117f2f1ecb8 /tests
parent2c847e7efec5e940331a94580fad99375ce73c6f (diff)
parentf8c065ed1cb17057a8317ae5bd47500a6be60c5c (diff)
downloadyosys-d5e2061687991085de89acc1905a366abd263c90.tar.gz
yosys-d5e2061687991085de89acc1905a366abd263c90.tar.bz2
yosys-d5e2061687991085de89acc1905a366abd263c90.zip
Merge pull request #1811 from PeterCrozier/typedef_scope
Support module/package/interface/block scope for typedef names.
Diffstat (limited to 'tests')
-rw-r--r--tests/svtypes/typedef_scopes.sv7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/svtypes/typedef_scopes.sv b/tests/svtypes/typedef_scopes.sv
index d41a58147..5507d84f2 100644
--- a/tests/svtypes/typedef_scopes.sv
+++ b/tests/svtypes/typedef_scopes.sv
@@ -31,5 +31,12 @@ module top;
always @(*) assert(inner_i2 == 4'h2);
always @(*) assert(inner_enum2 == 3'h4);
+endmodule
+
+typedef logic[7:0] between_t;
+module other;
+ between_t a = 8'h42;
+ always @(*) assert(a == 8'h42);
endmodule
+