This chapter guides readers through designing a minimal single-cycle CPU supporting five LoongArch instructions: add.w, addi.w, ld.w, st.w, and bne. It explains datapath construction, control signal generation, and module integration (e.g., register file, ALU, RAM). The chapter details verification methods using test programs and FPGA-based debugging. Practical tasks involve building and testing a 5-instruction CPU and then expanding it to support 20 instructions.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Design A Single-Cycle CPU

  • Wenxiang Wang,
  • Jinzhang Xing

摘要

This chapter guides readers through designing a minimal single-cycle CPU supporting five LoongArch instructions: add.w, addi.w, ld.w, st.w, and bne. It explains datapath construction, control signal generation, and module integration (e.g., register file, ALU, RAM). The chapter details verification methods using test programs and FPGA-based debugging. Practical tasks involve building and testing a 5-instruction CPU and then expanding it to support 20 instructions.