abs-tudelft / abs-tudelft/tydi
Union semantics and variant enumeration order for tag bits
- Langage dominant
- Rust
- Étoiles
- 15
- Forks
- 5
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Currently, the spec says:
https://abs-tudelft.github.io/tydi/specification/logical.html#union-semantics
```
The "tag" field is used to represent which variant is being represented, by means of a zero-based index encoded as an unsigned binary number.
```
Do we want to allow custom tag enumeration of union variants?
If yes, we should add this to the spec.
If no, we should make explicit that the current text refers to the field index in the union declaration.
In the example, the tag enumeration is done by order of variant appearance in the union declaration, which seems most logical and straightforward, and it is similar to what most programming languages do as far as I am aware.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.