google / google/xls

[enhancement] Make JITed simulation more accessible without C++ tests

Open
#1,982 0 comments 0 reactions 0 assignees View on GitHub
enhancement jit
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

### What's hard to do? (limit 100 words)

Many test procs cannot be JITed because certain operations are failing in IR conversion:
* send inside a for loop
* iteration over enumerates
* operations on arrays of channels

This limitation prevents changing the `evaluator` in DSLX tests to `ir-jit`. It would be useful to either enable JIT compilation for those cases or allow combining a DSLX driver with the JITed proc, eliminating the need for dedicated C++ tests.

### Current best alternative workaround (limit 100 words)

Use C++ test to examine the JITed procs by driving them in C++

### Your view of the "best case XLS enhancement" (limit 100 words)

It would be useful to allow JITing the test procs and change the test evaluator freely. Another interesting approach would be to allow for combining DSLX interpreter driver (test proc) with the JITed proc (dut). Both those additions should result in a faster simulation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.