2015-06-26 09:04:19 +00:00
|
|
|
# sys bram (use only when dma is not capable of keeping up).
|
|
|
|
# generic fifo interface - existence is oblivious to software.
|
2019-01-22 13:17:02 +00:00
|
|
|
proc ad_dacfifo_create {dac_fifo_name dac_data_width dac_dma_data_width dac_fifo_address_width} {
|
2015-06-26 09:04:19 +00:00
|
|
|
|
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!"]
|
|
|
|
}
|
2016-08-16 16:05:56 +00:00
|
|
|
|
2019-01-22 13:29:29 +00:00
|
|
|
ad_ip_instance util_dacfifo $dac_fifo_name
|
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.DATA_WIDTH $dac_data_width
|
|
|
|
ad_ip_parameter $dac_fifo_name CONFIG.ADDRESS_WIDTH $dac_fifo_address_width
|
2017-02-27 20:53:42 +00:00
|
|
|
|
2019-01-22 13:17:02 +00:00
|
|
|
}
|