Source code for DESTINY a tool for modeling 2D and 3D caches designed with SRAM, eDRAM, STT-RAM, ReRAM and PCM. This includes both volatile and non-volatile memories, and both conventional and emerging memories.