Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 24

FIRST TERM E-LEARNING NOTE

Website: www.deeperlifehighschool.org E-mail: deeperlifehighschool@yahoo.com

SUBJECT: COMPUTER STUDIES


CLASS: SS 2

FIRST TERM SCHEME OF WORK

WEEK TOPIC

THEME: BASIC CONCEPT OF COMPUTER HARDWARE


1. Revision of last term’s work.
2. Central Processing Unit (CPU): Central Processing Unit: (i) Arithmetic and Logic Unit ALU (ii)
Control Unit. Functions of: ALU and control Unit.
3. Memory Unit: (a) Types of memory: Primary Memory (Main Memory) and Secondary memory
(Auxiliary Storage Devices) (b) Description of (i) Primary Memory: Random Access Memory (RAM)
and Read only Memory (ROM) (ii) Secondary Memory (i) Floppy Disk (ii) Hard Disk (iii) Flash Drive
(iv) Compact Disk (CD) (v) Digital Video Disk (DVD).
4. Memory Unit: (c) Differences between primary and secondary memory (d) Units of storage: Bits,
Nibble, Bytes, Kilobytes (KB), Megabytes (MB), Gigabytes (GB) and Terabytes (TB) (e) Conversion
from one unit to the other (f) Comparison of auxiliary Storage Devices under: Size, Speed,
Technology (optical, magnetic and semiconductor)
THEME: COMPUTER HARDWARE
5. Logic Circuits I (Standard single logic gates): (a) Definition of logic gate (b) Types of logic gates
AND, NOT, OR, (c) Symbols of each logic gate: (d) Input/output signals for AND, NOT, OR gates.
(e) Truth table construction for: AND, NOT, OR (f) Equation for: AND, NOT, OR gates (g) Uses of logic
gates: As building blocks for Hardware/electronic Components.
6. Logic Circuits II (Alternative logic gates): (a) Description of alternative logic gate (b) Types of
alternative logic gates NAND, NOR (c) Symbols of each logic gate (d) Input/output signals for: NAND,
NOR gates.
8. Logic Circuits II (Alternative logic gates) (Cont’d): (e) Truth table construction for: NAND, NOR, (f)
Equation for NAND, NOR , gates (g) Uses of logic gates (i) As building blocks for Hardware/electronic
Components, etc. (h) Construction of simple comparator.

THEME: BASIC COMPUTER OPERATION


9. Computer Data Conversion: (a) Definition of (i) Register (ii) Address (iii) Bus (b1) Types of
registers: (i) MDR (ii) CIR (iii) SOR (b2) Function of each register to be stated. (c) Differences between
register and main memory
10. Computer Data Conversion: (d) Outlines steps in ‘data fetch - execute’ cycle in a simple form. (e)
Factors affecting speed of data transfer: (i) Bus speed (ii) Bus width.
11. Revision.
12. Examination.

REFERENCES:
1. EVANS Computer Science for Senior Secondary schools 2
2. HiiT @ School, Computer Studies for Senior Secondary Education
3. Online with COMPUTERS for Senior Secondary Schools 2 by Adedapo F.O.

WEEK 1 REVISION OF LASST TERM’S WORK

WEEK 2
CLASS: SS 2
SUBJECT: COMPUTER SCIENCE
TOPIC: CENTRAL PROCESSING UNIT (CPU)
CONTENT:
 Central Processing Unit
 Functions of ALU and Control Unit
 Control Unit

Sub-Topic 1: CENTRAL PROCESSING UNIT

The Central Processing Unit (CPU): Is the portion of a computer system that executes the
instructions of a computer program, and is the primary element carrying out the functions of the
computer or other processing device. The Central Processing Unit carries out each instruction of the
program in sequence, perform the basic arithmetical, logical, and input/output operations of the
system.
Also, the Central Processing Unit (CPU) is the part of a computer that thinks, calculates and carries
out instruction. It is also called the brain of the computer. It is sometimes called the Central
Processor or simply the Processor.
A computer can have more than one CPU; this is called multiprocessing. CPU can be found in the
motherboard. All the functions of the CPU are stored in a component called the chip.

COMPONENTS OF CPU
CPU consists of two main units namely;
 Arithmetic Logic Unit
 Control Unit

EVALUATION
(i) In your own words, define CPU
(ii) Mention the two components of the CPU.

Sub-Topic 2: ARITHMETIC LOGIC UNIT

The ALU is a digital circuit that performs arithmetic and logical operations. The ALU is a fundamental
building block of the CPU of a computer.

ALU performs the following functions:


(i) The ALU performs basic such as addition, subtraction, multiplication, division and so on.
(ii) The logic unit of the ALU is concerned with logical operations such as comparison (Greater than
(>), less than (<), equal to (=) etc), bitwise logic operations like AND, OR, XOR etc.
(iii) ALU consists of output registers that store results of processed data.

