Basic structure of computers

Kumar
Kumar Administrator
Chapter 1. Basic
Structure of Computers
Functional Units
Functional Units
Arithmetic
and
logic

Input
Memory
Output

Control

I/O

Processor

Figure 1.1.  Basic functional units of a computer.
Information Handled by a
Computer
 Instructions/machine




instructions

Govern the transfer of information within a computer as
well as between the computer and its I/O devices
Specify the arithmetic and logic operations to be
performed
Program

 Data



Used as operands by the instructions
Source program

 Encoded

in binary code – 0 and 1
Memory Unit
 Store

programs and data
 Two classes of storage


Primary storage





Fast
Programs must be stored in memory while they are being executed
Large number of semiconductor storage cells
Processed in words
Address
RAM and memory access time
Memory hierarchy – cache, main memory



Secondary storage – larger and cheaper






Arithmetic and Logic Unit
(ALU)
 Most

computer operations are executed in
ALU of the processor.
 Load the operands into memory – bring them
to the processor – perform operation in ALU –
store the result back to memory or retain in
the processor.
 Registers
 Fast control of ALU
Control Unit









All computer operations are controlled by the control
unit.
The timing signals that govern the I/O transfers are
also generated by the control unit.
Control unit is usually distributed throughout the
machine instead of standing alone.
Operations of a computer:
Accept information in the form of programs and data through an
input unit and store it in the memory
Fetch the information stored in the memory, under program control,
into an ALU, where the information is processed
Output the processed information through an output unit
Control all activities inside the machine through a control unit
The processor : Data Path and
Control

Two types of functional units:
elements that operate on data values (combinational)
 elements that contain state (state elements)
Five Execution Steps
Step name

Action for R-type
instructions

Action for Memoryreference Instructions

Action for
branches

Instruction fetch

IR = MEM[PC]
PC = PC + 4

Instruction decode/ register
fetch

Action for
jumps

A = Reg[IR[25-21]]
B = Reg[IR[20-16]]
ALUOut = PC + (sign extend (IR[15-0])<<2)

Execution, address
computation, branch/jump
completion

ALUOut = A op B

ALUOut = A+sign
extend(IR[15-0])

Memory access or R-type
completion

Reg[IR[15-11]] =
ALUOut

Load:MDR =Mem[ALUOut]
or
Store:Mem[ALUOut] = B

Memory read completion

Load: Reg[IR[20-16]] =
MDR

IF(A==B) Then
PC=ALUOut

PC=PC[3128]||(IR[250]<<2)
Review







Activity in a computer is governed by instructions.
To perform a task, an appropriate program
consisting of a list of instructions is stored in the
memory.
Individual instructions are brought from the memory
into the processor, which executes the specified
operations.
Data to be used as operands are also stored in the
memory.
A Typical Instruction







Add LOCA, R0
Add the operand at memory location LOCA to the
operand in a register R0 in the processor.
Place the sum into register R0.
The original contents of LOCA are preserved.
The original contents of R0 is overwritten.
Instruction is fetched from the memory into the
processor – the operand at LOCA is fetched and
added to the contents of R0 – the resulting sum is
stored in register R0.
Separate Memory Access and
ALU Operation
 Load

LOCA, R1
 Add R1, R0
 Whose contents will be overwritten?
Connection Between the
Processor and the Memory
Memory

MAR

MDR
Control

PC

R0
R1

Processor

IR
ALU
Rn ­

1

n general purpose
registers

Figure 1.2.   Connections between the processor and the  memory.
Registers
 Instruction

register (IR)
 Program counter (PC)
 General-purpose register (R – R )
0
n-1
 Memory

address register (MAR)
 Memory data register (MDR)
Typical Operating Steps
 Programs

reside in the memory through input

devices
 PC is set to point to the first instruction
 The contents of PC are transferred to MAR
 A Read signal is sent to the memory
 The first instruction is read out and loaded
into MDR
 The contents of MDR are transferred to IR
 Decode and execute the instruction
Typical Operating Steps
(Cont’)
 Get



operands for ALU

General-purpose register
Memory (address to MAR – Read – MDR to ALU)

 Perform

operation in ALU
 Store the result back



To general-purpose register
To memory (address to MAR, result to MDR – Write)

 During

the execution, PC is
incremented to the next instruction
Interrupt







Normal execution of programs may be preempted if
some device requires urgent servicing.
The normal execution of the current program must
be interrupted – the device raises an interrupt
signal.
Interrupt-service routine
Current system information backup and restore (PC,
general-purpose registers, control information,
specific information)
Bus Structures
 There

are many ways to connect different
parts inside a computer together.
 A group of lines that serves as a connecting
path for several devices is called a bus.
 Address/data/control
Bus Structure
 Single-bus

Input

Output

Memory

Figure 1.3.    Single­bus structure.

Processor
Speed Issue
 Different

devices have different
transfer/operate speed.
 If the speed of bus is bounded by the slowest
device connected to it, the efficiency will be
very low.
 How to solve this?
 A common approach – use buffers.
Performance
Performance
 The

most important measure of a computer is
how quickly it can execute programs.
 Three factors affect performance:




Hardware design
Instruction set
Compiler
Performance


Processor time to execute a program depends on the hardware
involved in the execution of individual machine instructions.
Main
memory

Cache
memory

Processor

Bus

Figure 1.5.

The processor cache.
Performance
 The

processor and a relatively small cache
memory can be fabricated on a single
integrated circuit chip.
 Speed
 Cost
 Memory management
Processor Clock
 Clock,

clock cycle, and clock rate
 The execution of each instruction is divided
into several steps, each of which completes
in one clock cycle.
 Hertz – cycles per second
Basic Performance Equation






T – processor time required to execute a program that has been
prepared in high-level language
N – number of actual machine language instructions needed to
complete the execution (note: loop)
S – average number of basic steps needed to execute one
machine instruction. Each step completes in one clock cycle
R – clock rate
Note: these are not independent to each other

N×S
T=
R
How to improve T?
Pipeline and Superscalar
Operation







Instructions are not necessarily executed one after
another.
The value of S doesn’t have to be the number of
clock cycles to execute one instruction.
Pipelining – overlapping the execution of successive
instructions.
Add R1, R2, R3
Superscalar operation – multiple instruction
pipelines are implemented in the processor.
Goal – reduce S (could become <1!)
Clock Rate
 Increase



clock rate

Improve the integrated-circuit (IC) technology to make
the circuits faster
Reduce the amount of processing done in one basic step
(however, this may increase the number of basic steps
needed)

 Increases

in R that are entirely caused by
improvements in IC technology affect all
aspects of the processor’s operation equally
except the time to access the main memory.
CISC and RISC
 Tradeoff

between N and S
 A key consideration is the use of pipelining




S is close to 1 even though the number of basic steps
per instruction may be considerably larger
It is much easier to implement efficient pipelining in
processor with simple instruction sets

 Reduced

Instruction Set Computers (RISC)
 Complex Instruction Set Computers (CISC)
Compiler







A compiler translates a high-level language program
into a sequence of machine instructions.
To reduce N, we need a suitable machine instruction
set and a compiler that makes good use of it.
Goal – reduce N×S
A compiler may not be designed for a specific
processor; however, a high-quality compiler is
usually designed for, and with, a specific processor.
Performance Measurement







T is difficult to compute.
Measure computer performance using benchmark programs.
System Performance Evaluation Corporation (SPEC) selects and
publishes representative application programs for different application
domains, together with test results for many commercially available
computers.
Compile and run (no simulation)
Reference computer

Running time on the reference computer
SPEC rating =
Running time on the computer under test
n

SPEC rating = (∏SPECi )
i =1

1
n
Multiprocessors and
Multicomputers


Multiprocessor computer





Execute a number of different application tasks in parallel
Execute subtasks of a single large task in parallel
All processors have access to all of the memory – shared-memory
multiprocessor
Cost – processors, memory units, complex interconnection networks



Multicomputers



Each computer only have access to its own memory
Exchange message via a communication network – messagepassing multicomputers





1 de 32

Recomendados

