From spi_top.v
ifdef SPI_CTRL_TX_NEGEDGE assign tx_negedge = 1'b1;else assign tx_negedge = 1'b1; `endif
ifdef SPI_CTRL_TX_NEGEDGE assign tx_negedge = 1'b1;
The second case is supposed to be a 1'b0.