Closed henry-hsieh closed 3 years ago
Thanks for looking at this!
What I am observing though, with this change, is that all the files get linted every time. This causes
So I am not in favor of this change right now. But suggestions to improve/fix this are very welcome. Right now, in such cases, I would recommend users to edit their verilator command settings and add these options there.
How about adding a new property systemverilog.libraryIndexing
to let users adding their library files? Or simply add a hint in README to remind users adding their library files with -v flag. I'm OK with later option because the library files may not be shared by different projects.
Both sound good to me. The new property is slightly involved so I would have to request you to create a pull request for that, if you prefer to go that route. Otherwise I can take care of the documentation in next release.
Thanks!
OK. I'll create a new pull request for the new property. It may take some time to figure out how to do that. Maybe we can use both of options for now. After the new property is done, the hint of -v flag could be deleted. Thanks!
Currently, Verilator can't find module having different name to the filename unless the file is set to library file (adding -v flag prior to the file). Therefore, it can be fixed by changing every indexed file to library file. The feature may be used when a file contains multiple cell modules used by other modules.