diff options
| author | Chick Markley | 2021-04-27 12:17:17 -0700 |
|---|---|---|
| committer | GitHub | 2021-04-27 12:17:17 -0700 |
| commit | 6deb379b1d8bafc81a605f60476bf0f24eac60b4 (patch) | |
| tree | b12c7dfaea1948ec9a7fa2f389db0699b3d1daf4 /project | |
| parent | 23b3fe8a6a2db92599bb0775626425056d47d1de (diff) | |
Introduce VecLiterals (#1834)
This PR provides for support for Vec literals. They can be one of two forms
Inferred:
```
Vec.Lit(0x1.U, 0x2.U)
```
or explicit:
```
Vec(2, UInt(4.W)).Lit(0 -> 0x1.U, 1 -> 0x2.U)
```
- Explicit form allows for partial, or sparse, literals.
- Vec literals can be used as Register initializers
- Arbitrary nesting (consistent with type constraints is allowed)
Diffstat (limited to 'project')
0 files changed, 0 insertions, 0 deletions
