SlideShare una empresa de Scribd logo
1 de 12
Computer design
overview
 System configuration
 Computer instructions
 Execution of instructions
System configuration
 Program Counter (PC)
   12 bits
   The address of the next instruction to be stored
 Memory Address Register (MAR)
   12 bits
   Used to address specific memory locations
   The memory is loaded from the PC when an instruction
    is read from memory
 Memory Buffer Register (B)
   12 bits
 Instruction Register
   4 bits
   It holds operation code of the current instruction to be
    executed
System configuration…
 E,F and S flip flops
   1 bit registers
   E – for shifting operation and also to get the carry from
    an addition
   F – fetch and execute cycles
   S – start or stop
 Accumulator Register (A)
   That operates on the data previously stored in memory
 Sequence Register (G)
   Generate timing signals upon initiate the micro-
    operations
 Input Register (N) and Output Register (U)
   9 bits
   Extra 1 bit is a flag bit
Computer instructions
Data format(arithmetic)
  sign 1       1       1       1       11 1       9       8       7       6       5   4   3   2   1
       5       4       3       2          0
   Data format(logical operand)

  1   1    1       1       1       1    1     9       8       7       6       5   4   3   2   1
  6   5    4       3       2       1    0
   Data format(input/output data)

  Character1                                          Character 2
Computer instructions
Instruction format
Memory reference instruction
 operation    Address

Register – reference instruction
  0110        Type of register operation


Input/output instruction
  0111        Type of I/O operation
Memory reference instruction
Symbol             Hexa decimal        Description        Function
                   Code
AND                0 m*                AND to A           A  A AND M
ADD                1m                  Add to A           A A+M, E 
                                                          Carry
STO                2m                  Store in A         MA
ISZ                3m                  Increment and      M  M+1
                                       skip if zero
BSB                4m                  Branch to          M PC +5000,
                                       subroutine         PC m+1
BUN                5m                  Branch             PCm
                                       unconditionally
* - m is the address part of the instruction, M is the memory word
addressed by m
Register reference instruction
Symbol   r=q6t3    Hexa decimal   Description
                   Code
CLA      rB12      6800           Clear A
CLE      rB11      6400           Clear E
CMA      rB10      6200           Complement A
CME      rB9       6100           Complement E
SHR      rB8       6080           Shift right A and
                                  E
SHL      rB7       6040           Shift Left A and
                                  E
INC      rB6       6020           Increment A
SPA      rB5A16    6010           Skip on positive
                                  A
SNA      rB4A’16   6008           Skip on
                                  Negative A
SZA      rB3Az     6004           Skip on zero A
Input-output instructions
Symbol   P=q7t3   Hexadecimal   Description
                  Code
SKI      PB12N9   7800          Skip on input
                                flag
INP      PB11     7400          Input to A
SKO      PB10U9   7200          Skip on output
                                flag
OUT      PB9      7100          Output from A
Execution of instructions
 Once S=1,
  An instruction whose address is in PC is read from
   memory
  Its operation is transferred to I and PC incremented
   by 1 to prepare it for the next instruction
  If instruction is memory reference type, it may be
   necessary to access memory again to read an
   operand.
  When F=0, the word read from the memory is
   executed to be an instruction and the computer is
   said to be in an instruction fetch cycle
  When f=1 the word read from memory is taken as
   an operand and computer is said to be in a data
   execute cycle.
Fetch cycle
 F’t0 => MAR  PC, transfer instruction address
 F’t1=> BM, PCPC +1, read instruction,
 increment PC
 F’t2=> IB (OP), transfer opcode
 F’(q0+q1+q2+q3+q4).t3 => F 1, go to execute
  cycle
 q5.t3 => PCB, branch unconditionally
 q6.t3=> execute register reference instruction
 q7.t3 => execute I/O reference instruction
Execute Cycle
 F.t0 => MAR  B, transfer address part
 F.(q0 +q1+q3)t1=> BM, read operand
 F.(t2+t3) => Execute memory reference
  instruction
 F.t3 => F 0, return to fetch cycle

Más contenido relacionado

La actualidad más candente

8085 branching instruction
8085 branching instruction8085 branching instruction
8085 branching instructionprashant1271
 
Logical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorLogical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorRabin BK
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Jay Patel
 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)Nemish Bhojani
 
Lecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsLecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsZeeshan Ahmed
 
Lecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of InstructionsLecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of InstructionsZeeshan Ahmed
 
Microprocessor instructions
Microprocessor instructionsMicroprocessor instructions
Microprocessor instructionshepzijustin
 
Lecture1 The 8085 Microprocessor
Lecture1 The 8085 MicroprocessorLecture1 The 8085 Microprocessor
Lecture1 The 8085 MicroprocessorZeeshan Ahmed
 
chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionswarda aziz
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Microprocessor 8086 instructions
Microprocessor 8086 instructionsMicroprocessor 8086 instructions
Microprocessor 8086 instructionsRavi Anand
 
Unit 3 – assembly language programming
Unit 3 – assembly language programmingUnit 3 – assembly language programming
Unit 3 – assembly language programmingKartik Sharma
 
Ascii adjust & decimal adjust
Ascii adjust & decimal adjustAscii adjust & decimal adjust
Ascii adjust & decimal adjustTech_MX
 
Programmable Logic Devices
Programmable Logic DevicesProgrammable Logic Devices
Programmable Logic DevicesMadhusudan Donga
 
15CS44 MP & MC Module 2
15CS44 MP & MC Module  215CS44 MP & MC Module  2
15CS44 MP & MC Module 2RLJIT
 
15CS44 MP &MC Module 3
15CS44 MP &MC Module 315CS44 MP &MC Module 3
15CS44 MP &MC Module 3RLJIT
 
8086 instruction set with types
8086 instruction set with types8086 instruction set with types
8086 instruction set with typesRavinder Rautela
 

La actualidad más candente (20)

8085 branching instruction
8085 branching instruction8085 branching instruction
8085 branching instruction
 
Logical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessorLogical Instructions used in 8086 microprocessor
Logical Instructions used in 8086 microprocessor
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)microprocessor ppt (branching and logical instructions)
microprocessor ppt (branching and logical instructions)
 
Lecture 02 Data Group of Instructions
Lecture 02 Data Group of InstructionsLecture 02 Data Group of Instructions
Lecture 02 Data Group of Instructions
 
Lecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of InstructionsLecture 03 Arithmetic Group of Instructions
Lecture 03 Arithmetic Group of Instructions
 
Microprocessor instructions
Microprocessor instructionsMicroprocessor instructions
Microprocessor instructions
 
Lecture1 The 8085 Microprocessor
Lecture1 The 8085 MicroprocessorLecture1 The 8085 Microprocessor
Lecture1 The 8085 Microprocessor
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
chapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructionschapter 7 Logic, shift and rotate instructions
chapter 7 Logic, shift and rotate instructions
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
8086 instruction set
8086  instruction set8086  instruction set
8086 instruction set
 
Microprocessor 8086 instructions
Microprocessor 8086 instructionsMicroprocessor 8086 instructions
Microprocessor 8086 instructions
 
Unit 3 – assembly language programming
Unit 3 – assembly language programmingUnit 3 – assembly language programming
Unit 3 – assembly language programming
 
Ascii adjust & decimal adjust
Ascii adjust & decimal adjustAscii adjust & decimal adjust
Ascii adjust & decimal adjust
 
Lecture5(1)
Lecture5(1)Lecture5(1)
Lecture5(1)
 
Programmable Logic Devices
Programmable Logic DevicesProgrammable Logic Devices
Programmable Logic Devices
 
15CS44 MP & MC Module 2
15CS44 MP & MC Module  215CS44 MP & MC Module  2
15CS44 MP & MC Module 2
 
15CS44 MP &MC Module 3
15CS44 MP &MC Module 315CS44 MP &MC Module 3
15CS44 MP &MC Module 3
 
8086 instruction set with types
8086 instruction set with types8086 instruction set with types
8086 instruction set with types
 

Similar a Computer design

Basic computer organization design
Basic computer organization designBasic computer organization design
Basic computer organization designndasharath
 
Instructionformatreport 110419102141-phpapp02
Instructionformatreport 110419102141-phpapp02Instructionformatreport 110419102141-phpapp02
Instructionformatreport 110419102141-phpapp02Shivani Gautam
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollerjokersclown57
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary janicetiong
 
EMBEDDED SYSTEMS 2&3
EMBEDDED SYSTEMS 2&3EMBEDDED SYSTEMS 2&3
EMBEDDED SYSTEMS 2&3PRADEEP
 
COA_Compter architecture and organization_Unit III_PPT.pptx
COA_Compter architecture and organization_Unit III_PPT.pptxCOA_Compter architecture and organization_Unit III_PPT.pptx
COA_Compter architecture and organization_Unit III_PPT.pptxAkshat39
 
B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)MahiboobAliMulla
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310DHEERAJ DHAKAR
 
Arm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptArm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptManju Badiger
 
Computer instructions
Computer instructionsComputer instructions
Computer instructionsAnuj Modi
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsSreenivas Hanumandla
 
system software 16 marks
system software 16 markssystem software 16 marks
system software 16 marksvvcetit
 
Instruction 8.pptx
Instruction 8.pptxInstruction 8.pptx
Instruction 8.pptxHebaEng
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setaviban
 
Register reference
Register referenceRegister reference
Register referenceNitesh Singh
 

