schang412 / cocotbext-spi

MIT License
20 stars 10 forks source link

SpiSlave, _shift: improve exception raising #11

Closed Scafir closed 1 year ago

Scafir commented 1 year ago

This causes the SpiFrameError to be raised as soon as possible. In turns, it allows to model devices that do not have a precise frame width by returning _transaction when an error is catched.

This MR follows #10, which was closed due to a flawed approach.