Skip to the content ForoHackers
Log inJoin

Digital design: start here

Digital design
#495 · Ophuscado · · Report

Digital design builds circuits out of logic: gates, flip-flops and the state machines made from them. Every processor, controller and interface chip is such a circuit. The central skill is thinking in parallel hardware and in clock cycles, not in sequential statements.

Key concepts

  • Combinational logic: outputs depend only on current inputs; Boolean algebra and truth tables describe it.
  • Sequential logic: flip-flops and a clock give circuits memory and a notion of step.
  • Finite state machines: the usual way to control behaviour, with states, transitions and outputs.
  • Timing: setup and hold times, propagation delay and the critical path set the maximum clock.
  • Clock domains: signals crossing between clocks need synchronisers or they become unstable.

Vocabulary

  • HDL: hardware description language, such as Verilog, SystemVerilog or VHDL.
  • RTL: register-transfer level, a design described as registers and the logic between them.
  • Metastability: a flip-flop caught between 0 and 1 when its input changes at the wrong moment.
  • Testbench: code that drives a design in simulation and checks its outputs.

What to study, in order

  1. Boolean algebra, gates, adders and multiplexers, by hand.
  2. Latches, flip-flops, counters and shift registers.
  3. A traffic-light or vending-machine state machine, drawn and then written in an HDL.
  4. Simulate it with a testbench and read the waveforms.
  5. Build a small CPU or UART, and find its critical path.

Related tags

#fpga #asic #hardware-verification #computer-architecture

Log in or join to reply.