Page 1 of 1

Lola2 Compiler Source Code

Posted: Wed Jan 19, 2022 5:53 am
by cfbsoftware
The hardware description language (HDL) Lola (Logic Language) was designed by Niklaus Wirth in 1990 as an effort to present a simple and effective textual description of digital circuits. Other, similar but more complex, HDLs that you may have heard of are VHDL and Verilog.

The use of the Lola2 compiler to translate Lola HDL code to Verilog is described in the document:

An Implementation of Lola-2 or Translating from Lola to Verilog, N.Wirth, 30.11.2014:

https://people.inf.ethz.ch/wirth/Lola/LolaCompiler.pdf

The Lola2 language definition is:

https://people.inf.ethz.ch/wirth/Lola/Lola2.pdf

The attached zip file contains the source code files of Niklaus Wirth's Lola2 compiler converted to Component Pascal. They can be compiled using CPIde to produce a command-line executable Lola2.exe that runs on Windows 10 or 11.