COA Lab Project (2016-17)
The LNMIIT, Jaipur
Digital Single Lens Reflex
Camera (DSLR)
Ashish Karel (15UCS027)
Ayush Soral (15UCS031)
Nitin Chaudhary (15UCS088)
Pradyumn Agrawal (15UCS096)
Introduction
● We are building an Instruction Set
Architecture for a “DSLR Camera”. We
can access the images kept in gallery
and delete them.
● We are developing it for a 16 - bit
machine.
Functions
● ISO :- ISO sensitivity is a measure of the camera's ability to
capture light.
● Aperture : - Aperture controls the brightness of the image
that passes through the lens and falls on the image sensor.
● Shutter Speed : - Shutter speed is a measurement of the
time the shutter is open.
● Manual Focus : - Manual Focus (MF) is the system that
manually adjusts camera focus.
● Flash : - Used in absence of light to brighten the object.
● Movie Mode : - Display the image on the screen live.
● Gallery : - Display the images clicked by the camera.
Functions
● Zoom : - Zoom in/out the image.
● Click Pic : - To take a picture.
● Modes : - Various modes to automatically set few settings
of camera according the mode. E.g. Panorama, Landscape,
etc.
● Power : - Switch On/Off the camera.
Memory Model
▪ Cell Size : 16 bits
▪ Little Endian
▪ Aligned Memory Instructions
Registers
▪We will be using General as well as
Special Registers.
▪We are using 16 registers.
▪Special Purpose Registers :
Program Counter
Instruction Register
Flag Register
Instruction Format
● Zero Operand
- Halt HLT
- Flash FLS
- ClickPic CLP
- MovieMode MME
- Power POW
Instruction Format
▪ Single Operand
▪ Shutter Speed SHS
▪ ISO ISO
▪ Zoom ZOM
▪ Modes MOD
▪ Aperture APR
▪ Self - Timer SLT
▪ Double - Operand
▪ Gallery GAL
▪ Triple - Operand
▪ Manual - Focus MFS
Instruction Design I
Name Of
Instruction
Binary Code
(4 bit)
Operand 1
(4 bit)
Operand 2
(4 bit)
Operand 3
(4 bit)
MFS 0000 XXXX YYYY ZZZZ
Instruction Design II
Name Of Instruction Binary Code
(8 bit)
Operand 1
(4 bit)
Operand 2
(4 bit)
GAL 0001 0000 XXXX YYYY
MOV 0001 0001 XXXX YYYY
SUB 0001 0010 XXXX YYYY
ADD 0001 0011 XXXX YYYY
Instruction Design III
Name Of Instruction Binary Code
(12 bit)
Operand 1
(4 bit)
SHS 0001 0100 0000 XXXX
ISO 0001 0100 0001 XXXX
ZOM 0001 0100 0010 XXXX
MOD 0001 0100 0011 XXXX
APR 0001 0100 0100 XXXX
SLT 0001 0100 0101 XXXX
INC 0001 0100 0110 XXXX
DEC 0001 0100 0111 XXXX
JMP 0001 0100 1000 XXXX
Instruction Design IV
Name Of Instruction Binary Code
(12 bit)
Operand 1
(4 bit)
JNQ 0001 0100 1001 XXXX
JEQ 0001 0100 1010 XXXX
JLT 0001 0100 1011 XXXX
JLE 0001 0100 1100 XXXX
JGT 0001 0100 1101 XXXX
JGE 0001 0100 1110 XXXX
Instruction Design V
Name Of Instruction Escape Code
(12 bit)
Binary Code
(4 bit)
HLT 0001 0100 1111 0000
FLS 0001 0100 1111 0001
CLP 0001 0100 1111 0010
MME 0001 0100 1111 0011
POW 0001 0100 1111 0100
Instruction Types
▪Monadic Operation
▪Dyadic Operation
▪Arithmetic
▪Comparison
▪I/O Instruction
▪Data Transfer
▪Control Transfer
Data Types
▪ Signed Integer
▪ Floating Point
Addressing Modes
▪Immediate Addressing
▪Register Addressing
Flow of Control Handling
▪We will initially store the all the
settings of the camera in the
memory cells and keep them
updated with each new set of
instructions.
▪All the operations will be handled on
these set of registers.
▪Whole data is passed indirectly
between these instructions.
Fetch Cycle
▪ PCout , R=C , MARin , Read , IncPC
▪ WMFC
▪ MDRoutC , R=C , IRin
Microroutines
• Load R1, C (Immediate Value)
▪ Immediate_Value of IRoutC , R=C, R1in , End
• Add R4, R2
▪ R4outA , R2outC , Select A , ADD , R6in
▪ R6outC , R=C , R4in , End
• Mov R1, R2
▪ R2outC , R=C , R1in , End
Microroutines
• Sub R4, R2
▪ R4outA , R2outC , Select A , SUB , R6in
▪ R6outC , R=C , R4in , End
• CMP R1, R2
▪ R1outA , R2outC , Select A , SUB , R6in , End
• JMP R2
▪ R2outC , R=C , PCin , END
Manual Focus MFS R1, R2, R3
▪ IN, MDRoutB, R = B, R1in
▪ IN, MDRoutB, R = B, R2in
▪ IN, MDRoutB, R = B, R3in
▪ MFS
▪ END
Gallery GAL @R1, R2
▪ IN, MDRoutB, R = B, R1in
▪ IN, MDRoutB, R = B, R2in
▪ R1out, MARin, READ, WMFC
▪ MDRoutB , R = B, FILEin
▪ R2outA , ONE, Select A , SUB , R6in
▪ VEDEL
▪ END
SHS R1
▪ IN, MDRoutB, R = B, SPEEDin
▪ SHUTTER
▪ END
ISO R1
▪ IN, MDRoutB, R = B, QUALin
▪ ISO
▪ END
THE END

