Moving oberon to RISCV?
I realize this is a lot of work, but there's quite a bit of momentum for RISCV. What would need to be done to port Oberon?
Hi Travis,
I realize [Moving oberon to RISC[-]V] is a lot of work, but there's quite a bit of momentum for [it]. What would need to be done to port Oberon?
I think the first thing would be to select an inexpensive hardware reference platform with some longevity. We selected the Digilent Spartan-3 Board as (a) good fit to the intended machine, ie a curatorial replacement for the Ceres, not a super-mega(-giga?)-upgrade; (b) not too expensive; and mainly (c) ETH had a lot of them. Since this board is now sadly no longer made, the decision seems a bit unwise, but hindsight is of course 20-20. HTH Paul
Paul:
I think the first thing would be to select an inexpensive hardware reference platform with some longevity.
Not sure if it is exists. You only learn about the longevity when the board is gone. Consider the Digilent website. It looks like a graveyard of great old boards. You can also seek the longevity on Ebay, but the supply is limited. One Spartan-3 Evaluation Kit is available today on Ebay for $150. Grab it before it is gone! This is the whole world wide supply at this point.
Since this board is now sadly no longer made, the decision seems a bit unwise, but hindsight is of course 20-20.
This decision was not unwise. Any such board will follow the same route. It is the nature of these boards. The FPGAs do not enjoy the broad market like ARM processors, and therefore the turn around time of the eval boards is unlikely to last longer than a couple years. The companies like Digilent will switch to the new FPGA generations and abandon the older ones. Which is why I designed my own RiskFive. At least I know that I have the longevity in my own hands till they stop making Artix chips, which will probably happen 10 years from now. This projected longevity is reflected in the cost of the board, because RiskFive will stay low volume. Unless, of course, you guys decide to develop some cool apps using it, in which case it will become both more popular and low price. Thank you, Wojtek
Jorg wrote:- In his career he ported his compiler to quite some processors. But instead of porting the compiler over and over again to the myriads of processors out there, the idea was: keep the compiler constant and make it generate code for „his“ RISC-5 processor. ---- So then he used pseudo-code with a VM. Are there any of them documented? I did that in the 70's/80's for 8 bit microProcs, after I had adapted the expensive HP <BASIC lang like> desktop computer, which also did IEE488 instrument driving, for automating test equipment. Based on a BYTE [publication] article of PASCAL a compiler, written in BASIC, I replaced the miriad of GoTo's by a <diagram> representing a Finite-State-Machine. Who remembers the <railway diagrams> representation of syntax-tables? The diagrams where stretched-out to show 1-node per line. Then train <jumped> to the <action> as it passed the corresponding node/station. So eg. [AFAICR]: VAR IntrFlag <-- NAME := IntrFlag : BYTE <-- enter/push: NAME, Offset, Type toSymTable ............ : On Fri, Jul 27, 2018 at 3:12 PM, Skulski, Wojciech < skulski@pas.rochester.edu> wrote:
Paul:
I think the first thing would be to select an inexpensive hardware reference platform with some longevity.
Not sure if it is exists. You only learn about the longevity when the board is gone. Consider the Digilent website. It looks like a graveyard of great old boards.
You can also seek the longevity on Ebay, but the supply is limited. One Spartan-3 Evaluation Kit is available today on Ebay for $150. Grab it before it is gone! This is the whole world wide supply at this point.
Since this board is now sadly no longer made, the decision seems a bit unwise, but hindsight is of course 20-20.
This decision was not unwise. Any such board will follow the same route. It is the nature of these boards. The FPGAs do not enjoy the broad market like ARM processors, and therefore the turn around time of the eval boards is unlikely to last longer than a couple years. The companies like Digilent will switch to the new FPGA generations and abandon the older ones.
Which is why I designed my own RiskFive. At least I know that I have the longevity in my own hands till they stop making Artix chips, which will probably happen 10 years from now. This projected longevity is reflected in the cost of the board, because RiskFive will stay low volume. Unless, of course, you guys decide to develop some cool apps using it, in which case it will become both more popular and low price.
Thank you, Wojtek
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
You can also seek the longevity on Ebay, but the supply is limited. One Spartan-3 Evaluation Kit is available today on Ebay for $150. Grab it before it is gone! This is the whole world wide supply at this point. Or you could buy a new Pepino Oberon Kit from Saanlima Electronics with an Oberon system ready to go, just add monitor, keyboard, mouse and USB cable. The kit is normally $104.95 but is currently on sale for 20% off (use coupon OberonGo at checkout).
See http://saanlima.com/store/index.php?route=product/product&product_id=71 for more details.
Magnus wrote:
Or you could buy a new Pepino Oberon Kit from Saanlima Electronics with an Oberon system ready to go, just add monitor, keyboard, mouse and USB cable. The kit is normally $104.95 but is currently on sale for 20% off (use coupon OberonGo at checkout).
Excellent. I am glad you are pointing it out. We have one such Pepino board. It is working very well. I will add the pointer to the RiskFive website. So I should explain the difference between Pepino and RiskFive. 1. RiskFive kit is 10x more costly than Pepino. (OK, at this point we have lost all the customers ;-) 2. Pepino aims at running the original 2013 Oberon System. RiskFive was designed to advance the Oberon System beyond the current status. 3. Pepino + Oberon just works and it is ready to go. RiskFive lacks any working FW at this point, because it intentionally provides new, high performance hardware. The FW and the corresponding SW drivers need to be developed. 4. FW/SW developments are of course possible with Pepino, but there is no nagging reason to pursue such modifications because Pepino just works. It is also not clear, what these modifications should be, because "don't fix it if it ain't broken". In case of RiskFive, its FW/SW *must* be fixed because it does not even exist yet. 5. RiskFive is a development platform for non-Oberon applications as well. It can accommodate FPGAs up to Artix 100T, which is sufficient for RISC-V. (Any takers?) Soldering Artix 100T will boost the kit to some $1,200. But hey, if you want to betray Professor N.Wirth and go to the Berkeley bunch instead, then you deserve the punishment. 6. Pepino has a rather limited set of GPIO pinned out to 0.1" headers. These are good for the low and mid-performance apps like pushbuttons, PWM, and so on. In case of RiskFive, all the pins that are not occupied for ZBT, were pinned out to high performance Hirose connectors with integral ground. (Most were routed differentially.) These can be driven at the full speed that Artix can deliver, which is over 1 gigabit per second per pair. 7. Pepino is a closed ended design. RiskFive is open ended in the sense that the end-user functions are on the motherboard which is relatively easy to modify. (I will post the design files.) The division between the high-performance core module and the user-mode motherboard is intentional. The core module is "just the FPGA", memory, boot flash, and power. All the application stuff is on the motherboard which is meant to get modified. 8. Pepino cannot provide a rich multicolor display due to limited RAM. Four colors are the limit. (Magnus has implemented the four color display. Many thanks!) RiskFive has enough RAM to support 1k*768 (or even slightly larger) of 8-bit pixels, mapped to 24 bit color via a lookup table. (A palette.) It was one of the main goals driving this design. Note that the video is on the motherboard, what hints that some planned applications will be deeply embedded w/o the display. Ditto with the mouse and keyboard. 9. Another hint at such deeply embedded application is the presence of GbE PHY on the core RiskFive module. This PHY is not planned to be used with Oberon, unless we can find some really brave soul to implement the Ethernet MAC in the fabric and the Internet stack in Oberon. I am not counting on this. The PHY is meant for software-less apps outside the Oberon realm. 10. Pepino can run RISC5 at 25 MHz. The clock speed is limited by the ASRAM chip. It is the same performance as the original 2013 Oberon, and for he same reason. This limitation is lifted in RiskFive, whose synchronous RAM can be clocked up to 250 MHz. I will push my interns to achieve 100 MHz RISC5 operation. Faster operation is allowed by the ZBT memory and we can try pushing even beyond 100 MHz. 11. In summary, RiskFive is definitely not "ready to go". It is an adventure which is just beginning. I hope that the journey will continue. Thank you, Wojtek
That is an excellent summary. I have a few additional comments based on my experience of the Pepino: 1. Although Pepino was specifically designed to run Project Oberon it does has other uses. My retrocomputing interests include Modula-2 compilers and 68000-based systems (Sage, Mac, Atari, Amiga and Palm). One of Pepino's alter-egos is the MacPlus. Using it somehow feels more like the real thing than using a Mac emulator on a PC. I have a few other long-term projects in mind to make use of its 68000 personality. 2. I have the LX25 version of the Pepino as well as the LX9. It has an additional 1 MB of SRAM making a total of 2 MB. Unfortunately the Pepino LX25 is listed as discontinued. However, I'd be surprised if Magnus didn't resurrect it if there was sufficient demand. @Magnus: What would a minimum order be to make this happen? 3. The Pepino can run Project Oberon RISC5 Workstation at 37.5 MHz using the alternative Verilog code on Saanlima's site. ... and just to show I'm not biased ;-) 4. Pepino uses the Xilinx Spartan-6 which is not supported by the latest Xilinx HDL software (Vivado). If you want to modify the Verilog code for the Pepino the older ISE 14.7 software is still available but it requires a Linux VM to run it on Windows 10. I prefer using the Vivado software with the Artix-7 (as used by RiskFive). Regards, Chris Burrows CFB Software http://www.astrobe.com/RISC5
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Skulski, Wojciech Sent: Saturday, 28 July 2018 12:07 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Oberon board availability (was Moving oberon to RISCV?)
Magnus wrote:
Or you could buy a new Pepino Oberon Kit from Saanlima Electronics with an Oberon system ready to go, just add monitor, keyboard, mouse and USB cable. The kit is normally $104.95 but is currently on sale for 20% off (use coupon OberonGo at checkout).
Excellent. I am glad you are pointing it out. We have one such Pepino board. It is working very well. I will add the pointer to the RiskFive website.
So I should explain the difference between Pepino and RiskFive.
1. RiskFive kit is 10x more costly than Pepino. (OK, at this point we have lost all the customers ;-)
2. Pepino aims at running the original 2013 Oberon System. RiskFive was designed to advance the Oberon System beyond the current status.
3. Pepino + Oberon just works and it is ready to go. RiskFive lacks any working FW at this point, because it intentionally provides new, high performance hardware. The FW and the corresponding SW drivers need to be developed.
4. FW/SW developments are of course possible with Pepino, but there is no nagging reason to pursue such modifications because Pepino just works. It is also not clear, what these modifications should be, because "don't fix it if it ain't broken". In case of RiskFive, its FW/SW *must* be fixed because it does not even exist yet.
5. RiskFive is a development platform for non-Oberon applications as well. It can accommodate FPGAs up to Artix 100T, which is sufficient for RISC-V. (Any takers?) Soldering Artix 100T will boost the kit to some $1,200. But hey, if you want to betray Professor N.Wirth and go to the Berkeley bunch instead, then you deserve the punishment.
6. Pepino has a rather limited set of GPIO pinned out to 0.1" headers. These are good for the low and mid-performance apps like pushbuttons, PWM, and so on. In case of RiskFive, all the pins that are not occupied for ZBT, were pinned out to high performance Hirose connectors with integral ground. (Most were routed differentially.) These can be driven at the full speed that Artix can deliver, which is over 1 gigabit per second per pair.
7. Pepino is a closed ended design. RiskFive is open ended in the sense that the end-user functions are on the motherboard which is relatively easy to modify. (I will post the design files.) The division between the high-performance core module and the user-mode motherboard is intentional. The core module is "just the FPGA", memory, boot flash, and power. All the application stuff is on the motherboard which is meant to get modified.
8. Pepino cannot provide a rich multicolor display due to limited RAM. Four colors are the limit. (Magnus has implemented the four color display. Many thanks!) RiskFive has enough RAM to support 1k*768 (or even slightly larger) of 8-bit pixels, mapped to 24 bit color via a lookup table. (A palette.) It was one of the main goals driving this design. Note that the video is on the motherboard, what hints that some planned applications will be deeply embedded w/o the display. Ditto with the mouse and keyboard.
9. Another hint at such deeply embedded application is the presence of GbE PHY on the core RiskFive module. This PHY is not planned to be used with Oberon, unless we can find some really brave soul to implement the Ethernet MAC in the fabric and the Internet stack in Oberon. I am not counting on this. The PHY is meant for software-less apps outside the Oberon realm.
10. Pepino can run RISC5 at 25 MHz. The clock speed is limited by the ASRAM chip. It is the same performance as the original 2013 Oberon, and for he same reason. This limitation is lifted in RiskFive, whose synchronous RAM can be clocked up to 250 MHz. I will push my interns to achieve 100 MHz RISC5 operation. Faster operation is allowed by the ZBT memory and we can try pushing even beyond 100 MHz.
11. In summary, RiskFive is definitely not "ready to go". It is an adventure which is just beginning. I hope that the journey will continue.
Thank you, Wojtek
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Just a side note: I implemented 16 colors on the Pepino and did the Verliog change on a Mac bootcamped in Windows 10. br Jörg Am 28.07.18, 08:26 schrieb "Oberon im Auftrag von Chris Burrows" <oberon-bounces@lists.inf.ethz.ch im Auftrag von chris@cfbsoftware.com>: That is an excellent summary. I have a few additional comments based on my experience of the Pepino: 1. Although Pepino was specifically designed to run Project Oberon it does has other uses. My retrocomputing interests include Modula-2 compilers and 68000-based systems (Sage, Mac, Atari, Amiga and Palm). One of Pepino's alter-egos is the MacPlus. Using it somehow feels more like the real thing than using a Mac emulator on a PC. I have a few other long-term projects in mind to make use of its 68000 personality. 2. I have the LX25 version of the Pepino as well as the LX9. It has an additional 1 MB of SRAM making a total of 2 MB. Unfortunately the Pepino LX25 is listed as discontinued. However, I'd be surprised if Magnus didn't resurrect it if there was sufficient demand. @Magnus: What would a minimum order be to make this happen? 3. The Pepino can run Project Oberon RISC5 Workstation at 37.5 MHz using the alternative Verilog code on Saanlima's site. ... and just to show I'm not biased ;-) 4. Pepino uses the Xilinx Spartan-6 which is not supported by the latest Xilinx HDL software (Vivado). If you want to modify the Verilog code for the Pepino the older ISE 14.7 software is still available but it requires a Linux VM to run it on Windows 10. I prefer using the Vivado software with the Artix-7 (as used by RiskFive). Regards, Chris Burrows CFB Software http://www.astrobe.com/RISC5 > -----Original Message----- > From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of > Skulski, Wojciech > Sent: Saturday, 28 July 2018 12:07 PM > To: ETH Oberon and related systems > Subject: Re: [Oberon] Oberon board availability (was Moving oberon to > RISCV?) > > Magnus wrote: > > >Or you could buy a new Pepino Oberon Kit from Saanlima Electronics > with > >an Oberon system ready to go, just add monitor, keyboard, mouse and > USB > >cable. The kit is normally $104.95 but is currently on sale for 20% > >off (use coupon OberonGo at checkout). > > Excellent. I am glad you are pointing it out. We have one such Pepino > board. It is working very well. I will add the pointer to the > RiskFive website. > > So I should explain the difference between Pepino and RiskFive. > > 1. RiskFive kit is 10x more costly than Pepino. (OK, at this point we > have lost all the customers ;-) > > 2. Pepino aims at running the original 2013 Oberon System. RiskFive > was designed to advance the Oberon System beyond the current status. > > 3. Pepino + Oberon just works and it is ready to go. RiskFive lacks > any working FW at this point, because it intentionally provides new, > high performance hardware. The FW and the corresponding SW drivers > need to be developed. > > 4. FW/SW developments are of course possible with Pepino, but there > is no nagging reason to pursue such modifications because Pepino just > works. It is also not clear, what these modifications should be, > because "don't fix it if it ain't broken". In case of RiskFive, its > FW/SW *must* be fixed because it does not even exist yet. > > 5. RiskFive is a development platform for non-Oberon applications as > well. It can accommodate FPGAs up to Artix 100T, which is sufficient > for RISC-V. (Any takers?) Soldering Artix 100T will boost the kit to > some $1,200. But hey, if you want to betray Professor N.Wirth and go > to the Berkeley bunch instead, then you deserve the punishment. > > 6. Pepino has a rather limited set of GPIO pinned out to 0.1" > headers. These are good for the low and mid-performance apps like > pushbuttons, PWM, and so on. In case of RiskFive, all the pins that > are not occupied for ZBT, were pinned out to high performance Hirose > connectors with integral ground. (Most were routed differentially.) > These can be driven at the full speed that Artix can deliver, which > is over 1 gigabit per second per pair. > > 7. Pepino is a closed ended design. RiskFive is open ended in the > sense that the end-user functions are on the motherboard which is > relatively easy to modify. (I will post the design files.) The > division between the high-performance core module and the user-mode > motherboard is intentional. The core module is "just the FPGA", > memory, boot flash, and power. All the application stuff is on the > motherboard which is meant to get modified. > > 8. Pepino cannot provide a rich multicolor display due to limited > RAM. Four colors are the limit. (Magnus has implemented the four > color display. Many thanks!) RiskFive has enough RAM to support > 1k*768 (or even slightly larger) of 8-bit pixels, mapped to 24 bit > color via a lookup table. (A palette.) It was one of the main goals > driving this design. Note that the video is on the motherboard, what > hints that some planned applications will be deeply embedded w/o the > display. Ditto with the mouse and keyboard. > > 9. Another hint at such deeply embedded application is the presence > of GbE PHY on the core RiskFive module. This PHY is not planned to be > used with Oberon, unless we can find some really brave soul to > implement the Ethernet MAC in the fabric and the Internet stack in > Oberon. I am not counting on this. The PHY is meant for software-less > apps outside the Oberon realm. > > 10. Pepino can run RISC5 at 25 MHz. The clock speed is limited by the > ASRAM chip. It is the same performance as the original 2013 Oberon, > and for he same reason. This limitation is lifted in RiskFive, whose > synchronous RAM can be clocked up to 250 MHz. I will push my interns > to achieve 100 MHz RISC5 operation. Faster operation is allowed by > the ZBT memory and we can try pushing even beyond 100 MHz. > > 11. In summary, RiskFive is definitely not "ready to go". It is an > adventure which is just beginning. I hope that the journey will > continue. > > Thank you, > Wojtek > > > > > > > -- > Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related > systems https://lists.inf.ethz.ch/mailman/listinfo/oberon -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Wojtek,
10. Pepino can run RISC5 at 25 MHz. The clock speed is limited by the ASRAM chip.
Not true - Magnus has implemented a 37.5MHz version; and the asynchronous SRAM is not the limit, the design of the RISC5 plays a part. Magnus explains this well. I don't agree that the Pepino is "closed", it has a great set of directions in which it can expand, so I think your implied criticism is rather unfair - but maybe you didn't intend to sound so critical. Anyway, with Magnus' latest offer, Pepino is a really great deal for a Project Oberon machine, thank you Magnus! Cheers, Paul
Paul:
10. Pepino can run RISC5 at 25 MHz. The clock speed is limited by the ASRAM chip.
Not true - Magnus has implemented a 37.5MHz version; and the asynchronous SRAM is not the limit, the design of the RISC5 plays a part. Magnus explains this well.
I stand corrected. The clock speed increase is valuable, though not dramatic. I ascribed the speed limit to ASRAM based on my reading of Pong P. Chu's book on FPGA prototyping with Spartan 3. This book elaborates on the same Spartan 3 kit as you used for Oberon. Professor Chu devoted an entire chapter to the ASRAM interface. The limitation is that the nominally 10 ns chip cannot handle transactions every clock cycle (a well known fact). The idle cycles which are needed to avoid contention are bringing the speed down. In conclusion, using ASRAM is limiting the memory speed to - more or less - what you and Magnus have achieved. There may be other bottlenecks in the system as well, but this particular one is fundamental and hard to improve upon. Improvements in this area need another kind of memory. A slight improvement can be achieved using ASRAM chips rated at 8 ns rather than 10 ns. Such chips are pin compatible with the 10 ns ones. The substitution can be done during the assembly.
I don't agree that the Pepino is "closed", it has a great set of directions in which it can expand, so I think your implied criticism is rather unfair - but maybe you didn't intend to sound so critical.
Maybe I should have phrased it differently. I meant to say that Pepino is a tightly packed board where adding features will be sort of hard to do. Being a board designer myself I know how easy or how hard it can be. It is always possible at the expense of ripping up the design, so "closed ended" is always relative. My design is "open ended" in the sense that I tried to ease this task somewhat. But there is price to pay for such a flexibility, which is higher cost due to a mother/daughter design. It is adding a couple hundred $$ to the assembly. There is no free lunch here, unfortunately.
Anyway, with Magnus' latest offer, Pepino is a really great deal for a Project Oberon machine, thank you Magnus!
Full agreement from my side. It would be wonderful to see Pepino's derivatives. For example, a version of Pepino with a ZBT chip rather than ASRAM. A price increase would be quite moderate. But it is not clear whether this improvement would increase Pepino sales. Rerouting the board is quite a bit of work, and then there is the question of firmware. Thank you, Wojtek
If you mean this RISCV (https://en.m.wikipedia.org/wiki/RISC-V), then you need to change the code generator of the oberon compiler to generate RISCV instructions. In my point, this is exactly the opposite of what Wirth wanted to reach with RISC-5. In his career he ported his compiler to quite some processors. But instead of porting the compiler over and over again to the myriads of processors out there, the idea was: keep the compiler constant and make it generate code for „his“ RISC-5 processor. By using FPGA, you then „only“ have to implement this processor on a chosen FPGA platform. Jörg
Am 27.07.2018 um 12:09 schrieb Travis Ayres <trayres@gmail.com>:
I realize this is a lot of work, but there's quite a bit of momentum for RISCV. What would need to be done to port Oberon? -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Joerg,
the myriads of processors out there, the idea was: keep the compiler constant and make it generate code for „his“ RISC-5 processor. By using FPGA, you then „only“ have to implement this processor on a chosen FPGA platform.
No, there was no such idea here, simply the opportunity of being able to design an ideal processor architecture for the problem at hand. See his 80th birthday symposium talk, the last talk at https://www.video.ethz.ch/conferences/2014/wirth/ I think it's important to bear in mind that for Prof. Wirth the FPGA is simply a means to a particular end. Cheers, Paul
The good thing with the FPGA approach is, that we have in the meantime several FPGA boards able to run the exactly same Oberon system (including compiler, graphics, memory, applications...) without changing any line of SW code or adapting the kernel. Good, you have to adapt your Verilog and pin assignments though... Jörg Am 27.07.18, 13:16 schrieb "Oberon im Auftrag von Paul Reed" <oberon-bounces@lists.inf.ethz.ch im Auftrag von paulreed@paddedcell.com>: Hi Joerg, > the myriads of processors out there, the idea was: keep the compiler > constant and make it generate code for „his“ RISC-5 processor. By using > FPGA, you then „only“ have to implement this processor on a chosen FPGA > platform. No, there was no such idea here, simply the opportunity of being able to design an ideal processor architecture for the problem at hand. See his 80th birthday symposium talk, the last talk at https://www.video.ethz.ch/conferences/2014/wirth/ I think it's important to bear in mind that for Prof. Wirth the FPGA is simply a means to a particular end. Cheers, Paul -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (7)
-
Chris Burrows -
eas lab -
Jörg -
Magnus Karlsson -
Paul Reed -
Skulski, Wojciech -
Travis Ayres