Title: Camera Auto Focus
1Camera Auto Focus
Final Presentation, April 30th, 2007
Project Objective Design a low-power, small
autofocus chip for use in camera or other
hand-held device
- Group W1
- Tom Goff
- Dave Hwang
- Kate Killfoile
- Greg Look
- Design Manager Bowei Gai
2Agenda
- Market
- Algorithm
- Architecture
- Verification
- Layout
- Conclusion and questions
3The Market
4Target market
- Camera manufacturers
- Digital
- Video
- Security
- 82 million cameras expected to be sold in 2007
- 18 billion industry
5Autofocus methods
Active
Passive
Analyze image
Focus
6Passive vs. active
Pros Cons
Active Able to focus in the dark Focus with little contrast High power Fooled by reflection and interference Limited range
Passive Faster and more accurate Bigger range Less power Hard to fool Cannot focus in the dark High contrast needed
7Where our chip fits in
Our Chip
18-525 Implementation
8Why hardware?
- Software solutions are slow
- Software rule logic uses memory
- Less room for pictures!
- Software computation draws power
- Shorter battery life
9Why our chip?
- Adaptability to any camera and lens
- No calibration methods needed
- Large market
- Most commercial digital cameras use passive focus
- Customizable
- Rule values can be adjusted
10Current industry
- Size
- 10 mm x 10mm x 5 mm dimensions
- Power
- 5 mW minimum industry standard
- Speed
- Only need to be faster than motor
- High end digital cameras 60 fps
- High end video camera 3000 fps
- Speed floor at 3 kHz
11Design goals
- Size Goal 100,000 um2
- Power Goal lt 5 mW
- Speed Goal 100 kHz
12Our Algorithm
13Our algorithm
- 2 main inputs to our chip
di change in sharpness
ag Average grey level
14Our algorithm
weighted constant
match
Rule 1
weighted constant
ag
match
Rule 2
Range of di and ag
di
weighted constant
match
Rule 6
15Translation to hardware
- Floating point multiplier and adder
- Series of summed products
- Internal floating point format
- Only used 1 multiplier and adder
- Benefit reduced size
- Cost reduced speed
- Low power components
- Low power full adder
- Pass logic
16Architecture
17System architecture
18Floorplan evolution
19Signal flow
20SERF full adder
- 10 transistors
- Proven low-power design
- Weak output in some cases
21Carry-save multiplier
- Fewer full adders
- Compact design (0.437 density)
- Speed not an issue
22Floating point adder
- Handles de-normalized numbers
- Does not round
- Determines leading zeroes with combinational logic
23Floating point adder
24Floating point multiplier
- Reuses some submodules from the adder
- Three inputs means savings on exponent
combination and normalization logic
25Floating point multiplier
Norm 2
Norm 1
26Verification
27Verification procedure
C implementation
Verilog
28Exhaustive testing
- Compared C implementation with Verilog
0.000724 error rate!
29Layout verification
- Hierarchical testing of modules
- Compared against expected schematic output
- Edge cases
- Generic cases
ag
di
30Layout
31Layer masks
32Specifications
Inputs Inputs
di 10 bit
ag 8 bit
enable 1 bit
reset 1 bit
clk 1 bit
Outputs Outputs
motor_out 10 bit
Area 206 x 187 38,689 µm2
of transistors pmos 4,948 nmos 5,846 Total 10,794
Density 0.279
Aspect ratio 1.099
Clock speed 666 MHz
Throughput 10 MHz (max speed)
Power 0.977 mW
33 pins total
33Conclusion
- Advise caution with shared libraries
- Floor planning is super important
- Test, test, and more test at every stage
- Solve problems early
34Questions?
35Global simulation
36ag simulation
37di simulation