Browse Source

cores/spi_flash: Use unregistered input pintype for output only

This prevents any shared IO site conflict on shared pins.

Fixes #8

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut 5 years ago
parent
commit
5a6d970a4c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cores/spi_flash/rtl/spi_flash_reader.v

+ 3 - 3
cores/spi_flash/rtl/spi_flash_reader.v

@@ -208,7 +208,7 @@ module spi_flash_reader (
 	// MOSI output
 		// Use DDR output to be half a cycle in advance
 	SB_IO #(
-		.PIN_TYPE(6'b010000),
+		.PIN_TYPE(6'b010001),
 		.PULLUP(1'b0),
 		.NEG_TRIGGER(1'b0),
 		.IO_STANDARD("SB_LVCMOS")
@@ -238,7 +238,7 @@ module spi_flash_reader (
 	// Chip Select
 		// Use DDR output to be half a cycle in advance
 	SB_IO #(
-		.PIN_TYPE(6'b010000),
+		.PIN_TYPE(6'b010001),
 		.PULLUP(1'b0),
 		.NEG_TRIGGER(1'b0),
 		.IO_STANDARD("SB_LVCMOS")
@@ -254,7 +254,7 @@ module spi_flash_reader (
 		// Use DDR output to have rising edge of SPI_CLK with
 		// the rising edge of our internal clock
 	SB_IO #(
-		.PIN_TYPE(6'b010000),
+		.PIN_TYPE(6'b010001),
 		.PULLUP(1'b0),
 		.NEG_TRIGGER(1'b0),
 		.IO_STANDARD("SB_LVCMOS")