SlideShare a Scribd company logo
COMPUTER ARCHITECTURE
CSC 3314
LECTURE 2
Department of Maths and Computer-
Science
Faculty of Natural and Applied Science
BY
UMAR DANJUMA MAIWADA
BASIC CONCEPTS
 Data: Numbers/ ASCII letter codes that correspond to
the variables/constant in our program.
 Instruction: interpreted by the computer and control
what happens to data.
 Both are stored in read-write memory but in different location
 Both look the same but are processed differently
 Both are binary in representation and can be manipulated
using digital logic
2
THE INITIAL CONCEPT OF THE MACHINE
 Manipulate data
 Interprets instructions (decide what todo)
 Store words (data and instructions)
 Keep track of things (what happens next)
 Get instructions and data (in and out)
 A computer system needs
 Cpu
 Storage
 i/o
 connectors 3
STRUCTURE AND FUNCTIONS OF A COMPUTER
 Structure: is a way in which components are
interrelated
 Function: is the operation of each individual
components as part of a structure.
 Function of a computer
 Data processing : take variety of form
 Data storage: file storage for retrieval and update
 Data movement : sources and destination of data
 Control: control unit helps in controlling the above units
4
REGISTERS
 They are used for active instructions and
data which are currently being used.
5
SOME REGISTERS
 Memory buffer register: contains a word to be stored in
memory or is used to receive a word form memory
 Memory address register: specifies the address in
memory of the word to be written from or read into the
MBR
 Instruction register: contains the 8 bit up code
instructions being executed
 Instruction buffer register: employed to temporarily hold
the right hand instruction from a word in memory
 Program counter: contains the address of the next
instruction to be fetched from the memory
6
EXECUTION UNIT AND BUS UNIT
 The EU contains
 ALU
 CU
 Register
7
SYSTEM UNIT
 Is an important hardware element of the PC
 A system board
 Power supply
 Expansion slot for optional board
8
FEATURES OF THE SYSTEM BOARD
 Microprocessor: performs all execution of an
instructions
 RAM
 ROM
9
CPU
 Is the most important development in integrated
circuit technology were software's are executed.
10
FUNCTIONS OF THE CPU
 Mathematical operation
 Logical manipulation
 Data manipulation
 Control operation
11
BUS
 Data bus: carries information to and from CPU. The
size represent a bit
 Address bus: it tells the location of data in the
memory or I/O before CPU can read or write data.
 Control bus: contains control signal for coordinating
the operation of the CPU with other devices
12
TYPICAL MOTHERBOARD
 Motherboard with slots for holding parts
 CPU has a fan
 RAM data storage
 I/O input and output
 Bus
 Power supply
 Storage
 Video display controller
 Networking
13
THE VON-NEUMANN MODEL
 Input unit
 Output unit
 ALU
 Memory unit
 Control unit
14
15
Memory unit
Control unit
Input unit Output unitALU
16
CPU Main
Memory
Long term
memory
I/O and
other
peripherals
Bus
The basic Von-Neumann Design
EXECUTION CYCLE
 Processor cycle
 There is a timer by an external clock signal
 It is supplied to the processor
 Operations are broken up into circles
 The fastest operation will take one clock cycle and other will
now take several cycle to complete the processor operation
17
THE NEXT INSTRUCTION
LOAD THE NEXT INSTRUCTION FROM
MEMORY INTO THE IR
UPDATE THE PC TO POINT AT THE NEXT
INSTRUCTION
DETERMINE THE TYPE OF INSTRUCTION
FETCHED
DETERMINE THE ADDRESS OF THE DATA IF
NEEDED
FETCH THE DATA FROM MEMORY
EXECUTE THE INSTRUCTION
RETURN TO STEP ONE FOR NEXT
INSTRUCTION
18
Running a program
 When you run a code, the code is loaded into memory
 Once the program is in the mm, it can be executed
 The location is determined by the OS
 The memory address of the instruction is loaded into
the PC
 The computer then begin to run the code
