
Project PID2025-170062NB (MemFRAME) funded by MICIU/AEI/10.13039/501100011033
A hands-on guide to openMemristorPDK, a small chip-design kit for memristors built with openPDKcreator. Every step shows a real screenshot of what to click, from installing the tools to simulating a memristor and looking at its layout. No chip-design experience needed.
A resistor with a memory. Its resistance depends on how much current has flowed through it before, so it "remembers". Its fingerprint is the pinched hysteresis loop you will simulate in Your first simulation.
A Process Design Kit: the instruction manual a chip factory gives designers. It says which materials and layers exist, how small things can be, and how each device behaves. openMemristorPDK describes a made-up factory that builds memristors.
The free programs this guide is built on: what they are and how they fit together.
What free and open-source software is, what each program in this guide does and how to install it, and openPDKcreator's Tools tab, which checks them all.
SECTION 1 · PART 1Git, Podman and IIC-OSIC-TOOLS: the two programs on the laptop and the container they start.
SECTION 1 · PART 2openPDKcreator, xschem, ngspice and OpenVAF: the programs the Analog sections use.
SECTION 1 · PART 3KLayout, Magic and Netgen: look at a chip layout and check it (DRC and LVS).
SECTION 1 · PART 4Icarus Verilog, GTKWave, Yosys, OpenROAD and LibreLane: from Verilog to a chip layout.
SECTION 1 · PART 5Let openPDKcreator check every program: found or missing, version, how to install it, and a button to start it.
Get the tools and the PDKs onto your computer. You do this once per computer.
Get a new Linux computer ready: two programs, openPDKcreator, the memristor PDK and the container with all the chip-design tools.
SECTION 3Use IHP's open SG13G2 PDK, with real transistors and logic gates, next to the memristor PDK. Needed for the last digital parts.
Memristors as analog devices: simulate their currents and voltages, write new models, build a new device and see how a factory's spread changes them.
Start the tools, read the memristor's model, simulate its pinched hysteresis loop in xschem and ngspice, then look at its chip layout in KLayout.
SECTION 5Write a new Verilog-A memristor model, let openPDKcreator compile it, and try it in the testbench in place of the old one.
SECTION 6Delete the Au/HfO₂/Al memristor and rebuild it from nothing: layers, layout, symbol, model and testbench.
SECTION 7Simulate the TT/FF/SS process corners, then a Monte Carlo run where Ron, Roff and the oxide thickness vary from device to device.
Memristors as bits: store them, fill a small memory, describe it in Verilog, and turn its controller into real logic gates and a chip layout.
Use memristors as bits: store one, fill a 2 × 2 crossbar, describe it in Verilog, turn its controller into IHP logic gates and a chip layout, and build a real 1T1R bit-cell.
SECTION 8 · PART 1Write a 1 into one memristor, read it back, erase it, and see a write that is too weak fail.
SECTION 8 · PART 2Four memristors in a 2 × 2 grid: write 1 0 0 1 without disturbing the neighbours, then see a careless write overwrite them.
SECTION 8 · PART 3Describe the memristor bit the way digital designers do, simulate it with Icarus Verilog and look at the waveforms in GTKWave.
SECTION 8 · PART 4Write a small memory controller in Verilog and let Yosys turn it into 65 logic gates from IHP's library.
SECTION 8 · PART 5Place and wire the controller's gates with LibreLane and IHP's standard cells, and look at the result in KLayout.
SECTION 8 · PART 6Put IHP's transistor in series with the memristor: a door that blocks writes to the cells you don't want to change.