Computer Structure Slides por
Computer Structure SlidesComputer Structure Slides
Computer Structure Slidesiarthur
14.2K visualizações41 slides
Computer Organisation & Architecture (chapter 1) por
Computer Organisation & Architecture (chapter 1) Computer Organisation & Architecture (chapter 1)
Computer Organisation & Architecture (chapter 1) Subhasis Dash
2.3K visualizações37 slides
Cpu ppt cse por
Cpu ppt cseCpu ppt cse
Cpu ppt cseManpreet Kaur Sidhu
78.1K visualizações21 slides
Control unit por
Control unitControl unit
Control unitPiyush Rochwani
18.8K visualizações24 slides
Cpu por
CpuCpu
CpuMuhammad Ramzan
9.5K visualizações28 slides
Functional units por
Functional unitsFunctional units
Functional unitsJeeva Nanthini
26.7K visualizações13 slides

Mais conteúdo relacionado

Mais procurados

Central Processing Unit por
Central Processing UnitCentral Processing Unit
Central Processing UnitJan Ralph
26.3K visualizações23 slides
Control unit por
Control  unitControl  unit
Control unitSameer Patil
7.6K visualizações12 slides
Introduction to computer Powerpoint Presentation por
Introduction to computer Powerpoint PresentationIntroduction to computer Powerpoint Presentation
Introduction to computer Powerpoint PresentationJibin Sr. Plamoottukada
11.5K visualizações30 slides
DIGITAL COMPUTERS por
DIGITAL COMPUTERSDIGITAL COMPUTERS
DIGITAL COMPUTERSdevasishreddy22
5.6K visualizações24 slides
Introduction to computers por
Introduction to computersIntroduction to computers
Introduction to computersAkash Varaiya
24.8K visualizações32 slides
computer Architecture por
computer Architecturecomputer Architecture
computer Architectureumardanjumamaiwada
18.6K visualizações22 slides

Mais procurados(20)

Central Processing Unit por Jan Ralph
Central Processing UnitCentral Processing Unit
Central Processing Unit
Jan Ralph26.3K visualizações
Control unit por Sameer Patil
Control  unitControl  unit
Control unit
Sameer Patil7.6K visualizações
Introduction to computer Powerpoint Presentation por Jibin Sr. Plamoottukada
Introduction to computer Powerpoint PresentationIntroduction to computer Powerpoint Presentation
Introduction to computer Powerpoint Presentation
Jibin Sr. Plamoottukada11.5K visualizações
DIGITAL COMPUTERS por devasishreddy22
DIGITAL COMPUTERSDIGITAL COMPUTERS
DIGITAL COMPUTERS
devasishreddy225.6K visualizações
Introduction to computers por Akash Varaiya
Introduction to computersIntroduction to computers
Introduction to computers
Akash Varaiya24.8K visualizações
computer Architecture por umardanjumamaiwada
computer Architecturecomputer Architecture
computer Architecture
umardanjumamaiwada18.6K visualizações
Computer organization por ishapadhy
Computer organizationComputer organization
Computer organization
ishapadhy9.7K visualizações
Information processing cycle por aqeel palijo
Information processing cycleInformation processing cycle
Information processing cycle
aqeel palijo6.1K visualizações
Computer Fundamentals por archikabhatia
Computer FundamentalsComputer Fundamentals
Computer Fundamentals
archikabhatia119K visualizações
Os ppt por Mitali Chugh
Os pptOs ppt
Os ppt
Mitali Chugh73.6K visualizações
Types of computer por Frya Lora
Types of computerTypes of computer
Types of computer
Frya Lora51.4K visualizações
Computer system bus por Goran W. Hama Ali
Computer system busComputer system bus
Computer system bus
Goran W. Hama Ali39K visualizações
Computer Organization and Architecture. por CS_GDRCST
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
CS_GDRCST22.7K visualizações
Instruction pipeline: Computer Architecture por Md. Saidur Rahman Kohinoor
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
Md. Saidur Rahman Kohinoor56.9K visualizações
Basic CPU (Central Processing Unit) por Faraz Ahmed
Basic CPU (Central Processing Unit)Basic CPU (Central Processing Unit)
Basic CPU (Central Processing Unit)
Faraz Ahmed2.5K visualizações
CPU-Central Processing Unit (With History and Complete Detail) por Adeel Rasheed
CPU-Central Processing Unit (With History and Complete Detail)CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)
Adeel Rasheed11.9K visualizações
3. basic organization of a computer por SHIKHA GAUTAM
3. basic organization of a computer3. basic organization of a computer
3. basic organization of a computer
SHIKHA GAUTAM25.3K visualizações
Input output organization por abdulugc
Input output organizationInput output organization
Input output organization
abdulugc49K visualizações
Introduction to Operating Systems por Mukesh Chinta
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
Mukesh Chinta20.9K visualizações
basic structure of computers por Himanshu Chawla
basic structure of computersbasic structure of computers
basic structure of computers
Himanshu Chawla12.9K visualizações