19
EXECUTING AN INSTRUCTION
 We need the instruction
 At the start of the next clock cycle, the CPU issues
request to the memory
 The unit sends the memory address and a request
to read from the main memory
 If the MM is fast, it will not take time.
 For the next instruction, the PC is changed
PC=PC+1
 The type of instruction is determine by the control
unit
 Data is then fetched
 The result of the operation is stored in one of the
20
21
 PC=ENTRY POINT
 WHILE (PROGRAM IS RUNNING){
 IR=MEMORY (PC);
 PC=PC+1;
 LET IT=TYPE OF (IR) in;
 IF(IT NEEDS DATA){
 LET ADDR=ADDR in (IR);
 REGISTER (IT)=MEMORY(ADDR);}
 LET TRG = TARGET OF (IR)
 EXECUTE (IT,TRG);}
THE SYSTEM BUS MODEL
22
CPU
(ALU,
Register, and
control)
I/OMemory
Data Bus
Address
buss
Control
bus
S
y
s
t
e
m
b
u
s
SOFTWARE-HARDWARE INTERACTIONS
 Machine language instruction: computer executes
machine language programs mathematically
without understanding them
 Assembler: an assembly language program is
translated into the target computers machine code
by a utility program called an assembler.
 Kernel: the kernel is the central component of most
computer OS. It manages the system resources
and the communication between hardware and
software
 OS: controlling and allocating memory. Networking
and managing files 23
24
Application
Kernel
CPU DeviceMemory
HIGH LEVEL LANGUAGE
 Program are portable
 Debugging is easier
 Program are not machine dependent
 Programs are translated using a compiler
 They are understandable
25
ASSEMBLY LANGUAGE
 Less understandable
 Debugging is complex
 Machine dependent
 Not good for large programs
26
COMPILER
 A program that translate an instruction from one
computer language to another language for the
computer to understand
27
QUESTIONS???
THANK YOU FOR YOUR ATTENTION
28

More Related Content

PPT
Basic ops concept of comp
PPT
PPTX
The Basic Organization of Computers
PPT
computer system organization basics
PPTX
1834902155 aka asgn 313
PPTX
Computer architecture
PPTX
Basic computer organisation
PPTX
Computer architecture and organization
Basic ops concept of comp
The Basic Organization of Computers
computer system organization basics
1834902155 aka asgn 313
Computer architecture
Basic computer organisation
Computer architecture and organization

What's hot (20)

PPTX
L 2 basic computer organization
PPTX
Computer Organization: Introduction to Microprocessor and Microcontroller
PPTX
Basic organization of computer
PDF
3. basic organization of a computer
PPTX
Chapter 1 basic structure of computers
PPT
Computer Structures
PPT
Computer Structure Slides
PPTX
Intro to the unit
PPT
Intro to cao &store program
PPT
Chapter 01 - Introduction
PPTX
Computer organization
PPT
Computer Systems Organization
PPT
Int 2 computer structure 2010
PPT
Unit 1 basic structure of computers
PPT
The CPU and Memory and Major Components
PPT
PDF
Central processing unit
PPT
Cpu organisation
PPT
Functional units of computer
PPTX
Components of computer, CPU computer funfament ppt
L 2 basic computer organization
Computer Organization: Introduction to Microprocessor and Microcontroller
Basic organization of computer
3. basic organization of a computer
Chapter 1 basic structure of computers
Computer Structures
Computer Structure Slides
Intro to the unit
Intro to cao &store program
Chapter 01 - Introduction
Computer organization
Computer Systems Organization
Int 2 computer structure 2010
Unit 1 basic structure of computers
The CPU and Memory and Major Components
Central processing unit
Cpu organisation
Functional units of computer
Components of computer, CPU computer funfament ppt
Ad

Similar to computer Architecture (20)

