COSC323 Lecture 1
COSC323 Lecture 1
Addressing modes with Register A simple Hello World Program using NASMS
operands Job Control Language
Addressing modes with constants Introduction
Addressing modes with memory Basic syntax of JCL statements
operands
Types of JCL statements
Addressing mode with stack
memory
Basic Computer Architecture and
Organization
Basic Computer Architecture and Organization
Outline:
Specific Objectives:
The electronic device that works with continuous signals is known as analog device and
the electronic device that works with discrete signals is known as digital device. In
present days most of the computers are digital in nature and we will deal with Digital
Computer in this course.
Computer is a digital device, which works on two levels of signal. We say these two
levels of signal as High and Low. The High-level signal basically corresponds to some
high-level signal (say 5 Volt or 12 Volt) and Low-level signal basically corresponds to
Low-level signal (say 0 Volt).
Representation of Basic Information
The smallest unit of information that is represented in computer is known as Bit ( Binary
Digit ), which is either 0 or 1.
Four bits such as 1001 is known as a Nibble
Eight bits such as 10100101 is known as a Byte.
210 (1024) bytes = 1kilobyte
Computer storage and memory is often measured in megabytes (MB) and gigabytes
(GB). 1 MB is 1,024 kilobytes, or 1,048,576 (1024x1024) bytes.
Similarly, one 1 GB is 1,024 MB, or 1,073,741,824 (1024x1024x1024) bytes.
A terabyte (TB) is 1,024 GB; 1 TB is about the same amount of information as all of the
books in a large library, or roughly 1,610 CDs worth of data.
A petabyte (PB) is 1,024 TB. 1 PB of data, if written on DVDs, would create roughly
223,100 DVDs, i.e., a stack about 878 feet tall, or a stack of CDs a mile high.
An exabyte (EB) is 1,024 PB.
A zettabyte (ZB) is 1,024 EB.
Finally, a yottabyte (YB) is 1,024 ZB.
Representation of Basic Information
In summary, we have;
Computer Architecture is a functional description of requirements and design implementation for the
various parts of a computer. It deals with the functional behavior of computer units. It refers to those
attributes of a system visible to a programmer.
Computer Organization refers to the operational units and their interconnections that realize the
architectural specifications. Computer Organization is how operational attributes are linked together and
contribute to realizing the architectural specification. Computer Organization deals with a structural
relationship of components.
Therefore, Computer Organization and Architecture is the study of internal working, structuring, and
implementation of a computer system.
The four main structural components of a computer are:
i. Central processing unit (CPU): Controls the operation of the computer and performs its data
processing functions; often simply referred to as processor.
ii. Main memory: Stores data.
iii. I/O: Moves data between the computer and its external environment.
iv. System interconnection: Some mechanism that provides for communication among CPU, main
memory, and I/O. A common name of system interconnection is system bus, consisting of a
number of conducting wires to which all the other components are attached.
Basic Computer Model and different units of Computer
Input Unit :
With the help of input unit data from outside can be supplied to the computer.
Program or data is read into main storage from input device or secondary storage under
the control of CPU input instruction.
Converts the external world data to a binary format, which can be understood by CPU
Example of input devices: Keyboard, Mouse, Hard disk, Floppy disk, CD-ROM drive etc.
Output Unit :
With the help of output unit computer results can be provided to the user or it can be
stored in storage device permanently for future use.
Output data from main storage go to output device under the control of CPU output
instructions.
Converts the binary format data to a format that a common man can understand
Example of output devices: Printer, Monitor, Plotter, Hard Disk, Floppy Disk etc.
Basic Computer Model and different units of Computer
Memory Unit :
Memory unit is used to store data, results, programs.
There are two classes of storage
i. Primary
ii. Secondary
Primary
This memory unit is termed as main memory module. CPU works directly with the information
stored in primary memory unit.
They are basically semi conductor memories and are divided into two:
i. Volatile Memory : RAM (Random Access Memory).
ii. Non-Volatile Memory : ROM (Read only Memory), PROM (Programmable ROM) EPROM (Erasable
PROM), EEPROM (Electrically Erasable PROM).
Basic Computer Model and different units of Computer
Memory Unit :
Secondary
Secondary memories are non volatile memory and they are used for permanent storage of data
and program.
Example of secondary memories:
i. Hard Disk, Floppy Disk, Magnetic Tape ------ These are magnetic devices,
ii. CD-ROM ------ is optical device
iii. USB drive (or pen drive) ------ is semiconductor memory.
Basic Computer Model and different units of Computer
Computer Bus:
A negligible but an important unit of a computer system.
A collection of parallel electrical conductors called ‘lines’ onto which a number of components or
devices may be connected or it is a common pathway or channel between multiple devices.
For instance, a 16-bit bus transfers 2 bytes at a time over 16 wires, and a 32-bit bus uses 32 wires,
and so on.
Three types of Bus Systems:
i. Address bus
ii. Data bus
iii. Control bus
Basic Computer Model and different units of Computer
Computer Bus:
Address bus:
It is used to transport the source and destination addresses of information transmitted on the data bus.
It is also used to indicate memory locations generated by the microprocessor, bus master, or DMA.
Data bus:
It is the internal pathway across which data is transferred to and from the processor or to and from
memory.
The width and speed of the data bus directly affects performance and significantly influence system
throughput.
Data bus width indicates how many bytes the bus can carry during each transfer.
Control bus:
It is technically a pathway for collection of control signals.
It is used to identify the type of bus cycle and indicate when the cycle is complete.