A calculus for hardware description*

  • Authors:
  • Sungwoo Park;Hyeonseung Im

  • Affiliations:
  • Department of computer science and engineering, pohang university of science and technology, republic of korea (e-mail: gla@postech.ac.kr, genilhs@postech.ac.kr);Department of computer science and engineering, pohang university of science and technology, republic of korea (e-mail: gla@postech.ac.kr, genilhs@postech.ac.kr)

  • Venue:
  • Journal of Functional Programming
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

In efforts to overcome the complexity of the syntax and the lack of formal semantics of conventional hardware description languages, a number of functional hardware description languages have been developed. Like conventional hardware description languages, however, functional hardware description languages eventually convert all source programs into netlists, which describe wire connections in hardware circuits at the lowest level and conceal all high-level descriptions written into source programs. We develop a calculus, called lλ (linear lambda), which may serve as an intermediate functional language just above netlists in the hierarchy of hardware description languages. In order to support higher-order functions, lλ uses a linear type system, which enforces the linear use of variables of function type. The translation of lλ into structural descriptions of hardware circuits is sound and complete in the sense that it maps expressions only to realizable hardware circuits, and that every realizable hardware circuit has a corresponding expression in lλ. To illustrate the use of lλ as a practical intermediate language for hardware description, we design a simple hardware description language that extends lλ with polymorphism, and use it to implement a fast Fourier transform circuit and a bitonic sorting network.