Patent ID: 7873779

Claim:
A method for automatically determining access parameters of a memory device, comprising: determining a bus width of the memory device; and determining a page size of the memory device; wherein the memory device which is divided into sections, each section comprising a first four byte word having an 8-bit magic number and second four byte word having a configuration magic number in first and second adjacent locations in the memory device and an automatic detection magic number in a third location in the memory device; wherein determining the bus width comprises: reading a first four bytes from the memory device in an eight bit mode; and determining whether the first four bytes read from the memory device correspond to an interleaving of the first four byte word and the second four byte word; and wherein determining a page size of the memory device comprises: receiving minimum and maximum page sizes of the memory device; determining a number of sections marked by computing a ratio of the maximum possible page size and the minimum possible page size; detecting a number of pages having an automatic detection magic number; and determining the page size of the memory device by computing the ratio of the number of sections marked times the minimum possible page size and the detected number of pages with the automatic detection magic number.