matthijsr / til-vhdl

A prototype toolchain for demonstrating and exploring an intermediate representation for defining components using the Tydi interface specification.
Apache License 2.0
3 stars 1 forks source link

Use vectors even for single bit data, index, strobe and last signals #133

Closed matthijsr closed 1 year ago

matthijsr commented 1 year ago

Instead of automatically converting 1-bit signals to std_logic, instead use std_logic_vector(0 downto 0).

This makes it easier to support generic parameters for other Stream parameters, and makes it easier to write templates for generic Streams.

It's easier to work with a vector when you expect a single bit, than it is to work with a single bit when you otherwise expect a vector.