-
-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support SystemVerilog DPI and DPI-C import statements
Ref: Section "35.5.4 Import declarations" from SystemVerilog standard IEEE 1800-2017.
- Loading branch information
1 parent
e10834d
commit c67f8fe
Showing
3 changed files
with
47 additions
and
0 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,11 @@ | ||
// Comment | ||
|
||
program top; | ||
|
||
import "DPI-C" hello=task hello(); | ||
|
||
initial begin | ||
hello(); | ||
end | ||
|
||
endprogram : top |
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,35 @@ | ||
[ | ||
{"type":"CommentSingle","value":"// Comment\n"}, | ||
{"type":"Text","value":"\n"}, | ||
{"type":"Keyword","value":"program"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Name","value":"top"}, | ||
{"type":"Punctuation","value":";"}, | ||
{"type":"Text","value":"\n\n "}, | ||
{"type":"KeywordNamespace","value":"import"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"LiteralString","value":"\"DPI-C\""}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Name","value":"hello"}, | ||
{"type":"Operator","value":"="}, | ||
{"type":"Keyword","value":"task"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Name","value":"hello"}, | ||
{"type":"Punctuation","value":"();"}, | ||
{"type":"Text","value":"\n\n "}, | ||
{"type":"Keyword","value":"initial"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Keyword","value":"begin"}, | ||
{"type":"Text","value":"\n "}, | ||
{"type":"Name","value":"hello"}, | ||
{"type":"Punctuation","value":"();"}, | ||
{"type":"Text","value":"\n "}, | ||
{"type":"Keyword","value":"end"}, | ||
{"type":"Text","value":"\n\n"}, | ||
{"type":"Keyword","value":"endprogram"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Operator","value":":"}, | ||
{"type":"Text","value":" "}, | ||
{"type":"Name","value":"top"}, | ||
{"type":"Text","value":"\n"} | ||
] |