PPTX
Computer Arithmetic and Processor Basics
PPTX
Computer Organisation & Architecture (chapter 1)
PPTX
IS 139 Lecture 5
PPTX
Unit 1 Presentation and notes with according to syllabus
PPT
Computer organisation Module 1.ppt
PPTX
basicfunctionalunit-190124043726555.pptx
PDF
Computer Organization and Architechuture basics
PPTX
CPU ARCHITECTURE and COMPUTER PROGRAMS G
PPTX
digital logic circuits, digital component
PPTX
overview-Microprocessor of 8085 processor
PPTX
Bca 2nd sem-u-1.2 digital logic circuits, digital component
PPTX
Chapter 3 Assembly level machine organization Assembly level machine organiza...
PPTX
co1_aiml_new.pptx
PPTX
Computer Organization and Assembly language.pptx
PPTX
CAO.pptx
PPTX
B.sc cs-ii -u-1.2 digital logic circuits, digital component
PPT
Introduction to C programing for problem
PPT
Introduction to-microprocessor
PPT
Introduction to-microprocessor
PPT
POLITEKNIK MALAYSIA
Computer Arithmetic and Processor Basics
Computer Organisation & Architecture (chapter 1)
IS 139 Lecture 5
Unit 1 Presentation and notes with according to syllabus
Computer organisation Module 1.ppt
basicfunctionalunit-190124043726555.pptx
Computer Organization and Architechuture basics
CPU ARCHITECTURE and COMPUTER PROGRAMS G
digital logic circuits, digital component
overview-Microprocessor of 8085 processor
Bca 2nd sem-u-1.2 digital logic circuits, digital component
Chapter 3 Assembly level machine organization Assembly level machine organiza...
co1_aiml_new.pptx
Computer Organization and Assembly language.pptx
CAO.pptx
B.sc cs-ii -u-1.2 digital logic circuits, digital component
Introduction to C programing for problem
Introduction to-microprocessor
Introduction to-microprocessor
POLITEKNIK MALAYSIA
Ad

More from umardanjumamaiwada (20)

PPTX
Handover delay improvement reduction penang.pptx
PPTX
Dynamic-User-Equipment-Tracking-in-5G-Wireless-Systems.pptx
PPTX
Seminar Information Protection & Computer Security (Cryptography).pptx
PPTX
Oop using JAVA
PPTX
Computer hardware
DOC
2javascript web programming with JAVA script
DOC
1 web programming
PPTX
0 csc 3311 slide internet programming
PPTX
0 lecture 6 wp wireless protocol
PPTX
0 lecture 5 wp wireless protocol
PPTX
0 lecture 4 wp wireless protocol
PPTX
0 lecture 3 wp wireless protocol
PPTX
0 lecture 2 wp wireless protocol
PPTX
0 lecture 1 wp wireless protocol
PPTX
lecture 5
PPTX
lecture 4
PPTX
lecture 3
PPTX
lecture 2
PPTX
lecture 1
Handover delay improvement reduction penang.pptx
Dynamic-User-Equipment-Tracking-in-5G-Wireless-Systems.pptx
Seminar Information Protection & Computer Security (Cryptography).pptx
Oop using JAVA
Computer hardware
2javascript web programming with JAVA script
1 web programming
0 csc 3311 slide internet programming
0 lecture 6 wp wireless protocol
0 lecture 5 wp wireless protocol
0 lecture 4 wp wireless protocol
0 lecture 3 wp wireless protocol
0 lecture 2 wp wireless protocol
0 lecture 1 wp wireless protocol
lecture 5
lecture 4
lecture 3
lecture 2
lecture 1

Recently uploaded (20)

