Entries from 2023-03-01 to 1 month

Reading "RISC-V Instruction Set Architecture Extension: A Survey" (3. Research on Application-Specific RISC-V Extensions)

https://ieeexplore.ieee.org/document/10049118ieeexplore.ieee.org The paper above was published on IEEE Xplore. I didn't know much about recent trends in instruction extensions, so I decided to read it. Continued from the previous article. …

Reading "RISC-V Instruction Set Architecture Extension: A Survey" (2. Introduction)

https://ieeexplore.ieee.org/document/10049118ieeexplore.ieee.org The paper above was published on IEEE Xplore. I didn't know much about recent trends in instruction extensions, so I decided to read it. Continued from the previous article. …

Investigating the FPGA Logic Synthesis Environment in LiteX (4. Porting the Environment to My Own CPU, Part 4)

LiteX is an integrated environment for semi-automatically generating SoCs, and the SoC generation environment for my own CPU also uses LiteX. github.com Up to the last article, Vivado logic synthesis had finally started running, but it doe…

Reading "RISC-V Instruction Set Architecture Extension: A Survey" (1. Introduction)

https://ieeexplore.ieee.org/document/10049118ieeexplore.ieee.org The paper above was published on IEEE Xplore. I didn't know much about recent trends in instruction extensions, so I decided to read it. Key points of this paper: it provides…

Investigating the FPGA Logic Synthesis Environment in LiteX (4. Porting the Environment to My Own CPU, Part 2)

LiteX is an integrated environment for semi-automatically generating SoCs, and the SoC generation environment for my own CPU also uses LiteX. github.com Last time, I thought I had built for my own CPU, but it had actually compiled VexRiscv…

Investigating the FPGA Logic Synthesis Environment in LiteX (3. Porting the Environment to My Own CPU)

LiteX is an integrated environment for semi-automatically generating SoCs, and the SoC generation environment for my own CPU also uses LiteX. github.com Updating the repository might avoid the previous error. I updated the repository and r…

Investigating the FPGA Logic Synthesis Environment in LiteX (3. Porting the Environment to My Own CPU)

LiteX is an integrated environment for semi-automatically generating SoCs, and the SoC generation environment for my own CPU also uses LiteX. github.com First, I'll try modifying the original make.py. I change the CPU that gets loaded. dif…

