circt/.github/workflows
Fabian Schuiki 3d8b7d08d9
[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-30 13:22:00 -08:00
..
buildAndTest.yml [ImportVerilog] Add Slang frontend dependency (#6620) 2024-01-30 13:22:00 -08:00
buildAndTestWindows.yml [CI] buildAndTestWindows: Set "write" permission to unbreak for now. 2024-01-04 11:15:16 -06:00
nightlyIntegrationTests.yml [ImportVerilog] Add Slang frontend dependency (#6620) 2024-01-30 13:22:00 -08:00
shortIntegrationTests.yml [ImportVerilog] Add Slang frontend dependency (#6620) 2024-01-30 13:22:00 -08:00
unifiedBuildTestAndInstall.yml [ImportVerilog] Add Slang frontend dependency (#6620) 2024-01-30 13:22:00 -08:00
uploadReleaseArtifacts.yml [CI] Add options to control whether workflow_dispatch assert + build mode. (#6549) 2024-01-05 09:16:24 -06:00
uploadWheels.yml [NFC] Rename Python wheel job name from Nightly to Weekly. 2024-01-25 13:09:56 -07:00