Format: Paperback
Computer architecture education has traditionally leaned on proprietary instruction sets whose internal design choices were, for most students, a black box wrapped in licensing restrictions. The arrival of RISC-V — a free and openly licensed instruction set architecture (ISA) — has changed this state of affairs permanently. For the first time, a student, hobbyist, or engineer can move from reading an ISA specification to writing synthesizable Verilog, to running that design on an FPGA, without signing a single non-disclosure agreement. This book, RISC-V Processor Design: Designing Open Source Processor using Verilog and FOGS, was written to walk that entire path in one continuous narrative — from the transistor-level abstractions that justify why we design processors the way we do, through the RISC-V instruction set itself, through single-cycle, multi-cycle, and pipelined microarchitectures expressed in synthesizable Verilog, and onward into memory hierarchies, privileged architecture, standard extensions, verification methodology, and the broader free and open-source software (FOSS) hardware ecosystem that has grown around RISC-V. The book is organized so that it can be read cover to cover as a semester-length course, or consulted chapter by chapter as a reference. Each chapter builds on the previous one: Part I lays the conceptual and tooling foundation; Part II works through the RISC-V ISA in detail; Part III is the heart of the book, deriving single-cycle, multi-cycle, and pipelined processors with complete Verilog listings and hazard-handling logic; Part IV extends the processor with caches, virtual memory, and privileged/exception handling; and Part V covers standard extensions, advanced microarchitecture (branch prediction, superscalar and out-of-order execution), verification methodology, and the open-source RISC-V ecosystem, closing with case studies and a look at where the field is heading. Every diagram in this book — datapath schematics, pipeline timing charts, cache organization figures, state machines, and ecosystem maps — has been custom drawn for this text to reinforce the accompanying explanation rather than reproduce a generic textbook illustration. Code listings are written in synthesizable Verilog-2001/SystemVerilog subset style suitable for open-source toolchains such as Icarus Verilog, Verilator, and Yosys, and are cross-checked against the ratified RISC-V unprivileged and privileged specifications maintained by RISC-V International. No book of this scope is free of the possibility of error, and the field itself continues to evolve — new extensions are ratified, tools mature, and best practices shift. Readers are encouraged to treat this text as a rigorous starting point and to consult the living specifications at riscv.org alongside it. I am grateful to the global RISC-V community — the maintainers of the ISA specifications, the open-source EDA toolchain authors, and the countless engineers who have documented their own processor-building journeys publicly — whose collective work made a book like this possible to write with confidence and precision. Read more
Computer architecture education has traditionally leaned on proprietary instruction sets whose internal design choices were, for most students, a black box wrapped in licensing restrictions. The arrival of RISC-V — a free and openly licensed instruction set architecture (ISA) — has changed this state of affairs permanently. For the first time, a student, hobbyist, or engineer can move from reading an ISA specification to writing synthesizable Verilog, to running that design on an FPGA, without signing a single non-disclosure agreement. This book, RISC-V Processor Design: Designing Open Source Processor using Verilog and FOGS, was written to walk that entire path in one continuous narrative — from the transistor-level abstractions that justify why we design processors the way we do, through the RISC-V instruction set itself, through single-cycle, multi-cycle, and pipelined microarchitectures expressed in synthesizable Verilog, and onward into memory hierarchies, privileged architecture, standard extensions, verification methodology, and the broader free and open-source software (FOSS) hardware ecosystem that has grown around RISC-V. The book is organized so that it can be read cover to cover as a semester-length course, or consulted chapter by chapter as a reference. Each chapter builds on the previous one: Part I lays the conceptual and tooling foundation; Part II works through the RISC-V ISA in detail; Part III is the heart of the book, deriving single-cycle, multi-cycle, and pipelined processors with complete Verilog listings and hazard-handling logic; Part IV extends the processor with caches, virtual memory, and privileged/exception handling; and Part V covers standard extensions, advanced microarchitecture (branch prediction, superscalar and out-of-order execution), verification methodology, and the open-source RISC-V ecosystem, closing with case studies and a look at where the field is heading. Every diagram in this book — datapath schematics, pipeline timing charts, cache organization figures, state machines, and ecosystem maps — has been custom drawn for this text to reinforce the accompanying explanation rather than reproduce a generic textbook illustration. Code listings are written in synthesizable Verilog-2001/SystemVerilog subset style suitable for open-source toolchains such as Icarus Verilog, Verilator, and Yosys, and are cross-checked against the ratified RISC-V unprivileged and privileged specifications maintained by RISC-V International. No book of this scope is free of the possibility of error, and the field itself continues to evolve — new extensions are ratified, tools mature, and best practices shift. Readers are encouraged to treat this text as a rigorous starting point and to consult the living specifications at riscv.org alongside it. I am grateful to the global RISC-V community — the maintainers of the ISA specifications, the open-source EDA toolchain authors, and the countless engineers who have documented their own processor-building journeys publicly — whose collective work made a book like this possible to write with confidence and precision. Read more