From e2df6b75c2c80ed594be7e947b278b0aa9f94876 Mon Sep 17 00:00:00 2001 From: Adrian Costina Date: Wed, 13 Jun 2018 15:41:55 +0300 Subject: [PATCH] motcon2_fmc: Sync transfer start for the current monitor DMAs There are a maximum of 3 channels enabled for the path, sync start is required --- projects/motcon2_fmc/common/motcon2_fmc_bd.tcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/motcon2_fmc/common/motcon2_fmc_bd.tcl b/projects/motcon2_fmc/common/motcon2_fmc_bd.tcl index 5343a36a6..8dc2b47b1 100644 --- a/projects/motcon2_fmc/common/motcon2_fmc_bd.tcl +++ b/projects/motcon2_fmc/common/motcon2_fmc_bd.tcl @@ -124,6 +124,7 @@ ad_ip_parameter current_monitor_m1_dma CONFIG.DMA_2D_TRANSFER 0 ad_ip_parameter current_monitor_m1_dma CONFIG.CYCLIC 0 ad_ip_parameter current_monitor_m1_dma CONFIG.DMA_AXI_PROTOCOL_DEST 0 + ad_ip_parameter current_monitor_m1_dma CONFIG.SYNC_TRANSFER_START true # data packer motor 1 # ad_ip_instance util_cpack current_monitor_m1_pack @@ -138,6 +139,7 @@ ad_ip_parameter current_monitor_m2_dma CONFIG.DMA_2D_TRANSFER 0 ad_ip_parameter current_monitor_m2_dma CONFIG.CYCLIC 0 ad_ip_parameter current_monitor_m2_dma CONFIG.DMA_AXI_PROTOCOL_DEST 0 + ad_ip_parameter current_monitor_m2_dma CONFIG.SYNC_TRANSFER_START true # data packer motor 2 ad_ip_instance util_cpack current_monitor_m2_pack ad_ip_parameter current_monitor_m2_pack CONFIG.NUM_OF_CHANNELS 4 @@ -223,6 +225,7 @@ ad_connect current_monitor_m1/vbus_o current_monitor_m1_pack/adc_data_2 ad_connect current_monitor_m1_pack/adc_data current_monitor_m1_dma/fifo_wr_din ad_connect current_monitor_m1_pack/adc_valid current_monitor_m1_dma/fifo_wr_en + ad_connect current_monitor_m1_pack/adc_sync current_monitor_m1_dma/fifo_wr_sync ad_connect current_monitor_m1_pack/adc_enable_3 GND ad_connect current_monitor_m1_pack/adc_valid_3 GND @@ -252,6 +255,7 @@ ad_connect current_monitor_m2/vbus_o current_monitor_m2_pack/adc_data_2 ad_connect current_monitor_m2_pack/adc_valid current_monitor_m2_dma/fifo_wr_en ad_connect current_monitor_m2_pack/adc_data current_monitor_m2_dma/fifo_wr_din + ad_connect current_monitor_m2_pack/adc_sync current_monitor_m2_dma/fifo_wr_sync ad_connect current_monitor_m2_pack/adc_enable_3 GND ad_connect current_monitor_m2_pack/adc_valid_3 GND