Similar a Basic structure of computers

chapter 1 -Basic Structure of Computers.ppt por
chapter 1 -Basic Structure of Computers.pptchapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.pptsandeepPingili1
22 visualizações119 slides
UNIT I.ppt por
UNIT I.pptUNIT I.ppt
UNIT I.pptJEEVANANTHAMG6
7 visualizações118 slides
Chapter 1 basic structure of computers por
Chapter 1  basic structure of computersChapter 1  basic structure of computers
Chapter 1 basic structure of computersGurpreet Singh
9.4K visualizações119 slides
Chapter1 basic structure of computers por
Chapter1  basic structure of computersChapter1  basic structure of computers
Chapter1 basic structure of computersjismymathew
319 visualizações119 slides
Basic structure of computers by aniket bhute por
Basic structure of computers by aniket bhuteBasic structure of computers by aniket bhute
Basic structure of computers by aniket bhuteAniket Bhute
438 visualizações119 slides
Computer organisation Module 1.ppt por
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.pptSoulReaper21
181 visualizações149 slides

Similar a Basic structure of computers(20)

chapter 1 -Basic Structure of Computers.ppt por sandeepPingili1
chapter 1 -Basic Structure of Computers.pptchapter 1 -Basic Structure of Computers.ppt
chapter 1 -Basic Structure of Computers.ppt
sandeepPingili122 visualizações
UNIT I.ppt por JEEVANANTHAMG6
UNIT I.pptUNIT I.ppt
UNIT I.ppt
JEEVANANTHAMG67 visualizações
Chapter 1 basic structure of computers por Gurpreet Singh
Chapter 1  basic structure of computersChapter 1  basic structure of computers
Chapter 1 basic structure of computers
Gurpreet Singh9.4K visualizações
Chapter1 basic structure of computers por jismymathew
Chapter1  basic structure of computersChapter1  basic structure of computers
Chapter1 basic structure of computers
jismymathew319 visualizações
Basic structure of computers by aniket bhute por Aniket Bhute
Basic structure of computers by aniket bhuteBasic structure of computers by aniket bhute
Basic structure of computers by aniket bhute
Aniket Bhute438 visualizações
Computer organisation Module 1.ppt por SoulReaper21
Computer organisation Module 1.pptComputer organisation Module 1.ppt
Computer organisation Module 1.ppt
SoulReaper21181 visualizações
Unit 1 basic structure of computers por chidabdu
Unit 1   basic structure of computersUnit 1   basic structure of computers
Unit 1 basic structure of computers
chidabdu36.2K visualizações
comp. org Chapter 1 por Rajat Sharma
comp. org Chapter 1comp. org Chapter 1
comp. org Chapter 1
Rajat Sharma817 visualizações
unit-i.pdf por RISHI643981
unit-i.pdfunit-i.pdf
unit-i.pdf
RISHI64398112 visualizações
chapter 1 -Basic Structure of Computers.pptx por janani603976
chapter 1 -Basic Structure of Computers.pptxchapter 1 -Basic Structure of Computers.pptx
chapter 1 -Basic Structure of Computers.pptx
janani6039769 visualizações
module 1 computer architecture diploma por Manoharan Ragavan
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
Manoharan Ragavan2.9K visualizações
COMPUTER ORGNAIZATION NOTES por Dr.MAYA NAYAK
COMPUTER ORGNAIZATION NOTESCOMPUTER ORGNAIZATION NOTES
COMPUTER ORGNAIZATION NOTES
Dr.MAYA NAYAK490 visualizações
03. top level view of computer function &amp; interconnection por noman yasin
03. top level view of computer function &amp; interconnection03. top level view of computer function &amp; interconnection
03. top level view of computer function &amp; interconnection
noman yasin517 visualizações
COA-Unit-1-Basics.ppt por Ruhul Amin
COA-Unit-1-Basics.pptCOA-Unit-1-Basics.ppt
COA-Unit-1-Basics.ppt
Ruhul Amin7 visualizações
1 Intro To Micro P por ikinfad
1 Intro To Micro P1 Intro To Micro P
1 Intro To Micro P
ikinfad1.2K visualizações
Intro to cao &store program por Mahesh Kumar Attri
Intro to cao &store programIntro to cao &store program
Intro to cao &store program
Mahesh Kumar Attri3.9K visualizações
Introduction to Operating Systems por Jérôme Kehrli
 Introduction to Operating Systems Introduction to Operating Systems
