diff options
author | N. Engelhardt <nak@symbioticeda.com> | 2020-03-30 13:55:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-30 13:55:39 +0200 |
commit | d5e2061687991085de89acc1905a366abd263c90 (patch) | |
tree | cbe2cdab06992f8ae95d75f6c8a50117f2f1ecb8 /tests | |
parent | 2c847e7efec5e940331a94580fad99375ce73c6f (diff) | |
parent | f8c065ed1cb17057a8317ae5bd47500a6be60c5c (diff) | |
download | yosys-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.sv | 7 |
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 + |