use get_l0_mem in HDLState to get memory data