Non-volatile memory chip enable signal encoding method and system

Abstract: A non-volatile memory chip enable encoding method allows the storage of both boot code and user application software within a common memory array. The chip enable encoding method further allows a variable number of memory banks to be provided within the non-volatile memory array and allows the system to power-up and execute the boot code before the array configurations are selected by firmware. In one embodiment, a memory controller includes four chip enable output lines for selectively enabling a plurality of ROM banks. One of the ROM banks includes boot code that is executed by the system microprocessor during system boot. If the user requires a ROM array consisting of four ROM banks, a separate chip enable output line is connected to each ROM bank. If the user instead requires a ROM array consisting of, for example, eight ROM banks, an external decoder may be connected to the four chip enable output lines. In this configuration, each output line of the decoder is coupled to a respective bank enable input line of the ROM banks. In either configuration, the chip enable lines are driven in a mutually exclusive relationship during system boot to access the boot code (stored within one of the ROM banks). Subsequently, the encoding of the chip enable signals at the chip enable output lines of the memory controller is dependent upon configuration information stored in a configuration register.

Description: This invention relates to computer systems and more particularly to chip enable encoding methods employed by memory controllers for selecting individual banks of non-volatile memory. Most computer systems include software code in ROM or flash memory that allows the system to read the operating system software from a disk at power-up. This software code is often referred to as the boot-strap code or boot code, and the process of loading the operating system from the disk is called "booting the system". The boot code typically contains only enough software to read the operating system, which is generally stored on a specific track of the disk. The operating system software itself provides the capability of performing more general read and write accesses. A typical computer system includes a dedicated ROM integrated circuit chip referred to as the BIOS (Basic Input/Output System) ROM which contains the boot code and a collection of additional subroutines (referred to as BIOS code) to provide a standard software interface for the system. Due to the low cost and low power consumption of read only memory, ROM integrated circuits are also becoming a popular storage medium for user software such as word processing programs as well as for the operating system software. This is particularly true for applications within portable computer systems. The read only memory used to store such user software is typically quite large in capacity (compared to that of the BIOS ROM) and is often arranged as one or more ROM banks that may be selectively accessed through a memory controller. The memory capacity of this user ROM is typically variable to suit the needs of a particular user and is specified within the BIOS code. Since the BIOS ROM subsystem must be accessed at power-up and before system configuration (that is, before the system has been booted), and since the user ROM subsystem has an indeterminate size (at least, as far as the memory controller is concerned) prior to system configuration and can be accessed only after the system configuration routines have completed execution, the two memory subsystems have typically been treated completely separately. As a result, separate integrated circuit chips have been used for the two memory subsystems, therefore causing an increase in the overall cost, weight and size of the computer system. US-A-5,005,157 discloses a chip enable encoding method for enabling selected memory bus within a non-volatile memory array wherein the array is coupled to a memory controller having a plurality of chip enable output lines. Each memory bank has a separate bank enable input line, and, depending upon the number of banks coupled to the controller, the chip enable output lines are either driven in a mutually exclusive relationship such that a chip enable signal is asserted at only one chip enable output line at a time to enable a selected memory bank or such that more than one chip enable signal is asserted at a time. In the latter case, encoded information is thereby provided regarding the memory bank to be enabled. Document "Dynamic Eprom size detector" Motorola Inc. Technical developments, Volume 14, December 1991, page 109 discloses a system which is constituted by a plurality of banks of ROM wherein a first ROM bank is used for storing a configuration table relating to the size of the remaining banks, and wherein at power-up of the whole system, said first ROM bank is accessed for allowing the controller of the system to initialize and adjust the system according to the size information contained in said boot program. According to the present invention, such a system is further characterised in that configuration data indicative of the number of memory banks is stored in a configuration register, the configuration data being derived from boot code stored in one of the memory banks, and a chip enable signal is asserted at only one of the chip enable output lines to thereby enable the said one of the memory banks and access the boot code. The chip enable encoding method allows the storage of both boot code and user application software within a common non-volatile memory array. The chip enable encoding method further allows a variable number of memory banks to be provided within the non-volatile memory array and allows the system to power-up and execute the boot code before the memory array configurations are selected by firmware. This and other objects are solved in advantageous manner basically by applying the features laid down in the independent claims. Further enhancements are provided by the subclaims. In one embodiment, a memory controller includes four chip enable output lines for selectively enabling a plurality of ROM banks. One of the ROM banks includes boot code that is executed by the system microprocessor during system boot. If the user requires a ROM array consisting of four ROM banks, a separate chip enable output line is connected to each ROM bank. If the user instead requires a ROM array consisting of, for example, eight ROM banks, an external decoder may be connected to the four chip enable output lines. In this configuration, each output line of the decoder is coupled to a respective bank enable input line of the ROM banks. In either configuration, the chip enable lines are driven in a mutually exclusive relationship during system boot to access the boot code (stored within one of the ROM banks). The boot code includes configuration information indicative of the number of ROM banks connected within the system. This configuration information is stored within a configuration register of the memory controller. Subsequently, the encoding of the chip enable signals at the chip enable output lines of the memory controller is dependent upon the configuration information. For the configuration in which only four ROM banks are connected to the computer system, the chip enable output lines are driven in a mutually exclusive relationship by the encoder such that a chip enable signal can be asserted at only one of the chip enable output lines at a time. For the configuration in which eight ROM banks are connected to the computer system, the chip enable output lines are driven such that a chip enable signal can be asserted at more than one of the chip enable output lines at a time. We shall also describe a memory controller comprising: a control circuit configured to control accesses of data from a non-volatile memory array; a configuration register coupled to said control circuit, wherein said configuration register is configured to store a value indicative of the number of memory banks provided within said non-volatile memory array; characterized in that the memory controller further comprises: a chip enable encoder coupled to said configuration register and responsive to said value, wherein said chip enable encoder includes a plurality of chip enable output lines each dedicated to conveying a respective chip enable signal, and wherein said chip enable encoder is programmable such that: in a first mode of operation when said value stored within said configuration register indicates that a first number of memory banks is provided within said non-volatile memory array, the chip enable output lines are driven in a mutually exclusive relationship such that only one chip enable signal is asserted at a given time to enable any given memory bank within said non-volatile memory array; and such that, in a second mode of operation when said value stored within said configuration register indicates that a second number of memory banks is provided within said non-volatile memory array, more than one chip enable signal is asserted at a time to thereby provide encoded information which indicates a memory bank within said non-volatile memory array to be enabled; and wherein said value indicative of the number of memory banks provided within said non-volatile memory array is stored within said configuration register responsive to an execution of boot code stored within one of said memory banks. Other objects and advantages of the invention will become apparent upon reading the following detailed description and upon reference to the accompanying drawings in which, by way of example only: Figure 1 is a block diagram of a computer system including a memory controller connected to four banks of read only memory according to the present invention. Figure 2 is a block diagram that illustrates a configuration of ROM integrated circuit chips incorporated within each memory bank. Figure 3 is a chart that indicates the ROM chip enable encoding for the computer system of Figure 1. Figure 4 is a block diagram of a computer system including a memory controller connected to eight banks of read only memory according to the present invention. Figure 5 is a chart that indicates the ROM chip enable encoding for the computer system of Figure 4. While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and the detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the scope of the appended claims. Referring now to the drawings, Figure 1 is a block diagram of a computer system 100 that employs a non-volatile memory chip enable encoding method according to the present invention. The computer system 100 includes a microprocessor (CPU) 102 coupled to a memory controller 104. A ROM array 105 consisting of four ROM banks 106-109 is further shown coupled to memory controller 104. The microprocessor 102 provides data, address, and control signals to memory controller 104 via a local bus including a 32-bit data bit LD[31:0], and 32-bit address bus LA[31:0] and a control bus 110. Microprocessor 102 is exemplary of, for example, a model 80486 microprocessor. It is understood, however, that other specific microprocessors could alternatively be employed within computer system 100. Memory controller 104 includes an interface and control circuit 112 that orchestrates the transfer of data, address, and control signals between microprocessor 102 and ROM array 105. A memory address bus MA[18:0] and a memory data bus MD[31:0] are coupled to ROM banks 106-109 for providing addressing and data signals to and from ROM array 105. Various other control lines such as read and write control lines may further be coupled between interface and control circuit 112 and ROM array 105, but have not been illustrated in Figure 1 in the interest of clarity. It is noted that the interface and control circuit 112 may be implemented using a variety of specific circuit configurations, and that exemplary circuit configurations may be found in a host of publications of the known prior art. It is further noted that in the preferred embodiment, microprocessor 102 and memory controller 104 are fabricated on a single integrated processor chip. Memory controller 104 also includes a chip enable address encoder 114 and a configuration register 116. As will be better understood from the following, the chip enable address encoder includes a set of chip enable output lines labeled CE0, CE1, CE2, and CE3 for enabling respective ROM banks of the computer system 100. As will also be better explained in greater detail below, configuration register 116 is provided for storing a bit (or bits) of data which is indicative of the number of ROM banks coupled to memory controller 104. Each of the ROM banks 106-109 includes a separate ROM bank enable input line 120-123, respectively. In this embodiment, each ROM bank 106-109 is capable of storing 500 kilobytes of 32-bit data. Accordingly, each ROM bank 106-109 includes a set of address input lines MA[18:0] and a set of data output lines MD[31:0]. Figure 2 is a block diagram that illustrates the internal configuration of ROM banks 106 and 107. As is illustrated in Figure 2, ROM bank 106 includes four ROM chips 200-203 and ROM bank 107 includes ROM chips 204-207. Each ROM chip 200-207 is capable of storing 500 kilobytes of 8-bit data. The chip enable input lines of ROM chips 200-203 are coupled to the ROM bank enable input line 120 and the chip enable input lines of ROM chips 204-207 are connected to ROM bank enable input line 121. Rom banks 108 and 109 are configured similarly. Referring back to Figure 1, computer system 100 is implemented such that one of the ROM banks 106-109 includes boot code that is accessed by microprocessor 102 upon power-up of the computer system 100. In the embodiment of Figure 1, ROM bank 109 includes this boot code. Figure 3 is a table that illustrates the ROM chip enable encoding implemented by chip enable address encoder 114 to access each of the ROM banks 106-109. It is noted that the ROM chip enable encoding is implemented such that one of the chip enable signals CE0-CE3 may be asserted low to enable a respective ROM bank 106-109. For example, to enable ROM bank 106, the chip enable signal CE0 is asserted low by the chip enable address encoder 114. Similarly, the chip enable signal CE1 is asserted low to enable ROM bank 107, and so on. Accordingly, referring back to Figure 1, upon power-up of computer system 100, microprocessor 102 accesses the boot code stored within ROM bank 109 by executing a memory read cycle and driving the address lines LA[31:0] with a prespecified address value (i.e., the starting address of the boot code). In one embodiment, the boot code is stored at a starting address of FFFFFFF0(HEX). In response to this address signal, chip enable address encoder 114 asserts the chip enable signal CE3 low which thereby enables ROM bank 109 and allows the first byte of boot code to be read and executed. Subsequent bytes of the boot code may be similarly read during subsequent cycles. It is noted that when the boot code is being read, the other chip enable output lines (i.e., CE0-CE2) of chip enable address encoder 114 are deasserted high. Among the boot code accessed from ROM array 105 may be configuration information indicative of the number of ROM banks connected to computer system 100. The configuration information may be provided since, upon power-up, the memory controller 104 is incognizant of the number of banks connected thereto. If present, microprocessor 102 causes this configuration information to be stored within configuration register 116 during the booting procedure. As will be better understood below, the chip enable address encoder 114 subsequently drives the chip enable signals CE0-CE3 according to this configuration information. It is noted that the configuration register 116 may initially contain a value indicative of a default number of ROM banks. In the preferred embodiment, configuration register 116 initially contains a default value indicative of four ROM banks. Specifically, in the preferred embodiment, a bit of configuration register 116 is set low at power-up to indicate that four ROM banks are connected to the system. Unless the boot code causes this default value to change, the chip enable address encoder will assume that four ROM banks are connected to the system. Thus, for the configuration of Figure 1, when the boot code is accessed from ROM bank 109, the value within configuration register 116 is not changed since, in fact, four banks of ROM are connected to the computer system 100. Following completion of the booting subroutines, microprocessor 102 may access selected memory locations within ROM banks 106-109 by driving the address bus according to the specific memory mapping as chosen by the system designer. In one embodiment, ROM bank 106 is mapped within the system to store address values in the range of FF7FFFF0 to FF9FFFEF (HEX); ROM bank 107 is mapped to store address values in the range of FF9FFF0 to FFBFFFEF; ROM bank 108 is mapped to store address values in the range of FFBFFFF0 to FF0FFFEF; and ROM bank 109 is mapped to store address values in the range of FF0FFFF0 to FFFFFFFF. Therefore, depending upon the upper 13-bits of the addressing signal (LA[31:19]), the chip enable address encoder 114 either keeps all of the chip enable signals CE0-CE3 deasserted high (if the address does not fall within a range mapped by one of the ROM banks 106-109), or drives one of the signals CE0-CE3 to enable the corresponding ROM bank 106-109. It is noted that during this mode of operation, as determined by the internal bit of configuration register 116, the chip enable address encoder 114 drives the chip enable signals CE0-CE3 in a mutually exclusive manner such that only one chip enable signal can be asserted at a time. It is further noted that the particular values of the upper 13-bits of the addressing signal (LA[31:19]) that cause a chip enable signal CE0-CE3 to be asserted low is dependent upon the particular memory mapping scheme employed, and that such may vary from system to system. Referring next to Figure 4, a block diagram of a similar computer system 400 is shown that includes eight ROM banks 401-408 rather than four. The computer system 400 further includes a decoder 410 coupled between the memory controller 104 and the ROM banks 401-408. It is noted that the microprocessor 102 and memory controller 104 of Figure 4 are identical to those illustrated in Figure 1. It is similarly noted that each ROM bank 401-408 is identical to the corresponding ROM banks of Figure 1. In this embodiment, ROM bank 408 contains the boot code for computer system 400. Accordingly, upon power-up of computer system 400, microprocessor 102 again accesses the boot code by executing a read cycle and driving the address lines LA[31:0] with the prespecified boot code memory location. It is noted that this prespecified memory location for the boot code is identical to that specified above with respect to the configuration of Figure 1. It is also noted that during the initial power-up of computer system 400, memory controller 104 is incognizant of the number of ROM banks connected thereto. In response to the boot code address driven on address lines LA[31:0], chip enable address encoder 114 drives the chip enable signal CE0 low as it did for the configuration of Figure 1. In this configuration, however, decoder 410 receives the asserted chip enable signal CE0 and consequently drives the ROM bank enable input line 427 of ROM bank 408 low. It is noted that at this point, the chip enable signals CE1, CE2, and CE3 are still deasserted high. The microprocessor 102 is thereby provided the first byte of boot code through interface and control circuit 112, and similar cycles may be executed by microprocessor 102 to access successive memory locations that contain the remainder of the boot code. One of the operations induced by the boot code results in a value indicative of the number of ROM banks (i.e., eight) coupled to the computer system 400 to be stored within configuration register 116. In the preferred embodiment, an internal bit of configuration register 116 is set high to indicate the connection of eight ROM banks. During subsequent operations of computer system 400, and in response to the setting of this internal bit, the chip enable address encoder 114 encodes the chip enable output signals CE0-CE3 according to the table of Figure 5. During this mode of operation, chip enable address encoder 114 is programmed by configuration register 116 to assert one or more of the chip enable signals CE0-CE3 at a time to enable a selected ROM bank 401-408. For example, as illustrated in Figure 5, if the upper 13-bits of the addressing signal LA[31:19] comprise an address value mapped within ROM bank 6 (i.e., ROM bank 407), the chip enable address encoder drives the chip enable signals CE0 and CE3 low while keeping the chip enable signals CE1 and CE2 high. Similarly, if the addressing signals LA[31:19] comprise a value mapped to ROM bank 3 (i.e., ROM bank 404), the chip enable signals CE0 and CE1 are driven low while the chip enable signals CE2 and CE3 are held high. As a result of the memory controller 104 and the computer systems 100 and 400 of Figures 1 and 4, a common ROM array may be utilized to store both boot code as well as other software such as user software and the operating system. The memory controller includes a programmable chip enable address encoder that, prior to system configuration, drives the chip enable output lines of the memory controller in a mutually exclusive relationship such that only chip enable signal is asserted to access the boot code. Subsequently, the encoding of the chip enable signals is dependent upon a configuration bit indicative of the number of ROM banks connected thereto. The computer systems and memory controller provide flexibility in the system design (i.e., by allowing a variable number of ROM banks to be connected thereto) while minimizing the number of chip enable output lines incorporated on the integrated circuit. By minimizing the number of chip enable output lines provided on the integrated circuit, the overall pin count of the integrated circuit is decreased, thereby decreasing overall cost. It is noted that the non-volatile memory chip enable encoding method described above may be implemented in conjunction with a memory controller as taught within the copending, commonly assigned patent application EP-A-0 657 825 entitled "Non-Volatile Memory Array Controller Capable of Controlling Memory Banks Having Variable Bit Widths", by MacDonald et al.. Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. For example, ROM banks having memory capacities that differ from those of Figures 1 and 4 may be employed, and different specific encoding values (other than those of Figure 5) may be used for mapping and enabling the various ROM banks. In addition, although the embodiments illustrated above include either four or eight ROM banks, a greater or lesser number of ROM banks may similarly be connected. Furthermore, other types of non-volatile memory such as flash memory devices may be substituted in the place of one or more of the ROM banks 106-109 and 401-408. It is intended that the following claims be interpreted to embrace all such variations and modifications.

