-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating cell model .v file merges files incompatible with IcarusVerilog #87
Comments
@donn : For the first thing, the prior behavior of open_pdks was to expect the variable defined by --with-sky130-source= to include the "libraries/" at the end of the path name. I wanted that removed from --enable-sky130-pdk=, but that implies that the sky130/Makefile has to be modified to add the "libraries/" back to all the places referencing SKYWATER_PATH. |
@donn : For the 2nd thing, it looks like It is not really the responsibility of open_pdks to keep cleaning up errors in the library sources, but this case ("wire 1" or possibly "wire 0") could be detected and eliminated by a regexp in a filter file. All the verilog files are being passed through the existing filter |
So be it, I guess. I can get on those.
Yeah, it did look like invalid Verilog, but I've learned to treat the Verilog standard more like a suggestion at this point with all the weird per-simulator/parser quirks.
Fixing that particular error by simply prefixing the 1 with a
This means some or all files under models/ are getting excluded… We'll need to investigate that at any rate. |
@donn : Did you include the |
Ah. Welp. That's on me. I'll have to update Fault to allow including multiple files I guess. |
(Note: The reason I'm raising this as an issue instead of a private report and discussion is that it directly affects an issue raised by @mahmoodulhassan-lm with Fault. AUCOHL/Fault#13)
The constructed file list for sky130 is as follows:
That said, the issue in question appears to be from the skywater PDK's
libraries/sky130_fd_sc_hd/latest/cells/dlxbn/sky130_fd_sc_hd__dlxbn.behavioral.v
file: it is not compatible with IcarusVerilog. From what I can gather, open_pdks merges anything ending with a .v in both the cells and models folders, when only a certain number of files should've been actually merged. I'm not 100% sure naturally, but that appears to be the case.The text was updated successfully, but these errors were encountered: