Amazing work on the SPI lib, thank you so much for sharing this.
I have the Go Board and trying to interface the ADS1118 16Bits ADC for learning (that is the only SPI module I have on hand atm). I'm having great difficulties understanding how to send 2 bit via MOSI using a MSB first and LSB second approach (see first visual from datasheet). Otherwise the code works fantastically well in SPI Mode 1. I'm using the Verilog code.
![TX cycle 16-bit](https://user-images.githubusercontent.com/19387951/68201569-f80db480-fffc-11e9-8e89-56e447dce2d1.jpg)
I think I have everything else setup correctly with the exception of this MSB first and LSB second. I wish I'd have your knowledge of Verilog to be able to amend your code myself but that's not the case. Therefore I'd be very grateful if you could point me in the right direction and I'll see what I can do by myself.
![TX cycle 16-bit_msbLsb2](https://user-images.githubusercontent.com/19387951/68202526-de6d6c80-fffe-11e9-95d8-15ef18562c8f.jpg)
I've tried sending below, but it takes on the last 8bits as seen from the scope decoder.
.i_TX_Byte(16'b1000111110010011), // Can stuff with zeroes
*I've also changed all references to TX to 16bits also [15:0], without luck
Sure this is not the way to do it therefore any help or pointers would be much appreciated, really hoping to make this works.
Thanks