Skip to content

Commit

Permalink
projects: ad469x_fmc: Fixed findings for de10nano
Browse files Browse the repository at this point in the history
Signed-off-by: Liviu 'Ceshu' Adace <[email protected]>
  • Loading branch information
ladace committed Oct 30, 2024
1 parent 568b4f5 commit c1d1b6b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/ad469x_fmc/common/ad469x_qsys.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ set_instance_parameter_value spi_engine_offload_0 {NUM_OF_SDI} {1}

add_instance ad469x_trigger_gen axi_pwm_gen
set_instance_parameter_value ad469x_trigger_gen {N_PWMS} {1}
set_instance_parameter_value ad469x_trigger_gen {PULSE_0_PERIOD} {$sampling_cycle}
set_instance_parameter_value ad469x_trigger_gen {PULSE_0_PERIOD} {160}
set_instance_parameter_value ad469x_trigger_gen {PULSE_0_WIDTH} {1}

# exported interface
Expand Down
20 changes: 19 additions & 1 deletion projects/ad469x_fmc/de10nano/system_project.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,25 @@ set QUARTUS_PRO_ISUSED 0
source ../../../scripts/adi_env.tcl
source ../../scripts/adi_project_intel.tcl

adi_project ad469x_fmc_de10nano
# get_env_param retrieves parameter value from the environment if exists,
# other case use the default value
#
# Use over-writable parameters from the environment.
#
# e.g.
# make RX_LANE_SPI_4WIRE=0
# make RX_LANE_SPI_4WIRE=1

# Parameter description:
#
# SPI_4WIRE - Defines if CNV signal is linked to PWM or to SPI_CS
# 0 - CNV signal is linked to PWM
# 1 - CNV signal is linked to SPI_CS


adi_project ad469x_fmc_de10nano [list \
SPI_4WIRE [get_env_param SPI_4WIRE 0] \
]

source $ad_hdl_dir/projects/common/de10nano/de10nano_system_assign.tcl

Expand Down
1 change: 1 addition & 0 deletions projects/ad469x_fmc/de10nano/system_top.v
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ module system_top #(
.ad469x_spi_resetn_reset_n (spi_resetn),
.ad469x_spi_clk_clk (spi_clk_s),
.ad469x_spi_cnv_if_pwm (ad469x_spi_cnv_s),
.ad469x_spi_trigger_if_pwm(spi_trigger),
.sys_spi_MISO (1'b0),
.sys_spi_MOSI (),
.sys_spi_SCLK (),
Expand Down

0 comments on commit c1d1b6b

Please sign in to comment.