CONTROL UNIT
The control unit is an important component of the CPU. It contains circuitry that uses electrical
signals to direct the entire computer system to carry out stored program instructions. The control
unit does not execute program instructions; rather, it directs other parts of the system to do so. The
control unit must communicate with both the arithmetic/logic unit and memory. It also maintains the
order of traffic and data in the computer system.

The Control Unit performs the following basic functions on instruction:


(i) It fetches instruction from the main memory
(ii) Decodes instruction: It interprets the instructions that were fetched to determine the operation
it will perform.
(iii) Execution: It controls the execution of instruction.
(iv) Storing Results: The process of writing result to the memory is called storing. The control unit
ensures that the output(s) gotten from the execution of an instruction are stored in the memory.
NOTE: The collection of these four functions together is referred to as Machine Cycle or Instruction
Cycle of the CPU.

EVALUATION:
State TWO functions of the following;
 Arithmetic Logic Unit (ALU)
 Control Unit (CU)

GENERAL EVALUATION
(i) Highlight the components of the CPU
(ii) Explain the term ‘Machine Cycle’
(iii) State two mathematical and two relational operator symbols

READING ASSIGNMENT
Study the topic ‘MEMORY UNIT’ using your students’ textbook

WEEKEND ASSIGNMENT
1. The part of the computer that thinks, calculates and carries out instruction is known as ............ (a)
ALU (b) CPU (c) CU (d) Register
2. The unit of the CPU that does mathematical and logical operations is known as ........
(a) ALU (b) CPU (c) CU (d) Register
3. The unit of CPU that coordinates and controls the operations of all other parts of the
computer is called (a) ALU (b) CPU (c) CU (d) Register
4. In terms of computing power, the .................. is the most important element of a computer
system (a) ALU (b) CPU (c) CU (d) Register
5. The collection of the four functions of the control unit is referred to as ..............
(a) Data processing (b) Machine cycle (c) Function cycle (d) Computing cycle

ESSAY QUESTIONS
1. List and Explain the components of the CPU
2. Give THREE reasons why a CPU is considered as the brain of the computer

WEEK 3
CLASS : SS 2
SUBJECT: COMPUTER SCIENCE
TOPIC: MEMORY UNIT
CONTENT:
 Description of Memory Unit
 Types of Memory
 Description of Primary Memory
 Description of Secondary Memory

Sub-Topic 1: DESCRIPTION OF MEMORY UNIT


The computer memory is the storage locations where data, programs and information are stored
electronically, which can be recalled, erased or changed. Memory can also be defined as the work
area in the computer where data can be held, copied and retrieved.
Other terms used for memory are main memory, main storage, primary storage, internal memory,
and core storage.
There are two main types of memory, these are;
(i) Primary Storage/ main memory
(ii) Secondary Storage / Auxiliary memory

PRIMARY MEMORY
Primary storage is called ‘primary’ because it is the main memory that is accessible to the CPU. It
represents the core or internal storage areas of the computer system. It is used to store data that are
currently being used; for this reason, the main memory is also called Immediate Access Storage
(IAS).
The two types of primary storage are:
 Read Only Memory (ROM)
 Random Access Memory (RAM)

READ ONLY MEMORY (ROM)


ROM is a non-volatile memory chip that cannot be written on or erased by the computer user
without special equipment. The ROM retains data stored on it even after the computer is powered
off. The operating system boot records are stored inside the ROM.

There are different variations of ROM, these includes;


 PROM: Meaning Programmable ROM is a version of memory chip that can be programmed
by the user. Once the PROM has been programmed, the information is permanent and
cannot be erased or deleted.
 EPROM: means Erasable Programmable ROM. This version of memory chip can be erased
and reprogrammed with the aid of an Ultraviolet light.
 EEPROM: means Electrically Erasable Programmable ROM can be erased and reprogrammed
using an electrical charge without the need of removing the chip from the computer system.

RANDOM ACCESS MEMORY

Random Access memory (RAM) is a type of memory chip used in primary storage memory. The CPU
continuously reads instructions stored there and executes them as required. Any data actively
operated on is also stored there in uniform manner. It is also a temporary storage, holding software
instructions and short-term working memory for the processor. It allows data which is stored to be
accessed in any order, which is why it is called random. It determines the speed of processing of the
computer. Also, RAM is volatile; which means when the computer loses power, the content is lost.
There are two variations of RAM, these are;
 SRAM: Means Static Read Only Memory; In this type of memory the data is stored in cell of
transistors and capacitors and the data has to be refreshed every few milliseconds.
 DRAM: Means Dynamic Read Only Memory; This does not require periodical refresh. SRAM is
faster than DRAM but it is more expensive as compared to DRAM.

EVALUATION
1. Define and give two other names for memory unit
2. List the two main types of memory

Sub- Topic 2: SECONDARY MEMORY


