Skip to content
XS-MLVPPublic

About

xspcomm encapsulates the DPI-based digital circuit and provides various high-level language operation interfaces.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Repository files navigation

xcomm

PyPI Python CI License Wiki GitHub Stars

English | 中文

xcomm is a C++20 library for hardware simulation, providing four-state signals, port collections, clocks, expressions, temporal events, and functional coverage. Install the Python distribution as uc-xcomm and import it as xspcomm; bindings are also available for Java, Scala, Go, Lua, and JavaScript.

Get started

After installation, create and read a wide signal:

import xspcomm as xs

signal = xs.XData(128, xs.XData.InOut)
signal.value = (1 << 96) + 3
print(hex(signal.value))

The output is 0x1000000000000000000000003. Continue with the tutorial to advance a clock and wait for an event.

Documentation

English documentation · 完整中文文档

Report issues and suggestions through GitHub Issues. See LICENSE for licensing.

About

xspcomm encapsulates the DPI-based digital circuit and provides various high-level language operation interfaces.

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages