Chapter 1 Logic Gates + Boolean Algebra
Chapter 1 Logic Gates + Boolean Algebra
The computer is at the core of modern computing, and understanding its architecture
helps in designing efficient programs.
Computer architecture focuses on:
o Instruction sets (how a processor executes commands)
o Data representation (how data is stored in memory)
o Input/output mechanisms
o Memory addressing techniques
Computer organization focuses on how hardware components work and interact.
Computer design is the actual development of computer hardware based on specifications.
1. Instruction set architecture (ISA), is the abstract model of a computing system that is seen by
a machine language (or assembly language) programmer, including the instruction set, memory
address modes, processor registers, and address and data formats.
3. System Design which includes all of the other hardware components within a computing system
such as:
N.B: Computer architecture is a specification detailing how a set of software and hardware
technology standards interact to form a computer system or platform. In short, computer
architecture refers to how a computer system is designed and what technologies it is compatible
with.
1. Structure: The way in which the components are interrelated. The following are top level
structures:
Central Processing Unit (CPU): Controls the operation of the computer and performs its
data processing functions. Often simply referred to as processor.
Main Memory: Stores data.
I/O: Moves data between the computer and its external environment.
System Interconnection: Some mechanism that provides for communication among CPU,
main memory, and I/O.
Peripherals: devices in addition to system unit (monitor, mouse, keyboard, …)
Communication lines: cables, switches, routers,
Overview:
Digital computers operate using the binary number system (0 and 1) because
their internal components (transistors) function in two states (ON/OFF).
Bits (binary digits) form the basic unit of data storage.
Digital data can be encoded to represent numbers, characters, and instructions.
Logic gates are the fundamental building blocks of digital circuits.
Boolean algebra is a mathematical way of representing and simplifying logic
circuits.
Key Topics:
Logic Gates
Logic gates are basic building blocks of digital circuits. They perform logical operations on
binary inputs (0s and 1s) to produce an output.
Summary
Boolean algebra
Boolean algebra helps simplify logic expressions using laws and rules:
Example:
OR Rule
Assignment about AND rule …….. ?
1.2. Combinational Circuits
Definition
Combinational circuits are circuits where the output depends only on the current inputs. There is
no memory element. Or,
Combinational circuits process inputs without memory—outputs depend only on the current
inputs.
Inputs: A, B
Sum (S) = A ⊕ B
Carry (C) = A · B
Sum = A ⊕ B ⊕ Cin
Carry = (A ⊕ B) · Cin + A · B
3. Multiplexer (MUX)
1.3.Flip-Flops
Unlike combinational circuits, flip-flops store information and change states based on clock
signals.
Types of Flip-Flops
Flip-Flop Function
SR Flip-Flop Stores 1-bit data (Set-Reset)
D Flip-Flop Transfers input to output on clock edge
JK Flip-Flop Improved SR Flip-Flop (no invalid state)
T Flip-Flop Toggles state (used in counters)
Example: JK Flip-Flop
J K Q (Next State)
0 0 No Change
0 1 0
1 0 1
1 1 Toggle
1.4.Sequential Circuits
Sequential circuits use memory to store past inputs.
Summary
Topic Key Idea
Computer Architecture Structure and function of a computer
Logic Gates Basic operations on binary inputs
Topic Key Idea
Boolean Algebra Simplifies logic expressions
Combinational Circuits No memory, output depends on current input
Flip-Flops Basic memory elements
Sequential Circuits Memory-based, output depends on past states