The secondary storage or auxiliary storage is any storage device that is used to store data,
information and programs permanently outside the computer memory. They are non-volatile and
have higher storage capacity, but the access time is slow compared to the primary storage. It is also
referred to as backup storage.
The following are common types of secondary / auxiliary devices:
 Floppy Disk
 Hard Disk
 Flash Drive
 Compact Disk (CD)
 Digital Versatile Disk (DVD)

FLOPPY DISK

Floppy disk is a soft magnetic disk. It is called floppy because it flops if you wave it. Floppy disk, also
called diskette, are portable because you can remove them from a disk drive. The medium used to
access floppy disks are known as ‘Floppy Disk Drives’.
Floppy disks are slower to access than hard disk and have less storage capacity. Floppies come in
three basic sizes; 8-inch, 5.25 inches with a capacity of 1.2MB and 3.5 inch with a capacity of 1.44MB.

HARD DISK
This is a magnetic disk on which computer data can be stored. The term hard is used to distinguish it
from soft, or floppy disk. It has the capability to store more data and is faster than floppy disks in
terms of access time.
There are two types of hard disks:
 The internal hard disk installed inside the computer
 The external hard disk usually connected to the computer

FLASH DRIVE
A Flash drive is a high data storage device that is made up of flash memory and an integrated
Universal Serial Bus (USB) interface, with a storage capacity ranging from 64MB to over 8GB. The
device is connected to the computer through the USB port.

COMPACT DISK
The Compact Disc (CD) is an optical disk used to store and backup digital data. It is less vulnerable to
damages or dirt compared to floppy disk. They are generally of two types:
 CD-R meaning CD Recordable. Data on this type of disk can be written only once, after that
the data on disk becomes permanent, i.e it can neither be erased and no newer data can be
written on this disk.
 CD-RW meaning CD Rewritable. You can record the

DIGITAL VERSATILE DISK (DVD)


A Digital Versatile Disk – originally called digital video disk is an optical disk storage media format,
invented and developed in 1995. DVDs offer higher storage capacity than compact disks while having
the same dimensions. Also, they can be single sided or double sided.

EVALUATION
(i) What do you understand by ‘Secondary Memory’
(ii) Highlight five types of auxiliary devices.

GENERAL EVALUATION
(i) Mention two main types of Primary storage
(ii) Highlight the different types of ROM
(iii) Highlight the different types of RAM
(iv) Enumerate three characteristics of secondary memory

READING ASSIGNMENT
Study the topic ‘UNITS OF COMPUTER STORAGE’ using your students’ textbook

WEEKEND ASSIGNMENT
1. Which of these best describes ROM?
(a) Non-programmable memory (b) Non-volatile memory (c) user-programmable memory
(d) microscopic-sized memory chip
2. These are auxiliary memory except
(a) cache (b) floppy disk (c) flash drive (d) digital versatile disc
3. The information: ‘Memory (RAM): 1.0GB’ refers to
(a) speed of processing unit (b) number of registers (c) size of primary memory (d) serial
number of random access memory chip
4. The ROM stores data and instruction during program execution (True / False)
5. Another name for the primary / main memory is..................................

ESSAY QUESTIONS
1. State three differences between primary and secondary memory
2. State the three basic sizes of a floppy disk

WEEK 4
CLASS : SS 2
SUBJECT: COMPUTER SCIENCE
TOPIC: MEMORY UNIT (Cont’d)
CONTENT:
 Differences between Primary and Secondary memory
 Units of Storage
 Conversion from one unit to the other
 Comparison of auxiliary storage devices

Sub-Topic 1: DIFFERENCES BETWEEN PRIMARY AND SECONDARY MEMORY


As earlier discussed, Computer memory can be categorized into primary and secondary memory.
Both memories vary in the speed, cost and capacity. The table below shows the clear differences
between both memories;
PRIMARY MEMORY SECONDARY MEMORY
It is considered as a main memory that is It is considered as an additional or additional
accessed directly by the computer memory not directly accessed by the CPU
The memory devices used for primary memory The memory devices are magnetic and optical
are semiconductor memories memories
These memories are also called internal These memories are also called external
memory memory
It is a type of temporary memory It can be used as a permanent memory
The sizes of primary memory ranges between Secondary memories ranges between 80GB to
512MB to 16GB RAMs 4TB Hard disk drives
It is directly accessed by the processor in a It is not directly accessed by the processor,
random manner input/output channels are used to access the
secondary memory
It is embedded with two types of memory It is embedded in the form of mass storage
technologies – RAM and ROM devices like pen drive, CD, DVD, etc
It is classified as volatile (RAM) and non- It is generally non-volatile in nature
volatile (ROM) in nature
Data Processing speed is faster Data Processing speed is somehow slow, not
as fast as primary memory
It is costlier than the secondary memory It is cheaper than primary memory
devices
They are connected to the computer through They are connected to the computer through
‘slots’ drives and cables

