util_dacfifo_bypass: The FIFO in this module is for CDC only, no need to have a large depth
parent
5b5218250b
commit
6be4658d49
|
@ -65,7 +65,7 @@ module util_dacfifo_bypass #(
|
|||
|
||||
localparam MEM_RATIO = (DMA_DATA_WIDTH > DAC_DATA_WIDTH) ? DMA_DATA_WIDTH/DAC_DATA_WIDTH :
|
||||
DAC_DATA_WIDTH/DMA_DATA_WIDTH;
|
||||
localparam DAC_ADDRESS_WIDTH = 10;
|
||||
localparam DAC_ADDRESS_WIDTH = 4;
|
||||
localparam DMA_ADDRESS_WIDTH = (MEM_RATIO == 1) ? DAC_ADDRESS_WIDTH :
|
||||
(MEM_RATIO == 2) ? ((DMA_DATA_WIDTH > DAC_DATA_WIDTH) ? (DAC_ADDRESS_WIDTH - 1) : (DAC_ADDRESS_WIDTH + 1)) :
|
||||
(MEM_RATIO == 4) ? ((DMA_DATA_WIDTH > DAC_DATA_WIDTH) ? (DAC_ADDRESS_WIDTH - 2) : (DAC_ADDRESS_WIDTH + 2)) :
|
||||
|
|
Loading…
Reference in New Issue