Skip to main content

fsim: Fiber-based SystemVerilog Simulator

fsim is a lightweight SystemVerilog simulator based on userland fibers. It leverages slang as a frontend to parse any SystemVerilog files. fsim is guided by the following design goals:

  1. Concurrent and event-driven. Fine-grained multi-threading using fibers.

  2. Performant. Compiles SystemVerilog into C++ code.

  3. Fast to compile. Supports incremental and parallel builds builds via ninja.

How to install

The easiest way to install is via pip. Simply do

pip install fsim

Notice that for maximum compatibility, the Linux wheel is shipped with gcc, which allows xfim to be installed on any Linux system. macOS should work out of the box if the development tools are installed.

To build from source, you can use the following commands. Notice that you also need ninja installed in your environment path.

git submodule update --init
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j

Usage

Once fsim is installed, you should find fsim executable in your path. The usage is similar to other commercial simulators and C/C++ compilers. For instance, to run a simple testbench, we can do

fsim design.sv tb.sv

The command above will compile the SystemVerilog into an executable called fsim.out. You can override it with -o option. You can then start the simulation by running the executable. A working directory called fsim_dir is created to store compilation files.

To run the simulation automatically after the compilation, we can use -R flag, e.g.:

fsim -R design.sv tb.sv

This feature is simular to Incisive/Xcelium. Notice that if the files are unmodified, subsequent run will not trigger a new compilation.

Metadata

Release files for fsim 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for fsim 0.0.5
File Interpreter ABI Platform
fsim-0.0.5-py3-none-manylinux1_x86_64.whl Python 3 none Linux glibc 2.5+ x86-64 Details
fsim-0.0.5-py3-none-macosx_11_0_x86_64.whl Python 3 none macOS 11.0+ x86-64 Details

Total release size: 96.5 MB

Release files / fsim-0.0.5-py3-none-manylinux1_x86_64.whl

Download URL fsim-0.0.5-py3-none-manylinux1_x86_64.whl
Size 94.2 MB
Tags Linux glibc 2.5+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8acac9820c927c896bf4e9e85f00ab39419f352e5c1fb7c1fd287bf81bddfe69
BLAKE2b-256 checksum
How to use checksums
2c3ede13aaa400f38a6b48abc7e2a5e63e3f073809c87cc2ce1064cb5e35302e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / fsim-0.0.5-py3-none-macosx_11_0_x86_64.whl

Download URL fsim-0.0.5-py3-none-macosx_11_0_x86_64.whl
Size 2.3 MB
Tags Python 3 macOS 11.0+ x86-64
SHA-256 checksum
How to use checksums
3b8968c35bbf29056c644f5e046ba530ec5d1d95868fca1431c307747062161c
BLAKE2b-256 checksum
How to use checksums
5c18d72746bf318e644502a7c9dc93ea36336b2bea9630be4066c98f4995f778
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for fsim 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page