OsvvmLibraries icon indicating copy to clipboard operation
OsvvmLibraries copied to clipboard

SPI Interfaces Limited to 8bit words

Open SkydiverTricky opened this issue 10 months ago • 1 comments

The SPI Interfaces in OSVVM are locked to 8 bit byes for transmitting over SPI:

https://github.com/OSVVM/SPI_GuyEschemann/blob/77d1e30c494d0e6032918cde70c179a5b575976a/src/SpiTbPkg.vhd

It is pretty common in SPI interfaces to use an interface that is not a multiple of bytes - see this chip for example - it uses 18 bit words.

https://www.analog.com/media/en/technical-documentation/data-sheets/AD7674.pdf

Ideally, the SPIRecType could simply keep the word size open, so that the size is set either by a generic on the Controller/Peripheral entity, or by using the word size of the DataToModel/DataFromModel record when the transaction interface is connected to the VC.

SkydiverTricky avatar Jan 03 '25 11:01 SkydiverTricky