More Related Content

PPTX
Introduction to-cleanflight
PPT
Addressing mode and instruction set using 8051
PPT
Embedded system - introduction to arm7
PDF
project_NathanWendt
PPT
Pic18 f4520 and robotics
PDF
Make ARM Shellcode Great Again
PDF
Limen Alpha Processor
PPTX
2024_lecture10__come321..................................
Introduction to-cleanflight
Addressing mode and instruction set using 8051
Embedded system - introduction to arm7
project_NathanWendt
Pic18 f4520 and robotics
Make ARM Shellcode Great Again
Limen Alpha Processor
2024_lecture10__come321..................................

Similar to COA Project.pptxkjnjnjbjkbn,n,njkjjnnjln , nkn n,k (20)

PDF
Winbond W99685FS datasheet
PDF
5B-NAVY_Presentation-Spring
PPT
basic computer programming and micro programmed control
PDF
Practical SPU Programming in God of War III
PDF
OpenGL L02-Transformations
PPT
Bca 2nd sem-u-3.2-basic computer programming and micro programmed control
PDF
pic_1.pdf
PPTX
Microprocessor: Delay technique
PPT
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
PDF
Introduction to pic microcontroller
PPT
Windows debugging sisimon
PPTX
MICROPROCESSORS AND MICROCONTROLLERS
PPTX
UNIT II MICROPROCESSOR AND MICROCONTROLLER
PDF
Debugging 2013- Jesper Brouer
PPTX
Arm architecture
PPT
W10: Interrupts
PPTX
Whitepaper proposal presentation _pre.pptx
PPTX
PIC 16F877 micro controller by Gaurav raikar
PPT
ARM7TDMI-S_CPU.ppt
PPTX
Microprogrammed_control presentation.pptx
Winbond W99685FS datasheet
5B-NAVY_Presentation-Spring
basic computer programming and micro programmed control
Practical SPU Programming in God of War III
OpenGL L02-Transformations
Bca 2nd sem-u-3.2-basic computer programming and micro programmed control
pic_1.pdf
Microprocessor: Delay technique
B.sc cs-ii-u-3.2-basic computer programming and micro programmed control
Introduction to pic microcontroller
Windows debugging sisimon
MICROPROCESSORS AND MICROCONTROLLERS
UNIT II MICROPROCESSOR AND MICROCONTROLLER
Debugging 2013- Jesper Brouer
Arm architecture
W10: Interrupts
Whitepaper proposal presentation _pre.pptx
PIC 16F877 micro controller by Gaurav raikar
ARM7TDMI-S_CPU.ppt
Microprogrammed_control presentation.pptx
Ad

