Method and apparatus for allocating memory controls