Lola (hardware Description Language) Article Index for
Lola
Website Links For
Lola
 

Information About

Lola (hardware Description Language)




The purpose of Lola is to statically describe the structure and functionality of hardware components and of the connections between them. A Lola text is composed of declarations and statements. It describes the hardware on the Gate level in the form of signal assignments. Signals are combined using operators and assigned to other signals. Signals and the respective assignments can be grouped together into types. An instance of a type is a hardware component. Types can be composed of instances of other types, thereby supporting a Hierarchical design style and they can be Generic (e.g. parametrizable with the word-width of a circuit).

All of the concepts mentioned above are demonstrated in the following example of a circuit for adding binary data. First, a fundamental building block (TYPE Cell) is defined, then
this Cell is used to declare a cascade of word-width 8, and finally the Cells are connected to each other. The MODULE Adder defined in this example can serve as a building block on a higher level of the design hierarchy.


MODULE Adder;

  • Composite Type ---)

  • input signals ---)

  • output signals ---)

  • BEGIN

z:=x-y-ci;
  • y+x---ci+y---ci;

  • END Cell;


CONST N:=8;
  • input signals ---)

  • output signals ---)

  • composite type instances ---)

  • BEGIN

  • inputs in cell 0---)

  • FOR i:=1..N-1 DO

  • inputs in cell i ---)

  • END;

FOR i:=0..N-1 DO
Z.i:=S.i.z;
END;
co:=S.7.co;
END Adder.


Wirth describes Lola from a user's perspective in his book ''Digital Circuit Design'' . A complementary view on the details of the Lola compiler's implementation can be found in Wirth's technical report (containing a copy of the report on the language Lola ''Lola: An Object-Oriented Logic Description Language'').


EXTERNAL LINKS