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:
parent
c962951612
commit
e70e4afb60
2 changed files with 21 additions and 4 deletions
11
tests/svtypes/typedef_package.sv
Normal file
11
tests/svtypes/typedef_package.sv
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue