This is the exact code used for generating the figures in the paper
SDEX: Monte Carlo Simulation of Stochastic Differential Equations on Memristor Crossbars https://arxiv.org/abs/2202.01395
Better and more up to date code is available in https://github.com/louisprimeau/crossbar-simulator.