google / google/xls

[enhancement] DSLX tests should be able to set/view proc state

Open
#1,527 4 comments 0 reactions 0 assignees View on GitHub
dslx enhancement testing 🧦 sox
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)

In writing DSLX tests, it is desirable to

Inspect the state of an individual proc so that architectural state can be observed

Inject/set the proc state so that the initial state can be set without going through a long input sequence to get to the desired state.

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

Current workaround is to write the test in C++ which has access to the state

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

Provide functionality akin to:

```
proc a_test {
config ( ...) {
let X = spawn A();
let Y = spawn B();
}

next () {
// < run test>
assert_eq(X.state.val0, Y.state.val1);
}
}
```

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.