VoltageMonitoring: wrong bit written to the AD7888's control register
In VoltageMonitoring module the data sent to the SPI master is the number of the input channel that will be converted next {1'b0, WordCount_b4[3:0], 3'b000, 8'h00}
(VoltageMonitoring.sv line 195). I noticed that when we read the last channel, the number of channel we send to read next is WordCount_b4[3:0]=0x8
, so the data SPI master sends is {1'b0, 4'b1000, 3'b000, 8'h00}
and the AD7888's datasheet says that the bit 6 of control register has to be 0 for correct operation. I didn't notice that this gives the wrong results, but it might be good to correct it.