ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Computer Architecture
    COMP3147
    Progress0 / 24 topics
    Topics
    1. Digital Hardware Design: Transistors and Digital logic2. Hardware description languages (Verilog)3. Instruction Set Architecture: Instruction types and mixes4. Addressing modes5. RISC vs. CISC architectures6. Exceptions in instruction sets7. Scalar Pipelines: Data dependencies8. Static scheduling9. Pipeline performance analysis10. VLIW Pipelines: Local scheduling11. Loop unrolling and Software pipelining12. Trace scheduling13. Deferred exceptions and Predicated execution14. IA64 architecture15. Dynamic Pipelines: Dynamical scheduling16. Register renaming17. Speculative execution18. Trace cache19. Thread-Level Parallelism: Cache coherency20. Sequential consistency21. Multithreading22. Symmetric multiprocessing23. Transactional memory24. Data-Level Parallelism: GPU programming
    COMP3147›Digital Hardware Design: Transistors and Digital logic
    Computer ArchitectureTopic 1 of 24

    Digital Hardware Design: Transistors and Digital logic

    5 minread
    792words
    Beginnerlevel

    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)

    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 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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time5 min
      Word count792
      Code examples0
      DifficultyBeginner