Memory Access Optimization of a Neural Network Accelerator Based on Memory Controller

Special accelerator architecture has achieved great success in processor architecture, and it is trending in computer architecture development. However, as the memory access pattern of an accelerator is relatively complicated, the memory access performance is relatively poor, limiting the overall pe...

Full description

Bibliographic Details
Main Authors: Rongshan Wei, Chenjia Li, Chuandong Chen, Guangyu Sun, Minghua He
Format: Article
Language:English
Published: MDPI AG 2021-02-01
Series:Electronics
Subjects:
Online Access:https://www.mdpi.com/2079-9292/10/4/438
id doaj-21f947f4c9d64cbfabda0e431097ae98
record_format Article
spelling doaj-21f947f4c9d64cbfabda0e431097ae982021-02-11T00:01:53ZengMDPI AGElectronics2079-92922021-02-011043843810.3390/electronics10040438Memory Access Optimization of a Neural Network Accelerator Based on Memory ControllerRongshan Wei0Chenjia Li1Chuandong Chen2Guangyu Sun3Minghua He4College of Physics and Information Engineering, Fuzhou University, Fuzhou 350116, ChinaCollege of Physics and Information Engineering, Fuzhou University, Fuzhou 350116, ChinaCollege of Physics and Information Engineering, Fuzhou University, Fuzhou 350116, ChinaCenter for Energy-Efficient Computing and Applications, Peking University, Beijing 100871, ChinaSchool of Medical Technology and Engineering, Fujian Medical University, Fuzhou 350122, ChinaSpecial accelerator architecture has achieved great success in processor architecture, and it is trending in computer architecture development. However, as the memory access pattern of an accelerator is relatively complicated, the memory access performance is relatively poor, limiting the overall performance improvement of hardware accelerators. Moreover, memory controllers for hardware accelerators have been scarcely researched. We consider that a special accelerator memory controller is essential for improving the memory access performance. To this end, we propose a dynamic random access memory (DRAM) memory controller called NNAMC for neural network accelerators, which monitors the memory access stream of an accelerator and transfers it to the optimal address mapping scheme bank based on the memory access characteristics. NNAMC includes a stream access prediction unit (SAPU) that analyzes the type of data stream accessed by the accelerator via hardware, and designs the address mapping for different banks using a bank partitioning model (BPM). The image mapping method and hardware architecture were analyzed in a practical neural network accelerator. In the experiment, NNAMC achieved significantly lower access latency of the hardware accelerator than the competing address mapping schemes, increased the row buffer hit ratio by 13.68% on average (up to 26.17%), reduced the system access latency by 26.3% on average (up to 37.68%), and lowered the hardware cost. In addition, we also confirmed that NNAMC efficiently adapted to different network parameters.https://www.mdpi.com/2079-9292/10/4/438memory controllerDRAMaddress mappingmemory access optimization
collection DOAJ
language English
format Article
sources DOAJ
author Rongshan Wei
Chenjia Li
Chuandong Chen
Guangyu Sun
Minghua He
spellingShingle Rongshan Wei
Chenjia Li
Chuandong Chen
Guangyu Sun
Minghua He
Memory Access Optimization of a Neural Network Accelerator Based on Memory Controller
Electronics
memory controller
DRAM
address mapping
memory access optimization
author_facet Rongshan Wei
Chenjia Li
Chuandong Chen
Guangyu Sun
Minghua He
author_sort Rongshan Wei
title Memory Access Optimization of a Neural Network Accelerator Based on Memory Controller
title_short Memory Access Optimization of a Neural Network Accelerator Based on Memory Controller
title_full Memory Access Optimization of a Neural Network Accelerator Based on Memory Controller
title_fullStr Memory Access Optimization of a Neural Network Accelerator Based on Memory Controller
title_full_unstemmed Memory Access Optimization of a Neural Network Accelerator Based on Memory Controller
title_sort memory access optimization of a neural network accelerator based on memory controller
publisher MDPI AG
series Electronics
issn 2079-9292
publishDate 2021-02-01
description Special accelerator architecture has achieved great success in processor architecture, and it is trending in computer architecture development. However, as the memory access pattern of an accelerator is relatively complicated, the memory access performance is relatively poor, limiting the overall performance improvement of hardware accelerators. Moreover, memory controllers for hardware accelerators have been scarcely researched. We consider that a special accelerator memory controller is essential for improving the memory access performance. To this end, we propose a dynamic random access memory (DRAM) memory controller called NNAMC for neural network accelerators, which monitors the memory access stream of an accelerator and transfers it to the optimal address mapping scheme bank based on the memory access characteristics. NNAMC includes a stream access prediction unit (SAPU) that analyzes the type of data stream accessed by the accelerator via hardware, and designs the address mapping for different banks using a bank partitioning model (BPM). The image mapping method and hardware architecture were analyzed in a practical neural network accelerator. In the experiment, NNAMC achieved significantly lower access latency of the hardware accelerator than the competing address mapping schemes, increased the row buffer hit ratio by 13.68% on average (up to 26.17%), reduced the system access latency by 26.3% on average (up to 37.68%), and lowered the hardware cost. In addition, we also confirmed that NNAMC efficiently adapted to different network parameters.
topic memory controller
DRAM
address mapping
memory access optimization
url https://www.mdpi.com/2079-9292/10/4/438
work_keys_str_mv AT rongshanwei memoryaccessoptimizationofaneuralnetworkacceleratorbasedonmemorycontroller
AT chenjiali memoryaccessoptimizationofaneuralnetworkacceleratorbasedonmemorycontroller
AT chuandongchen memoryaccessoptimizationofaneuralnetworkacceleratorbasedonmemorycontroller
AT guangyusun memoryaccessoptimizationofaneuralnetworkacceleratorbasedonmemorycontroller
AT minghuahe memoryaccessoptimizationofaneuralnetworkacceleratorbasedonmemorycontroller
_version_ 1724274844696051712