Your SlideShare is downloading. ×
0
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
The Role Of The Cpu
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

The Role Of The Cpu

9,483

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
9,483
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
128
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Implementing Software Solutions The Role of the CPU
  • 2. Syllabus
    • The role of the CPU in the operation of software
      • Machine code and CPU operation:
        • Instruction format
        • Use of registers and accumulators
        • Use of program counters and the fetch execute cycle
        • Addresses called routines
        • Linking, including use of DLL’s
  • 3. Why Does the CPU Do?
    • Controls the transfer of data and instructions.
    • All the CPU does is run programs by fetching instructions from RAM, evaluating them, and executing them in sequence.
    • Known as the FETCH-EXECUTE-CYCLE
    • Responsible for detecting errors.
  • 4. Machine Code
    • It is the selected language of computer systems known as Binary .
    • It is translated by the CPU .
    • Each instruction (Binary Sequence) has TWO parts:
    • 1001 101011011 1110
    OPCODE OPERAND
  • 5. Opcode/Operand
    • Opcode – Is the instruction i.e COPY
    • Operand – Has two distinct parts:
        • Memeory Address
        • Data
  • 6. Hierarchy of Execution Source Code Machine Code Opcode (Instruction) Operand (Memory Address) Operand (Data) Visual Basic Binary Assembly Language
  • 7. Fetch-Execute-Cycle RAM ALU Control Unit Decode Execute Fetch Store
  • 8. Fetch-Execute-Cycle
    • Fetch (Where to Go?)
    • The next instruction is retrieved from primary storage.
    • Decode (What to do?)
    • The control unit decodes the instruction into an opcode (Instruction) and operand (Data).
    • Sent to the ALU.
  • 9. Fetch-Execute-Cycle
    • Execute (Carry out Instruction)
    • The ALU performs the instruction.
    • Store (Copy Results)
    • The control unit places the result of the execution in a register.
  • 10. Activity 1
    • Instructions
    • LOAD 113 from mem469 and STORE in accumulator.
    • Load 214 from mem490 and STORE in accumulator.
    • ADD accumulator contents.
    • STORE accumulator in mem476.
    • Outline the steps with the fetch-execute cycle and their respective processes required in processing the above instructions.
  • 11. Linking including Use of DLLs
    • During execution the mainline of a program can call on subprograms to perform specific tasks. These include:
        • Subprograms written by the developer.
        • Subprograms included in the development structure of the programming language. These subprograms form part of a library and can be called upon without writing a specific subprogram. i.e. Randomize function.
        • Subprograms built into the operating system. i.e. save or print commands.
  • 12. Linking including Use of DLLs
    • Linker – Is part of the translation program that handles call and return processes from the mainline to subprograms.
    • DLLs – (Dynamic Link Libraries) are common files used in modern programming to reduce the need for multiple subprograms. DLLs can be called from many application and programs can use the same DLL.
  • 13. Key Terms
    • Machine Code
    • CPU
    • Processor
    • Flag
    • Register
    • ALU
    • Accumulator
    • Control Unit
    • Program counter
    • Buses

×