unit computation for memory