diff options
author | David Shah <dave@ds0.me> | 2019-09-19 21:21:21 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-10-03 09:54:14 +0100 |
commit | e70e4afb60a41da6d9f6200b20f36f61c6b993b2 (patch) | |
tree | 4c006d3182e2b3a745c8ec5d9c07cce5a244deae /tests | |
parent | c9629516120930aedaf52d72fec5d7fabe51d496 (diff) | |
download | yosys-e70e4afb60a41da6d9f6200b20f36f61c6b993b2.tar.gz yosys-e70e4afb60a41da6d9f6200b20f36f61c6b993b2.tar.bz2 yosys-e70e4afb60a41da6d9f6200b20f36f61c6b993b2.zip |
sv: Fix typedefs in packages
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/svtypes/typedef_package.sv | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/svtypes/typedef_package.sv b/tests/svtypes/typedef_package.sv new file mode 100644 index 000000000..4aa22b6af --- /dev/null +++ b/tests/svtypes/typedef_package.sv @@ -0,0 +1,11 @@ +package pkg; + typedef logic [7:0] uint8_t; +endpackage + +module top; + + (* keep *) pkg::uint8_t a = 8'hAA; + + always @* assert(a == 8'hAA); + +endmodule
\ No newline at end of file |