Logic Gates and Hardware

  1. Representing Logical Values as Signals

    A digital circuit interprets ranges of physical signal values as logic levels so gates can compose reliably.

    Undergraduate
  2. Reading a Logic Gate's Truth Table

    A gate truth table gives the steady-state output for each possible combination of Boolean input levels.

    Undergraduate
  3. Building an OR Gate from NAND

    A NAND gate can act as an inverter with its inputs tied together. Applying that operation to both inputs lets another NAND produce OR.

    Undergraduate
  4. XOR as a One-Bit Inequality Test

    An exclusive-or gate outputs one when exactly one input is one. With two single bits, this is the condition that they differ.

    Undergraduate
  5. A Half Adder for Two Bits

    A half adder emits a sum bit and carry bit for adding two single-bit inputs with no incoming carry.

    Undergraduate
  6. A Full Adder with an Incoming Carry

    A full adder combines two operand bits with an incoming carry from a lower position and produces a sum and outgoing carry.

    Undergraduate
  7. Following a Carry Through an Adder

    Connecting full adders lets each position's carry feed the next higher position. A carry may need to traverse several gate stages before the result settles.

    Undergraduate
  8. Selecting an Input with a Multiplexer

    A multiplexer connects one selected data input to a shared output. Select lines encode which input the logic delivers.

    Undergraduate
  9. Decoding a Binary Choice to One Output

    A decoder maps an input code to a signal on one selected output line when enabled.

    Undergraduate
  10. Combinational Logic and Its Inputs

    A combinational network produces outputs determined by current input values once signals settle, independent of earlier states.

    Undergraduate
  11. Sequential Logic Remembers State

    A sequential circuit's outputs or next state can depend on retained bits as well as current inputs.

    Undergraduate
  12. Latches and Edge-Triggered Flip-Flops

    A level-sensitive latch may follow its input while enabled. An edge-triggered flip-flop updates according to a selected clock transition.

    Undergraduate
  13. Loading or Holding a Register

    A register groups state bits so an update can store one multibit value together under a common control rule.

    Undergraduate
  14. A Binary Counter as a State Machine

    A clocked counter stores a bit pattern and replaces it with the next pattern under its enable and reset rules.

    Undergraduate
  15. Reading a Finite-State Circuit

    A finite-state circuit stores a coded state and maps that state and current inputs to a next state and outputs.

    Undergraduate
  16. Mealy and Moore Output Rules

    A Moore model gives outputs from retained state. A Mealy model can also use the current input in the output function.

    Undergraduate
  17. Setup and Hold Around a Sampling Edge

    Setup and hold describe required stable input intervals before and after a storage element's sampling event.

    Undergraduate
  18. Receiving a Single Asynchronous Control Bit

    A digital input arriving independently of a receiver's clock can change near a sampling edge, so crossing that boundary needs a deliberate circuit.

    Undergraduate
  19. Clock Period and Clock Frequency

    Period measures time per clock cycle, and frequency measures cycles per unit time. They are reciprocals for a regular clock.

    Undergraduate
  20. Byte Addresses and Word-Sized Values

    A byte-addressed memory assigns each byte its own address. A multibyte value occupies several consecutive addresses.

    Undergraduate
  21. Address Width and Addressable Positions

    Calculate the number of addressable positions from the address width and the storage unit per position.

    Undergraduate
  22. Reading and Writing an Addressed Memory Cell

    An addressed memory interface uses address, data, and control information to select which stored value to observe or modify.

    Undergraduate
  23. Registers and Addressed Memory

    Registers hold values directly used by a circuit's local operations. A memory array stores a larger collection selected by an address.

    Undergraduate
  24. Fetch, Decode, and Execute in a Simple Processor

    A basic processor reads an instruction from an address, interprets its fields, and performs the operation specified by those fields.

    Undergraduate
  25. Reading Fields of a Toy Instruction

    An instruction format assigns bit fields to its operation and operands. Their meanings depend on that instruction set.

    Undergraduate
  26. The Program Counter and Branch Targets

    A program counter identifies which instruction is fetched under a processor's execution model. Branches can change the next chosen address.

    Undergraduate
  27. Instruction Latency and Throughput

    Latency measures the time from one operation's start to its result. Throughput measures how often results can be completed under a sustained workload.

    Undergraduate
  28. A Data Dependency in a Processor Pipeline

    One instruction depends on another when it needs a value the earlier instruction has yet to produce.

    Undergraduate
  29. When Two Addresses Refer to the Same Resource

    A memory map can expose one resource through more than one address. Such aliases differ from two independent storage locations.

    Undergraduate
  30. Verifying a Small Logic Circuit with Examples

    For a combinational circuit with few input bits, exhaustive input enumeration can compare its settled outputs with a specification.

    Undergraduate