pluto_hdl_adi/projects/common/intel/dacfifo_qsys.tcl

18 lines
711 B
Tcl
Raw Normal View History

###############################################################################
## Copyright (C) 2017-2023 Analog Devices, Inc. All rights reserved.
### SPDX short identifier: ADIBSD
###############################################################################
2017-03-01 20:52:07 +00:00
proc ad_dacfifo_create {dac_fifo_name dac_data_width dac_dma_data_width dac_fifo_address_width} {
2019-01-22 13:29:29 +00:00
if {$dac_data_width != $dac_dma_data_width} {
return -code error [format "ERROR: util_dacfifo dac/dma widths must be the same!"]
}
2017-03-01 20:52:07 +00:00
add_instance $dac_fifo_name util_dacfifo
2019-01-22 13:29:29 +00:00
set_instance_parameter_value $dac_fifo_name {ADDRESS_WIDTH} $dac_fifo_address_width
set_instance_parameter_value $dac_fifo_name {DATA_WIDTH} $dac_data_width
2017-03-01 20:52:07 +00:00
}
2017-03-01 20:52:07 +00:00