-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SystemVerilog: discover package dependencies in expressions and types
Dependencies on a package via the package scope operator :: are now discovered when used in types or expressions.
- Loading branch information
Showing
10 changed files
with
202 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ endpackage | |
|
||
module main; | ||
|
||
import moo::*; | ||
|
||
parameter Q = moo::P; | ||
|
||
assert final (Q == 123); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
class function_call_exprt; | ||
class power_exprt; | ||
class verilog_package_scope_typet; | ||
|
||
class verilog_typecheck_exprt:public verilog_typecheck_baset | ||
{ | ||
|
@@ -66,7 +67,7 @@ class verilog_typecheck_exprt:public verilog_typecheck_baset | |
void propagate_type(exprt &expr, const typet &type); | ||
|
||
typet elaborate_type(const typet &); | ||
typet elaborate_package_scope_typedef(const type_with_subtypest &); | ||
typet elaborate_package_scope_typedef(const verilog_package_scope_typet &); | ||
typet convert_enum(const class verilog_enum_typet &); | ||
array_typet convert_unpacked_array_type(const type_with_subtypet &); | ||
typet convert_packed_array_type(const type_with_subtypet &); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters