RISC5 clock speed and interrupt context switch
Hello: I am exploring the FPGA-based Project Oberon. Two questions popped up after reading the hardware portion of the new Project Oberon and the NW Technical Reports from the FPGA-related part of the personal website. 1. The RISC5 clock speed is 25 MHz. Can it be improved to the Microblaze ballpark that is over 100 MHz? 2. The interrupt HW system. A fast interrupt service can be achieved with a set of shadow registers for context switching, used on Analog Devices ADSP21xx series and SHARC. Has this been considered for the RISC5 interrupt system? I am asking because improving the performance in these two areas could make RISC5 (or its derivatives) an attractive option for deeply embedded signal processing. Regards, Wojtek
If you're building a world-class racing yaught (sp?), you don't add a GE-gasTurbine to <increase its performance>. IMO PO adds the hardware component which is consistent with the style of the decades-old/confirmed ETHO language/OS. I.e the RISC fits perfectly into the existing software, to extend the brilliant teaching product. But nobody wants it. They want to 'update' their classical wheel-barrow, by adding a jet-engine. I want to extend ETHO to 'compose functions from a script', instead of manually as currently: by 'piping' the transformed-stages through TextFrames. Eg. MANUALLY, with each stage to a new Textframe, we can already do: showAllFilesNamed Arg1 | whichAreLessTnadaysOld Arg2 | &whichContainString Arg3 | &whichContainString Arg4 | &whichContainString Arg5 But adding a *nix-piping-like ability, to eliminate the manual work, adds power. Like <OSFS.Tool> added the ability to automatically write the command that will be executed to do the repetative task. Ie. meta-programming. -------- AFAIK SHARC is already well documented re. ETHO, and formed the basis of ALO: the recent version for the rPi. It seems unlikely that <your product which needs fast interrupt handling> would benefit from ETHO's strength, which IMO is the human-interface. == Chris Glur. On 9/29/14, skulski@pas.rochester.edu <skulski@pas.rochester.edu> wrote:
Hello:
I am exploring the FPGA-based Project Oberon. Two questions popped up after reading the hardware portion of the new Project Oberon and the NW Technical Reports from the FPGA-related part of the personal website.
1. The RISC5 clock speed is 25 MHz. Can it be improved to the Microblaze ballpark that is over 100 MHz?
2. The interrupt HW system. A fast interrupt service can be achieved with a set of shadow registers for context switching, used on Analog Devices ADSP21xx series and SHARC. Has this been considered for the RISC5 interrupt system?
I am asking because improving the performance in these two areas could make RISC5 (or its derivatives) an attractive option for deeply embedded signal processing.
Regards, Wojtek
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
I think it would be nice to have Oberon running on the bare metal of the Raspberry Pi. So I have been working on it and I have reached a milestone. I have retargeted the Oberon07 compiler sufficiently to create an ARM binary that, when placed on the rpi SD card, gets loaded by the rpi firmware and blinks the LED. A little video: http://kuracali.com/Blink.MOV Here is the source code to the successfully compiled module: https://github.com/charlesap/io/blob/master/oberon-risc-ethz/Led.Mod The compiled code is spectacularly inefficient. But it works! Cheers, Chuck
Chuck, That's very nice! I have an R-Pi but have never unpacked it. Perhaps your efforts will motivate me into doing something with it. -Doug Danforth On 10/1/2014 8:01 PM, Charles Perkins wrote:
I think it would be nice to have Oberon running on the bare metal of the Raspberry Pi.
So I have been working on it and I have reached a milestone. I have retargeted the Oberon07 compiler sufficiently to create an ARM binary that, when placed on the rpi SD card, gets loaded by the rpi firmware and blinks the LED.
A little video: http://kuracali.com/Blink.MOV
Here is the source code to the successfully compiled module:
https://github.com/charlesap/io/blob/master/oberon-risc-ethz/Led.Mod
The compiled code is spectacularly inefficient. But it works!
Cheers,
Chuck
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Chuck,
retargeted the Oberon07 compiler sufficiently to create an ARM binary that,
excellent, do I guess correctly that the modified compiler and the instructions how to set it up are in README-linker.txt which can be found in directory https://github.com/charlesap/io/blob/master/oberon-risc-ethz/ regards -- Bernhard
-----Original Message----- From: Charles Perkins [mailto:chuck@kuracali.com] Sent: Thursday, October 02, 2014 5:01 AM To: ETH Oberon and related systems Subject: [Oberon] Oberon bare metal on the Raspberry Pi
I think it would be nice to have Oberon running on the bare metal of the Raspberry Pi.
So I have been working on it and I have reached a milestone. I have retargeted the Oberon07 compiler sufficiently to create an ARM binary that, when placed on the rpi SD card, gets loaded by the rpi firmware and blinks the LED.
A little video: http://kuracali.com/Blink.MOV
Here is the source code to the successfully compiled module:
https://github.com/charlesap/io/blob/master/oberon-risc-ethz/Led.Mod
The compiled code is spectacularly inefficient. But it works!
Cheers,
Chuck
Not yet -- I took some significant liberties with the source code to the ORP compiler in the RISC image and I would need permission from the original authors to make the modified source available. I am very grateful for their willingness to put on-line what they have done so far, I don't want to dissuade them from further sharing! The compiler I am using right now is not the compiler you want anyway. It is very much a work-in-progress (e.g. a hack.) Better compilers will come! Chuck On Oct 2, 2014, at 4:03 AM, Treutwein Bernhard <Bernhard.Treutwein@Verwaltung.Uni-Muenchen.DE> wrote:
Hi Chuck,
retargeted the Oberon07 compiler sufficiently to create an ARM binary that,
excellent, do I guess correctly that the modified compiler and the instructions how to set it up are in README-linker.txt which can be found in directory https://github.com/charlesap/io/blob/master/oberon-risc-ethz/
regards -- Bernhard
-----Original Message----- From: Charles Perkins [mailto:chuck@kuracali.com] Sent: Thursday, October 02, 2014 5:01 AM To: ETH Oberon and related systems Subject: [Oberon] Oberon bare metal on the Raspberry Pi
I think it would be nice to have Oberon running on the bare metal of the Raspberry Pi.
So I have been working on it and I have reached a milestone. I have retargeted the Oberon07 compiler sufficiently to create an ARM binary that, when placed on the rpi SD card, gets loaded by the rpi firmware and blinks the LED.
A little video: http://kuracali.com/Blink.MOV
Here is the source code to the successfully compiled module:
https://github.com/charlesap/io/blob/master/oberon-risc-ethz/Led.Mod
The compiled code is spectacularly inefficient. But it works!
Cheers,
Chuck
Hi Chuck,
Not yet -- I took some significant liberties with the source code to the ORP compiler in the RISC image and I would need permission from the original authors to make the modified source available. I am very grateful for their willingness to put on-line what they have done so far, I don't want to dissuade them from further sharing!
The compiler I am using right now is not the compiler you want anyway. It is very much a work-in-progress (e.g. a hack.)
Better compilers will come!
ok, I'll be patient. -- Bernhard
Hi Chuck,
I think it would be nice to have Oberon running on the bare metal of the Raspberry Pi.
So I have been working on it and I have reached a milestone. I have retargeted the Oberon07 compiler sufficiently to create an ARM binary that, when placed on the rpi SD card, gets loaded by the rpi firmware and blinks the LED.
Fantastic! Well done, I know the feeling. There's nothing quite like getting an LED to flash. And for those who think that's a joke, I suggest the following challenge: 0. Select a 32-bit microcontroller/SoC (many can now be had for less than the price of a pint of beer). 1. Select an evaluation board (many can now be had for less than the price of a session of beer). 2. Download all required tools and documentation. 3. Build and run a program to make an LED flash on the board. 4. Explain what every single byte of code and data does. 5. Explain why it took so long. The industry's dirty little secret is that (due to all the self-inflicted complexity), the current state-of-the-art (with the only notable exception, to my knowledge, of the Parallax Propeller) is shockingly bad, which is why I admire and encourage your efforts. Perhaps you might publish your experiences in the form of a story, what you thought was good, bad etc. and pitfalls, so that others may be encouraged to follow you "In Sneffels Jokulis craterem"? :) Please note that for the avoidance of doubt, the 2013 update to the Project Oberon book and the associated RISC software and FPGA hardware, called correctly "Project Oberon, 2013 Edition" is a private project by Prof. Niklaus Wirth and myself - not ETH Zurich. (Having said that, we both owe a great debt to Prof. Gutknecht while he was at ETH, and still, for his ever-present support, corrections and encouragement.) Cheers, Paul
-----Original Message----- From: Paul Reed [mailto:paulreed@paddedcell.com] Sent: Thursday, 2 October 2014 9:37 PM To: ETH Oberon and related systems Subject: Re: [Oberon] Oberon bare metal on the Raspberry Pi
And for those who think that's a joke, I suggest the following challenge:
0. Select a 32-bit microcontroller/SoC (many can now be had for less than
I can never resist a challenge (and an opportunity for shameless self-promotion)... the
price of a pint of beer). 1. Select an evaluation board (many can now be had for less than the price of a session of beer).
ARM mbed / NXP LPC1768: http://developer.mbed.org/platforms/mbed-LPC1768/ (You either go to a more expensive pub, or drink a lot more than I do)
2. Download all required tools and documentation.
Astrobe for Cortex-M3 Starter Edition: http://www.astrobe.com/order.htm Then follow the instructions here: http://www.astrobe.com/forum/viewtopic.php?f=7&t=254
3. Build and run a program to make an LED flash on the board.
Then, from the Astrobe menu: a) File > Open > D:\AstrobeM3-v5.1\Examples\LPC1769\mbed\Blinker.mod b) Project > Build c) Run > Upload USB drive
4. Explain what every single byte of code and data does.
Astrobe > Help > Contents and Index > Getting Started > Quick Start Guide - LPC1769 Microcontrollers
5. Explain why it took so long.
I just timed myself (not including the time taken to order the hardware / software) and it took under ** ten minutes ** from beginning to end - though I must admit I have had a bit of practice ;-) However, a recent 'newbie' reported a similar painless experience: http://www.astrobe.com/forum/viewtopic.php?f=2&t=431 Cheers, Chris Chris Burrows CFB Software http://www.cfbsoftware.com
Hi Chris,
I can never resist a challenge (and an opportunity for shameless self-promotion)...
Aw, you cheated - you used Oberon! ;-) Of course, I had in mind the tools available from the chip/board manufacturers, but I apologise for not pointing out that you've done a really super job of solving the problem I was talking about - so it turns out the self-promotion is entirely justified! Any chance of supporting the STM32F4DISCOVERY? Cortex-M4 with 1MB FLASH and 192yes192Kb RAM. It's ten quid! Renders discrepancies about beer prices moot :) Cheers, Paul
Thank you Paul, It means a lot to me to hear that. As regards to the status of the project, thank you for the clarification. Also thank you for undertaking the project! I hope that both of you will continue to improve upon the code-base and publish those improvements. I know I have learned a lot from studying the code, I expect others have and will too. Best Regards, Chuck On Oct 2, 2014, at 5:07 AM, Paul Reed <paulreed@paddedcell.com> wrote:
Hi Chuck,
I think it would be nice to have Oberon running on the bare metal of the Raspberry Pi.
So I have been working on it and I have reached a milestone. I have retargeted the Oberon07 compiler sufficiently to create an ARM binary that, when placed on the rpi SD card, gets loaded by the rpi firmware and blinks the LED.
Fantastic! Well done, I know the feeling. There's nothing quite like getting an LED to flash. And for those who think that's a joke, I suggest the following challenge:
0. Select a 32-bit microcontroller/SoC (many can now be had for less than the price of a pint of beer). 1. Select an evaluation board (many can now be had for less than the price of a session of beer). 2. Download all required tools and documentation. 3. Build and run a program to make an LED flash on the board. 4. Explain what every single byte of code and data does. 5. Explain why it took so long.
The industry's dirty little secret is that (due to all the self-inflicted complexity), the current state-of-the-art (with the only notable exception, to my knowledge, of the Parallax Propeller) is shockingly bad, which is why I admire and encourage your efforts. Perhaps you might publish your experiences in the form of a story, what you thought was good, bad etc. and pitfalls, so that others may be encouraged to follow you "In Sneffels Jokulis craterem"? :)
Please note that for the avoidance of doubt, the 2013 update to the Project Oberon book and the associated RISC software and FPGA hardware, called correctly "Project Oberon, 2013 Edition" is a private project by Prof. Niklaus Wirth and myself - not ETH Zurich. (Having said that, we both owe a great debt to Prof. Gutknecht while he was at ETH, and still, for his ever-present support, corrections and encouragement.)
Cheers, Paul
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
This is very interesting. Did you discover/analyse the mysterious/pressumed-hidden layers between rPi's hardware, the Microsoft initial-loader and reading the SD? Let's name/ID it as "Native ..." in order to reuse the existing notation. [minimal forking of syntax is a (perhaps unstated) main aim of NW/Oberon]. NativeOberon *BROKE* when OFSTools.Unmount & OFS.Tool together-came-into-existence. This is *DISASTEROUS*!! Users continually fall in a hole/trap!! The syntax is <ModuleName>.Tool, <ModuleName>.<command> It's like a fundamental flaw in the constitution of some banana-republic. Imagine if the highways of 1st-world societies didn't constrain [prohibit forking] the traffic to ONE-side, and like India, there were animals wondering in the roads, and 'drivers' improvising on keep-left/right. -----------------
Better compilers will come!
How does the compiler, which normally relates to the HLL:Oberon relate to the LLL-function of driving a single OutPort-line - blinking LED? It would be educational to discuss this HERE, rather than to point to 'videos'. I want to throw out some original ideas/experience re. assemblers, IF there are readers-here who have knowledge/interest of such LLL. ============== Re. Astrobe - LPC1769 Microcontrollers: I failed to find [via http] the comparative power consumption. IMO rPi IS a remarkable substitute-PC; but the extra layers make it unsuitable for eg. controller applications. Would Astrobe-Oberon7 also be subject to random delays due to GC? I expect the FPGA hardware would be a small-fraction of the RPi's 300Ma average? ==== The ignoring of the OFS.Tool broken syntax, show that nobody else *USES* ETHO. It's just a demo/toy; never to leave the show-room to make a serious journey. Unfortunately for me: Astrobe/Oberon7 is NOT ETHO, and no knowledge about the <halfShading> of the MenuFrame is needed/available - or ? To help me get a clue, I looked at V4 again. It's also a magnificent project; and there, the MenuFrame reverse-videos. If I could find the V4 code that reverse-videos; I could perhaps relate that to the S3 code, and find the underlying hardware-control function, which on my preferred display loses <half-shading> the MenuFrame; but only after cycling through a random/unknown number of linux apps; but not with the other linux distro. It's the non-awareness of such subtleties that exposes the difference between show-room-models and real-life usage. !! => PETER MATTIAS of LNO may be able to help me, since he fixed an early version of ALO's MenuFrame <change appearance on activation>. As a further example of real-life subtlety: I NOW noticed that ALO's top-screen MenuFrame was blacked-out, but the lower one was less dark and slightly visible. How is that possible ? !! So I stood up, to avoid viewing the screen from below, and realised that the effect is due to the <semiconductor viewing angle>. Again: What hardware/video function is use on the MenuFrame - PLEASE ?! Thanks, == Chris Glur.
participants (7)
-
Charles Perkins -
Chris Burrows -
Douglas G. Danforth -
eas lab -
Paul Reed -
skulski@pas.rochester.edu -
Treutwein Bernhard