EVALUATION:
Enumerate FIVE differences between Primary and Secondary memory
Sub-Topic 2: UNITS OF STORAGE
Data in a computer is represented or stored in series of bits. Computer data storage provides one of
the core functions of the modern computer, that of information retention. It is one of the
fundamental components of all modern computers. We have various units of storage, they are as
follows;
 Bit
 Nibble
 Byte
 Kilobyte (KB)
 Megabyte (MB)
 Gigabyte (GB)
 Terabyte (TB)
 Word
BIT:
This refers to the smallest basic unit of information that can be stored on a machine. A bit (binary
digit) is the basic unit of information in computing and telecommunications. It exists in one of two
possible distinct states (0 or 1). These may be the two stable states of a flip flop, two positions of an
electrical switch, two distinct voltage or current levels allowed by a circuit, etc.

NIBBLE:
In computing, a nibble is a four-bit aggregation, or half a byte. The nibble is used to describe the
amount of memory used to store a digit of a number stored in packed decimal within an IBM
mainframe. This technique is used to make computations faster and debugging faster.

BYTE:
A byte is a unit of measurement of information storage that equals 8bits. It can be used to represent
letters and numbers, for example, the number 01000001 is 8bits long and represents the letter A in
ASCII. It is equivalent to 2nibbles. The size of computer memory is determined by bytes.

KILOBYTE (KB):
A kilobyte (KB) is a unit of data that equals 1024bytes. Although the prefix kilo- means 1000, the term
kilobyte and symbol been used to refer to either 1024 (2 10) bytes in the fields of computer science
and information technology.

MEGABYTE (MB):
A megabyte is 1024KB, that is, the kilobyte squared or 1024 2 bytes. The Megabyte is a multiple of the
unit byte for digital information storage or transmission. It is commonly abbreviated as MB.
GIGABYTE (GB):
A Gigabyte is a unit of data storage worth a billion bytes. It is equal to 1024 megabytes (1024 3). The
unit symbol for gigabyte is GB.

TERABYTE (TB):
A terabyte is equivalent to 1024 gigabytes (1024 4) and is defined as about one trillion bytes. The
prefix tera means 1012 in the International System of Units, which equals 1,099,511,627,776 bytes

WORD:
A word represents 2bytes, which is equivalent to 16bits and 4nibbles.
EVALUATION
(i) State and write short notes on FIVE basic computer memory units
(ii) State the relationship between;
 Bit and byte
 Kilobyte and Megabyte

Sub-Topic 3: CONVERSION FROM UNIT TO THE OTHER


To convert memory from one unit to the other is a simple conversion. For example, to convert MB to
GB, simply divide the MB by 1024 and to convert back from GB to MB, multiply the GB by 1024. The
process is the same for all units of memory. Worked examples are shown below;
Example I: Convert 16 bits to byte
Relationship between units: 1byte = 8bits
Therefore, 16bits = 16/8 = 2bytes
Example II: Convert 2bytes to bit
= 2 x 8 = 16bits

Example III: Convert 3KB to bytes


Relationship between units: 1KB = 1024bytes approximately 1000bytes
Therefore, 3KB = 3 X 1000 = 3000bytes

Example IV: Convert 100KB to MB


Relationship between units: 1MB = 1024KB approximately 1000Kbytes
Therefore, 100KB = 100/1000 = 0.1Mbytes

Example V: Convert 1.44MB to bytes


Relationship between units: 1MB = 1048576Bytes approximately 1000000bytes
Therefore, 1.44MB = 1.44 x 1000000 = 1440000bytes

NOTE: Other examples should be practiced in class

EVALUATION
(i) Convert 1440000bytes to Megabyte
(ii) Convert 0.1MB to Kilobyte

Sub-Topic 4: COMPARISON OF AUXILIARY STORAGE DEVICES


The table below shows a summary that exist between the various auxiliary storage devices based on certain
characteristics;
DEVICE SIZE STORAGE SPEED TECHNOLOGY

Floppy Disk Portable Small storage Slow speed Magnetic tape technology
space

Hard Disk Not as Portable Enormous Slow as compared Magnetic tape technology
as others storage space to main memory
Flash Drive Portable Large Very high speed Flash memory

Compact Disk Portable Large High speed Optical disk technology

Digital Versatile Disk Portable Extremely High speed Optical disk technology
large storage

EVALUATION
Compare the following auxiliary devices in terms of size, speed, and technology
 Floppy Disk
 Hard Disk
 DVD

GENERAL EVALUATION
(i) Clearly distinguish between Primary and Secondary memory using the following criteria;
Speed, Accessibility, Cost, Size, and Mode of connection
(ii) Highlight FIVE units of storage and their values (in bytes)
(iii) Convert 0.5MB to KB
(iv) State two auxiliary that uses optical technology

READING ASSIGNMENT
Study the topic ‘LOGIC CIRCUITS’ using your students’ textbook

