usdrx1_spi: Modified module to be compatible with altera

main
Adrian Costina 2014-09-16 15:53:11 -04:00
parent de0edc2083
commit d4db53c3b0
1 changed files with 11 additions and 20 deletions

View File

@ -117,23 +117,14 @@ module usdrx1_spi (
// io buffers
IOBUF i_iobuf_fout_sdio (
.T (spi_enable_s),
.I (spi_mosi),
.O (spi_fout_miso_s),
.IO (spi_fout_sdio));
assign spi_fout_miso_s = spi_fout_sdio;
assign spi_fout_sdio = (spi_enable_s == 1'b1) ? 1'bz : spi_mosi;
IOBUF i_iobuf_afe_sdio (
.T (spi_enable_s),
.I (spi_mosi),
.O (spi_afe_miso_s),
.IO (spi_afe_sdio));
assign spi_afe_miso_s = spi_afe_sdio;
assign spi_afe_sdio = (spi_enable_s == 1'b1) ? 1'bz : spi_mosi;
IOBUF i_iobuf_clk_sdio (
.T (spi_enable_s),
.I (spi_mosi),
.O (spi_clk_miso_s),
.IO (spi_clk_sdio));
assign spi_clk_miso_s = spi_clk_sdio;
assign spi_clk_sdio = (spi_enable_s == 1'b1) ? 1'bz : spi_mosi;
endmodule