Introduction to Operating Systems
Jérôme Kehrli223 visualizações
Co notes3 sem por dilshad begum
Co notes3 semCo notes3 sem
Co notes3 sem
dilshad begum577 visualizações

Mais de Kumar

Graphics devices por
Graphics devicesGraphics devices
Graphics devicesKumar
6.6K visualizações67 slides
Fill area algorithms por
Fill area algorithmsFill area algorithms
Fill area algorithmsKumar
22.2K visualizações45 slides
region-filling por
region-fillingregion-filling
region-fillingKumar
9.2K visualizações81 slides
Bresenham derivation por
Bresenham derivationBresenham derivation
Bresenham derivationKumar
1K visualizações3 slides
Bresenham circles and polygons derication por
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons dericationKumar
2.9K visualizações59 slides
Introductionto xslt por
Introductionto xsltIntroductionto xslt
Introductionto xsltKumar
1.3K visualizações63 slides

Mais de Kumar (20)

Graphics devices por Kumar
Graphics devicesGraphics devices
Graphics devices
Kumar 6.6K visualizações
Fill area algorithms por Kumar
Fill area algorithmsFill area algorithms
Fill area algorithms
Kumar 22.2K visualizações
region-filling por Kumar
region-fillingregion-filling
region-filling
Kumar 9.2K visualizações
Bresenham derivation por Kumar
Bresenham derivationBresenham derivation
Bresenham derivation
Kumar 1K visualizações
Bresenham circles and polygons derication por Kumar
Bresenham circles and polygons dericationBresenham circles and polygons derication
Bresenham circles and polygons derication
Kumar 2.9K visualizações
Introductionto xslt por Kumar
Introductionto xsltIntroductionto xslt
Introductionto xslt
Kumar 1.3K visualizações
Extracting data from xml por Kumar
Extracting data from xmlExtracting data from xml
Extracting data from xml
Kumar 765 visualizações
Xml basics por Kumar
Xml basicsXml basics
Xml basics
Kumar 959 visualizações
XML Schema por Kumar
XML SchemaXML Schema
XML Schema
Kumar 4.3K visualizações
Publishing xml por Kumar
Publishing xmlPublishing xml
Publishing xml
Kumar 468 visualizações
DTD por Kumar
DTDDTD
DTD
Kumar 1.1K visualizações
Applying xml por Kumar
Applying xmlApplying xml
Applying xml
Kumar 492 visualizações
Introduction to XML por Kumar
Introduction to XMLIntroduction to XML
Introduction to XML
Kumar 918 visualizações
How to deploy a j2ee application por Kumar
How to deploy a j2ee applicationHow to deploy a j2ee application
How to deploy a j2ee application
Kumar 628 visualizações
JNDI, JMS, JPA, XML por Kumar
JNDI, JMS, JPA, XMLJNDI, JMS, JPA, XML
JNDI, JMS, JPA, XML
Kumar 738 visualizações
EJB Fundmentals por Kumar
EJB FundmentalsEJB Fundmentals
EJB Fundmentals
Kumar 336 visualizações
JSP and struts programming por Kumar
JSP and struts programmingJSP and struts programming
JSP and struts programming
Kumar 1.2K visualizações
java servlet and servlet programming por Kumar
java servlet and servlet programmingjava servlet and servlet programming
java servlet and servlet programming
Kumar 2.1K visualizações
Introduction to JDBC and JDBC Drivers por Kumar
Introduction to JDBC and JDBC DriversIntroduction to JDBC and JDBC Drivers
Introduction to JDBC and JDBC Drivers
Kumar 515 visualizações
Introduction to J2EE por Kumar
Introduction to J2EEIntroduction to J2EE
Introduction to J2EE
Kumar 422 visualizações

Último