PPTX
PLC ANALOGUE DONE BY KISMEC KULIM TD 5 .0
PDF
2_STM32&SecureElements2_STM32&SecureElements
DOCX
A PROPOSAL ON IoT climate sensor 2.docx
PPTX
1.pptxsadafqefeqfeqfeffeqfqeqfeqefqfeqfqeffqe
PPTX
Nanokeyer nano keyekr kano ketkker nano keyer
PPT
Hypersensitivity Namisha1111111111-WPS.ppt
PDF
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
PPTX
material for studying about lift elevators escalation
PPTX
Presentation 1.pptxnshshdhhdhdhdhdhhdhdhdhd
DOCX
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
PDF
How NGOs Save Costs with Affordable IT Rentals
PPTX
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
PPTX
Fundamentals of Computer.pptx Computer BSC
PPTX
unit1d-communitypharmacy-240815170017-d032dce8.pptx
PPTX
Computers and mobile device: Evaluating options for home and work
PPTX
02fdgfhfhfhghghhhhhhhhhhhhhhhhhhhhh.pptx
PDF
PPT Determiners.pdf.......................
PPTX
New professional education PROF-ED-7_103359.pptx
PPTX
Operating System Processes_Scheduler OSS
PPTX
Embedded for Artificial Intelligence 1.pptx
PLC ANALOGUE DONE BY KISMEC KULIM TD 5 .0
2_STM32&SecureElements2_STM32&SecureElements
A PROPOSAL ON IoT climate sensor 2.docx
1.pptxsadafqefeqfeqfeffeqfqeqfeqefqfeqfqeffqe
Nanokeyer nano keyekr kano ketkker nano keyer
Hypersensitivity Namisha1111111111-WPS.ppt
Presented by ATHUL KRISHNA.S_20250813_191657_0000.pdf
material for studying about lift elevators escalation
Presentation 1.pptxnshshdhhdhdhdhdhhdhdhdhd
fsdffdghjjgfxfdghjvhjvgfdfcbchghgghgcbjghf
How NGOs Save Costs with Affordable IT Rentals
Entre CHtzyshshshshshshshzhhzzhhz 4MSt.pptx
Fundamentals of Computer.pptx Computer BSC
unit1d-communitypharmacy-240815170017-d032dce8.pptx
Computers and mobile device: Evaluating options for home and work
02fdgfhfhfhghghhhhhhhhhhhhhhhhhhhhh.pptx
PPT Determiners.pdf.......................
New professional education PROF-ED-7_103359.pptx
Operating System Processes_Scheduler OSS
Embedded for Artificial Intelligence 1.pptx