More from ZeelGoyani (16)

PPTX
Unit 2- Machine Learninnonjjnkbhkhjjljknkmg.pptx
PPTX
Presentations_PPT_ Unit-6_OOP.pptx
PPTX
Presentat ions_PPT_Unit-2_OOP.pptx
PPTX
Unit-6.pptx lk kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
Unit 1 (1).ppt,, x
PPTX
Creating-a-Tkinter-Python-Calculator.pptx
PPT
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
PPTX
Os presentation final.pptxjjjjjdakajwsjjdhdfjff
PPTX
Java Presentation[1].pptxhhuvbhujhhujnnjoj
PPTX
pptof5gtechnology16btece014-191201094719.pptx
PPTX
Journey-of-Personal-Development-Part-1.pptx
PPTX
12202080601124-Sargam Desai.ppt df TG vs TV TB yx
PPTX
ppt-personalitydevelopment-130903024646-phpapp01 (2).pptx
PPT
Self Discovery.pptnmkkeusuziiwudhwhdhueuur v
PPTX
hhuhuihuhuihPresentations_PPT_Unit-5_OOP.pptx
PPT
291-02.l20.ppt
Unit 2- Machine Learninnonjjnkbhkhjjljknkmg.pptx
Presentations_PPT_ Unit-6_OOP.pptx
Presentat ions_PPT_Unit-2_OOP.pptx
Unit-6.pptx lk kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Unit 1 (1).ppt,, x
Creating-a-Tkinter-Python-Calculator.pptx
Parallel_Algorithms_In_Combinatorial_Optimization_Problems.ppt
Os presentation final.pptxjjjjjdakajwsjjdhdfjff
Java Presentation[1].pptxhhuvbhujhhujnnjoj
pptof5gtechnology16btece014-191201094719.pptx
Journey-of-Personal-Development-Part-1.pptx
12202080601124-Sargam Desai.ppt df TG vs TV TB yx
ppt-personalitydevelopment-130903024646-phpapp01 (2).pptx
Self Discovery.pptnmkkeusuziiwudhwhdhueuur v
hhuhuihuhuihPresentations_PPT_Unit-5_OOP.pptx
291-02.l20.ppt
Ad

Recently uploaded (20)

