modified memory.hdl