diff --git a/docs/projects/ad7124_asdz/index.rst b/docs/projects/ad7124_asdz/index.rst index ee2311d432..27e0ae5e49 100644 --- a/docs/projects/ad7124_asdz/index.rst +++ b/docs/projects/ad7124_asdz/index.rst @@ -92,7 +92,7 @@ The Software GPIO number is calculated as follows: .. list-table:: :widths: 25 25 25 25 - :header-rows: 2 + :header-rows: 3 * - GPIO signal - Direction @@ -106,6 +106,10 @@ The Software GPIO number is calculated as follows: - INPUT - 32 - 0 + * - spi_miso + - INPUT + - 33 + - 1 Building the HDL project ------------------------------------------------------------------------------- diff --git a/projects/ad7124_asdz/de10nano/system_qsys.tcl b/projects/ad7124_asdz/de10nano/system_qsys.tcl index 599c2208c6..28d1ea4401 100755 --- a/projects/ad7124_asdz/de10nano/system_qsys.tcl +++ b/projects/ad7124_asdz/de10nano/system_qsys.tcl @@ -11,8 +11,9 @@ set_instance_parameter_value sys_gpio_in {edgeType} {FALLING} set_instance_parameter_value sys_gpio_in {generateIRQ} {true} set_instance_parameter_value sys_gpio_in {irqType} {EDGE} -set_instance_parameter_value sys_spi {clockPolarity} {0} -set_instance_parameter_value sys_spi {targetClockRate} {20000000.0} +set_instance_parameter_value sys_spi {targetClockRate} {5000000.0} +set_instance_parameter_value sys_spi {clockPhase} {1} +set_instance_parameter_value sys_spi {clockPolarity} {1} #system ID set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9} diff --git a/projects/ad7124_asdz/de10nano/system_top.v b/projects/ad7124_asdz/de10nano/system_top.v index c1df57ea3f..047f5baaa3 100755 --- a/projects/ad7124_asdz/de10nano/system_top.v +++ b/projects/ad7124_asdz/de10nano/system_top.v @@ -139,7 +139,7 @@ module system_top ( // adc control gpio assign - assign gpio_i[63:33] = gpio_o[63:33]; + assign gpio_i[63:34] = gpio_o[63:34]; assign gpio_i[31:15] = gpio_o[31:15]; // bd gpio @@ -148,6 +148,7 @@ module system_top ( assign gpio_bd_o[7:0] = gpio_o[7:0]; assign gpio_i[32] = sync_err; + assign gpio_i[33] = spi_miso; // IO Buffers for I2C