From 427a3939da459d6fb786a274ee04e28c950b71fd Mon Sep 17 00:00:00 2001 From: Max Köhler Date: Fri, 22 May 2020 22:01:13 +0200 Subject: fpga: lib: extend wb_spi ability to limit transmission length --- fpga/usrp3/lib/wb_spi/rtl/verilog/spi_defines.v | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'fpga') diff --git a/fpga/usrp3/lib/wb_spi/rtl/verilog/spi_defines.v b/fpga/usrp3/lib/wb_spi/rtl/verilog/spi_defines.v index 28b4f2fd3..2b10e68cb 100644 --- a/fpga/usrp3/lib/wb_spi/rtl/verilog/spi_defines.v +++ b/fpga/usrp3/lib/wb_spi/rtl/verilog/spi_defines.v @@ -62,12 +62,18 @@ `endif // -// Maximum nuber of bits that can be send/received at once. +// Maximum number of bits that can be send/received at once. // Use SPI_MAX_CHAR for fine tuning the exact number, when using // SPI_MAX_CHAR_32, SPI_MAX_CHAR_24, SPI_MAX_CHAR_16, SPI_MAX_CHAR_8. // -`ifndef SPI_MAX_CHAR_64 - `define SPI_MAX_CHAR_128 +`ifndef SPI_MAX_CHAR_8 + `ifndef SPI_MAX_CHAR_16 + `ifndef SPI_MAX_CHAR_32 + `ifndef SPI_MAX_CHAR_64 + `define SPI_MAX_CHAR_128 + `endif + `endif + `endif `endif //`define SPI_MAX_CHAR_64 //`define SPI_MAX_CHAR_32 -- cgit v1.2.3