9 comments

  • genxy1 hour ago
    Excellent find, an academic paper announcing the book is here<p><a href="https:&#x2F;&#x2F;peer.asee.org&#x2F;57147.pdf" rel="nofollow">https:&#x2F;&#x2F;peer.asee.org&#x2F;57147.pdf</a><p>Harris and Harris (no relation) have an excellent book on digital design using RISC-V as the domain problem, <a href="https:&#x2F;&#x2F;pages.hmc.edu&#x2F;harris&#x2F;ddca&#x2F;ddcarv.html" rel="nofollow">https:&#x2F;&#x2F;pages.hmc.edu&#x2F;harris&#x2F;ddca&#x2F;ddcarv.html</a><p><a href="https:&#x2F;&#x2F;pages.hmc.edu&#x2F;harris&#x2F;ddca&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pages.hmc.edu&#x2F;harris&#x2F;ddca&#x2F;</a><p>Their books are <i>perfect</i>, and I hope this textbook gets adopted by thousands of colleges. Our RISC-V future is bright, now we need one on SoC bringup and getting your OS running on that SoC.
    • homarp6 minutes ago
      and the associated github <a href="https:&#x2F;&#x2F;github.com&#x2F;openhwgroup&#x2F;cvw" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;openhwgroup&#x2F;cvw</a>
  • chris_money2022 hours ago
    Based on description it doesn&#x27;t sound like SoC design, it sounds like a book about RISC-V microprocessors. To the untrained eye, that sounds similar, but a microprocessor is one part of an SoC, and sometimes it can be a very small part based off the role the microprocessor plays.
    • henrymerrilees13 minutes ago
      Disclaimer up front: I&#x27;ve only read ~10&#x2F;23 RVSoC draft chapters that were made available as a part of SP2025 E154, so don&#x27;t take me as any kind of authority on the remaining 13, which I can&#x27;t wait to get my hands on!<p>In the preface on xx-xxi:<p>```<p>This book took three years of development and another year of production. There are many more important topics in computer architecture and SoC design that were omitted from this edition for schedule reasons; we hope to address them in a future volume:<p>* Multicore<p><pre><code> * Multilevel cache coherency * Synchronization * Interprocessor communication </code></pre> * Microarchitecture<p><pre><code> * Superscalar * Out-of-order * Deeper pipelines </code></pre> * RISC-V Extensions<p><pre><code> * Vector * Hypervisor * Debug * Trace </code></pre> * Verification<p><pre><code> * Functional coverage metrics * Hardware emulation </code></pre> * SoC Design<p><pre><code> * Intellectual property block design and integration * AXI interfaces * Accelerators * Memory controllers * Network-on-chip </code></pre> * SoC Implementation<p><pre><code> * Timing and power optimization * Clock gating * Clock domain crossings * External interfaces </code></pre> ```<p>It&#x27;s definitely processor-centric but I wouldn&#x27;t say &quot;about RISC-V microprocessors&quot; catches it either. The book is certainly structured around the core, but arguably so too is SoC design, at least at an introductory level. RVSoC uses a real SoC design (CORE-V Wally), and each aspect is covered at a length more or less proportionate to the complexity of its implementation in Wally. Admittedly, Wally&#x27;s peripherals are fewer and simpler than you might find out in the wild. Wally itself is 80-90% core by lines of RTL (horrible complexity metric I know, sorry).<p>Another way to look at the book is that it picks up where Digital Design and Computer Architecture (by the same Harris and Harris) leaves off. DDCA is used to teach the E85 course at Harvey Mudd; RVSoC is used to teach E154 (SoC design). DDCA builds up to a simplified RV32I-subset pipelined core. If RVSoC started with peripherals without fully elaborating the core, it would leave both readers of both books and students of both courses with a gap in coverage on core design compared to the depth of the remainder of both books.<p>Both are very detailed. With RVSoC at 859 pages in print and 1135 after the digital supplement, the core-related chapters are not by any means stealing airtime from the other components of the SoC, you could strip out every core-related page and still have a modestly-sized textbook. While not by any means an encyclopedic reference for SoC design, I found it to be a wonderful bridge from more elaborated microarchitecture into SoC.<p>I hope they are able to get that future volume out!<p>(edit: quote formatting)
  • spzb32 minutes ago
    A couple of sample chapters are available here <a href="https:&#x2F;&#x2F;pages.hmc.edu&#x2F;harris&#x2F;ddca&#x2F;rvsocd.html" rel="nofollow">https:&#x2F;&#x2F;pages.hmc.edu&#x2F;harris&#x2F;ddca&#x2F;rvsocd.html</a>
  • AlexeyBrin2 days ago
    Judging by the authors, I&#x27;m sure the book will be excellent. Hopefully it will be available through O&#x27;Reilly Online, because the price is a bit steep.
  • rramadass1 hour ago
    What are some good books&#x2F;resources on overall System-On-Chip Design?<p>There is a surprising paucity of material on SoC design which are comprehensive and complete. Application-specific tailored features, Cost, Performance, Area, Power etc. all go into SoC design and yet there does not seem to be a comprehensive resource bringing everything together. Even wikipedia isn&#x27;t detailed enough - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;System_on_a_chip" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;System_on_a_chip</a><p>I know of only two decent books viz. <i>Computer System Design: System-on-Chip by Michael Flynn and Wayne Luk</i> (this is pretty good) and the older <i>ARM System-on-Chip Architecture by Steve Furber</i>.
  • tolerance3 hours ago
    You know what. I feel like it’s a fair price.
  • colinb2 days ago
    Ooof. €109.70 in paperback
    • dmpk2k3 hours ago
      You can get it direct from Elsevier for ~78 euros: <a href="https:&#x2F;&#x2F;shop.elsevier.com&#x2F;books&#x2F;risc-v-system-on-chip-design&#x2F;harris&#x2F;978-0-323-99498-9" rel="nofollow">https:&#x2F;&#x2F;shop.elsevier.com&#x2F;books&#x2F;risc-v-system-on-chip-design...</a>
      • dmpk2k1 hour ago
        Maybe it&#x27;s just a regional thing, but it&#x27;s showing 78 euros for the paperback for me. Plus I bought the paperback recently at that price too.
      • jagged-chisel2 hours ago
        For the ebook
        • DennisL1231 hour ago
          Use FOOD30 for 30% off.
          • jagged-chisel1 hour ago
            “The promo code &quot;FOOD30&quot; is not valid.”
            • BlackjackCF1 hour ago
              Might be a region-specific promo code? Worked in the US for me.
              • jagged-chisel1 hour ago
                Works only on the paperback. I had added the bundle to my cart.
    • xlmnxp2 days ago
      I just pre-ordered this book and think it&#x27;s definitely worth it.<p>Full disclosure: I have no affiliation with the author, but I&#x27;m sharing because I genuinely believe in the work.
  • throawayonthe1 hour ago
    [dead]
  • sylware3 hours ago
    Everything RISC-V is good (even the mistakes which is making it more robust and more mature).
    • timhh2 hours ago
      I like RISC-V (it&#x27;s been my job for the last 7 years) but this is nonsense. Not everything RISC-V is good. CLIC was awful (thankfully it has been abandoned). The spec is not especially well written - the style is inconsistent due to being written by many authors, and it is waaaay too much of a textbook rather than a proper spec. (There is some ongoing work to improve this tbf.)<p>There&#x27;s a practically unending list of undefined&#x2F;implementation defined behaviours, which is great if you want to implement an ultra minimal microcontroller with 100 flops, but pretty awful otherwise.<p>Requiring the C (compressed) extension in the RVA profiles was definitely a mistake. The lack of true 16&#x2F;64kB pages and conditional moves are probably a mistake (though fixable).<p>I don&#x27;t know how any of these make it more robust and mature.<p>(But to be clear, I still think it&#x27;s pretty good overall.)
      • rwmj1 hour ago
        I broadly agree with your points except one.<p>Requiring C (compressed) is necessary to avoid splitting the Linux ecosystem. Chips lacking C would never be able to run binaries compiled with C. There&#x27;s no practical way for such binaries to detect this and work around it at runtime as they can with other extensions. And emulation would be super-slow given a large proportion of instructions are compressed.<p>Also the excuse given by Qualcomm - that it would make all instructions fixed length and so much easier to decode - is just wrong. RISC-V supports variable length instructions, even much longer than 32 bits, and you&#x27;ve just got to deal with it. Just because Qualcomm acquired a company with a microarchitecture that could only deal with fixed length instructions is no reason to break the ecosystem.<p>Also interested in the problems you see in Zicond. It claims at least to give you most of the benefit of conditional moves using only two instructions, but I&#x27;ve not actually tried using it. (<a href="https:&#x2F;&#x2F;docs.riscv.org&#x2F;reference&#x2F;isa&#x2F;extensions&#x2F;zicond&#x2F;_attachments&#x2F;riscv-zicond.pdf" rel="nofollow">https:&#x2F;&#x2F;docs.riscv.org&#x2F;reference&#x2F;isa&#x2F;extensions&#x2F;zicond&#x2F;_atta...</a>)
        • timhh1 hour ago
          &gt; Requiring C (compressed) is necessary to avoid splitting the Linux ecosystem. Chips lacking C would never be able to run binaries compiled with C.<p>Yes that&#x27;s precisely the point of excluding it from the RVA profiles. It would mean that Linux distros <i>don&#x27;t</i> compile code with C enabled, so chips are free to not support C and therefore can achieve higher performance (probably). And it opens 3&#x2F;4 of the instruction encoding space for use by other things.<p>&gt; Also the excuse given by Qualcomm - that it would make all instructions fixed length and so much easier to decode - is just wrong. RISC-V supports variable length instructions, even much longer than 32 bits, and you&#x27;ve just got to deal with it.<p>It&#x27;s not wrong. RISC-V defines a mechanism by which 48&#x2F;64 bit instructions might be used, but currently none are actually defined. All existing instructions are 16 or 32 bits. Without C all instructions are 32 bits. You don&#x27;t have to deal with 48 bit instructions because there aren&#x27;t any.<p>It&#x27;s possible that they will add some in future, but I&#x27;m doubtful of that because a) it would be a huge pain, and b) they didn&#x27;t for Vector which is where it would have been most useful.<p>&gt; Just because Qualcomm acquired a company with a microarchitecture that could only deal with fixed length instructions is no reason to break the ecosystem.<p>Yeah it was too late to change but that doesn&#x27;t mean it wasn&#x27;t a mistake.<p>Zicond looks good - I forgot that exists.
          • camel-cdr1 hour ago
            &gt; Yes that&#x27;s precisely the point of excluding it from the RVA profiles. It would mean that Linux distros don&#x27;t compile code with C enabled, so chips are free to not support C and therefore can achieve higher performance (probably). And it opens 3&#x2F;4 of the instruction encoding space for use by other things.<p>The debate was between 16&#x2F;32&#x2F;48&#x2F;64-bit instructions vs naturally aligned 32-bit and 64-bit instructions + new more complex instructions that require cracking to regain code size (things like load&#x2F;store pair).<p>&gt; RISC-V defines a mechanism by which 48&#x2F;64 bit instructions might be used, but currently none are actually defined<p>The long-instruction-SIG just started a few weeks ago, and they are working on defining 48&#x2F;64-bit encodings for instructions that could be used in future RVA profiles (so with high perf implementations in mind). If you are knowledgeable about this stuff, please get involved, so they don&#x27;t mess it up. (not &quot;you&quot; specifically, but in general)
          • rwmj21 minutes ago
            Compressed is necessary to reduce code size which is important for performance.<p>A bunch of vendors have done high performance server chips which support compressed (Rivos, Ventana, some Chinese vendors), so in actual reality this was only a problem for Qualcomm. And that&#x27;s only because Qualcomm bought Nuvia and they wanted to do the cheap thing (minimally change the front end) rather than the right thing.
        • Joker_vD1 hour ago
          &gt; RISC-V supports variable length instructions, even much longer than 32 bits, and you&#x27;ve just got to deal with it.<p>...no, not really? There is nothing like 9 byte-long MOVABS instruction of x64 that exists on RISC-V.<p>The main difficulty in decoding is that 32-bit instructions are not required to be 4-byte aligned, this means that naïve decoders will spend 2 cycles fetching such split instructions. It&#x27;s possible to add a 4-byte ring buffer but all in all, efficiently supporting the C extension is non-trivial.
          • rwmj1 hour ago
            RISC-V definitely does support instructions longer than 32 bits, starting at 48 bits (ie. 32 + 16), and going much longer. They <i>are</i> much easier to decode than x86 because the length is evident from the first byte. No ratified extension uses them now, but you&#x27;re going to need to deal with them as the extension space gets more crowded. Including dealing with instructions split across cache lines and pages, and instructions aligned to 16 bits.<p>I&#x27;m not sure what point you&#x27;re making TBH.
            • Joker_vD52 minutes ago
              My point is that fixed-length instructions are supposed to be easier to decode than variable-length ones, right?<p>If not, then why even bother with fitting immediates and inventing LUI&#x2F;AUIPC, just have a 48-bit long LI instruction. The same goes for 64-bit, an 80-bit LI.W is still shorter than the piecemeal construction with several instructions.<p>If yes, then the small cores are arbitrarily given a burden of supporting variable-length instructions, supposedly efficiently: if your instruction fetch is 16-bit wide, you need two fetches to fetch a single 32-bit instruction, which sucks; if it&#x27;s 32-bit wide, you need to conditionally stash the upper half for the next fetch cycle, and still prefetch yet more 32-bits because that upper half may contain only a half of a full 32-bit instruction; alternatively, you can fetch 32-bits at alternated aligned&#x2F;misaligned addresses and ignore the inefficiency of throwing away re-fetched bits — again, all of this sucks.
              • rwmj34 minutes ago
                Yes, fixed-length instructions are easier to decode, but that also means a hard upper limit on the number of instructions that could ever be supported. Which is obviously a problem for a future-proof architecture.<p>The rationale for this and also for confining the base set to 32 bit is explained here: <a href="https:&#x2F;&#x2F;docs.riscv.org&#x2F;reference&#x2F;isa&#x2F;v20250508&#x2F;unpriv&#x2F;extending.html#35-2-risc-v-extension-design-philosophy" rel="nofollow">https:&#x2F;&#x2F;docs.riscv.org&#x2F;reference&#x2F;isa&#x2F;v20250508&#x2F;unpriv&#x2F;extend...</a>
                • Joker_vD22 minutes ago
                  I&#x27;ve read that rationale, and it&#x27;s, well, I&#x27;m not going to say it&#x27;s <i>lying</i>, but it&#x27;s <i>insincere</i>. By the time it was written, they already settled on 16-bit alignment, and fetching (and then decoding) 16-bit aligned 32-bit instructions is either inefficient, or hard, or requires extra circuitry (or an instruction cache).
                  • rwmj18 minutes ago
                    High performance RISC-V chips exist from Rivos, Ventana and others, and high performance variable length chips also exist in general (AMD, Intel). So in actual reality it increases complexity somewhat, but is not a problem.