PDF
MACCAFERRY GUIA GAVIONES TERRAPLENES EN ESPAÑOL
PPTX
SC Robotics Team Safety Training Presentation
PPTX
Unit IImachinemachinetoolopeartions.pptx
PDF
Principles of operation, construction, theory, advantages and disadvantages, ...
PDF
THE PEDAGOGICAL NEXUS IN TEACHING ELECTRICITY CONCEPTS IN THE GRADE 9 NATURAL...
PPTX
SE unit 1.pptx aaahshdhajdviwhsiehebeiwheiebeiev
PPTX
DATA STRCUTURE LABORATORY -BCSL305(PRG1)
PPTX
Solar energy pdf of gitam songa hemant k
PDF
Software defined netwoks is useful to learn NFV and virtual Lans
PPT
Programmable Logic Controller PLC and Industrial Automation
PDF
Research on ultrasonic sensor for TTU.pdf
PDF
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
PPT
UNIT-I Machine Learning Essentials for 2nd years
DOCX
An investigation of the use of recycled crumb rubber as a partial replacement...
PPTX
INTERNET OF THINGS - EMBEDDED SYSTEMS AND INTERNET OF THINGS
PPTX
Real Estate Management PART 1.pptxFFFFFFFFFFFFF
PPTX
22ME926Introduction to Business Intelligence and Analytics, Advanced Integrat...
PDF
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
PPTX
Software-Development-Life-Cycle-SDLC.pptx
PDF
V2500 Owner and Operatore Guide for Airbus
MACCAFERRY GUIA GAVIONES TERRAPLENES EN ESPAÑOL
SC Robotics Team Safety Training Presentation
Unit IImachinemachinetoolopeartions.pptx
Principles of operation, construction, theory, advantages and disadvantages, ...
THE PEDAGOGICAL NEXUS IN TEACHING ELECTRICITY CONCEPTS IN THE GRADE 9 NATURAL...
SE unit 1.pptx aaahshdhajdviwhsiehebeiwheiebeiev
DATA STRCUTURE LABORATORY -BCSL305(PRG1)
Solar energy pdf of gitam songa hemant k
Software defined netwoks is useful to learn NFV and virtual Lans
Programmable Logic Controller PLC and Industrial Automation
Research on ultrasonic sensor for TTU.pdf
BBC NW_Tech Facilities_30 Odd Yrs Ago [J].pdf
UNIT-I Machine Learning Essentials for 2nd years
An investigation of the use of recycled crumb rubber as a partial replacement...
INTERNET OF THINGS - EMBEDDED SYSTEMS AND INTERNET OF THINGS
Real Estate Management PART 1.pptxFFFFFFFFFFFFF
22ME926Introduction to Business Intelligence and Analytics, Advanced Integrat...
Engineering Solutions for Ethical Dilemmas in Healthcare (www.kiu.ac.ug)
Software-Development-Life-Cycle-SDLC.pptx
V2500 Owner and Operatore Guide for Airbus

