Slashdot Mirror


OpenRISC Gains Atomic Operations and Multicore Support

An anonymous reader writes "You might recall the Debian port that is coming to OpenRISC (which is by the way making good progress with 5000 packages building) — Olof, a developer on the OpenRISC project, recently posted a lengthy status update about what's going on with OpenRISC. A few highlights are upstreamed binutils support, multicore becoming a thing, atomic operations, and a new build system for System-on-Chips."

5 of 77 comments (clear)

  1. Re:How did OpenRISC not have atomic ops until now? by mwvdlee · · Score: 3, Informative

    RTFA.
    With a single core, it worked without atomic operations (albeit non-optimal. But then, which CPU is optimal?).

    --
    Slashdot social media options: AIM, ICQ, Yahoo, Jabber and Mobile Text. Why no MySpace?
  2. Re:What advantages? by ShanghaiBill · · Score: 4, Informative

    What are the advantages of openrisc?

    It is free, so if you want to run a softcore, there are no license fees. If you can read Verilog, you can verify that there are no NSA backdoors.

    What are the performance of such a softcore?

    An FPGA softcore is going to run several times slower, and consume several times as much power, as a hardcore. If you need a small amount of computing, and most of your app is in the FPGA fabric, then that is reasonable, although you might be able to get by with an 8-bit softcore like PicoBlaze, or even roll your own mini 8-bit core with opcodes customized for your app (this is not that hard, and is a fun project if you are learning Verilog and ready to go beyond blinking LEDs). But if you are doing something compute intensive, you may want to look for something with an integrated hardcore.

    Can I expect to have something usable?

    That depends on what you are using it for.

  3. Re:What advantages? by Alioth · · Score: 3, Insightful

    MIPS may (or may not be) "open source", however it is not free to implement. Implement the latest MIPS ISA without a license agreement from MIPS and you'll be sued to smithereens. You won't be sued if you implement OpenRISC though.

  4. Re:What advantages? by SuricouRaven · · Score: 3, Funny

    "roll your own mini 8-bit core with opcodes customized for your app (this is not that hard"

    Not that hard by Verilog standards. The sight of it tends to make software developers run in terror.

  5. Re:What advantages? by ShanghaiBill · · Score: 3, Interesting

    Another advantage of an open source softcore, is that you can add your own application specific opcodes. You could run your app in a profiler with the standard instruction set, and identify the hot spots. If a big chunk of your CPU time is spent in a single tight loop, you could implement that code directly in FPGA fabric, and execute each iteration in a single clock tick with a custom instruction. For instance, lets say you need to run some sort of CRC or crypto, with involves shifting, masking and adding bits. That would be easy to code up in Verilog into a single instruction, which is then executed by extending OpenRisc for the new opcode. Then just use the "asm" feature of GCC to put that opcode in the inner loop of your C program. Depending on your app, it is possible that you could get better performance from a customized softcore than from a generic hardcore, like ARM or MIPS.