ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP3147Digital Hardware Desig…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP3147

    Computer Architecture

    Progress0 / 24 done
    Topics24
    1Transistors and Digital logic2Hardware description languages (Verilog)
    3Instruction types and mixes4Addressing modes5RISC vs. CISC architectures6Exceptions in instruction sets
    7Data dependencies8Static scheduling9Pipeline performance analysis
    10Local scheduling11Loop unrolling and Software pipelining12Trace scheduling13Deferred exceptions and Predicated execution14IA64 architecture
    15Dynamical scheduling16Register renaming17Speculative execution18Trace cache
    19Cache coherency20Sequential consistency21Multithreading22Symmetric multiprocessing23Transactional memory
    24GPU programming
    5 min read
    Topic 1 of 24
    Topic Study Note Illustration
    01

    Digital Hardware Design: Transistors and Digital logic

    Digital hardware design is the foundation of computer architecture. It deals with how the lowest-level electronic components (transistors) are used to build digital logic circuits, which in...

    Digital Hardware Design: Transistors and Digital Logic

    Digital hardware design is the foundation of computer architecture. It deals with how the lowest-level electronic components (transistors) are used to build digital logic circuits, which in turn form the building blocks of CPUs, memory, and digital systems.


    1. Transistors

    Definition

    A transistor is a semiconductor device used to amplify or switch electronic signals. It acts like a controllable switch that can turn current on or off. In digital circuits, transistors are used primarily as switches, representing binary values 0 (OFF) and 1 (ON).

    Modern digital circuits primarily use MOSFETs (Metal-Oxide-Semiconductor Field-Effect Transistors) because they consume very little power and can be made extremely small for integration in chips.


    Types of Transistors Used in Digital Logic

    1. MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor)

    MOSFET
    Visual ReferenceMOSFET
    Wikipedia

    MOSFETs are the standard transistors in digital integrated circuits (ICs).

    There are two main types:

    • NMOS (N-type MOSFET)

    • Conducts when gate voltage is high (1)
    • Represents a low resistance path to ground
    • Used to pull the output down (logic 0)

    • PMOS (P-type MOSFET)

    • Conducts when gate voltage is low (0)
    • Represents a low resistance path to supply voltage (Vdd)
    • Used to pull the output up (logic 1)

    2. CMOS Technology

    Definition

    CMOS (Complementary Metal-Oxide-Semiconductor) technology combines NMOS and PMOS transistors in a complementary arrangement to build logic gates that consume almost no power when idle.


    Why CMOS is dominant

    • Very low static power consumption
    • High noise immunity
    • High density of transistors
    • Used in microprocessors, memory chips, and digital ICs

    A CMOS gate only consumes power during switching (changing from 0→1 or 1→0).


    3. Digital Logic

    Digital logic is the system of representing information using binary values (0 and 1) and performing logical operations with circuits built from transistors.

    Definition

    Digital logic refers to the use of electronic circuits that perform operations based on Boolean algebra. These circuits process discrete signals (0 and 1) to carry out computation, decision-making, and data manipulation.

    Digital logic is the basic building block of:

    • CPU datapaths
    • ALUs
    • Registers
    • Memory
    • Control units

    4. Logic Gates

    Logic gate
    Visual ReferenceLogic Gate
    Wikipedia

    Logic gates are physical circuits built from transistors that perform Boolean operations.

    Definition

    A logic gate is an electronic circuit that takes one or more binary inputs and produces a single binary output following a specific logical function.


    Basic Logic Gates and Their Functions

    1. NOT Gate (Inverter)

    • 1 input, 1 output

    • Output is the opposite of input

    • CMOS implementation:

      • PMOS pulls output high when input is low
      • NMOS pulls output low when input is high

    2. AND Gate

    • Output is 1 only when all inputs are 1
    • Built using series NMOS and parallel PMOS

    3. OR Gate

    • Output is 1 when at least one input is 1
    • Built using parallel NMOS and series PMOS

    4. NAND Gate

    • Output is NOT(AND)
    • Most commonly used because it is easy to build and efficient

    5. NOR Gate

    • Output is NOT(OR)

    6. XOR Gate (Exclusive-OR)

    • Output is 1 when inputs are different
    • Used in adders, parity circuits

    7. XNOR Gate

    • Output is 1 when inputs are the same

    5. Boolean Algebra

    Definition

    Boolean algebra is the mathematical system for expressing logical relationships using binary variables and operations like AND, OR, and NOT.

    Boolean algebra guides the design and simplification of digital circuits.


    6. Combinational Logic Circuits

    Definition

    A combinational circuit is a logic circuit whose output depends only on the current inputs, not on previous inputs or memory.

    Examples:

    • Adders (Half Adder, Full Adder)
    • Multiplexers (MUX)
    • Encoders/Decoders
    • Comparators
    • ALUs

    These circuits are essential for CPU datapaths.


    7. Sequential Logic Circuits

    Definition

    Sequential circuits are digital circuits whose output depends on current inputs and previous states. They use memory elements like flip-flops.

    Examples:

    • Latches
    • Flip-flops
    • Counters
    • Registers
    • Finite State Machines (FSM)

    Sequential circuits are essential for:

    • Program counters
    • Cache controllers
    • Pipeline control

    8. From Transistors to Computer Architecture

    Transistors → Logic Gates → Combinational Circuits → Sequential Circuits → Processor (CPU)

    This hierarchy shows how small switching elements combine to form the entire computer.

    For example:

    • ALU = built from logic gates
    • Registers = built from flip-flops
    • Control unit = built from sequential logic
    • Memory = built using transistor-based cells

    Thus, digital hardware design is the foundation of computer architecture.


    Summary (Exam-Friendly)

    1. Transistors are semiconductor switches used to represent binary 0 and 1.
    2. MOSFETs (NMOS & PMOS) are the primary transistors used in digital circuits.
    3. CMOS technology uses complementary NMOS and PMOS; it is power-efficient and widely used in CPUs.
    4. Digital logic uses binary values and Boolean algebra to implement computation.
    5. Logic gates perform Boolean operations and are built from transistors.
    6. Combinational circuits (adders, MUX) depend only on current inputs.
    7. Sequential circuits (registers, flip-flops) store state and form the basis of processors.
    8. Digital hardware components combine to form microprocessors and digital systems.

    Next topic 2 →
    Hardware description languages (Verilog)

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    5mremaining
    801words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Computer Architecture