Exploring the potential of HBM-enabled FPGAs for brain-twin simulations

Abstract

Brain twins can offer us insight into neuro-degenerative diseases, provide useful imaging and even help us plan out and test treatments; one such algorithm is The Virtual Brain (TVB), which abstracts the brain into centers connected with varying levels of strength (weights) and temporal distance (delays) between them. The algorithm then calculates the activity output of each center by combining local and global dynamics into a transient simulation. On the other hand, High Bandwidth Memory (HBM) is an emerging technology that uses stacked DRAM chips to deliver parallel memory channels for faster bandwidth in applications; as such, it performs its best when performing parallel channel accesses in a coalesced manner. The Versal HBM combines HBM with an FPGA and a processing system to create a System on a Chip (SoC) able to implement low-power custom architectures for memory-intense applications. In a clinical setting, TVB needs to perform a design space exploration in order to fit to a patient, creating an application with high throughput needs that can be satisfied by an FPGA. Additionally, the random access memory pattern exhibited by the algorithm can greatly benefit from HBM. Thus, our implementation started from a naive stage and refactored the code in order to best match HBM’s characteristics. We first utilized the sparsity of the weights array to reduce unnecessary operations and moved the parameters to on-chip memories (BRAM). We used tool directives to optimize the performance, such as loop unrolling, pipelining and dataflow. Then we optimized HBM bandwidth usage by coalescing memory accesses to useful values; these details come with trade-offs despite which our implementation remains realistic and meaningful. The final implementation can achieve an average normalized throughput of 1.69 M iterations/sec, outperforming CPU and FPGA implementations of TVB by 59% and 121%, respectively. Although this final implementation exhibits 44% lower throughput than GPU, it supersedes in terms of energy efficiency by 165%, as expected of a custom reconfigurable architecture. Additionally, our work has produced documentation for the Vitis flow on the Versal HBM and booted the board with PetaLinux. The final design of a custom, high-throughput implementation for TVB in an HBM-enabled FPGA with PetaLinux paves the way for an embedded-system, "black-box" implementation of TVB.

Description

Citation

Endorsement

Review

Supplemented By

Referenced By