google / google/xls

DSLX: `typeof` specifier?

Open
#582 2 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

Being able to specify a value or type in terms of another value's type might be handy.

```
pub const BAR = u32:0;
pub const FOO = typeof(BAR):3;
```

When dealing with imported symbols from other sources (say, imported Verilog types), this might make parameterized implementation easier.

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.