computer Architecture

  • 1. COMPUTER ARCHITECTURE CSC 3314 LECTURE 2 Department of Maths and Computer- Science Faculty of Natural and Applied Science BY UMAR DANJUMA MAIWADA
  • 2. BASIC CONCEPTS  Data: Numbers/ ASCII letter codes that correspond to the variables/constant in our program.  Instruction: interpreted by the computer and control what happens to data.  Both are stored in read-write memory but in different location  Both look the same but are processed differently  Both are binary in representation and can be manipulated using digital logic 2
  • 3. THE INITIAL CONCEPT OF THE MACHINE  Manipulate data  Interprets instructions (decide what todo)  Store words (data and instructions)  Keep track of things (what happens next)  Get instructions and data (in and out)  A computer system needs  Cpu  Storage  i/o  connectors 3
  • 4. STRUCTURE AND FUNCTIONS OF A COMPUTER  Structure: is a way in which components are interrelated  Function: is the operation of each individual components as part of a structure.  Function of a computer  Data processing : take variety of form  Data storage: file storage for retrieval and update  Data movement : sources and destination of data  Control: control unit helps in controlling the above units 4
  • 5. REGISTERS  They are used for active instructions and data which are currently being used. 5
  • 6. SOME REGISTERS  Memory buffer register: contains a word to be stored in memory or is used to receive a word form memory  Memory address register: specifies the address in memory of the word to be written from or read into the MBR  Instruction register: contains the 8 bit up code instructions being executed  Instruction buffer register: employed to temporarily hold the right hand instruction from a word in memory  Program counter: contains the address of the next instruction to be fetched from the memory 6
  • 7. EXECUTION UNIT AND BUS UNIT  The EU contains  ALU  CU  Register 7
  • 8. SYSTEM UNIT  Is an important hardware element of the PC  A system board  Power supply  Expansion slot for optional board 8
  • 9. FEATURES OF THE SYSTEM BOARD  Microprocessor: performs all execution of an instructions  RAM  ROM 9
  • 10. CPU  Is the most important development in integrated circuit technology were software's are executed. 10
  • 11. FUNCTIONS OF THE CPU  Mathematical operation  Logical manipulation  Data manipulation  Control operation 11
  • 12. BUS  Data bus: carries information to and from CPU. The size represent a bit  Address bus: it tells the location of data in the memory or I/O before CPU can read or write data.  Control bus: contains control signal for coordinating the operation of the CPU with other devices 12
  • 13. TYPICAL MOTHERBOARD  Motherboard with slots for holding parts  CPU has a fan  RAM data storage  I/O input and output  Bus  Power supply  Storage  Video display controller  Networking 13
  • 14. THE VON-NEUMANN MODEL  Input unit  Output unit  ALU  Memory unit  Control unit 14
  • 15. 15 Memory unit Control unit Input unit Output unitALU
  • 16. 16 CPU Main Memory Long term memory I/O and other peripherals Bus The basic Von-Neumann Design
  • 17. EXECUTION CYCLE  Processor cycle  There is a timer by an external clock signal  It is supplied to the processor  Operations are broken up into circles  The fastest operation will take one clock cycle and other will now take several cycle to complete the processor operation 17
  • 18. THE NEXT INSTRUCTION LOAD THE NEXT INSTRUCTION FROM MEMORY INTO THE IR UPDATE THE PC TO POINT AT THE NEXT INSTRUCTION DETERMINE THE TYPE OF INSTRUCTION FETCHED DETERMINE THE ADDRESS OF THE DATA IF NEEDED FETCH THE DATA FROM MEMORY EXECUTE THE INSTRUCTION RETURN TO STEP ONE FOR NEXT INSTRUCTION 18
  • 19. Running a program  When you run a code, the code is loaded into memory  Once the program is in the mm, it can be executed  The location is determined by the OS  The memory address of the instruction is loaded into the PC  The computer then begin to run the code 19
  • 20. EXECUTING AN INSTRUCTION  We need the instruction  At the start of the next clock cycle, the CPU issues request to the memory  The unit sends the memory address and a request to read from the main memory  If the MM is fast, it will not take time.  For the next instruction, the PC is changed PC=PC+1  The type of instruction is determine by the control unit  Data is then fetched  The result of the operation is stored in one of the 20
  • 21. 21  PC=ENTRY POINT  WHILE (PROGRAM IS RUNNING){  IR=MEMORY (PC);  PC=PC+1;  LET IT=TYPE OF (IR) in;  IF(IT NEEDS DATA){  LET ADDR=ADDR in (IR);  REGISTER (IT)=MEMORY(ADDR);}  LET TRG = TARGET OF (IR)  EXECUTE (IT,TRG);}
  • 22. THE SYSTEM BUS MODEL 22 CPU (ALU, Register, and control) I/OMemory Data Bus Address buss Control bus S y s t e m b u s
  • 23. SOFTWARE-HARDWARE INTERACTIONS  Machine language instruction: computer executes machine language programs mathematically without understanding them  Assembler: an assembly language program is translated into the target computers machine code by a utility program called an assembler.  Kernel: the kernel is the central component of most computer OS. It manages the system resources and the communication between hardware and software  OS: controlling and allocating memory. Networking and managing files 23
  • 25. HIGH LEVEL LANGUAGE  Program are portable  Debugging is easier  Program are not machine dependent  Programs are translated using a compiler  They are understandable 25
  • 26. ASSEMBLY LANGUAGE  Less understandable  Debugging is complex  Machine dependent  Not good for large programs 26
  • 27. COMPILER  A program that translate an instruction from one computer language to another language for the computer to understand 27
  • 28. QUESTIONS??? THANK YOU FOR YOUR ATTENTION 28

Editor's Notes

  • #6: Scalability of handover framework to handle increased handovers without compromising latency performance Flexibility to support various 4G deployments
  • #18: Mobility framework designed to cover: all possible deployment scenarios enable and optimize handover between IEEE 802.16m Bss handover from an IEEE 802.16e BS to an IEEE 802.16m BS (note: under a legacy ASN network) intra-BS zone switch between LZone and Mzone