WEEKEND ASSIGNMENT
1. Primary memory is embedded in two types of memory technology; ............. and .............
(a) RAM and ROM (b) Hard and Soft (c) Input and Ouput (d) None of the above
2. The .......................... memory is generally non-volatile
(a) RAM (b) ROM (c) EEPROM (d) DRAM
3. The primary memory are connected to the system through ...................
(a) Drives (b) Cables (c) Wires (d) Slots
4. Which of the following is not a unit of storage in computer?
(a) Bytes (b) Megabytes (c) Kilobits (d) Word
5. A Kilobyte is exactly ....................... bytes and approximately ................... bytes

ESSAY QUESTIONS
1. Draw and Label a Floppy disk
2. Write short note on ‘Optical disk’

WEEK: 5
CLASS: SS 2
SUBJECT: COMPUTER SCIENCE

TOPIC: LOGIC CIRCUITS I


CONTENT: (i) Definition of logic gate (b) Types of logic gates AND, NOT, OR (c) Symbols
of each logic gate: (d) Input/output signals for AND, NOT and OR gates.

Sub-Topic 1: DEFINITION OF LOGIC GATES


A logic gate is an idealized or physical device implementing a Boolean function, that is, it performs
a logical operation on one or more logical inputs, and produces a single logical output.
Logic gates are primarily implemented using diodes or transistors acting as electronic switches, but
can also be constructed using electromagnetic relays (relay logic), fluidic logic, pneumatic
logic, optics, molecules, or even mechanical elements. With amplification, logic gates can be
cascaded in the same way that Boolean functions can be composed, allowing the construction of a
physical model of all of Boolean logic, and therefore, all of the algorithms and mathematics that can
be described with Boolean logic.
Logic circuits include such devices as multiplexers, registers, arithmetic logic units (ALUs),
and computer memory, all the way up through complete microprocessors, which may contain more
than 100 million gates. In practice, the gates are made from field-effect transistors (FETs),
particularly MOSFETs (metal–oxide–semiconductor field-effect transistors).
A logic gate is an electronic device that makes decisions based on the different combinations of
digital signals present on its inputs.
It is a logical circuit device in computer, having one output channel and one or more input channels,
which gives signal only when specific input conditions are met.

EVALUATION:
1. What is a Logic gate?
2. State three (3) examples of a logic gate.
Sub-Topic 2: TYPES OF LOGIC GATES
There are three basic logic gates from which others can be constructed. These are;
(a) ‘NOT’ gate
(b) ‘AND’ gate
(c) ‘OR’ gate

In logic diagrams, gates are represented by symbols. Inputs and output signals are represented with
arrow lines having labels.
The ‘NOT’ Gate: The ‘NOT’ gate is the most basic of all the logic gates and is sometimes referred to as
an inverting buffer or simply a digital inverter. This gate accepts a single input and brings out the
negative of its input as output. That is it inverts its input signal as output. I.e. if its input is 0, output
will be 1, and if its output is 0 it means input will be 1. Or true= false and false =true.
The ‘NOT’ gate accepts only one input signal.
Truth Table for ‘NOT’ gate
INPUT (A) OUTPUT (A)
1 0
0 1

The Boolean expression is A=A


The overline ( ) over the expression signify the NOT

The ‘AND’ Gate: Unlike the ‘NOT’ gate, the ‘AND’ gate accepts only one two inputs signals and bring
out one output signal. Hence there are two signal lines.
It is a logic circuit, used in computers that produce a high voltage signal as output if its two inputs
carry a high voltage; otherwise it produces a low voltage output if any of its input is low.

Truth Table for ‘AND’ gate


INPUT (A) INPUT (B) OUTPUT (Q)
1 1 1
1 0 0
0 1 0
0 0 0
Two inputs AND gate.
The Boolean expression is A.B=Q
The period (.) in the expression stands for multiplication

The ‘OR’ Gate: This is a logic circuit used in computers, that gives a high voltage output if all or one of
its input carries a high voltage, and a low voltage output if all or one of its input carries a low voltage.
The ‘OR’ gate also accepts two inputs.
Truth Table of ‘OR’ Gate
INPUT (A) INPUT (B) OUTPUT (Q)
1 1 1
1 0 1
0 1 1
0 0 0

Two inputs OR gate.


The Boolean expression is A+B=Q
The plus used in the expression stands for addition.

EVALUATION:
1. Sketch the truth table of a ‘AND’ gate.

Sub-Topic 3: SYMBOLS OF LOGIC GATES:

AND GATE

OR GATE
‘NOT’ GATE

Sub-Topic 4: USES OF LOGIC Gate


Logic Gates are used for the following;
1. They are used in integrated circuits
2. They are used in functioning of transistors, resistors and capacitors
3. They are used in making comparators
4. They are used in producing high speed CPU’s
5. They are used as elemental building blocks for devices where signals must be selected or
combined in a controlled form. This is obvious in telephone switching, satellite transmission and
digital computer operations.
6. They are used in making micro-controllers.
7. They are used in making amplifiers, and oscillator circuits.
8. They are used in vacuum tubes
9. They are used in constructing alarms used in cars and homes.

EVALUATION:
1. State 5 uses of logic gates

