What is the status of Lola-2 and its use in the FPGA version ofProject Oberon?
Lola-2 looks like a very interesting HDL and the Project Oberon (PO) FPGA implementation is a good proof of concept. But PO FPGA seems to be implemented in Verilog instead. I compared the Lola source files of Prof. Wirth's Risc5 (http://www-oldurls.inf.ethz.ch/personal/wirth/Lola/) with the current Verilog files (http://www.projectoberon.com/) and got the impression that the Verilog version is independently developed (i.e. not translated with the Lola compiler) and more current. There even seem to be differences between the syntax used in the Lola source files and the one specified in the language report (e.g. TYPE ... "=" vs. ":="). Also the papers and book sections by Prof. Wirth only mention Verilog; there is one mention in the Xilinx journal article though. Can someone comment on that? Is Lola-2 still in use and will it be further developed? What role does Lola-2 play in the PO FPGA project?
Dear Mr. Keller, Although Lola was designed as an introductory hardware description language, I've used it in my own commercial work where it has had some nice advantages. It's also the best example I know of a transpiler which actually generates readable code. :)
But PO FPGA seems to be implemented in Verilog instead... independently developed...and more current.
After the FPGA Project Oberon was finished, Prof. Wirth circled back and implemented it in Lola-2 as an exercise ("Translating from Lola to Verilog" on his Lola page https://www.inf.ethz.ch/personal/wirth/Lola/index.html describes the motivation). The Lola version is not always completely in step with bugfixes and tweaks but it's close. See https://www.inf.ethz.ch/personal/wirth/news.txt.
There even seem to be differences between the syntax used in the Lola source files and the one specified in the language report (e.g. TYPE ... "=" vs. ":=").
This seems to have been an experiment and I recently persuaded Prof. Wirth to go back to the "=" version, to be like Oberon. I had thought he had updated it. Apologies. Paul
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Skulski, Wojciech Sent: Friday, 15 March 2019 1:43 PM To: ETH Oberon and related systems Subject: Re: [Oberon] What is the status of Lola-2 and its use in the FPGA version ofProject Oberon?
But PO FPGA seems to be implemented in Verilog instead... independently developed...and more current.
I am constantly surprised that PO was implemented in C-like Verilog rather than Pascal-like VHDL.
I'm only guessing / speculating but: 1. Easier to compile to a lower-level language? e.g. other transpilers are: Oberon to C C to assembler 2. Not so much to be gained translating from one language to another that is very similar? i.e. There is less need to try to make VHDL more palatable. Regards, Chris Chris Burrows CFB Software http://www.astrobe.com
Chris: only Paul knows. I can only speak from my experience.
I am constantly surprised that PO was implemented in C-like Verilog rather than Pascal-like VHDL.
I'm only guessing / speculating but: 1. Easier to compile to a lower-level language?
Neither Verilog nor VHDL are compiled in the programming sense. They are both translated in a series of steps until finally the resulting netlist is fit into the FPGA by simulated annealing. I suspect/know/believe that by the time it happens all the differences between both representations are long gone.
2. Not so much to be gained translating from one language to another that is very similar? i.e. There is less need to try to make VHDL more palatable.
With a bit of effort both languages translate between themselves one-to-one. An evidence is provided by the books by Pong P. Chu, who published two parallel versions of the same designs. See RiskFive.com for the book titles. Moreover, Xilinx tools support mixed projects, where some files are in Verilog while others are in VHDL. It proves a very high level of compatibility between the two. The Verilog/VHDL chasm is rumored to be a communal thing. The ASIC designers tend to use Verilog, while the FPGA programmers tend to use VHDL. Most Xilinx app notes were using VHDL. Very few used Verilog. The Open Cores community seems to be the other way around. Finally, the modern Verilog style is System Verilog rather than Verilog. The newest book by Pong P. Chu has System Verilog in its title. The difference between classic Verilog and System Verilog is like K&R C versus ANSI C. Who is using K&R C these days? Likewise, why use the old Verilog if System Verilog is just better? See the said books for the discussion. Wojtek
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Skulski, Wojciech Sent: Friday, 15 March 2019 3:08 PM To: ETH Oberon and related systems Subject: Re: [Oberon] What is the status of Lola-2 and its use in the FPGA version ofProject Oberon?
2. Not so much to be gained translating from one language to another that is very similar? i.e. There is less need to try to make VHDL more palatable.
With a bit of effort both languages translate between themselves one- to-one.
I didn't mean translating VHDL <--> Verilog. I meant choosing between: Translating Lola-2 -> Verilog (different style - more to be gained) Translating Lola-2 -> VHDL (similar style - less to be gained) Chris.
Wojtek Some thoughts.
Neither Verilog nor VHDL are compiled in the programming sense. They are both translated in a series of steps until finally the resulting netlist is fit into the FPGA by simulated annealing.
Conceptionally, I can not detect a difference between the approch the „synthesizing tool“ (hopefully I used the right wording) and a optimizing multi-pass compiler. The first step of a multi-pass compiler is syntax analysis, then bring the source in an intermediate representation, then generate code for this representation, then optimize the code in different iterations. This optimization step can even move code blocks around to find the optimal arrangements of assembler code. In PO a simpler one-pass compiler is used, with only minimal optimization.
Moreover, Xilinx tools support mixed projects, where some files are in Verilog while others are in VHDL. It proves a very high level of compatibility between the two.
I don‘t understand your argument: Are you saying because the output is the same the input must be similar? A guy from Hungary and one from England are visiting China. Only because both speak Chinese it does not mean that Hungarian and English are similar.😊
Likewise, why use the old Verilog if System Verilog is just better?
It depends what you define „better“. The discussions we had in this forum „why use the old Oberon-2 if Oberon-07 is better“ was exactly the same discussion. Some people want to have Oberon-2 back as a lot of code exists. Other say Oberon-07 is leaner and cleaner and therefore preferred... Jörg
On 15/03/2019, Skulski, Wojciech <skulski@pas.rochester.edu> wrote (in part): [...]
The Verilog/VHDL chasm is rumored to be a communal thing.
Off-topic (and apologies for the irrelevance) but perhaps worth noting that Verilog started out as a proprietary language until Cadence released it to ISO, whereas VHDL started in IEEE. N.
participants (6)
-
Chris Burrows -
Jörg Straube -
Nemo -
Paul Reed -
rochus.keller@bluewin.ch -
Skulski, Wojciech