Title
Synthesizable high level hardware descriptions
Abstract
Modern hardware description languages support code generation constructs like generate/endgenerate in Verilog. These constructs are used to describe regular or parameterized hardware designs and, when used effectively, can make hardware descriptions shorter, more understandable, and more reusable. In practice, however, designers avoid these abstractions, because it is difficult to understand and predict the properties of the generated code. Is the generated code even type safe? Is it synthesizable? What physical resources (e.g. combinatorial gates and flip-flops) does it require? It is often impossible to answer these questions without first generating the fully-expanded code. In the Verilog and VHDL communities, this generation process is referred to as elaboration. This paper proposes a disciplined approach to elaboration in Verilog. By viewing Verilog as a statically typed two-level language, we are able to reflect the distinction between values that are known at elaboration time and values that are part of the circuit computation. This distinction is crucial for determining whether generative constructs, such as iteration and module parameters, are used in a synthesizable manner. This allows us to develop a static type system that guarantees synthesizability. The type system achieves safety by performing additional checking on generative constructs and array indices. To illustrate this approach, we develop a core calculus for Verilog that we call Featherweight Verilog (FV) and an associated static type system. We formally define a preprocessing step analogous to the elaboration phase of Verilog, and the kinds of errors that can occur during this phase. Finally, we show that a well-typed design cannot cause preprocessing errors, and that the result of its elaboration is always a synthesizable circuit.
Year
DOI
Venue
2010
10.1007/s00354-008-0093-1
New Generation Comput.
Keywords
Field
DocType
Code Generation,Hardware Description Languages,Statically Typed Two-Level Languages,Synthesizability,Verilog Elaboration
Parameterized complexity,Programming language,Computer science,Theoretical computer science,Code generation,Semulation,Preprocessor,VHDL,Verilog,Computer hardware,Elaboration,Hardware description language
Journal
Volume
Issue
ISSN
28
4
0288-3635
Citations 
PageRank 
References 
2
0.48
5
Authors
7
Name
Order
Citations
PageRank
Jennifer Gillenwater140015.19
Gregory Malecha2927.93
Cherif Salama3355.25
Angela Yun Zhu4132.24
Walid Taha5102070.41
Jim Grundy617918.11
John O'leary720.48