3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-08 20:21:25 +00:00

sv: Fix typedefs in packages

Signed-off-by: David Shah <dave@ds0.me>
This commit is contained in:
David Shah 2019-09-19 21:21:21 +01:00
parent c962951612
commit e70e4afb60
2 changed files with 21 additions and 4 deletions

View file

@ -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