SOC Design for Digital Surveillance System

39
SOC Design for Digital Surveillance System 2007/6/6 王王王

description

SOC Design for Digital Surveillance System. 2007/6/6 王逸竹. Outline. Digital video recording (DVR) system Surveillance application Features SOC design and challenge Architecture HW/SW partition issue Verification issue Summary. What is Digital Video Recorder (DVR). 取代傳統類比式閉路電視系統 - PowerPoint PPT Presentation

Transcript of SOC Design for Digital Surveillance System

Page 1: SOC Design for Digital Surveillance System

SOC Design for Digital Surveillance System

2007/6/6

王逸竹

Page 2: SOC Design for Digital Surveillance System

Outline

Digital video recording (DVR) system Surveillance application Features

SOC design and challenge Architecture HW/SW partition issue Verification issue

Summary

Page 3: SOC Design for Digital Surveillance System

What is Digital Video Recorder (DVR) 取代傳統類比式閉路電視系統

及時監看 , 錄影 回播

數位化 壓縮 , 保存 , 傳輸

Page 4: SOC Design for Digital Surveillance System

Market trend

Demand 國際恐怖事件頻傳 安全意識抬頭 對生活品質要求的提升

應用 交通要道 ( 車站 , 機場 ) 金融機構 工廠 社區住家

Page 5: SOC Design for Digital Surveillance System

安控市場成長趨勢

Page 6: SOC Design for Digital Surveillance System

DVR 市場成長趨勢

Page 7: SOC Design for Digital Surveillance System

Application examples

Surveillance 尋找車禍肇事者 紀錄事實 319 槍擊案 , 鎖定嫌疑犯 尋找特定事件 草山行館火災 , 燒毀主機 異地備份

Intelligent processing 辨識 ( 車牌 , 人臉 , 特殊行為 , 遺留物品 ) 計數 ( 車流量 , 人潮 ) 自動追蹤

Page 8: SOC Design for Digital Surveillance System

DVR system

Picture from: http://safeland.en.ec21.com/

Page 9: SOC Design for Digital Surveillance System

Market segment

High-end (group A) Stability High recording

speed

Low-end (group C) Reasonable prices Reasonable

recording quality

Picture from: http://www.asmag.com/

Page 10: SOC Design for Digital Surveillance System

PC-based v.s. standalone DVR

PC-based Standalone

flexibility high low

power high low

stability low high

UI complex friendly

cost high low

Page 11: SOC Design for Digital Surveillance System

Our DVR SOC

Target single chip for low-end DVR 可擴充 ( 串接 , 或外加 host CPU) 以實現 middle-end, high-

end DVR

Our strength Multimedia processing engines

First hardware MPEG-4 full-D1 encoder in Taiwan Analog/digital video processing

System know-how Customer’s requirement

Page 12: SOC Design for Digital Surveillance System

Key PadAlarm

Sensor

HDD

Monitor

Camera

4-ch DVR SOC

record

playback

Target product: 4-ch DVR

preview

Page 13: SOC Design for Digital Surveillance System

Extend product: 8/16-ch DVR

4-ch DVR SOC

4-ch DVR SOC

4-ch DVR SOC

4-ch DVR SOC

FPGA

video (quad or full)

bitstreamcommand

Key PadAlarm

Sensor

Monitor

HDD

Page 14: SOC Design for Digital Surveillance System

Extend product: Network DVR

4-ch DVR SOC

Network-enabled platform

Key PadAlarmHDD

LANWANWEB

Remote monitor

IP camera

NASCentral monitor

Page 15: SOC Design for Digital Surveillance System

Extent product: other types

Mobile DVR Compact size Shock-proof

POS DVR Overlap text (sale items or transaction data) and

video

Page 16: SOC Design for Digital Surveillance System

Design for DVR SOC

Page 17: SOC Design for Digital Surveillance System

Target specification (1)

4 cameras and microphone input MPEG-4 video codec

Resolution: half-D1 or CIF Audio codec (ADPCM) Triplex: preview + record + playback Display on TV / VGA

Full screen / quad display

Recording mode Manual / Scheduled / Alarm / Motion

Adjustable recording quality and frame rate Adjustable motion detection parameters

Page 18: SOC Design for Digital Surveillance System

Target specification (2)

Playback mode Search by recording list / time / motion Normal / pause / fast forward / fast rewind / A-B repeat

Support up to 2 HDD 1 HDD endless recording “HOT Swap” with 2 HDD

CF backup (AVI format)

Built-in OSD Built-in 8-bit Turbo 8051 MCU Host interface

Page 19: SOC Design for Digital Surveillance System

Block diagram

Page 20: SOC Design for Digital Surveillance System

Video in/out

Capture CCIR-656 format

Transform YCbCr422 interleave to YCbCr 420 planer transform

Decimation ½ horizontal sub-sample

Cropping De-interlace

Edge detection

Page 21: SOC Design for Digital Surveillance System

MPEG-4 encoder (1)

G ate count: 75K @ 27M Hz

ME

HyRISC

MEDM A

SRAMSRAMSRAM

MCBlock

