common/intel: Add util_adcfifo integration script

main
Istvan Csomortani 2019-09-17 11:19:55 +01:00 committed by Laszlo Nagy
parent 3041e77659
commit f0b753321a
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
proc ad_adcfifo_create {adc_fifo_name adc_data_width dma_data_width adc_fifo_address_width} {
if {$adc_data_width != $dma_data_width} {
return -code error [format "ERROR: util_adcfifo adc/dma widths must be the same!"]
}
add_instance $adc_fifo_name util_adcfifo
set_instance_parameter_value $adc_fifo_name {DMA_ADDRESS_WIDTH} $adc_fifo_address_width
set_instance_parameter_value $adc_fifo_name {ADC_DATA_WIDTH} $adc_data_width
set_instance_parameter_value $adc_fifo_name {DMA_DATA_WIDTH} $dma_data_width
}