Open lerwys opened 2 years ago
The syntax error is present in 11.0 (at least the version shipped in Debian Bullseye), but already fixed in current git. \o/ The buffer overflow is still there in current git.
Oh right. I forgot to paste the version I'm using:
lrusso@lrussoPC:~$ iverilog -v
Icarus Verilog version 10.3 (stable) ()
Good to know it's fixed in the next version @ldoolitt !
Thanks!
The problem with increasing the buffer size is how far do you go? The default for flex is 16KB. The attached example would require 64KB. But with automatically generated code, who knows how high it could go.
A better solution would be to eliminate the use of REJECT so the lexical analyser could expand its input buffer on demand.
I'll label this as a bug, but I don't see an easy way to fix it in general.
When working with a generated vendor module, it uses long attribute lines with line continuation marks, like the attached file long_attribute_module.txt.
That confuses iverilog parsing.
If I try to remove the line continuation marks like the attached file long_attribute_module2.txt, the line is so big that gets rejected.
Could we maybe increase the preprocessor limit or support the line continuation syntax with "\" marks?
Thank you!