COA Project.pptxkjnjnjbjkbn,n,njkjjnnjln , nkn n,k

  • 1. COA Lab Project (2016-17) The LNMIIT, Jaipur Digital Single Lens Reflex Camera (DSLR) Ashish Karel (15UCS027) Ayush Soral (15UCS031) Nitin Chaudhary (15UCS088) Pradyumn Agrawal (15UCS096)
  • 2. Introduction ● We are building an Instruction Set Architecture for a “DSLR Camera”. We can access the images kept in gallery and delete them. ● We are developing it for a 16 - bit machine.
  • 3. Functions ● ISO :- ISO sensitivity is a measure of the camera's ability to capture light. ● Aperture : - Aperture controls the brightness of the image that passes through the lens and falls on the image sensor. ● Shutter Speed : - Shutter speed is a measurement of the time the shutter is open. ● Manual Focus : - Manual Focus (MF) is the system that manually adjusts camera focus. ● Flash : - Used in absence of light to brighten the object. ● Movie Mode : - Display the image on the screen live. ● Gallery : - Display the images clicked by the camera.
  • 4. Functions ● Zoom : - Zoom in/out the image. ● Click Pic : - To take a picture. ● Modes : - Various modes to automatically set few settings of camera according the mode. E.g. Panorama, Landscape, etc. ● Power : - Switch On/Off the camera.
  • 5. Memory Model ▪ Cell Size : 16 bits ▪ Little Endian ▪ Aligned Memory Instructions
  • 6. Registers ▪We will be using General as well as Special Registers. ▪We are using 16 registers. ▪Special Purpose Registers : Program Counter Instruction Register Flag Register
  • 7. Instruction Format ● Zero Operand - Halt HLT - Flash FLS - ClickPic CLP - MovieMode MME - Power POW
  • 8. Instruction Format ▪ Single Operand ▪ Shutter Speed SHS ▪ ISO ISO ▪ Zoom ZOM ▪ Modes MOD ▪ Aperture APR ▪ Self - Timer SLT ▪ Double - Operand ▪ Gallery GAL ▪ Triple - Operand ▪ Manual - Focus MFS
  • 9. Instruction Design I Name Of Instruction Binary Code (4 bit) Operand 1 (4 bit) Operand 2 (4 bit) Operand 3 (4 bit) MFS 0000 XXXX YYYY ZZZZ
  • 10. Instruction Design II Name Of Instruction Binary Code (8 bit) Operand 1 (4 bit) Operand 2 (4 bit) GAL 0001 0000 XXXX YYYY MOV 0001 0001 XXXX YYYY SUB 0001 0010 XXXX YYYY ADD 0001 0011 XXXX YYYY
  • 11. Instruction Design III Name Of Instruction Binary Code (12 bit) Operand 1 (4 bit) SHS 0001 0100 0000 XXXX ISO 0001 0100 0001 XXXX ZOM 0001 0100 0010 XXXX MOD 0001 0100 0011 XXXX APR 0001 0100 0100 XXXX SLT 0001 0100 0101 XXXX INC 0001 0100 0110 XXXX DEC 0001 0100 0111 XXXX JMP 0001 0100 1000 XXXX
  • 12. Instruction Design IV Name Of Instruction Binary Code (12 bit) Operand 1 (4 bit) JNQ 0001 0100 1001 XXXX JEQ 0001 0100 1010 XXXX JLT 0001 0100 1011 XXXX JLE 0001 0100 1100 XXXX JGT 0001 0100 1101 XXXX JGE 0001 0100 1110 XXXX
  • 13. Instruction Design V Name Of Instruction Escape Code (12 bit) Binary Code (4 bit) HLT 0001 0100 1111 0000 FLS 0001 0100 1111 0001 CLP 0001 0100 1111 0010 MME 0001 0100 1111 0011 POW 0001 0100 1111 0100
  • 14. Instruction Types ▪Monadic Operation ▪Dyadic Operation ▪Arithmetic ▪Comparison ▪I/O Instruction ▪Data Transfer ▪Control Transfer
  • 15. Data Types ▪ Signed Integer ▪ Floating Point
  • 17. Flow of Control Handling ▪We will initially store the all the settings of the camera in the memory cells and keep them updated with each new set of instructions. ▪All the operations will be handled on these set of registers. ▪Whole data is passed indirectly between these instructions.
  • 18. Fetch Cycle ▪ PCout , R=C , MARin , Read , IncPC ▪ WMFC ▪ MDRoutC , R=C , IRin
  • 19. Microroutines • Load R1, C (Immediate Value) ▪ Immediate_Value of IRoutC , R=C, R1in , End • Add R4, R2 ▪ R4outA , R2outC , Select A , ADD , R6in ▪ R6outC , R=C , R4in , End • Mov R1, R2 ▪ R2outC , R=C , R1in , End
  • 20. Microroutines • Sub R4, R2 ▪ R4outA , R2outC , Select A , SUB , R6in ▪ R6outC , R=C , R4in , End • CMP R1, R2 ▪ R1outA , R2outC , Select A , SUB , R6in , End • JMP R2 ▪ R2outC , R=C , PCin , END
  • 21. Manual Focus MFS R1, R2, R3 ▪ IN, MDRoutB, R = B, R1in ▪ IN, MDRoutB, R = B, R2in ▪ IN, MDRoutB, R = B, R3in ▪ MFS ▪ END
  • 22. Gallery GAL @R1, R2 ▪ IN, MDRoutB, R = B, R1in ▪ IN, MDRoutB, R = B, R2in ▪ R1out, MARin, READ, WMFC ▪ MDRoutB , R = B, FILEin ▪ R2outA , ONE, Select A , SUB , R6in ▪ VEDEL ▪ END
  • 23. SHS R1 ▪ IN, MDRoutB, R = B, SPEEDin ▪ SHUTTER ▪ END
  • 24. ISO R1 ▪ IN, MDRoutB, R = B, QUALin ▪ ISO ▪ END