Report 2030 Digital Decade por
Report 2030 Digital DecadeReport 2030 Digital Decade
Report 2030 Digital DecadeMassimo Talia
14 visualizações41 slides
handbook for web 3 adoption.pdf por
handbook for web 3 adoption.pdfhandbook for web 3 adoption.pdf
handbook for web 3 adoption.pdfLiveplex
19 visualizações16 slides
Attacking IoT Devices from a Web Perspective - Linux Day por
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day Simone Onofri
15 visualizações68 slides
The Research Portal of Catalonia: Growing more (information) & more (services) por
The Research Portal of Catalonia: Growing more (information) & more (services)The Research Portal of Catalonia: Growing more (information) & more (services)
The Research Portal of Catalonia: Growing more (information) & more (services)CSUC - Consorci de Serveis Universitaris de Catalunya
73 visualizações25 slides
Future of Learning - Yap Aye Wee.pdf por
Future of Learning - Yap Aye Wee.pdfFuture of Learning - Yap Aye Wee.pdf
Future of Learning - Yap Aye Wee.pdfNUS-ISS
41 visualizações11 slides
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum... por
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...NUS-ISS
34 visualizações35 slides

Último(20)

Report 2030 Digital Decade por Massimo Talia
Report 2030 Digital DecadeReport 2030 Digital Decade
Report 2030 Digital Decade
Massimo Talia14 visualizações
handbook for web 3 adoption.pdf por Liveplex
handbook for web 3 adoption.pdfhandbook for web 3 adoption.pdf
handbook for web 3 adoption.pdf
Liveplex19 visualizações
Attacking IoT Devices from a Web Perspective - Linux Day por Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri15 visualizações
Future of Learning - Yap Aye Wee.pdf por NUS-ISS
Future of Learning - Yap Aye Wee.pdfFuture of Learning - Yap Aye Wee.pdf
Future of Learning - Yap Aye Wee.pdf
NUS-ISS41 visualizações
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum... por NUS-ISS
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
Beyond the Hype: What Generative AI Means for the Future of Work - Damien Cum...
NUS-ISS34 visualizações
Data-centric AI and the convergence of data and model engineering: opportunit... por Paolo Missier
Data-centric AI and the convergence of data and model engineering:opportunit...Data-centric AI and the convergence of data and model engineering:opportunit...
Data-centric AI and the convergence of data and model engineering: opportunit...
Paolo Missier34 visualizações
Java Platform Approach 1.0 - Picnic Meetup por Rick Ossendrijver
Java Platform Approach 1.0 - Picnic MeetupJava Platform Approach 1.0 - Picnic Meetup
Java Platform Approach 1.0 - Picnic Meetup
Rick Ossendrijver25 visualizações
RADIUS-Omnichannel Interaction System por RADIUS
RADIUS-Omnichannel Interaction SystemRADIUS-Omnichannel Interaction System
RADIUS-Omnichannel Interaction System
RADIUS15 visualizações
Perth MeetUp November 2023 por Michael Price
Perth MeetUp November 2023 Perth MeetUp November 2023
Perth MeetUp November 2023
Michael Price15 visualizações
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu... por NUS-ISS
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
Architecting CX Measurement Frameworks and Ensuring CX Metrics are fit for Pu...
NUS-ISS37 visualizações
.conf Go 2023 - Data analysis as a routine por Splunk
.conf Go 2023 - Data analysis as a routine.conf Go 2023 - Data analysis as a routine
.conf Go 2023 - Data analysis as a routine
Splunk93 visualizações
Tunable Laser (1).pptx por Hajira Mahmood
Tunable Laser (1).pptxTunable Laser (1).pptx
Tunable Laser (1).pptx
Hajira Mahmood23 visualizações
AMAZON PRODUCT RESEARCH.pdf por JerikkLaureta
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdf
JerikkLaureta15 visualizações
Empathic Computing: Delivering the Potential of the Metaverse por Mark Billinghurst
Empathic Computing: Delivering  the Potential of the MetaverseEmpathic Computing: Delivering  the Potential of the Metaverse
Empathic Computing: Delivering the Potential of the Metaverse
Mark Billinghurst470 visualizações
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze por NUS-ISS
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng TszeDigital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze
Digital Product-Centric Enterprise and Enterprise Architecture - Tan Eng Tsze
NUS-ISS19 visualizações
SAP Automation Using Bar Code and FIORI.pdf por Virendra Rai, PMP
SAP Automation Using Bar Code and FIORI.pdfSAP Automation Using Bar Code and FIORI.pdf
SAP Automation Using Bar Code and FIORI.pdf
Virendra Rai, PMP19 visualizações
Spesifikasi Lengkap ASUS Vivobook Go 14 por Dot Semarang
Spesifikasi Lengkap ASUS Vivobook Go 14Spesifikasi Lengkap ASUS Vivobook Go 14
Spesifikasi Lengkap ASUS Vivobook Go 14
Dot Semarang35 visualizações
AI: mind, matter, meaning, metaphors, being, becoming, life values por Twain Liu 刘秋艳
AI: mind, matter, meaning, metaphors, being, becoming, life valuesAI: mind, matter, meaning, metaphors, being, becoming, life values
AI: mind, matter, meaning, metaphors, being, becoming, life values
Twain Liu 刘秋艳35 visualizações
Business Analyst Series 2023 - Week 3 Session 5 por DianaGray10
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray10209 visualizações