Similar a Computer design (20)

Basic computer organization design
Basic computer organization designBasic computer organization design
Basic computer organization design
 
Instructionformatreport 110419102141-phpapp02
Instructionformatreport 110419102141-phpapp02Instructionformatreport 110419102141-phpapp02
Instructionformatreport 110419102141-phpapp02
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Instruction set summary
Instruction set summary Instruction set summary
Instruction set summary
 
EMBEDDED SYSTEMS 2&3
EMBEDDED SYSTEMS 2&3EMBEDDED SYSTEMS 2&3
EMBEDDED SYSTEMS 2&3
 
COA_Compter architecture and organization_Unit III_PPT.pptx
COA_Compter architecture and organization_Unit III_PPT.pptxCOA_Compter architecture and organization_Unit III_PPT.pptx
COA_Compter architecture and organization_Unit III_PPT.pptx
 
CAAL_CCSU_U1.pdf
CAAL_CCSU_U1.pdfCAAL_CCSU_U1.pdf
CAAL_CCSU_U1.pdf
 
B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)B sc e 5.2 mp unit 2 soft ware(alp)
B sc e 5.2 mp unit 2 soft ware(alp)
 
Intel 8085 mp
Intel 8085 mpIntel 8085 mp
Intel 8085 mp
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
 
Arm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.pptArm Cortex material Arm Cortex material3222886.ppt
Arm Cortex material Arm Cortex material3222886.ppt
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
Unit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller pptsUnit iv introduction to 8051 microcontroller ppts
Unit iv introduction to 8051 microcontroller ppts
 
system software 16 marks
system software 16 markssystem software 16 marks
system software 16 marks
 
Instruction 8.pptx
Instruction 8.pptxInstruction 8.pptx
Instruction 8.pptx
 
Memory Reference instruction
Memory Reference instructionMemory Reference instruction
Memory Reference instruction
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
 
Instruction types
Instruction typesInstruction types
Instruction types
 
Lecture5
Lecture5Lecture5
Lecture5
 
Register reference
Register referenceRegister reference
Register reference
 

Más de Pradeep Kumar TS

Digital Portfolio and Footprint
Digital Portfolio and FootprintDigital Portfolio and Footprint
Digital Portfolio and FootprintPradeep Kumar TS
 
Software Define Networking (SDN)
Software Define Networking (SDN)Software Define Networking (SDN)
Software Define Networking (SDN)Pradeep Kumar TS
 
What next - Career Enhancement of Graduates
What next - Career Enhancement of GraduatesWhat next - Career Enhancement of Graduates
What next - Career Enhancement of GraduatesPradeep Kumar TS
 
Higher Order Thinking - Question paper setting
Higher Order Thinking - Question paper settingHigher Order Thinking - Question paper setting
Higher Order Thinking - Question paper settingPradeep Kumar TS
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication ProtocolsPradeep Kumar TS
 
RPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy NetworksRPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy NetworksPradeep Kumar TS
 
Recompiling network simulator 2
Recompiling network simulator 2Recompiling network simulator 2
Recompiling network simulator 2Pradeep Kumar TS
 
OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2Pradeep Kumar TS
 
Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2Pradeep Kumar TS
 
Software Defined Networking - 1
Software Defined Networking - 1Software Defined Networking - 1
Software Defined Networking - 1Pradeep Kumar TS
 
Software Defined Networking - 2
Software Defined Networking - 2Software Defined Networking - 2
Software Defined Networking - 2Pradeep Kumar TS
 
Software Defined Networking - 3
Software Defined Networking - 3Software Defined Networking - 3
Software Defined Networking - 3Pradeep Kumar TS
 

Más de Pradeep Kumar TS (20)

Digital Portfolio and Footprint
Digital Portfolio and FootprintDigital Portfolio and Footprint
Digital Portfolio and Footprint
 
Open book Examination
Open book ExaminationOpen book Examination
Open book Examination
 
Software Define Networking (SDN)
Software Define Networking (SDN)Software Define Networking (SDN)
Software Define Networking (SDN)
 
What next - Career Enhancement of Graduates
What next - Career Enhancement of GraduatesWhat next - Career Enhancement of Graduates
What next - Career Enhancement of Graduates
 
Protothreads
ProtothreadsProtothreads
Protothreads
 
6LoWPAN
6LoWPAN 6LoWPAN
6LoWPAN
 
Software Defined Networks
Software Defined NetworksSoftware Defined Networks
Software Defined Networks
 
Higher Order Thinking - Question paper setting
Higher Order Thinking - Question paper settingHigher Order Thinking - Question paper setting
Higher Order Thinking - Question paper setting
 
IoT Communication Protocols
IoT Communication ProtocolsIoT Communication Protocols
IoT Communication Protocols
 