EngineBitstream

UnitSDRAMC TRL

Off-chipSDRAM

Off-chipSDRAM

Off-chipSDRAM

RISC BUS (16-bit)

DATA BUS (32-bit)

SRAMSRAMFirmware

Page 22: SOC Design for Digital Surveillance System

MPEG-4 encoder (2)

Support MPEG-4 Simple Profile Encode 4-ch source as 4 independent streams Variable picture resolution

From 64*64 to 720*480 (16-pixel steps) Computation power

Real time encoding Full-D1 @ 30fps when operate at 54 MHz Flexible bit rate and frame rate control

Platform-based architecture Embedded HyRISC for global control, mode decision and encodi

ng algorithms Hardware accelerators for computation-extensive tasks

Page 23: SOC Design for Digital Surveillance System

MPEG-4 decoder (1)

HyRISC

DM A

SRAMSRAMSRAM

MCBlock

EngineVLD

SDRAMC TRL

Off-chipSDRAM

Off-chipSDRAM

Off-chipSDRAM

RISC BUS (16-bit)

DATA BUS (32-bit)

SRAMSRAMFirmware

Page 24: SOC Design for Digital Surveillance System

MPEG-4 decoder (2)

Support MPEG-4 Simple Profile without error resilience

Maximum output resolution Full-D1 (720x480 progressive), 30fps at 27MHz

Variable picture resolution 16x16 to 720x480

Support JPEG decode as well Auto recovery when decoding error

Page 25: SOC Design for Digital Surveillance System

File system (1)

Simple file system

HDD allocation Global table: disk

information Table1: recording

information Table 2: time index table Video data Backup area: Duplicate

tables

Global table

Table 1

Table 2

Video data

Backup area

HDD

Page 26: SOC Design for Digital Surveillance System

File system (2)

Special case Endless record HDD exception

當錄影時遇到壞軌 當放影時遇到壞軌 Index table 遇到壞軌

Page 27: SOC Design for Digital Surveillance System

System bus

High-speed bus 166 MHz Video data Multi-channel DM

A

Low-speed bus 27 MHz Bitstream, comm

and HDD, CF

Page 28: SOC Design for Digital Surveillance System

HW/SW partition

Software decision, system control, user command

Hardware computation-intensive task (ex: codec) regular operation (ex: DMA)

Example ( 放影 ): file-level 以上由 SW 處理, file-level 以下由 HW 處理 SW: 依播放時間搜尋檔案,計算播放起始位置,啟動相關硬

體模組 HW: 從硬碟中取出資料, 解碼, 播放

Page 29: SOC Design for Digital Surveillance System

Design Challenge (1)

SOC integration audio/video pre-processing/post-processing audio/video compression SDRAM controller OSD embedded RISC IDE IF flash memory controller

Page 30: SOC Design for Digital Surveillance System

Design Challenge (2)

Complexity real-time compression audio & video synchronization full-duplex recording & playback high speed SDRAM controller

video in + MPEG-4 codec + VGA display: 166M DW/s file system

Page 31: SOC Design for Digital Surveillance System

Design challenge (3)

Simulation is time-consuming Video pattern

Take 3 day for 1-sec behavior!! Many design cases Create behavior models to speed up simulation

We have developed about 30 models, but... Create model also takes some efforts And, what if the model is not qualified?

Page 32: SOC Design for Digital Surveillance System

Design challenge (4)

Hardware/Software co-design 不同的思維方式 Partition trade-off (large solution space)

Physical design Timing (ex: SDRAM) Testing

Page 33: SOC Design for Digital Surveillance System

Design challenge (5)

系統相容性 Camera HDD 嚴苛的環境

系統穩定性 Keep it simple and stupid…

Page 34: SOC Design for Digital Surveillance System

Verification challenges

Corner case 思考的盲點 Corner case maybe not easy to create Corner case maybe very very deep, need long

time to simulated it Ex: buffer overflow

球員兼裁判

Page 35: SOC Design for Digital Surveillance System

Design phase review

Overlap in specification/architecture phase and RTL-design phase; multiple design changes

SW development starting late in the project

RTL Closure Tape-Out

Specification & Architecture

Hardware Dev.

Software Dev.

Physical Design

Page 36: SOC Design for Digital Surveillance System

New design methodology/concept Design document

Confirm spec. as early as possible

System modelling ESL (Electronics System Level) Verify architecture as early as possible

Property check Assertion

Coverage functional coverage Assertion coverage

Page 37: SOC Design for Digital Surveillance System

Tape-OutRTL Closure

Time Savings

Quality

Architecture Closure

Specification& Architecture

Create Executable Specifications

Hardware Dev.

Software Dev.

Physical Design

New SOC design phase

Architecture closure Achieve a reduction # of RTL iterations Can perform concurrent HW and SW design Shorten the time it takes to get to golden RTL

Run SW on the architecture model

Page 38: SOC Design for Digital Surveillance System

Summary

Introduce digital video recorder system Present our DVR SOC design

What I have learned in this project From IP to SOC From design to verification From one to team

Page 39: SOC Design for Digital Surveillance System

Thank you