Mathema'cs in Computer Science: Presented By: Sadia Marium
Mathema'cs in Computer Science: Presented By: Sadia Marium
in Computer Science
Presented by : Sadia Marium
Sep 18, 2018
Revision : Computer
Organiza'on
Parts of a Basic Computer
Von Neumann Basic Structure
1. Central Processing Unit (CPU)
2. Main Memory Unit (RAM)
3. Input/Output Devices
Von Neumann Basic Structure
• Control Unit
– A control unit (CU) handles all processor control signals. It directs all input
and output flow, fetches code for instruc'ons and controlling how data
moves around the system.
• Arithme.c and Logic Unit (ALU)
– The arithme'c logic unit is that part of the CPU that handles all the
calcula'ons the CPU may need, e.g. Addi'on, Subtrac'on, Comparisons.
– It performs Logical Opera'ons, Bit ShiTing Opera'ons, and Arithme'c
Opera'on.
Arithme'c and Logic Unit (ALU)
• Basic Opera'ons of ALU
– Arithme'c Opera'ons
• Circuits for performing Arithme'c
opera'ons
– Logic Opera'ons
• Circuits for performing Arithme'c
opera'ons
• Registers
– Special purpose storage inside ALU
• Input A, Input B, Output
• What is 64/32/16/8 bit ALU?
Arithme'c and Logic Unit (ALU)
of opera'ons
• Series is called: Fetch/Execute Cycle 2.Instruc1on Decode(ID)
1. Get the next instruc'on
2. Figure out what to do 3.Data Fetch(FD)/
3. Gathering the data needed to do it Operand Fetch(OF)
4. Do it
5. Save the result, and 4.Execute(EX)
• Do you know:
– How does facebook suggest friends?
Finding shortest path between two nodes