-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1085 from steveicarus/steveicarus/readmempath-tests
Move tests pr2509349a/b to the new test format.
- Loading branch information
Showing
21 changed files
with
88 additions
and
100 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
Icarus Verilog Quirks | ||
===================== | ||
|
||
This is a list of known quirks that are presented by Icarus Verilog. The idea | ||
of this chapter is to call out ways that Icarus Verilog differs from the | ||
standard, or from other implementations. | ||
|
||
This is NOT AN EXHAUSTIVE LIST. If something is missing from this list, let us | ||
know and we can add documentation. | ||
|
||
System Tasks - Unique to Icarus Verilog | ||
--------------------------------------- | ||
|
||
These are system tasks that are unique to Icarus Verilog. Don't use any of | ||
these if you want to keep your code portable across other Verilog compilers. | ||
|
||
$readmempath | ||
^^^^^^^^^^^^ | ||
The "$readmemb" and "$readmemh" system tasks read text files that contain data | ||
values to populate memories. Normally, those files are found in a current work | ||
directory. The "$readmempath()" system task can be used to create a search | ||
path for those files. For example: | ||
|
||
.. code-block:: verilog | ||
reg [7:0] mem [0:7]; | ||
initial begin | ||
$readmemh("datafile.txt", mem); | ||
end | ||
This assumes that the "datafile.txt" is in the current working directory where | ||
the vvp command is running. But with the "$readmempath", one can specify a | ||
search path: | ||
|
||
.. code-block:: verilog | ||
reg [7:0] mem [0:7]; | ||
initial begin | ||
$readmempath(".:alternative:/global/defaults"); | ||
$readmemh("datafile.txt", mem); | ||
end | ||
In this example, the "datafile.txt" is searched for in each of the directories | ||
in the above list (separated by ":" characters). The first located instance | ||
is the one that is used. So for example, if "./datafile.txt" exists, then it | ||
is read instead of "/global/defaults/datafile.txt" even if the latter exists. |
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,4 +20,5 @@ Icarus Verilog. | |
vhdlpp_flags | ||
gtkwave | ||
vpi | ||
icarus_verilog_quirks | ||
reporting_issues |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
WARNING: work/a.out.v:17: $readmempath could not find directory "/no_dir"! | ||
WARNING: work/a.out.v:17: $readmempath could not find directory "no_dir2"! | ||
WARNING: work/a.out.v:17: $readmempath could not find directory "vsim"! | ||
PASSED |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
WARNING: ivltests/pr2509349a.v:11: $readmempath could not find directory "/no_dir"! | ||
WARNING: ivltests/pr2509349a.v:11: $readmempath could not find directory "no_dir2"! | ||
WARNING: ivltests/pr2509349a.v:11: $readmempath could not find directory "vsim"! | ||
PASSED |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
WARNING: work/a.out.v:14: $readmempath's argument (vpiReg) is not a valid string. | ||
WARNING: work/a.out.v:17: $readmempath's argument contains non-printable characters. | ||
"tes\002" |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
WARNING: ivltests/pr2509349b.v:5: $readmempath's argument (vpiReg) is not a valid string. | ||
WARNING: ivltests/pr2509349b.v:8: $readmempath's argument contains non-printable characters. | ||
"tes\002" |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"type" : "normal-vlog95", | ||
"source" : "pr2509349a.v", | ||
"gold" : "pr2509349a-vlog95" | ||
} |
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,5 @@ | ||
{ | ||
"type" : "normal", | ||
"source" : "pr2509349a.v", | ||
"gold" : "pr2509349a" | ||
} |
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,5 @@ | ||
{ | ||
"type" : "normal-vlog95", | ||
"source" : "pr2509349b.v", | ||
"gold" : "pr2509349b-vlog95" | ||
} |
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,5 @@ | ||
{ | ||
"type" : "normal", | ||
"source" : "pr2509349b.v", | ||
"gold" : "pr2509349b" | ||
} |