google / google/xls

[enhancement] Make an easy path to add DSLX models to a DUT

Open
#1,638 1 comment 0 reactions 0 assignees View on GitHub
enhancement
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)

If you have a DUT proc, you might want to use a DSLX model (ex: a memory model) and attach it to some channels in the DUT. This is technically possible, but it's a fair amount of toil. You have to manually figure out how to do the binding, you need to deal w/ some templating or careful ir conversion invocation to deal with parameterization, and then you need to manipulate channels so everything actually works.

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

- Write C++ models and model stuff outside of the proc runtime
- Manually invoke IR conversion and manipulate the package

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

#889 and #864 give some of the core features needed, and then a top-level API that does the binding of channels by name.

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.