IoT Applications
IoT ApplicationsIoT Applications
IoT Applications
 
RPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy NetworksRPL - Routing Protocol for Low Power and Lossy Networks
RPL - Routing Protocol for Low Power and Lossy Networks
 
Mannasim for NS2
Mannasim for NS2Mannasim for NS2
Mannasim for NS2
 
Recompiling network simulator 2
Recompiling network simulator 2Recompiling network simulator 2
Recompiling network simulator 2
 
OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2OTcl and C++ linkages in NS2
OTcl and C++ linkages in NS2
 
Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2Wired and Wireless Examples in ns2
Wired and Wireless Examples in ns2
 
Installation of ns2
Installation of ns2Installation of ns2
Installation of ns2
 
Introduction to ns2
Introduction to ns2Introduction to ns2
Introduction to ns2
 
Software Defined Networking - 1
Software Defined Networking - 1Software Defined Networking - 1
Software Defined Networking - 1
 
Software Defined Networking - 2
Software Defined Networking - 2Software Defined Networking - 2
Software Defined Networking - 2
 
Software Defined Networking - 3
Software Defined Networking - 3Software Defined Networking - 3
Software Defined Networking - 3
 

Computer design

  • 2. overview  System configuration  Computer instructions  Execution of instructions
  • 3. System configuration  Program Counter (PC)  12 bits  The address of the next instruction to be stored  Memory Address Register (MAR)  12 bits  Used to address specific memory locations  The memory is loaded from the PC when an instruction is read from memory  Memory Buffer Register (B)  12 bits  Instruction Register  4 bits  It holds operation code of the current instruction to be executed
  • 4. System configuration…  E,F and S flip flops  1 bit registers  E – for shifting operation and also to get the carry from an addition  F – fetch and execute cycles  S – start or stop  Accumulator Register (A)  That operates on the data previously stored in memory  Sequence Register (G)  Generate timing signals upon initiate the micro- operations  Input Register (N) and Output Register (U)  9 bits  Extra 1 bit is a flag bit
  • 5. Computer instructions Data format(arithmetic) sign 1 1 1 1 11 1 9 8 7 6 5 4 3 2 1 5 4 3 2 0  Data format(logical operand) 1 1 1 1 1 1 1 9 8 7 6 5 4 3 2 1 6 5 4 3 2 1 0  Data format(input/output data) Character1 Character 2
  • 6. Computer instructions Instruction format Memory reference instruction operation Address Register – reference instruction 0110 Type of register operation Input/output instruction 0111 Type of I/O operation
  • 7. Memory reference instruction Symbol Hexa decimal Description Function Code AND 0 m* AND to A A  A AND M ADD 1m Add to A A A+M, E  Carry STO 2m Store in A MA ISZ 3m Increment and M  M+1 skip if zero BSB 4m Branch to M PC +5000, subroutine PC m+1 BUN 5m Branch PCm unconditionally * - m is the address part of the instruction, M is the memory word addressed by m
  • 8. Register reference instruction Symbol r=q6t3 Hexa decimal Description Code CLA rB12 6800 Clear A CLE rB11 6400 Clear E CMA rB10 6200 Complement A CME rB9 6100 Complement E SHR rB8 6080 Shift right A and E SHL rB7 6040 Shift Left A and E INC rB6 6020 Increment A SPA rB5A16 6010 Skip on positive A SNA rB4A’16 6008 Skip on Negative A SZA rB3Az 6004 Skip on zero A
  • 9. Input-output instructions Symbol P=q7t3 Hexadecimal Description Code SKI PB12N9 7800 Skip on input flag INP PB11 7400 Input to A SKO PB10U9 7200 Skip on output flag OUT PB9 7100 Output from A
  • 10. Execution of instructions  Once S=1,  An instruction whose address is in PC is read from memory  Its operation is transferred to I and PC incremented by 1 to prepare it for the next instruction  If instruction is memory reference type, it may be necessary to access memory again to read an operand.  When F=0, the word read from the memory is executed to be an instruction and the computer is said to be in an instruction fetch cycle  When f=1 the word read from memory is taken as an operand and computer is said to be in a data execute cycle.
  • 11. Fetch cycle  F’t0 => MAR  PC, transfer instruction address  F’t1=> BM, PCPC +1, read instruction, increment PC  F’t2=> IB (OP), transfer opcode  F’(q0+q1+q2+q3+q4).t3 => F 1, go to execute cycle  q5.t3 => PCB, branch unconditionally  q6.t3=> execute register reference instruction  q7.t3 => execute I/O reference instruction
  • 12. Execute Cycle  F.t0 => MAR  B, transfer address part  F.(q0 +q1+q3)t1=> BM, read operand  F.(t2+t3) => Execute memory reference instruction  F.t3 => F 0, return to fetch cycle