Update system_top.v

Add a comment that the spi CS decoding is tied to a setting in the device tree.
main
aholtzma 2020-10-28 17:01:32 -04:00 committed by Adrian Costina
parent 78b2ae02a1
commit 2ff5420630
1 changed files with 2 additions and 1 deletions

View File

@ -158,8 +158,9 @@ module system_top (
wire spi_mosi; wire spi_mosi;
wire spi0_miso; wire spi0_miso;
// The csn bus from the SPI controller needs to be decoded as
// is-decoded-cs = <1> is set in the device tree.
reg [7:0] spi_3_to_8_csn; reg [7:0] spi_3_to_8_csn;
always @(*) begin always @(*) begin
case (spi_csn) case (spi_csn)
3'h0: spi_3_to_8_csn = 8'b11111110; 3'h0: spi_3_to_8_csn = 8'b11111110;