Support '#' comments in , bug1411.

This commit is contained in:
Wilson Snyder 2019-03-27 07:40:14 -04:00
parent 32c1e38b84
commit 3b64f54cea
3 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
* Verilator 4.013 devel
**** Support '#' comments in $readmem, bug1411. [Frederick Requin]
* Verilator 4.012 2019-3-23

View File

@ -1494,6 +1494,7 @@ void VL_READMEM_N(
if (lastc=='/' && c=='*') { ignore_to_cmt = true; }
else if (lastc=='/' && c=='/') { ignore_to_eol = true; }
else if (c=='/') {} // Part of /* or //
else if (c=='#') { ignore_to_eol = true; }
else if (c=='_') {}
else if (c=='@') { reading_addr = true; innum=false; needinc=false; }
// Check for hex or binary digits as file format requests

View File

@ -5,6 +5,8 @@
// Lesser General Public License Version 3 or the Perl Artistic License
// Version 2.0.
# SRecord style comment
010
0_1_1
100/*Space*/101// Space