Trying riscv_arch_tests, the RISC-V Verification Patterns Released by Tenstorrent (6. Trying Whisper, Tenstorrent's ISS)

I'll use Whisper, Tenstorrent's ISS, to check how the test patterns in riscv_arch_tests behave. The environment is Ubuntu-22.04 LTS. The following packages need to be installed. sudo apt install libboost-dev libboost-program-options-dev gi…

Trying riscv_arch_tests, the RISC-V Verification Patterns Released by Tenstorrent (5. Analyzing the Test Patterns)

I've decided to try riscv_arch_tests, the RISC-V verification patterns released by Tenstorrent, which I've wanted to try for a long time. I hope that applying them to my own CPU will uncover more bugs. https://github.com/tenstorrent/riscv_…

LLVM 16 Has Been Released, So Let's Port the Base Repository of the LLVM Book to LLVM 16

LLVM 16 has been released. Every time the LLVM version changes, the API specification changes too, which breaks the implementation from my LLVM book. Fixing this is a pain every time. releases.llvm.org This time, I'll start by switching to…

Trying riscv_arch_tests, the RISC-V Verification Patterns Released by Tenstorrent (4. Trying the Test Patterns on My Own CPU)

I've decided to try riscv_arch_tests, the RISC-V verification patterns released by Tenstorrent, which I've wanted to try for a long time. I hope that applying them to my own CPU will uncover more bugs. https://github.com/tenstorrent/riscv_…

Trying riscv_arch_tests, the RISC-V Verification Patterns Released by Tenstorrent (3. Trying the Test Patterns on My Own CPU)

I've decided to try riscv_arch_tests, the RISC-V verification patterns released by Tenstorrent, which I've wanted to try for a long time. I hope that applying them to my own CPU will uncover more bugs. https://github.com/tenstorrent/riscv_…

Trying riscv_arch_tests, the RISC-V Verification Patterns Released by Tenstorrent (2. Trying the Test Patterns on My Own CPU)

I've decided to try riscv_arch_tests, the RISC-V verification patterns released by Tenstorrent, which I've wanted to try for a long time. I hope that applying them to my own CPU will uncover more bugs. https://github.com/tenstorrent/riscv_…

Trying riscv_arch_tests, the RISC-V Verification Patterns Released by Tenstorrent (1. Looking Inside the Test Patterns)

I have wanted to try riscv_arch_tests, the RISC-V verification patterns released by Tenstorrent, for a long time, so I finally decided to give it a go. I plan to apply it to my own CPU, and I'm hoping it will uncover more bugs. https://git…

This Month's Software Design Magazine Features CPUs

The April 2023 issue of "Software Design", published by Gijutsu-Hyoron Co., Ltd., features CPUs. I helped out with it a little this time. Overall, it starts with basic CPU topics, then moves on to CPUs starting from logic operations, ISAs,…

Investigating the FPGA Logic Synthesis Environment in LiteX (2. Investigating FPGA Bitstream Generation)

LiteX is an integrated environment for semi-automatically generating SoCs, and the SoC generation environment for my own CPU also uses LiteX. github.com There is not much information about the FPGA synthesis environment in LiteX, so I'd li…

Analyzing the Branch Predictor Degradation in My Own CPU

This is just a simple note. The performance of my own CPU had dropped, and I was wondering what was wrong, but it seems there was an implementation mistake from the start. There was a logic error in the GShare implementation, so I fixed it…

Investigating the FPGA Logic Synthesis Environment in LiteX

LiteX is an integrated environment for semi-automatically generating SoCs, and the SoC generation environment for my own CPU also uses LiteX. github.com There is not much information about the FPGA synthesis environment in LiteX, so I'd li…

Dockerizing the Build and Simulation Environment of My Own CPU

I run the simulation environment for my own CPU either locally or on a powerful remote server. The powerful servers often lack the required tools, so I built a Docker environment and run things there. However, the simulation script and the…

Thinking About a Select Algorithm for the New Dynamic Scheduler of My Own CPU

I'm working on changing the structure of the Issue Unit. Until now the Issue Unit used sequential allocation (a Cyclic Queue), and I'm changing it to a queue where entries can be allocated and freed anywhere. While thinking through the cha…

Supporting the Instruction Decoder According to the ISA Extension String in My Own CPU

For RISC-V ISA extensions, the string such as RV64IMAFDC determines which instructions are supported. For example, RV64IMAFDC supports the atomic instructions ("A"), but RV64IMFDC does not. To make this distinction, I added "isa_ext" infor…

Considering a FreeList for the New Dynamic Scheduler of My Own CPU

CPU

I am working on changing the structure of the Issue Unit. Until now the Issue Unit used sequential allocation (a Cyclic Queue), and I am changing it to a queue where entries can be allocated and released from anywhere. At first I simply pi…

Deciphering the Structure of the BOOMv3 LSU (Looking at the MSHR Structure)

I am deciphering the structure of the BOOMv3 Issue Unit to help improve the performance of my own CPU. https://github.com/riscv-boom/riscv-boom/blob/master/src/main/scala/exu/issue-units/issue-unit.scalagithub.com Let's look at the structu…

Summarizing CPU Dynamic Instruction Scheduling Mechanisms

CPU

After reading various papers, I am summarizing the different approaches to CPU instruction scheduling mechanisms. Scheduler: Sits between the front-end pipeline and the back-end pipeline, and is responsible for issuing instructions Wakeup …

Deciphering the Structure of the BOOMv3 Issue Unit

I am deciphering the structure of the BOOMv3 Issue Unit to help improve the performance of my own CPU. https://github.com/riscv-boom/riscv-boom/blob/master/src/main/scala/exu/issue-units/issue-unit.scalagithub.com There seem to be several …

Comparing the Logic Synthesis Results of BOOM and My Own CPU (6. Improving the Instruction Buffer)

I want to compare the synthesis results of BOOM and my own CPU and investigate the parts that are bottlenecks. The instruction buffer has ended up as a fully CAM-based structure, and I want to improve it. I will introduce a RingFIFO and ch…

Deciphering the Structure of the BOOMv3 LSU

I am deciphering the structure of the BOOMv3 LSU to help improve the performance of my own CPU. https://github.com/riscv-boom/riscv-boom/blob/master/src/main/scala/lsu/lsu.scalagithub.com Connections between the LSU and other modules. Ther…