HEP-SoC / SoCMake

CMake based hardware build system
https://hep-soc.github.io/SoCMake/
GNU Lesser General Public License v3.0
8 stars 1 forks source link

Allow a list of LANGUAGES for get_ip_sources(), get_ip_include_directories #47

Closed Risto97 closed 2 months ago

Risto97 commented 2 months ago

Because SystemVerilog and Verilog are split as separate languages often we need to do this:

    get_ip_include_directories(SV_INCDIRS ${IP_LIB} SYSTEMVERILOG)
    get_ip_include_directories(V_INCDIRS ${IP_LIB} VERILOG)

A nicer solution would be, to have LANGUAGES be a list, like this:

    get_ip_include_directories(SV_INCDIRS ${IP_LIB} SYSTEMVERILOG VERILOG)

The order of the list should signify which file list will be first.

Currently the get_rtl_sources() solves this for source files, but I don't like the solution, because should VHDL be included? What are RTL languages, chisel also?