GENERAL EVALUATION:
1. Define the term logic gate.
2. Sketch the symbol of three (3) basic logic gates
3. State five (5) uses of the logic gates.

READING ASSIGNMENT:
Students are expected to read ‘Logic gate II’ of Handbook on Computer studies for SS2.

WEEKEND ASSIGNMENT:
1. Sketch all the symbols and truth tables of the three basic logic gates and explain them in
an exercise book.

WEEK: 6
CLASS: SS 2
SUBJECT: COMPUTER SCIENCE

TOPIC: LOGIC CIRCUIT (II)


CONTENT: Alternative logic gates:
(a) Description of alternative logic gate
(b) Types of alternative logic gates NAND, NOR
(c) Symbols of each logic gate
(d) Input/output signals for: NAND, NOR gates.

Sub-Topic 1: DESCRIPTION OF ALTERNATIVE LOGIC GATE


Although OR, AND, and NOT gate combinations are good enough for the construction of any logic
operation, there are alternative methods that could be used. The alternative logic gates are NAND
and the NOR logic gates. Alternative methods using NAND and NOR gates are more economical and
therefore more widely used.
All logic operations can be performed with combinations of just NANDs or NORs, but a combination
of NORs with NANDs is usually preferable to one provided just by NANDs.

TYPES OF ALTERNATIVE LOGIC GATES


Basic digital logic gates perform logical operations using the following standard single logic gates:
i. Logic “NAND” gate
ii. Logic “NOR” gate

THE LOGIC “NAND” GATE


The logic NAND gate is a combination of the digital logic AND gate with that of an inverter, or NOT
gate connected together in series. The NAND (Not AND) gate has an output that is normally at logic
level “1” and only goes “LOW” to logic level “0” when ALL of its inputs are at logic level “1”. It is the
reverse of the ‘complementary’ form of AND gate.
The Boolean expression for a logic NAND gate, is denoted by a single dot or full stop symbol (.) with a
line or overline (-) over the expression to signify the NOT or logical negation of the NAND gate, giving
us the Boolean expression of A.B=Q.

Sub-Topic 2 : SYMBOLS OF NAND LOGIC GATE

Inputs Output

Shows invasion

Inputs Output

THE LOGIC “NOR” GATE

The logic NOR or inclusive NOR gate is a combination of the digital logic OR gate with that of an
inverter or NOT gate connected together in series. The NOT (Not OR) gate has an output that is
normally at logic “1” and only goes “LOW” to level of “0” when ANY of its inputs are at logic level “1”.
The logic NOR gate is the reverse or “complementary” from of the OR gate.
The Boolean expression for a logic NOR gate is denoted by a plus sign (+) with a line or overline (-)
over the expression to signify the NOT or logical negation of NOT gate giving us the Boolean
expression of A+B=Q
Symbol of NOR Logic gate

A.

INPUTS OUTPUT

Shows inversion

B.

INPUTS OUTPUT

EVALUATION

1. Mention the two main types of alternative logic gate.


2. Show the arithmetic operations of NAND and NOR gate.

READING ASSIGNMENT
Read construction of truth table for NAND and NOR gate, also uses of logic gates and summarize in
not more than one page.

WEEKEND ASSIGNMENT
Objectives
1. The output of __________ gate negates the outpu of OR gate.
2. _____________ gate has a ‘D’ shape.
3. The combination of ______________ and ____________ gates is more economical for
constructing comparators.
4. The shape of ________ gate is triangle.
5. The symbols that negates the output of a gate are ________ and __________
ESSAY QUESTIONS
1. Construct a truth table of NAND for two inputs.
2. List three uses of logic gates.

WEEK 8.
CLASS: SS 2
SUBJECT: COMPUTER SCIENCE
TOPIC: LOGIC CIRCUIT (II)
CONTENT:
1. Truth table construction for: NAND, NOR
2. Equation for NAND, NOR , gates
3. Uses of logic gates (i) As building blocks for Hardware/electronic Components, etc.
4. Construction of simple comparator.

Sub-Topic 1: Truth table construction for NAND


INPUT INPUT OUTPUT OUTPUT
(AND) (NAND)
X Y X.Y X.Y

1 1 1 0

1 0 0 1

0 1 0 1

0 0 0 1

Two inputs NAND gate.


The Boolean expression is A.B=Q

Truth table construction for NOR


INPUT INPUT OUTPUT OUTPUT
(OR) (NOR)
X Y X+Y X+Y

1 1 1 0

1 0 1 0

0 1 1 0

0 0 0 1

Two inputs NOR gate.


The Boolean expression is A+B=Q

Sub-Topic 2: USES OF LOGIC GATES


1. Logic gates are used as elementary blocks for devices where signals needed to be selected or
assembled in a controlled form. This application is evident in telephone switching, satellite
transmission and digital computer operations.
2. They can be used in making comparators.
3. They are used in the design of transistors, resistors and capacitors.
4. Logic circuits are used in integrated circuits, vacuum tube, amplifier, circuit boards and
oscillator circuit.
5. Resistor-Transistor Logic (RTL) and emitter coupled logic (ECL) are used in production of a very
high speed CPU.