Basic structure of computers

  • 4. Information Handled by a Computer  Instructions/machine    instructions Govern the transfer of information within a computer as well as between the computer and its I/O devices Specify the arithmetic and logic operations to be performed Program  Data   Used as operands by the instructions Source program  Encoded in binary code – 0 and 1
  • 5. Memory Unit  Store programs and data  Two classes of storage  Primary storage   Fast Programs must be stored in memory while they are being executed Large number of semiconductor storage cells Processed in words Address RAM and memory access time Memory hierarchy – cache, main memory  Secondary storage – larger and cheaper     
  • 6. Arithmetic and Logic Unit (ALU)  Most computer operations are executed in ALU of the processor.  Load the operands into memory – bring them to the processor – perform operation in ALU – store the result back to memory or retain in the processor.  Registers  Fast control of ALU
  • 7. Control Unit         All computer operations are controlled by the control unit. The timing signals that govern the I/O transfers are also generated by the control unit. Control unit is usually distributed throughout the machine instead of standing alone. Operations of a computer: Accept information in the form of programs and data through an input unit and store it in the memory Fetch the information stored in the memory, under program control, into an ALU, where the information is processed Output the processed information through an output unit Control all activities inside the machine through a control unit
  • 8. The processor : Data Path and Control Two types of functional units: elements that operate on data values (combinational)  elements that contain state (state elements)
  • 9. Five Execution Steps Step name Action for R-type instructions Action for Memoryreference Instructions Action for branches Instruction fetch IR = MEM[PC] PC = PC + 4 Instruction decode/ register fetch Action for jumps A = Reg[IR[25-21]] B = Reg[IR[20-16]] ALUOut = PC + (sign extend (IR[15-0])<<2) Execution, address computation, branch/jump completion ALUOut = A op B ALUOut = A+sign extend(IR[15-0]) Memory access or R-type completion Reg[IR[15-11]] = ALUOut Load:MDR =Mem[ALUOut] or Store:Mem[ALUOut] = B Memory read completion Load: Reg[IR[20-16]] = MDR IF(A==B) Then PC=ALUOut PC=PC[3128]||(IR[250]<<2)
  • 10. Review     Activity in a computer is governed by instructions. To perform a task, an appropriate program consisting of a list of instructions is stored in the memory. Individual instructions are brought from the memory into the processor, which executes the specified operations. Data to be used as operands are also stored in the memory.
  • 11. A Typical Instruction       Add LOCA, R0 Add the operand at memory location LOCA to the operand in a register R0 in the processor. Place the sum into register R0. The original contents of LOCA are preserved. The original contents of R0 is overwritten. Instruction is fetched from the memory into the processor – the operand at LOCA is fetched and added to the contents of R0 – the resulting sum is stored in register R0.
  • 12. Separate Memory Access and ALU Operation  Load LOCA, R1  Add R1, R0  Whose contents will be overwritten?
  • 13. Connection Between the Processor and the Memory Memory MAR MDR Control PC R0 R1 Processor IR ALU Rn ­ 1 n general purpose registers Figure 1.2.   Connections between the processor and the  memory.
  • 14. Registers  Instruction register (IR)  Program counter (PC)  General-purpose register (R – R ) 0 n-1  Memory address register (MAR)  Memory data register (MDR)
  • 15. Typical Operating Steps  Programs reside in the memory through input devices  PC is set to point to the first instruction  The contents of PC are transferred to MAR  A Read signal is sent to the memory  The first instruction is read out and loaded into MDR  The contents of MDR are transferred to IR  Decode and execute the instruction
  • 16. Typical Operating Steps (Cont’)  Get   operands for ALU General-purpose register Memory (address to MAR – Read – MDR to ALU)  Perform operation in ALU  Store the result back   To general-purpose register To memory (address to MAR, result to MDR – Write)  During the execution, PC is incremented to the next instruction
  • 17. Interrupt     Normal execution of programs may be preempted if some device requires urgent servicing. The normal execution of the current program must be interrupted – the device raises an interrupt signal. Interrupt-service routine Current system information backup and restore (PC, general-purpose registers, control information, specific information)
  • 18. Bus Structures  There are many ways to connect different parts inside a computer together.  A group of lines that serves as a connecting path for several devices is called a bus.  Address/data/control
  • 20. Speed Issue  Different devices have different transfer/operate speed.  If the speed of bus is bounded by the slowest device connected to it, the efficiency will be very low.  How to solve this?  A common approach – use buffers.
  • 22. Performance  The most important measure of a computer is how quickly it can execute programs.  Three factors affect performance:    Hardware design Instruction set Compiler
  • 23. Performance  Processor time to execute a program depends on the hardware involved in the execution of individual machine instructions. Main memory Cache memory Processor Bus Figure 1.5. The processor cache.
  • 24. Performance  The processor and a relatively small cache memory can be fabricated on a single integrated circuit chip.  Speed  Cost  Memory management
  • 25. Processor Clock  Clock, clock cycle, and clock rate  The execution of each instruction is divided into several steps, each of which completes in one clock cycle.  Hertz – cycles per second
  • 26. Basic Performance Equation      T – processor time required to execute a program that has been prepared in high-level language N – number of actual machine language instructions needed to complete the execution (note: loop) S – average number of basic steps needed to execute one machine instruction. Each step completes in one clock cycle R – clock rate Note: these are not independent to each other N×S T= R How to improve T?
  • 27. Pipeline and Superscalar Operation       Instructions are not necessarily executed one after another. The value of S doesn’t have to be the number of clock cycles to execute one instruction. Pipelining – overlapping the execution of successive instructions. Add R1, R2, R3 Superscalar operation – multiple instruction pipelines are implemented in the processor. Goal – reduce S (could become <1!)
  • 28. Clock Rate  Increase   clock rate Improve the integrated-circuit (IC) technology to make the circuits faster Reduce the amount of processing done in one basic step (however, this may increase the number of basic steps needed)  Increases in R that are entirely caused by improvements in IC technology affect all aspects of the processor’s operation equally except the time to access the main memory.
  • 29. CISC and RISC  Tradeoff between N and S  A key consideration is the use of pipelining   S is close to 1 even though the number of basic steps per instruction may be considerably larger It is much easier to implement efficient pipelining in processor with simple instruction sets  Reduced Instruction Set Computers (RISC)  Complex Instruction Set Computers (CISC)
  • 30. Compiler     A compiler translates a high-level language program into a sequence of machine instructions. To reduce N, we need a suitable machine instruction set and a compiler that makes good use of it. Goal – reduce N×S A compiler may not be designed for a specific processor; however, a high-quality compiler is usually designed for, and with, a specific processor.
  • 31. Performance Measurement      T is difficult to compute. Measure computer performance using benchmark programs. System Performance Evaluation Corporation (SPEC) selects and publishes representative application programs for different application domains, together with test results for many commercially available computers. Compile and run (no simulation) Reference computer Running time on the reference computer SPEC rating = Running time on the computer under test n SPEC rating = (∏SPECi ) i =1 1 n
  • 32. Multiprocessors and Multicomputers  Multiprocessor computer   Execute a number of different application tasks in parallel Execute subtasks of a single large task in parallel All processors have access to all of the memory – shared-memory multiprocessor Cost – processors, memory units, complex interconnection networks  Multicomputers  Each computer only have access to its own memory Exchange message via a communication network – messagepassing multicomputers   