Systems and methods for timing-driven shape closure in integrated circuit fabrication are provided. A detector behind the window is responsive to x-rays irradiated by the sample. An intelligent programming technique allows each memory cell to store more than the usual one bit of information.