Appendix B - Fifo Depth Based On System Assessment - Hand Held Products IT4000 Integration Manual

Imageteam 4x00 series
Hide thumbs Also See for IT4000:
Table of Contents

Advertisement

B
FIFO Depth Based on System Assessment
The depth of the FIFO for the image capture system with DMA to main system memory is dependent on many factors that govern
the system performance, and may be different for every design. FIFO depth must equal the number of memory bytes needed
to store all image data acquired during the longest system delay (latency) that restricts DMA access to the bus, based on an
image acquisition rate of 13.5MB/s.
The latencies for systems vary for many reasons. You need to understand the system operation and delays before setting the
optimum depth, or be able to reconfigure the depth as the latencies are identified. The following is a list of system criteria
(reasons) that directly affect the FIFO depth decision. The longest possible system latency may be the total of any or all of these
delay sources.
Operating System
Interrupt Service
Routine Latency
Bus Turnaround
DMA Startup
Other DMA Transfers The time to complete other DMA transfers that may have a higher priority than the image transfer
Memory Startup
Timing
The delay sources listed above are just a few of the basic latency sources of any given system. Each system has its own set of
characteristics, design criteria and design choices that affect the total system latency. You have to identify the behavior of the
design at hand and size the FIFO accordingly.
IMAGETEAM™ 4X00 Series Integration Manual
FIFO_Depth(bytes) = T
The overhead of the OS plays a major role in determining bus and DMA availability to move data
from the FIFO to main memory.
Typically an ISR does not allow other activities, like DMA, to occur while the interrupt is being
handled. This happens in a system running high priority real time interfaces with IRQs.
This is the time it takes the processor to release the bus from a bus request, or to service a DMA
request. This includes the time to complete the current instruction or task, and all memory timing
(RAM or ROM) associated with fetching code and reading or writing data.
The time it takes the DMA to initialize and begin moving the image data.
DMA. For example, a DMA transfer to avoid a serial buffer overflow.
The access time (startup time for DRAM) to the first transfer of image data.
T
+ T
+ T
IRQ/ISR
OS
DMA_Seriall
/ T
sys
pix
+ T
+ T
+ T
= (T
BTA
DMASu
MSuT
x FIFO_Depth)
pix
B - 1

Advertisement

Table of Contents
loading

Table of Contents