Compact Ferroelectric Programmable Majority Gate for Compute-in-Memory Applications

Shan Deng, Mahdi Benkhelifa, Simon Thomann, Zubair Faris, Zijian Zhao, Tzu‐Jung Huang, Yixin Xu, Vijaykrishnan Narayanan, Kai Ni, Hussam Amrouch2022

Abstract

In this work, a compact and novel ferroelectric (FE) programmable majority gate is proposed and its novel application in Binary Neural Network (BNNs) is investigated. We demonstrate: i) by integrating N metal-ferroelectric-metal (MFM) capacitors on the gate of a transistor (1T-N-MFM structure), a nonvolatile and programmable majority (MAJ) gate that performs MAJ of AND between the gate input and polarization is realized; ii) validation the functionality of our 3-input MAJ of AND gate through comprehensive theoretical and experimental investigations; iii) a compact implementation of 3-input MAJ of XNOR gate that leverages only five of our 3-input MAJ of AND gates connected in parallel; iv) application of MAJ of XNOR gates to replace the XNOR gates and the first layer of the adder tree in the BNNs for up to 21x area saving on top of eliminating the energy-hungry memory accesses due to the compute-in-memory nature.

Introduction

As deep learning models grow, the "von Neumann bottleneck"—the energy and time wasted moving data between the processor and memory—has become a primary hurdle. Compute-in-Memory (CiM) aims to solve this by performing calculations directly where the data is stored.

Binary Neural Networks (BNNs) are particularly well-suited for CiM because they replace complex multiplications with simple XNOR operations and "popcounts" (counting the number of set bits). However, implementing the "adder trees" required for these counts in standard CMOS hardware is area-intensive and scales poorly. While multi-gate transistors have been proposed for "majority logic", previous versions were either volatile or lacked programmability. This paper introduces a structure that is both nonvolatile and highly flexible.

Methods and Device Architecture

The authors propose a 1T-N-MFM structure: a single transistor with $N$ Metal-Ferroelectric-Metal (MFM) capacitors connected to a shared floating gate.

Operation principles and device structure of the 1T-N-MFM ferroelectric programmable majority gate.
  • Logic Implementation: Each capacitor performs a local AND operation between the gate input voltage ($G$) and the ferroelectric polarization state ($P$). The shared floating gate sums these contributions; the transistor only turns on (high current) if the majority of these local AND results are "1".
  • Validation: The team used a dual approach: TCAD simulations modeling a 14nm FDSOI transistor and experimental fabrication of 3-gate MFM capacitors using Hafnium Zirconium Oxide ($Hf_{0.5}Zr_{0.5}O_2$) connected to discrete transistors.
  • Sequential Programming: They discovered that writing to all gates simultaneously reduces the "memory window" due to capacitive loading. A sequential writing strategy was proposed to ensure robust logic states.

Key Results and BNN Application

The researchers evaluated the impact of their hardware on a VGG-based Binary Neural Network using the Fashion MNIST dataset to measure the trade-off between area savings and classification accuracy.

Comparison of the proposed programmable majority gate approach with standard CMOS for Binary Neural Networks (BNNs).
  • Massive Area Savings: Replacing standard CMOS XNOR gates and the first layer of the adder tree with the proposed FE-MAJ gates resulted in up to a 21x reduction in transistor count.
  • High Efficiency: The design eliminates energy-hungry memory accesses. Even excluding memory access costs, the FE-MAJ approach showed an energy-delay product comparable to optimized CMOS.
  • Minimal Accuracy Loss: When tested on Fashion MNIST, the approximation used in the adder tree resulted in only a 2% drop in accuracy, a negligible trade-off for the massive hardware simplification.
  • Nonvolatility: Logic states are stored in ferroelectric polarization, ensuring the circuit retains its configuration without power.

Conclusion and Future Work

While a 2% accuracy loss is low for Fashion MNIST, more complex datasets might see a more significant impact from approximating the adder tree. Future work includes investigating programming latency, as writing ferroelectric polarization is slower than SRAM, and exploring 3D integration to further increase the density of compute-in-memory chips.

Summary updated

BibTeX
@inproceedings{deng2022compact,
  author = {Shan Deng and Mahdi Benkhelifa and Simon Thomann and Zubair Faris and Zijian Zhao and Tzu‐Jung Huang and Yixin Xu and Vijaykrishnan Narayanan and Kai Ni and Hussam Amrouch},
  title = {{Compact Ferroelectric Programmable Majority Gate for Compute-in-Memory Applications}},
  booktitle = {2022},
  year = {2022},
  doi = {10.1109/iedm45625.2022.10019400},
}
Figure