多核心 RISC-V 處理器之 NoC 一致性記憶體子系統設計與實作
NoC-based Coherent Memory Subsystem Design for Multicore RISC-V Processors
摘要
隨著高效能運算需求的提升,多核心架構已成為處理器設計主流。為降低記憶體延遲,各核心配置私有 L1 快取並搭配共享 L2 快取以提升效能。為了確保各核心能觀察到一致且最新的記憶體狀態,快取一致性機制(Cache Coherence Mechanism)成為不可或缺的關鍵設計。隨著核心數目的增加,維持快取一致性在多核心架構中面臨愈加嚴峻的挑戰。
現有的一致性協定主要分為監聽式(Snooping)與目錄式(Directory-based)兩類。前者在小於16核心的系統中簡單且有效,而後者主要是配合片上網路(Network-on-Chip, NoC)架構來達到更佳的可擴展性,在高核心數時,理論效能也較佳。然而,現有研究中兩者的優缺點比較常因系統架構(核心微架構及一致性快取架構)不一致而缺乏客觀性。由於本實驗室過去已經開發了完整的多核心監聽式一致記憶體系統,基於此,本研究旨在使用相同的核心與記憶體階層配置來設計實作多核心NoC-based目錄式一致記憶體系統。
本論文以國立陽明交通大學資訊工程系嵌入式智慧系統實驗室開發的多核心RISC-V SoC Aquila-MP為基礎,將其原有的監聽式MESI協定改為目錄式 MESI,並導入基於交叉開關(Crossbar)拓撲的NoC多核心架構,以有效支援四核心一致性訊息傳遞並提升多核心系統的可擴展性。
現有的一致性協定主要分為監聽式(Snooping)與目錄式(Directory-based)兩類。前者在小於16核心的系統中簡單且有效,而後者主要是配合片上網路(Network-on-Chip, NoC)架構來達到更佳的可擴展性,在高核心數時,理論效能也較佳。然而,現有研究中兩者的優缺點比較常因系統架構(核心微架構及一致性快取架構)不一致而缺乏客觀性。由於本實驗室過去已經開發了完整的多核心監聽式一致記憶體系統,基於此,本研究旨在使用相同的核心與記憶體階層配置來設計實作多核心NoC-based目錄式一致記憶體系統。
本論文以國立陽明交通大學資訊工程系嵌入式智慧系統實驗室開發的多核心RISC-V SoC Aquila-MP為基礎,將其原有的監聽式MESI協定改為目錄式 MESI,並導入基於交叉開關(Crossbar)拓撲的NoC多核心架構,以有效支援四核心一致性訊息傳遞並提升多核心系統的可擴展性。
As the demand for high-performance computing continues to grow, multicore architectures have become the mainstream in processor design. To reduce memory latency, private L1 cache equipped with each core and a shared L2 cache are employed. However, ensuring a consistent and up-to-date view of memory across cores requires cache coherence mechanisms, which become increasingly challenging as the number of cores increases.
Existing coherence protocols are generally categorized into snooping-based and directory-based approaches. The former is simple and effective in small-scale systems under 16 cores, while the latter, often coupled with Network-on-Chip (NoC) interconnect, offers better scalability and performance as the number of cores of the system grows. However, many prior studies comparing these two approaches without solid platforms that adopt same processor cores and similar coherent cache configurations. Since we have already developed a snooping-based multicore system, the goal of this thesis is to design and implement a NoC-based multicore system with coherent directory controller.
This thesis is based on the architecture of Aquila-MP, an open-source multicore RISC-V System-on-Chip (SoC) developed by the Embedded Intelligent Systems Laboratory at National Yang Ming Chiao Tung University. The original snooping-based MESI cache coherence protocol implemented in Aquila-MP is replaced with a directory-based MESI protocol. More importantly the broadcasting snooping bus was replaced by the NoC interconnect with crossbar topology in order to efficiently support coherence message transmission and scalable multicore communication.
Existing coherence protocols are generally categorized into snooping-based and directory-based approaches. The former is simple and effective in small-scale systems under 16 cores, while the latter, often coupled with Network-on-Chip (NoC) interconnect, offers better scalability and performance as the number of cores of the system grows. However, many prior studies comparing these two approaches without solid platforms that adopt same processor cores and similar coherent cache configurations. Since we have already developed a snooping-based multicore system, the goal of this thesis is to design and implement a NoC-based multicore system with coherent directory controller.
This thesis is based on the architecture of Aquila-MP, an open-source multicore RISC-V System-on-Chip (SoC) developed by the Embedded Intelligent Systems Laboratory at National Yang Ming Chiao Tung University. The original snooping-based MESI cache coherence protocol implemented in Aquila-MP is replaced with a directory-based MESI protocol. More importantly the broadcasting snooping bus was replaced by the NoC interconnect with crossbar topology in order to efficiently support coherence message transmission and scalable multicore communication.