This is the codes used in paper "Thousands of conductance levels in memristors monolithically integrated on CMOS" There are instructions in the README file in each folder on how to use the codes and data in this repository to reproduce the results in our paper.