Claims: A non-volatile memory chip enable encoding method for enabling selected memory banks within a non-volatile memory array, wherein said non-volatile memory array is operatively coupled to a memory controller (104) including a plurality of chip enable output lines (CEO-CE3), said chip enable encoding method comprising the steps of: providing a plurality of memory banks (106-109, 401-408) each having a separate bank enable input line (120-123; 420-428); and depending upon the number of memory banks coupled to said memory controller, either: driving said plurality of chip enable output lines in a mutually exclusive relationship such that a chip enable signal is asserted at only one chip enable output line at a time to thereby enable a selected memory bank within said non-volatile memory array in configurations wherein said number of memory banks is less than or equal to a total number of chip enable output lines of said memory controller; or driving said plurality of chip enable output lines such that more than one chip enable signal is asserted at a time to thereby provide encoded information regarding a memory bank within said non-volatile memory array to be enabled in configurations wherein said number of memory banks is greater than a total number of chip enable output lines of said memory controller, characterised by: storing in a configuration register (116) configuration data indicative of the number of memory banks, the configuration data being derived from boot code stored in one of the memory banks, and asserting a chip enable signal at only one of the chip enable output lines to thereby enable the said one of the memory banks and access the boot code. A method as recited in claim 1 further comprising providing said encoded information to an input line of an external decoder. A method as recited in claim 2 further comprising providing a bank enable output signal from an output line of said decoder to a selected memory bank of said non-volatile memory array. A memory controller (104) comprising: a control circuit (112) configured to control accesses of data from a non-volatile memory array having a plurality of memory banks (106-109, 401-408), a chip enable encoder (114) including a plurality of chip enable output lines (CEO-CE3) each dedicated to conveying a respective chip enable signal, characterized in that it comprises : a configuration register (116) coupled to said control circuit, wherein said configuration register is configured to store a value indicative of the number of memory banks (106-109; 401-408) provided within said non-volatile memory array; and in that said chip enable encoder (114) is coupled to said configuration register and responsive to said value, wherein said chip enable encoder is programmable such that: in a first mode of operation when said value stored within said configuration register indicates that a first number of memory banks is provided within said non-volatile memory array, the chip enable output lines are driven in a mutually exclusive relationship such that only one chip enable signal is asserted at a given time to enable any given memory bank within said non-volatile memory array; and such that, in a second mode of operation when said value stored within said configuration register indicates that a second number of memory banks is provided within said non-volatile memory array, more than one chip enable signal is asserted at a time to thereby provide encoded information which indicates a memory bank within said non-volatile memory array to be enabled; wherein said value indicative of the number of memory banks provided within said non-volatile memory array is stored within said configuration register responsive to an execution of boot stored within one of said memory banks, and wherein said boot code is accessed when a chip enable signal is asserted at only one of the output lines of the memory controller. The memory controller as recited in claim 4 wherein the configuration register contains a default value upon power-up of the memory controller. The memory controller as recited in claim 5 wherein the default value causes said chip enable encoder to operate in said first mode of operation. A computer system including the memory controller as recited in claim 4 and further comprising a microprocessor (102) coupled to the memory controller. The computer system as recited in claim 7 further comprising a decoder (410) provided separate from an integrated circuit chip upon which said memory controller is fabricated wherein said decoder is configured to decode said encoder information and to generate a decoded output signal to thereby enable said memory bank during said second mode of operation. The computer system as recited in claim 7 or claim 8 wherein the microprocessor and the memory controller are fabricated on a common integrated circuit chip.

Inventors: GEPHARDT DOUGLAS D, MACDONALD JAMES R, GEPHARDT, DOUGLAS D., MACDONALD, JAMES R.
Applicants: ADVANCED MICRO DEVICES INC, ADVANCED MICRO DEVICES INC.
Application year: 1994
Main classification: G06F12
IPC codes: G06F12, G06F9, G11C17