google / google/xls

[enhancement] trace_fmt should support formatting u8[N] as strings

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

currently printing a `u8[N]` w/ trace_fmt and `{}` result in printing the underlying u8 array, making it challening to display data-driven trace labels in table-based test function.

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

none that I know of.

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

ideally we have a new format directive `{:s}` that interpret and print the underlying `u8[N]` as a string

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.