Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  IPC::Locker
  Parallel::Forker
  Voneline
General Info
  Papers

CMake based build?

Added by Patrick Mulder 3 months ago

Hello,

I am new to Verilator but it looks interesting to learn and explore digital designs. I was looking at GnuCap Spice simulator the last months, and found the CMake based build together with MinGW32 works good on Windows machines.

How/where should I start to build Verilator with CMake?

I would be looking for a CMakeLists.txt as a start - maybe there is something alreaedy?

Otherwise what are the main depdendencies so I could try to start my own build?

Thanks a lot!


Replies (5)

RE: CMake based build? - Added by Wilson Snyder 3 months ago

The git version, which is not yet released, supports using CMake for verilated modules, thanks to Patrick Stewart et al. Please try it.

There is no support, nor none planed for using CMake to build verilator the executable itself, as this would break some older OSes that we still want to support.

RE: CMake based build? - Added by Patrick Mulder 3 months ago

Thanks - ok, I see this Gist works fine with a MinGW shell:

https://gist.github.com/sgherbst/036456f807dc8aa84ffb2493d1536afd

I will try to learn more on the modules build next.

RE: CMake based build? - Added by Patrick Mulder 3 months ago

One problem I get for the pacman build is this:

In file included from ../V3ParseLex.cpp:36:0: V3Lexer_pregen.yy.cpp:368:10: fatal error: FlexLexer.h: No such file or directory

But the file is here:

$ find / -name "FlexLexer.h" /usr/include/FlexLexer.h

RE: CMake based build? - Added by Wilson Snyder 3 months ago

Can you please attach a complete build log?

Most likely your flex didn't get installed correctly or something, as this shouldn't be something Verilator can break.

RE: CMake based build? - Added by Patrick Mulder 3 months ago

thanks, moving the discussion to a new thread.

    (1-5/5)