SPRADC4 june   2023 AM62A3 , AM62A3-Q1 , AM62A7 , AM62A7-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2AM62A Processor
  6. 3Vision Pre-processing Accelerator (VPAC)
    1. 3.1 Vision Imaging Sub-System (VISS)
    2. 3.2 Lens Distortion Correction (LDC) Block
    3. 3.3 Multi-Scalar (MSC) Block
  7. 4Deep Learning Acceleration
  8. 5Camera Mirror System Data Flow and Latency
  9. 6End-to-End Functional Safety
  10. 7Example Demonstration
    1. 7.1 Hardware Equipment
    2. 7.2 Software Components
    3. 7.3 Latency Measurement
    4. 7.4 Future Improvement on Latency
  11. 8Summary
  12. 9References

Camera Mirror System Data Flow and Latency

In a camera mirror system, the image data from the camera typically goes through the CSI-2 RX interface, ISP, deep learning engine, and finally to the display. Figure 5-1shows the data flow on the AM62A device.

GUID-20230607-SS0I-NVZN-T12X-JMTHJ2MRWGXV-low.svgFigure 5-1 Typical Data Flow of a Camera Mirror System

For camera mirror applications, the latency from camera to display (that is, the so-called glass-to-glass latency) must be as small as possible. Every block in the data flow contributes to the latency. The AM62A SoC has the following differentiating features that can achieve optimal latency:

  • High throughput ISP: each of the three blocks of VPAC3L can process 1 pixel per clock cycle, up to 300MP/s after accounting for overhead.
  • ISP on-the-fly mode: when operating in this mode, VISS processes the camera data on the fly, without waiting for a full frame of data to be available.
  • High performance deep learning accelerator: the C7x, MMA deep learning accelerator has 2 TOPS processing capability.
  • DDR subsystem supports up to 3733 MT/s.

Table 5-1 shows an exemplary analysis of the latency accumulated block after block in the data path shown in Figure 5-1. A 2.1MP (1936 × 1100) sensor running at 60 fps is used for the analysis. The latency introduced by each block is estimated as the following:

  • At 60 fps, the frame duration is 16.67 ms.
  • This analysis assumes VISS running in memory-to-memory mode instead of on-the-fly mode. Therefore, VISS has to wait until a whole frame is available before it starts processing.
  • The processing time for each of VISS, LDC, and MSC is estimated as 1936 × 1100 Pixels / 300MP/s = 7 ms. Configuration time for each block is considered as 1 ms to be conservative. Therefore, total latency is about 8 ms for each block.
  • Deep learning latency is estimated to be 8 ms according to Section 4.
Table 5-1 Camera to Display Latency Estimate
Sensor
1936 × 1100 at 60 fps
Frame 0
CSI2-RXFrame 0
VISSFrame 0
LDCFrame 0
MSCFrame 0
Deep LearningFrame 0
DisplayFrame 0
Time (ms)016.6724.6732.6740.6748.6765.33

As shown in this analysis, the total latency of the data flow shown in Figure 5-1 is about 65ms, which is adequate for a typical camera mirror system.