Construction of simple comparator


Comparator is a combinational logic circuit that compares the magnitudes of two binary quantities
to determine which one has the greater magnitude. In other word, a comparator determines the
relationship of two binary quantities.

EVALUATION
1. Give one distinct feature of NAND and NOR gates.
2. Write simple truth tables for NAND and NOR gates.
3. State two uses of NAND gate.
4. What type of gate is output equals 1 if the two inputs have equal values.

READING ASSIGNMENT
Read on computer data conversion and summary in not more than ½ pages.

WEEKEND ASSIGNMENT
1. Logic gates have __________ number of output(s).
2. AND+NOT= __________
3. OR+NOT= _________
4. _______________ is an elementary building block of a digital circuit.
5. All digital circuits are either _____ or ____________

ESSAY QUESTIONS
1. What is an alternate logic gate? And mention its two types.
2. Construct a NAND truth table of three inputs A, B, and C.

WEEK 9
CLASS: SS 2
SUBJECT: COMPUTER SCIENCE
TOPIC: COMPUTER DATA CONVERSION
CONTENTS
i. Definition – Register, Address, Bus
ii. Types of register
iii. Function of each register
iv. Differences between register and main memory

Sub-Topic 1: Definition
Data conversion is the conversion of computer data from one format to another. Throughout a computer
environment, data is encoded in a variety of ways. For example, computer hardware is built on the basis of
certain standards, which requires that data contains, for example, parity bit checks. Similarly, the operating
system is predicated on certain standards for data and file handling. Data conversions may as simple as the
conversion of a text file from one character encoding system to another; or more complex, such as the
conversion of office file formats, or the conversion of image and audio file formats.
There are many ways in which data is converted within the computer environment. This may be seamless, as
in the case of upgrading to a newer version of a computer program.
REGISTER
These are temporary storage areas for instructions or data. They are not part of memory; rather they are
special additional storage locations that offer the advantage of speed. Register work under the direction of the
control unit to accept, hold and transfer instruction or data and perform arithmetic or logical comparisons at
high speed.
Most operations are done on registers; the processor can’t directly perform arithmetic in memory for
example. If you want to add 1 to a memory location, the processor will normally do this by loading the initial
value from memory into a register, adding 1 to the register, and then saving the value back to memory.

MEMORY ADDRESS
This is an identifier for a memory location, at which a computer program or a hardware device can store data
and later retrieve it. Each memory location, in both ROM and RAM, holds a binary number and only depends
on the context of the instructions which retrieve and manipulate it.

BUS
The buses are media that connect the microprocessor (CPU) to each of the RAM, ROM, and input/output (I/0).
Through the buses, information transfer takes place between the CPU and the I/O devices.

TYPES OF REGISTERS
Registers are normally measured by the number of bits they can hold, e.g “8-bit register” to “32-bit register”.

MDR- Memory Data Register


This is a register of a computer’s control unit that contains the data to be stored in the computer storage (e.g.
RAM), or the data after a fetch from the computer storage. It acts like a buffer and holds anything that is
copied from the memory ready for the processor to use it.

MDR is a two-way register.MDR is half of a minimal interface between a micro-program and computer
storage, the other half is a memory address register.

CIR – Current Interrupt Register


This is part of the CPU’s control unit that stores the instruction currently being executed or decoded. This
captures the value that is winning the interrupt arbitration. The CIR is updated at the beginning of an interrupt
acknowledge (IACKN) us cycle or in response to an update CIR command. The contents remain in the CIR until
another IACKN cycle or update command occurs. Modern processor can perform some of the operation out of
order as decoding on several instructions is done in parallel.

Others are:
i. User-accessible Register
ii. Data Register
iii. Address Register
iv. Conditional Register
v. General Purpose Register (GPRs)
vi. Floating Point Register (FPRs)
vii. Constant Register
viii. Vector Register
ix. Special Purpose Registers

EVALUATION
1. List and explain three types of register
2. CIR, MDR stands for?
Sub-Topic 2: DIFFERENCES BETWEEN REGISTER AND MAIN MEMORY

Register: These are storage locations internal to the processor. CPU instructions operate on these value
directly. On RISC (Reduced Instruction Set Computer) processors, all data must be moved into a register before
it can be operated. On CISC (Complex Instruction Set Computer) (Intel) chips, there are a few operations that
can load data from RAM, process it, and save the result back out, but the fastest operations work directly with
registers.
Also there are registers that are set aside for certain tasks, these generally include a program counter stack,
and flags.
Each register also has a size that determines the maximum amount of data that can be processed at a time.
The registers on Pentium chips, for example are 32 bits.
Finally, there are generally only a few registers available on a processor. Intel chip, for example, have 6 general
purpose registers, and several specialized registers including a base register, stack register, flags register,
program counter and some addressing registers.

