Retrocomputing with Clash: Haskell for FPGA Hardware Design

Retrocomputing with Clash: Haskell for FPGA Hardware Design

English | 2021 | 542 Pages | PDF, EPUB, MOBI | 24 MB

Haskell has become the functional programming language of choice for many developers due to its excellent tools for abstraction and principled program design. The open source Clash hardware description language now brings these features to FPGA development.

Retrocomputing with Clash takes the experienced Haskell programmer on a journey into the world of hardware design with Clash. Our approach is based on using Haskell to its fullest potential, using abstractions like monads and lenses in building a library of reusable components.

But that wouldn’t put the fun in functional programming! And so we put these components to good use in implementing various retro-computing devices:

  • Pocket calculator
  • Pong (sample chapter)
  • A simple, but Turing-complete computer that uses Brainfuck as its machine code
  • An implementation of the CHIP-8 virtual computer specification
  • Intel 8080 CPU
  • Space Invaders arcade machine
  • Compucolor II, a home computer from 1977 complete with keyboard, color video, and a floppy drive