forked from github/verilator
Support '#' comments in , bug1411.
This commit is contained in:
parent
32c1e38b84
commit
3b64f54cea
2
Changes
2
Changes
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user