What Is A Computer?: Simply Put, That
What Is A Computer?: Simply Put, That
Memory Arithmetic
Input Instr1 & Logic
Instr2
Instr3
Data1
Output Data2 Control
3
Information in a computer --
Instructions
Instructions specify commands to:
Transfer information within a computer (e.g., from memory to ALU)
Transfer of information between the computer and I/O devices
(e.g., from keyboard to computer, or computer to printer)
Perform arithmetic and logic operations (e.g., Add two numbers,
Perform a logical AND).
Encoded characters.
Memory
Keyboard
Audio input
Input Unit
……
Processor
6
Memory unit
Memory unit stores instructions and data.
Recall, data is represented as a series of bits.
7
Memory unit (contd..)
Processor reads/writes to/from memory
based on the memory address:
Access any word location in a short and fixed amount of time based on the
address.
Random Access Memory (RAM) provides fixed access time independent of
the location of the word.
Access time is known as “Memory Access Time”.
Access times of general purpose registers are faster than the cache.
Memory Printer
Graphics display
Speakers
……
Output Unit
Processor
11
Control unit
Operation of a computer can be summarized
as:
Accepts information from the input units (Input unit).
Stores the information (Memory).
Processes the information (ALU).
Provides processed results through the output units (Output unit).
Bus
13
Organization of cache and
main memory
Main Cache
memory memory Processor
Bus
Why is the access time of the cache memory lesser than the
access time of the main memory?
14
Definition of Terms
ACL: Access Control List
APDIP: Asia Pacific Development Information Programme
APNIC: Asia Pacific Network Information Center
APRICOT: Asia Pacific Regional Internet Conference on
Operational Technologies
BIND: Berkeley Internet Name Domain
CCTLD: Country Code Top Level DOMAIN
CIDR: Classless Inter-Domain Routing
DNS: Domain Name System
DoS: Denial of Service
FOSS: Free/Open Source Software
FQDN: Fully Qualified Domain Name
FTP: File Transfer Protocol
gTLD: Global Top Level Domain
ICANN: Internet Corporation for Assigned Name and Numbers
IDS: Intrusion Detection System
Definition of Terms
IETF: Internet Engineering Task Force
IOSN: International Open Source Network
IP: Internet Protocol
ISP: Internet Service Provider
LAN: Local Area Network
MTA: Mail Transfer Agent
NAT: Network Address Translation
NetBEUI: NetBIOS Extended User Interface
NIC: Network Interface Card
NOS: Network Operating System
OS: operating system
PCH: Packet Clearing House
POP: Post Office Protocol
RBL: Realtime Block List
RFC: Request for Comments
Definition of Terms
RIR: Regional Internet Registry
SMTP: Simple Mail Transfer Protocol
SSL: Secure Sockets Layer
TCP: Transmission Control Protocol
UCE: unsolicited commercial e-mail
UDP: User Datagram Protocol
VLAN: Virtual Local Area Network
VPN: Virtual Private Network
WAN: Wide Area Network
Wi-Fi: Wireless Fidelity
WLAN: Wireless Local Area Network
Mano’s Computer Figure 5-4 s0 s1 s2
Bus
Memory Unit
7
4096x16
Address
WRITE READ
AR 1
LD INR CLR
PC 2
LD INR CLR
DR 3
LD INR CLR
Adder E
& Logic
AC 4
LD INR CLR
INPR
IR 5
LD
TR 6
LD INR CLR
OUTR
Clock
LD
16-bit common bus
Computer System Architecture, Mano, Copyright (C) 1993 Prentice-Hall, Inc.
Computer Registers
–Accumulator(AC) : takes input from ALU
»The ALU takes input from DR, AC and INPR :
»ADD DR to AC, AND DR to AC
–Note) Input register is not connected to the bus.
–The input register is connected only to the ALU
5-2 Computer Registers
• Data Register(DR) : hold the operand(Data) read from memory
Adder E
& Logic
AC 4
LD INR CLR
INPR
IR 5
LD
TR 6
LD INR CLR
OUTR
Clock
LD
16-bit common bus
Computer System Architecture, Mano, Copyright (C) 1993 Prentice-Hall, Inc.
Common Bus System
The basic computer has eight registers, a
memory unit, and a control unit.
12 bits
Instruction Codes
A process is controlled by a program
A program is a set of instructions that
specify the operations, data, and the
control sequence
An instruction is stored in binary code that
specifies a sequence of microoperations
Instruction codes together with data are
stored in memory (Stored Program
Concept)
Building A Basic Computer!
The basic computer instructions are
1. Memory
stored in the memory
address contents
The size of each memory word is 16 bits.
Each instruction occupy one word. 000000000001 0101010101010101
000000000010 1010101010101010
000000000011 1100110011001100
2. Program Counter
000000000100 0011001100110011
PC 000000000001 000000000101 0101010101010011
000000000110 1010101010101010
000000000111 1100110011001100
IR 0101010101010101
The address register is connected to the
memory
+1
The Program Counter points to PC
the next address of the program
000000000010
00000001
Computer
instruction
Adder E
& Logic
AC 4
LD INR CLR
INPR
IR 5
LD
TR 6
LD INR CLR
OUTR
Clock
LD
16-bit common bus
Computer System Architecture, Mano, Copyright (C) 1993 Prentice-Hall, Inc.
Direct address
Indirect address
Occurs When the Operand Contains the Address of the Address
of Needed Data.
Adder E
& Logic
AC 4
LD INR CLR
INPR
IR 5
LD
TR 6
LD INR CLR
OUTR
Clock
LD
16-bit common bus
Computer System Architecture, Mano, Copyright (C) 1993 Prentice-Hall, Inc.
Quiz 1 Finals
D2T4: DR M[AR]
D2T5: AC DR, SC 0
Store AC
STA: Store AC.
D3T4: M[AR] AC, SC 0
Branch unconditionally
BUN: Branch unconditionally. Transfers
the program to the instruction specified
by AR. (Note that the branch target
must be in AR beforehand.)
D4T4: PC AR, SC 0
Branch and save return
address
This instruction is useful for branching
to a position of the program called a
subprogram
D5T5: PC AR, SC 0
Increment and skip if zero
ISZ: Increment and skip if zero.
1) Programmed I/O
=0
Execute IEN
instruction
=1
Branch to location 1
PC 1
=1
FGI
=0
=1 IEN 0
FGO R 0
=0
R 1
Program Interrupt
Demonstration of the interrupt cycle :
The memory location at address 0 is the