Re: [Oberon] Oberon-1 or Oberon-2?
On 10/14/14 03:48, skulski@pas.rochester.edu wrote:
Approximately 20 years ago, I heard a guest lecture of Prof. Wirth. [...] He did not like type-bound procedures, saying that they were some kind of constant record components and that procedure variables should be used instead.
Linux kernel is extensively using procedure variables. Having some limited experience with programming the Linux kernel, I do not think this is a good recommendation. In the Oberon/Component Pascal community the procedure variables are frown upon, because procedure variables put emphasis on run time debugging and testing as the main methods, similar to development of Linux kernel. Why does anyone want to eat this crow?
Therefore, I think Oberon on the FPGA is the way it is not because of convenience but because that's how Wirth wanted it to be.
From the practical standpoint, this project needs to be ported to a variety of hardware. Therefore, it cannot stay untouched. I took a shot at compiling the Verilog code provided on the Project Oberon website. The Xilinx compiler indicated that staying in the point that was provided is not an option. I will write more on this later. It is not a matter of opinion, it is a matter of necessity. The same may be true regarding the language, or at least its compiler.
W.
Hello: I synthesized the FPGA Oberon System (FOS) for fourteen Xilinx FPGAs listed in the attached spreadsheet. The goal of this exercise was to estimate the FPGA resources taken by the FOS and the predicted performance. I did not optimize anything. Just compiled "as is" (almost, see below). The good news: 1. The synthesis suceeded for all the listed targets despite the differences among the chips. 2. I did not have to tweak anything (almost). 3. The estimated performance in MHz looks decent in the new Artix chips. 4. The FPGA resources taken by FOS are very reasonable for most of the chips, except the original one where the design takes the entire chip, and the lowest Spartan-6 which was too small to host the firmware. Otherwise there is plenty of room left for other firmware modules. The "almost" means that I had to remove the hardwired clock location from the video module. This location made sense for the Spartan-3 XC3S200, but not for the other chips. I also removed the pin location file from the project because the pins are specific to a particular chip and the board. Despite this apparent success, this is just a starting point. There are a few synthesis warnings in the original target, which need to be understood because this design is supposed to be optimal. In other cases there are plenty of synthesis warnings due to dissimilar gate fabric among the FPGA families. These need to be understood and addressed. The FOS appears almost portable, but some adjustments will be needed. Some features are tied to Spartan-3. For example, the file Multiplier1.v uses the built-in MULT18X18, which is specific to Spartan-3. The synthesis tool is smart enough to map it to the newer hardware, so there is no immediate problem to address here. The MULT18X18 component can be replaced with the DSP slice that is present in the newer chips. The code is written in terse register-transfer (RTL) Verilog that may be hard to follow for casual FPGA developers. It may be tempting to recast some sections into easier to follow "behavioral HDL". Hope it helps, Wojtek
Oops, I put wrong numbers in the 2nd row in the table. The corrected table is attached. Sorry for that. Wojtek
I synthesized the FPGA Oberon System (FOS) for fourteen Xilinx FPGAs listed in the attached spreadsheet. The goal of this exercise was to estimate the FPGA resources taken by the FOS and the predicted performance. I did not optimize anything. Just compiled "as is" (almost, see below). The good news:
1. The synthesis suceeded for all the listed targets despite the differences among the chips.
2. I did not have to tweak anything (almost).
3. The estimated performance in MHz looks decent in the new Artix chips.
4. The FPGA resources taken by FOS are very reasonable for most of the chips, except the original one where the design takes the entire chip, and the lowest Spartan-6 which was too small to host the firmware. Otherwise there is plenty of room left for other firmware modules.
The "almost" means that I had to remove the hardwired clock location from the video module. This location made sense for the Spartan-3 XC3S200, but not for the other chips. I also removed the pin location file from the project because the pins are specific to a particular chip and the board.
Despite this apparent success, this is just a starting point. There are a few synthesis warnings in the original target, which need to be understood because this design is supposed to be optimal. In other cases there are plenty of synthesis warnings due to dissimilar gate fabric among the FPGA families. These need to be understood and addressed.
The FOS appears almost portable, but some adjustments will be needed. Some features are tied to Spartan-3. For example, the file Multiplier1.v uses the built-in MULT18X18, which is specific to Spartan-3. The synthesis tool is smart enough to map it to the newer hardware, so there is no immediate problem to address here. The MULT18X18 component can be replaced with the DSP slice that is present in the newer chips.
The code is written in terse register-transfer (RTL) Verilog that may be hard to follow for casual FPGA developers. It may be tempting to recast some sections into easier to follow "behavioral HDL".
Hope it helps, Wojtek
Hello: I extended my study to nineteen Xilinx FPGAs. I do not have tools from other vendors, so I could not try Altera or Lattice. Let me stay with Xilinx. The spreadsheet is attached. There are a few interesting observations. 1. This time I encountered a synthesis error in the Spartan-3AN series. These are interesting chips because they include non-volatile flash configuration memories. (Versions without flash are available as well.) The compilation error tells that changing some firmware details cannot be avoided, if you decide to buy a particular board from somewhere. Adjusting the firmware is thus both expected and unavoidable. (Another reason will be SRAM/DRAM, which is different on every board.) 2. I checked the chip availability. It turns out that older Series-3 chips are still available. I expect them to be available for a long time despite the fact that Xilinx is discouraging the developers from using them for new designs. 3. The hand-solderable chips cost between $11 and $30 per chip. It tells you how much the board will cost if you decide to assemble it by hand. Do not charge the time you spend on soldering, because then it will be a very expensive board indeed. But if one is willing to hand solder, then a DIY board will cost ~$100, with parts and the PCB. It sort of tells why the short series boards like Papilio cost, what they cost. It also tells that the Ebay prices are not unreasonable. Caveat: If you decide to design your own board then do not necessarily choose the cheapest FPGA from my table. Look at the bigger picture. The chips surrounding the FPGA will add to the cost. 4. The percentage in column 7 tells what to expect if you decide to buy a board from Ebay. (There are quite a few boards on Ebay.) Do not buy the FPGA that is too small for the project, plus some room for experimentation. This table is telling what you can expect from a particular FPGA even without compiling the firmware yourself. I hope that armed with this compilation anyone can choose a board knowing whether or not the FPGA is capable of running the FPGA Oberon System, and how much elbow room still remains in the chip for experimentation. Regards, WOjtek
participants (1)
-
skulski@pas.rochester.edu