Entries from 2025-03-01 to 1 month

How to Build the qemu-riscv64 Binary

A note for my own work: here is a summary of how to build qemu-riscv64, which is needed to run SPEC2017. git clone https://github.com/qemu/qemu cd qemu git co v9.2.3 mkdir build cd build ../configure --target-list=riscv64-softmmu,riscv64-l…

Let's Build an Environment for Building and Running SPEC2017 (1. Setting Up the Build Environment)

I want to set up an environment where I can compile and run SPEC2017, a CPU benchmark suite. I'll figure it out as I go along: Preparing a Docker Environment To keep the environment isolated, I prepared a dedicated Docker environment: the …

Memory Dependency Analysis Algorithm in a Cycle-Accurate Simulator

Let me briefly summarize the memory dependency algorithm in a cycle-accurate simulator. Memory dependencies, such as ST A -> LD A, record dependencies between memory addresses and use them in the cycle calculation. github.com void MemoryDe…

Studying Bus Protocols for Managing Cache Coherence (15. Cache Stashing 3)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Cache Stashing (continued) The DataPull Mechanism The DataPull mechanism is a way of implying a Read request through a Snoop respons…

Studying Bus Protocols for Managing Cache Coherence (14. About Cache Stashing)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Cache Stashing (continued) Transactions That Write Data When a Requester writes new data and the target needs to stash that data, it…

Studying Bus Protocols for Managing Cache Coherence (13. About Cache Stashing)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Cache Stashing Cache Stashing is a mechanism for installing data into a specific cache in the system. CHI-B introduced this feature …

Studying Bus Protocols for Managing Cache Coherence (12. About DVM Operations)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com DVM Operations Like ACE, CHI supports DVM (Distributed Virtual Memory) operations. A DVM Request carries operations that support the…

Studying Bus Protocols for Managing Cache Coherence (11. Transaction Examples)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Endpoint Order and Request Order CHI transactions are ordered by Endpoint Order and Request Order: Endpoint Order maintains the orde…

Studying Bus Protocols for Managing Cache Coherence (10. Transaction Examples)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Completion Acknowledgement CHI uses completion acknowledgements to maintain the order of the following transactions: Transactions is…

Studying Bus Protocols for Managing Cache Coherence (10. Transaction Examples)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Transaction Flow WriteNoSnp Transaction Flow This section describes the flow of a WriteNoSnp transaction from Request Node 0 to Comp…

Studying Bus Protocols for Managing Cache Coherence (9. Transaction Examples)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Transaction Flow A transaction is the set of messages that the system needs in order to complete a request issued by a node. Use of …

Studying Bus Protocols for Managing Cache Coherence (9. Transaction Examples)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Transaction Flow A transaction is the set of messages that the system needs in order to complete a request issued by a node. Use of …

Studying Bus Protocols for Managing Cache Coherence (8. About Flits)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com Flits All protocol messages are sent in the form of flits. A flit is a packetized collection of control fields and identifiers that …

Studying Bus Protocols for Managing Cache Coherence (7. System Address Map)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com System Address Map Every component in the system is assigned a unique node ID. CHI uses the System Address Map (SAM) to translate ph…

Studying Bus Protocols for Managing Cache Coherence (6. About CHI Nodes)

developer.arm.com https://msyksphinz-en.hatenablog.com/entry/2025/03/05/040000msyksphinz-en.hatenablog.com The Coherent Hub Interface (CHI) is an evolution of the ACE (AXI Coherency Extensions) protocol. CHI Protocol Basics: First, I summa…

Studying Bus Protocols for Managing Cache Coherence (5. Learning About CHI)

developer.arm.com The Coherent Hub Interface (CHI) is an evolution of the ACE (AXI Coherency Extensions) protocol. This guide introduces the first three issues of the CHI protocol, gives a general overview of CHI, and describes some of its…

Studying AXI Ordering (3. Unaligned Accesses and Endianness)

Continuing from the previous post. https://msyksphinz-en.hatenablog.com/entry/2025/03/01/040000msyksphinz-en.hatenablog.com developer.arm.com Next up is unaligned access. AXI allows a transaction to have an unaligned start address. By unal…

Understanding the RISC-V RERI Architecture (5. Error Control Register)

First, RERI stands for "RAS Error-record Register Interface". github.com 2.4 Error Record Registers 2.4.1. Control Register (control_i) This register is used to control error reporting by the corresponding error record of the error bank. e…

Studying AXI Ordering (2. Transactions Mixing Reads and Writes)

Continuing from the previous post. https://msyksphinz-en.hatenablog.com/entry/2025/03/01/040000msyksphinz-en.hatenablog.com developer.arm.com Next is the ordering of read transactions. Transactions on the R channel have no ordering restric…

Studying AXI Ordering (1. Transaction Order)

Something caught my attention, so I have been reading an article about AXI ordering. developer.arm.com The article above explains things using a transaction timeline: For writes, A (A0-AL) is transferred and then B (B0, BL) is transferred.…