4 ms·
For me probably the coolest thing about RISC-V is it has version with a simple enough architecture that students can code it in a quarter, and it's also in the
by egsmi 6y ago
For me probably the coolest thing about RISC-V is it has version with a simple enough architecture that students can code it in a quarter, and it's also in the zeitgeist in a way MIPS never was. It seems like we've been doing toy MIPS implementations for years [1] but they just never captured the imagination in the same way. RISC-V feels almost like the cpu architect's MINIX. :)
[1] Just one random example http://pages.hmc.edu/harris/cmosvlsi/4e/index.html http://pages.hmc.edu/harris/cmosvlsi/4e/index.html
- bogomipz 6y ago>"For me probably the coolest thing about RISC-V is it has version with a simple enough architecture that students can code it in a quarter" What do you mean by "version" here? How does it add to its accessibility? I'm curious about your or anyone else's opinion of that "CMSO VLSI Design" text book you linked to. It's quite expensive and I haven't been able to bring myself to buy it. Would you recommend it?
- egsmi 6y agoThis class’s version of RISC-V only implements of subset of all the possible instructions (which of course is totally appropriate) and it’s missing modern concepts (like out of order execution) which are also out of scope for an introductory class. One of the lectures describes basic logic gates so one doesn’t go from that to reorder buffers in a single quarter. I think the Weste text book is an excellent introduction to the reality of (mostly) modern digital VLSI design. My only gripe is it’s weak on analog, which is my forte. For An introduction to the reality of that I think Baker’s text at cmosedu.com is better. Basically, if you have interest in the subject buying a used copy of Weste is not likely to disappoint. Or perhaps see if your local library can snag a copy before you buy.
- deleted 6y ago[deleted]
- bogomipz 6y agoOh I see. Yes it's a modular design. That's one of the most fascinating elements of the CPU. I wasn't familiar with the version terminology to denote features. Thanks. Also thank for the the feedback on the Weste book. I will try to find a used copy.
- egsmi 6y ago> familiar with the version terminology That's probably because I was using the wrong word. I should've said "variant".
- the_duke 6y ago> What do you mean by "version" here? How does it add to its accessibility? The base variant of RISC-V (RV32/64I) is extremely bare bones. Even instructions for integer multiplication/division and floating points, atomics, ... are all added by extensions. See https://en.wikichip.org/wiki/risc-v/standard_extensions https://en.wikichip.org/wiki/risc-v/standard_extensions
- deleted 6y ago[deleted]
- nickik 6y agoBecause MIPS was proprietary and it could never be more then a toy.
- swiley 6y agoIIRC MIPS 4000 had source available and could be used freely.
- carapace 6y agoProbably a sanguine moment to mention that the selfie project appears to have migrated from MIPS to RISC-V: https://selfie.cs.uni-salzburg.at/ https://selfie.cs.uni-salzburg.at/ > An educational software system of a tiny self-compiling C compiler, a tiny self-executing RISC-V emulator, and a tiny self-hosting RISC-V hypervisor. > Selfie is a project of the Computational Systems Group at the Department of Computer Sciences of the University of Salzburg in Austria. > The Selfie Project provides an educational platform for teaching undergraduate and graduate students the design and implementation of programming languages and runtime systems. The focus is on the construction of compilers, libraries, operating systems, and even virtual machine monitors. The common theme is to identify and resolve self-reference in systems code which is seen as the key challenge when teaching systems engineering, hence the name. (No affiliation, I just like it.)
- bogomipz 6y agoWow this is a very cool project! Do you know of any available video lecture from anyone teaching the curriculum? Unfortunately the name of the project makes searching a little difficult.
- carapace 6y agoCheers! I know what you mean about the name. I don't know of any videos offhand but you could just drop them an email and ask?
- Cojen 6y agoI guess it all depends on what side you're coming from. When I was in school, I studied MIPS from the perspective of a compiler writer who's only casually interested in hardware design. Having learned a couple of CISC designs beforehand, I found MIPS to be absolutely genius in comparison. I wasn't interested so much in implementing a MIPS processor, just coding for it.