Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ad7124: Tie MISO to GPIO #1484

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/projects/ad7124_asdz/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -106,6 +106,10 @@ The Software GPIO number is calculated as follows:
- INPUT
- 32
- 0
* - spi_miso
- INPUT
- 33
- 1

Building the HDL project
-------------------------------------------------------------------------------
Expand Down
5 changes: 3 additions & 2 deletions projects/ad7124_asdz/de10nano/system_qsys.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
3 changes: 2 additions & 1 deletion projects/ad7124_asdz/de10nano/system_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
Loading