-
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: package scope operator
This adds the SystemVerilog package scope operator ::.
- Loading branch information
Showing
14 changed files
with
119 additions
and
53 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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CORE | ||
package2.sv | ||
|
||
^^\[.*\] always main\.Q == 123: PROVED$ | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
-- |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package moo; | ||
|
||
parameter P = 123; | ||
|
||
endpackage | ||
|
||
module main; | ||
|
||
import moo::*; | ||
|
||
parameter Q = moo::P; | ||
|
||
assert final (Q == 123); | ||
|
||
endmodule |
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
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 |
---|---|---|
|
@@ -22,21 +22,13 @@ Author: Daniel Kroening, [email protected] | |
bool verilog_typecheck( | ||
const verilog_parse_treet &parse_tree, | ||
symbol_table_baset &, | ||
const std::string &module, | ||
const irep_idt &module_identifier, | ||
bool warn_implicit_nets, | ||
message_handlert &message_handler); | ||
|
||
bool verilog_typecheck( | ||
symbol_table_baset &, | ||
const verilog_module_sourcet &verilog_module_source, | ||
verilog_standardt, | ||
bool warn_implicit_nets, | ||
message_handlert &message_handler); | ||
|
||
bool verilog_typecheck( | ||
symbol_table_baset &, | ||
const std::string &module_identifier, | ||
verilog_standardt, | ||
const irep_idt &module_identifier, | ||
const exprt::operandst ¶meters, | ||
message_handlert &message_handler); | ||
|
||
|
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 |
---|---|---|
|
@@ -17,7 +17,8 @@ Author: Daniel Kroening, [email protected] | |
#include "verilog_standard.h" | ||
|
||
irep_idt verilog_module_symbol(const irep_idt &base_name); | ||
irep_idt verilog_module_name(const irep_idt &identifier); | ||
irep_idt verilog_package_identifier(const irep_idt &base_name); | ||
irep_idt verilog_item_key(const irep_idt &identifier); | ||
irep_idt strip_verilog_prefix(const irep_idt &identifier); | ||
|
||
class array_typet; | ||
|
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