pascalkuthe / OpenVAF

An innovative Verilog-A compiler
https://openvaf.semimod.de/
GNU General Public License v3.0
113 stars 15 forks source link

Hisim Compilation #38

Closed metroid120 closed 1 year ago

metroid120 commented 1 year ago

This issue is related to this ticket.

When compiling HisimHV 2.5, available here, I see the following behavior.

On Linux: The model compiles after removing a function //* "smoothUpper" using a power function in file HSMHV_eval_rdrift.inc.

What bugs me: OpenVAF gives a warning if this function is not removed, but still does not produce the osdi file. If this is really a bug, it should be an error. After removing the "smoothUpper" Macro, HISIM works for me.

On Windows: The compilation aborts and I see:

hisimhv.o3 : error LNK2019: unresolved external symbol snprintf referenced in function cb.2 hisimhv.o4 : error LNK2001: unresolved external symbol snprintf hisimhv.osdi : fatal error LNK1120: 1 unresolved externals error: linking failed (see linker output for details) error: failed to compile hisimhv.va

Attached is a netlist. hism_netlist.cir.txt

pascalkuthe commented 1 year ago

On Linux you are likely using an old openvaf version. That bug should have been fixed in the latwst release. The bug on windows is duplicate of #35

metroid120 commented 1 year ago

Yes, on windows I was using the old version. So I think we can close this issue.

pascalkuthe commented 1 year ago

Closing as duplicate of #35