yupferris / kaze

An HDL embedded in Rust.
Apache License 2.0
194 stars 9 forks source link

Add `lsb` and `msb` convenience methods for `Signal`s #35

Open yupferris opened 3 years ago

yupferris commented 3 years ago

It's kindof annoying to use x.bit(0) or x.bit(x.bit_width() - 1) (or similar); .lsb() or .msb() are shorter/clearer and are well-established terms.