Skip to the content ForoHackers
Log inJoin

Digital design: start here

Digital design
#3001 · · Quote · 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

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply