projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
febe770
)
enum in package test
author
Jeff Wang
<jjj11x@gmail.com>
Thu, 16 Jan 2020 17:03:42 +0000
(12:03 -0500)
committer
Jeff Wang
<jeffrey.wang@ll.mit.edu>
Thu, 16 Jan 2020 23:09:03 +0000
(18:09 -0500)
tests/svtypes/typedef_package.sv
patch
|
blob
|
history
diff --git
a/tests/svtypes/typedef_package.sv
b/tests/svtypes/typedef_package.sv
index a1e16d4b1b67b6bb4db6c2547dc21e441e814995..b766f10cfa3559fac6785bc4a64ed7e056615732 100644
(file)
--- a/
tests/svtypes/typedef_package.sv
+++ b/
tests/svtypes/typedef_package.sv
@@
-1,11
+1,14
@@
package pkg;
typedef logic [7:0] uint8_t;
+ typedef enum logic [7:0] {bb=8'hBB} enum8_t;
endpackage
module top;
(* keep *) (pkg::uint8_t) a = 8'hAA;
+ (* keep *) (pkg::enum8_t) b_enum = pkg::bb;
always @* assert(a == 8'hAA);
+ always @* assert(b_enum == 8'hBB);
endmodule