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

Fix ad7124 #1521

Merged
merged 3 commits into from
Dec 4, 2024
Merged
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
8 changes: 8 additions & 0 deletions projects/ad7124_asdz/de10nano/system_qsys.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ 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}

# change sys spi ref clock to 80MHz

remove_connection sys_clk.clk/sys_spi.clk
remove_connection sys_clk.clk_reset/sys_spi.reset

add_connection sys_dma_clk.clk sys_spi.clk
add_connection sys_dma_clk.clk_reset sys_spi.reset

#system ID
set_instance_parameter_value axi_sysid_0 {ROM_ADDR_BITS} {9}
set_instance_parameter_value rom_sys_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