Memory or RAM: Is located external to the CPU. Generally speaking, data has to be loaded into a CPU register
from memory before the CPU can process it.
RAM is much slower than registers, there is a lot more RAM than registers, and generally memory can be
addressed on byte boundaries, where register may not be able to access all the bytes in a register.
Summarily, registers are temporary storage in CPU while RAM holds the program instructions and the data the
program requires.

EVALUATION
1. Write short note on Register and Memory.
2. What is register?

General Evaluation
1. Differentiate between the register and main memory.
2. What is a bus?
3. What do you understand by memory address?

Reading Assignment
Read the next week topic and summarize it.

WEEKEND ASSIGNMENT
1. ____ is much slower than registers. (a) Bus (b) RAM (c) register (d) None
2. RISC stands for ___ (a) Rise in support Computer (b) Reduced instruction symbolic computer (c)
Reduced Instruction Set Computer
3. MDR stands for _____________________
4. CISC stands for _______________________
5. ____ are media that connect the microprocessor (CPU) to each of the RAM, ROM, and input/output
(I/0). (a) Buses (b) RAM (c) register (d) None

ESSAY QUESTIONS
1. Compare register and main memory
2. What are the characteristics of a bus?
WEEK 10
CLASS: SS 2
SUBJECT: COMPUTER SCIENCE
TOPIC: COMPUTER DATA CONVERSION (Cont’d)
CONTENTS
i. Outlines steps in ‘data-fetch-execute’ cycle in a simple form
ii. Factors affecting speed of data transfer

Sub-Topic 1: OUTLINES STEPS IN ‘DATA-FETCH-EXECUTE’ CYCLE IN A SIMPLE FORM

Micro-computer can perform the data read and write operations with the memory. When the memory is
receiving data from microcomputer, it is called a WRITE operation, and data is stored into a selected memory
location. When the memory is sending data to microcomputer element it is called a READ operation.
As soon as a computer is powered on, it begins the process of the fetch-execute cycle. This cycle is however,
from the beginning of the PC startup, the computer is run. The cycle contains 3 main parts.
1. Fetch next instruction
2. Decode instruction
3. Run instruction

The Fetch Cycle


Fetch execute cycle is the very basic way a computer works. It collects data from the memory and stores it in
the MBR as well as setting the program to load the next step. This prepares the processor for the information
it is about to receive, as well as progress the program ready for the next processor cycle.

The Execute Cycle


This cycle processes the command and returns the result.

EVALUATION
1. Simply state how computer read and write information.

Sub-Topic 2: FACTORS AFFECTING SPEED OF DATA TRANSFER

The bus refers to the paths between the components of a computer. The data bus and the address bus are
two main buses in a computer which are located on the motherboard.
The performance of computer buses was measured by the number of bits they could transfer at one time.
Hence, the newest 64-bit buses are typically considered the fastest available. This type of performance is
usually measured in megabits per second (Mbps) or megabytes per second (MBps).

THE FACTORS ARE:


BUS Speed: The speed of the bus reflects how many bits of information can be sent across each wire each
second. Most buses transmit one bit of data per line, per clock cycle; although newer high performance buses
like AGP (compute accelerated graphics port) may actually move two bits of data per clock cycle.
Similarly, older buses like the ISA (industry standard architecture) bus may take two clock cycles to move one
bit, halving performance. This is the number of data packets sent or received per second and its frequency is
expressed in Hertz

BUS WIDTH
A bus is a channel over which information flows. The wider the bus, the more information can flow over the
channel, much as a wider highway can carry more cars than a narrow one.
The original ISA bus on the IBM PC was 8 bit wide; the universal ISA bus used now is 16 bits. The other I/O
buses including VL-Bus (VLB) and peripheral component interconnect (PCI) are 32 bits wide. The memory and
processor buses on Pentium and higher PCs are 64 bits wide.

EVALUATION
1. State the factors affecting speed of data transfer.
2. What is the effect of the bus width on the speed of a computer?

GENERAL EVALUATION
1. State steps that are involved in data-fetch-execute cycle
2. Explain why computer does need data conversion.

READING ASSIGNMENT
Read and summarize the following week topic.

WEEKEND ASSIGNMENT
1. Which of the following affects the speed of a data transfer? (a) Bus width (b) Address bus (c)
Memory location (d) Control unit
2. The result of an instruction cycle is stored in the ____ (a) RAM (b) ROM (c) Main memory (d) CPU
3. Bus speed is expressed in __ (a) Joules (b) Hertz (c) Newton (d) Kilogram
4. ____ decodes the program instruction in the CIR. (a) ALU (b) MDR (c) CU (d) CIR
5. In Fetch-execute cycle, ____ is loaded with the address of the instruction. (a) MDR (b) MAR (c)
CIR (d) PC

ESSAY QUESTION
1. List three types of registers and state the functions of each.

You might also like