2023-03-13 07:39:31 +08:00
|
|
|
add_subdirectory(arcilator)
|
2022-09-22 23:43:31 +08:00
|
|
|
add_subdirectory(circt-as)
|
2023-05-30 15:48:47 +08:00
|
|
|
add_subdirectory(circt-cocotb-driver)
|
2022-09-22 23:43:31 +08:00
|
|
|
add_subdirectory(circt-dis)
|
2023-05-02 00:02:20 +08:00
|
|
|
add_subdirectory(circt-lec)
|
2021-11-18 04:16:30 +08:00
|
|
|
add_subdirectory(circt-lsp-server)
|
2020-06-18 01:19:08 +08:00
|
|
|
add_subdirectory(circt-opt)
|
2021-08-03 01:14:54 +08:00
|
|
|
add_subdirectory(circt-reduce)
|
2020-12-23 06:30:25 +08:00
|
|
|
add_subdirectory(circt-rtl-sim)
|
2020-06-18 01:19:08 +08:00
|
|
|
add_subdirectory(circt-translate)
|
2021-01-14 07:00:27 +08:00
|
|
|
add_subdirectory(esi)
|
2020-06-18 05:14:02 +08:00
|
|
|
add_subdirectory(handshake-runner)
|
2020-04-22 05:38:09 +08:00
|
|
|
add_subdirectory(firtool)
|
2020-07-03 02:04:33 +08:00
|
|
|
add_subdirectory(llhd-sim)
|
2023-07-27 16:06:27 +08:00
|
|
|
add_subdirectory(om-linker)
|
2022-06-16 01:56:13 +08:00
|
|
|
add_subdirectory(py-split-input-file)
|
2022-09-13 01:30:35 +08:00
|
|
|
add_subdirectory(hlstool)
|
2023-09-28 16:14:20 +08:00
|
|
|
add_subdirectory(ibistool)
|
[ImportVerilog] Add Slang frontend dependency (#6620)
This is the first PR in a longer chain that adds basic SV support to
CIRCT.
Add the Slang Verilog frontend as a CIRCT dependency. This will be the
foundation for CIRCT's Verilog parsing, elaboration, type checking, and
lowering to the core dialects. By default, Slang is built as a static
library from scratch, which is then linked into the new `ImportVerilog`
conversion. Alternatively, CIRCT can also be linked against a local
Slang installation provided by the system.
Add the `ImportVerilog` conversion library. This library statically
links in the Slang dependency and wraps it in an exception-safe,
LLVM-style API. Currently this only consists of the `getSlangVersion`
function and the necessary linking flags to get it to link statically
against Slang.
Add the `circt-verilog` tool, which will provide a fully-flegded
interface to the new `ImportVerilog` library. Later on we'll also add an
MLIR translation library for single-file SV import. But in general, SV
builds take a lot of command line options (macros, search paths, etc.)
and multiple input files, which is why we have a dedicated tool. All the
tool does at the moment is print the linked Slang version. More to come.
Note that this intentionally links against **version 3** of Slang. Newer
versions are available -- 4 and 5 as of this commit -- but they rely on
fairly new C++ compiler features that didn't work out of the box in our
CI images. We'll eventually want to upgrade, but for now Slang 3 is
sufficient to get the ball rolling.
See https://github.com/MikePopoloski/slang for details on Slang.
Co-authored-by: ShiZuoye <albertethon@163.com>
Co-authored-by: hunterzju <hunter_ht@zju.edu.cn>
Co-authored-by: 孙海龙 <hailong.sun@terapines.com>
2024-01-31 05:22:00 +08:00
|
|
|
|
|
|
|
if(CIRCT_SLANG_FRONTEND_ENABLED)
|
|
|
|
add_subdirectory(circt-verilog)
|
|
|
|
endif()
|