TLDR: OpenMENA is a new, fully open-source hardware and software platform designed to make memristor-based artificial intelligence more accessible for edge computing. It integrates a reproducible hardware interface for memristor crossbars, a comprehensive software stack for inference and on-device learning, and a novel Voltage-Incremental Proportional–Integral (VIPI) method for programming weights. The system has been validated through successful digit recognition and real-world robot obstacle avoidance tasks, demonstrating its potential to democratize research in energy-efficient neuromorphic AI.
Researchers have introduced OpenMENA, a groundbreaking open-source platform designed to advance memristor-enabled artificial intelligence (AI) at the edge. This innovative system provides a complete hardware and software solution for interfacing with memristor crossbars, aiming to democratize research in energy-efficient neuromorphic computing.
Memristive devices are crucial for the future of neuromorphic computing due to their ability to perform in-memory computations and support local learning, which significantly reduces data movement and improves energy efficiency compared to traditional processors. However, the field has been hampered by a lack of open, reproducible hardware-software platforms that allow researchers to experiment across different devices, circuits, and learning rules under realistic conditions.
Addressing the Gaps in Edge AI Hardware
Existing systems often fall short by being proprietary or offering only partial open-source components, prioritizing benchtop characterization over integrated edge processing. OpenMENA steps in to fill this void by offering a fully open-source and reproducible platform. Its key contributions include a reproducible hardware interface for memristor crossbars with mixed-signal read–program–verify loops, a comprehensive firmware–software stack with high-level APIs for both inference and on-device learning, and a novel Voltage-Incremental Proportional–Integral (VIPI) method for programming pre-trained weights into analog conductances, followed by chip-in-the-loop fine-tuning to mitigate device non-idealities.
OpenMENA’s Architecture and Functionality
The OpenMENA system comprises a custom memristor interfacing Printed Circuit Board (PCB) that mounts onto an Arduino Due board. This PCB features a socket for plugging in memristor crossbar modules, such as an 8×8 knowm memristor crossbar. The Arduino Due handles the control firmware, managing analog switches, digital-to-analog converters (DACs), and analog-to-digital converter (ADC) channels for output readouts. A companion Python API allows external laptops to program and control the hardware via USB, making it user-friendly for researchers.
In operation, OpenMENA supports both inference and weight setting. For inference, input voltages are applied to the memristor crossbar, and the resulting currents are read out to determine the network’s output. For training and programming, bipolar voltage pulses are used to precisely set the conductance values of individual memristors, which act as neural network weights. A specific bipolar pulsing strategy is employed to minimize unintended modifications to neighboring memristors.
Advanced Training and Weight Setting Algorithms
The platform incorporates sophisticated algorithms for training and weight management. Since memristor conductances are strictly positive, OpenMENA uses a Sequential Least Squares Quadratic Programming (SLSQP) optimization scheme for off-chip training, ensuring that all learned weights are positive. To transfer these learned weights to the physical memristor crossbar, the proposed VIPI control scheme is utilized. This method iteratively applies bipolar voltage pulses, gradually increasing the pulse voltage amplitude if needed, which is crucial for overcoming the variability in memristor threshold voltages and achieving accurate conductance settings.
After the initial weight transfer, a chip-in-the-loop fine-tuning step is performed. This process embeds the memristor crossbar directly into the learning of subsequent model parameters, such as bias vectors. This fine-tuning compensates for hardware non-idealities like crosstalk and conductance variability, preventing significant degradation of model accuracy.
Also Read:
- Boosting PIM Performance: A Co-Design Approach to Mitigate Voltage Drops
- SAPIN: A Self-Organizing Network That Learns by Minimizing Surprise and Adapting Its Structure
Real-World Validation and Impact
OpenMENA’s capabilities were validated through two distinct experiments. First, it successfully performed digit recognition on handwritten digit images, demonstrating its ability to classify signals effectively. The VIPI scheme significantly outperformed conventional PI-based control methods, achieving approximately 19% higher classification accuracy by accounting for memristor variability.
Second, OpenMENA was applied to a real-world robot obstacle-avoidance task. Here, a memristor-based Multi-Layer Perceptron (MLP) model learned to map robot localization inputs (position and yaw angle) to motor commands (forward velocity and steering angle). The first hidden layer of the MLP was implemented using OpenMENA’s 8×8 memristor crossbar, with the second layer fine-tuned using the chip-in-the-loop approach. The system demonstrated accurate prediction of robot commands, closely matching ground-truth data with low error.
The release of OpenMENA as an open-source platform is expected to significantly accelerate research in memristor-based AI, fostering advancements in continual edge learning and synaptic plasticity-based local learning. For more details, you can refer to the original research paper.


