Optimizing code allocation for hybrid on-chip memory in IoT systems

被引:0
作者
Sun, Zhe [1 ,2 ]
Zhou, Zimeng [3 ,4 ]
Fu, Fang-Wei [1 ,2 ]
机构
[1] Nankai Univ, Chern Inst Math, Tianjin 300071, Peoples R China
[2] Nankai Univ, LPMC, Tianjin 300071, Peoples R China
[3] Quan Cheng Lab, Jinan 250103, Peoples R China
[4] Shandong Univ, Sch Cyber Sci & Technol, Qingdao 266237, Peoples R China
关键词
Scratchpad memory; Hybrid on-chip memory; IoT systems; Cache interferences; Heuristic solution; SCRATCH-PAD MEMORY; ALGORITHMS;
D O I
10.1016/j.vlsi.2024.102195
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
With the increasing application of IoT devices, the memory subsystem, as the performance and energy bottleneck of IoT systems, has received a lot of attention. One of the keys is on -chip memory which can bridge the performance gap between the CPU and main memory. While many off -the -shelf embedded processors utilize the hybrid on -chip memory architecture containing scratchpad memories (SPMs) and caches, most existing literature ignores the collaboration between caches and SPMs. This paper proposes static SPM allocation strategies for the architecture mentioned above in IoT systems, which try to minimize the overall instruction memory subsystem latency and/or energy consumption. We capture the intra- and inter -task cache conflict misses via a fine-grained temporal cache behavior model. Based on this cache conflict information, we propose an integer linear programming (ILP) algorithm to generate an optimal static function level SPM allocation for system performance. Furthermore, to improve the scalability of the proposed allocation scheme for an enormous task set, we offer the interference factor to calculate the interference impact quantitatively. Then, based on the interference factor, we present two approximate knapsack based heuristic algorithms to provide near optimal static allocation schemes at both function- and basic block -level granularities, which favors fast design space exploration. The experiment results demonstrate that the proposed solution achieves a 30.85% improvement in memory performance, and up to 31.39% reduction in energy consumption, compared to the existing SPM allocation scheme at the function level. In addition, the proposed basic block level allocation algorithm shows better performance than our function level allocation algorithm and other basic block level allocation algorithm.
引用
收藏
页数:12
相关论文
共 40 条
  • [11] Hu JT, 2011, DES AUT TEST EUROPE, P746
  • [12] Minimizing Energy Consumption of Embedded Systems via Optimal Code Layout
    Huang, Chen-Wei
    Tsao, Shiao-Li
    [J]. IEEE TRANSACTIONS ON COMPUTERS, 2012, 61 (08) : 1127 - 1139
  • [13] Evaluation of the Performance Impact of SPM Allocation on a Novel Scratchpad Memory
    Imhmed, Essa
    Ceh-Varela, Edgar
    Cook, Jonathan
    Parten, Caleb
    [J]. 2023 IEEE 47TH ANNUAL COMPUTERS, SOFTWARE, AND APPLICATIONS CONFERENCE, COMPSAC, 2023, : 972 - 973
  • [14] Pin or Fuse? Exploiting Scratchpad Memory to Reduce Off-Chip Data Transfer in DNN Accelerators
    Jeong, Hyuk-Jin
    Yeo, JiHwan
    Bahk, Cheongyo
    Park, JongHyun
    [J]. PROCEEDINGS OF THE 21ST ACM/IEEE INTERNATIONAL SYMPOSIUM ON CODE GENERATION AND OPTIMIZATION, CGO 2023, 2023, : 224 - 235
  • [15] Jungklass P., 2021, OASICS 87 SCHLOSS DA
  • [16] Ripple: Profile-Guided Instruction Cache Replacement for Data Center Applications
    Khan, Tanvir Ahmed
    Zhang, Dexin
    Sriraman, Akshitha
    Devietti, Joseph
    Pokam, Gilles
    Litz, Heiner
    Kasikci, Baris
    [J]. 2021 ACM/IEEE 48TH ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE (ISCA 2021), 2021, : 734 - 747
  • [17] Instruction Cache Locking Using Temporal Reuse Profile
    Liang, Yun
    Mitra, Tulika
    Ju, Lei
    [J]. IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2015, 34 (09) : 1387 - 1400
  • [18] DESCNet: Developing Efficient Scratchpad Memories for Capsule Network Hardware
    Marchisio, Alberto
    Mrazek, Vojtech
    Hanif, Muhammad Abdullah
    Shafique, Muhammad
    [J]. IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, 2021, 40 (09) : 1768 - 1781
  • [19] Negi HS, 2003, CODES(PLUS)ISSS 2003: FIRST IEEE/ACM/IFIP INTERNATIONAL CONFERENCE ON HARDWARE/SOFTWARE CODESIGN & SYSTEM SYNTHESIS, P201
  • [20] Olofsson A, 2014, CONF REC ASILOMAR C, P1719, DOI 10.1109/ACSSC.2014.7094761