cirosantilli / vcdvcd

Python Verilog value change dump (VCD) parser library + the nifty vcdcat VCD command line pretty printer.
Other
54 stars 21 forks source link

Empty lines not being ignored #22

Closed nielskool closed 3 years ago

nielskool commented 3 years ago

Empty line only containing \r\n are not ignored correctly

//edit cannot figure out why empty line is breaking something later in the loading. line is ignored. But the following lines now suddenly gives an error. removing the empt line in the top of the file fixes it:

File "C:\Program Files (x86)\Python37-32\lib\site-packages\vcdvcd\vcdvcd.py", line 158, in init time = int(line[1:])

ValueError: invalid literal for int() with base 10: '3956001#'

3955000

0#

3955500

1# <-----

3956000 <-----

0#

3956500

1#

nielskool commented 3 years ago

New generated file did not have this issue anymore....