Non-volatile memory array controllers

Abstract: A non-volatile memory controller is provided which is connectable directly to the local bus of a computer system and which allows access to one or more 32-bit banks of ROM and to an 8-bit bank of non-volatile memory. The 8-bit bank of non-volatile memory may be used, for example, to store BIOS code, and may be implemented using a ROM or flash memory device. The non-volatile memory controller includes a data router, a sequencer, and a set of output latches for routing the 8-bit BIOS code (stored within the 8-bit bank) to selected byte lanes of the local bus and for converting the 8-bit data to 32-bit local bus data. The non-volatile memory controller further supports high performance, 32-bit accesses to the user software stored within the 32-bit banks. If the system designer or user instead must maximize the memory capacity of the computer system, the 8-bit bank of memory may be replaced with a larger 32-bit bank of memory. In this configuration, a control signal is provided to the non-volatile memory controller to indicate that a 32-bit bank is connected rather than an 8-bit bank. The control signal causes the sequencer and the data router to be disabled. When a memory access to the 32-bit bank is executed, the non-volatile memory controller accesses the data within the 32-bit bamk and drives the data directly on the CPU local bus.

Description: This invention relates to computer systems and more particularly to non-volatile memory array controllers employed within computer systems. 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 memory 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 it 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 or the number of banks comprising this user ROM may typically be varied to suit the needs of a particular user. Figure 1 of the accompanying drawings is a block diagram that illustrates the memory organization of a typical prior-art computer system 10. The computer system 10 includes a microprocessor (CPU) 12 coupled to a RAM controller 14 and a bus bridge 16 through a CPU local bus 18. A random access memory (RAM) unit 20 is coupled to RAM controller 14. Bus bridge 16 provides an interface between CPU local bus 18 and an X-bus 22 and an ISA peripheral bus 24. An 8-bit BIOS ROM unit 26 is coupled to X-bus 22 through a BIOS ROM controller 28, and a 16-bit ROM bulk storage unit 30 is coupled to ISA peripheral bus 24 through a ROM controller 32. Microprocessor 12 is illustrative, for example, a model 80486 microprocessor. CPU local bus 18 is a 32-bit bus that supports high speed data transfers between microprocessor 12, RAM controller 14, and bus bridge 16, among other things. The 32-bit RAM unit 20 serves as a primary high speed memory resource for computer system 10. ROM bulk storage unit 30 is a relatively large storage unit having a capacity of, for example, two Mbytes. BIOS ROM unit 26, on the other hand, is a relatively small memory unit having a capacity of, for example, 128K bytes . Bus bridge 16 controls the transfer of data between CPU local bus 18 and ISA peripheral bus 24, and further controls the transfer of data between CPU local bus 18 and X-bus 22. Bus bridge 16 includes circuitry that converts 8-bit data on X-bus 22 to 32-bit data an CPU local bus 18, and includes similar circuitry that converts 16-bit data on ISA peripheral bus 24 to 32-bit data on CPU local bus 18. Since the BIOS code is typically shadowed within RAM unit 20 upon system initialization (that is, since the BIOS ROM 26 is transferred into RAM unit 20 upon system initialization and is executed out of the RAM), the use of an 8-bit memory device (rather than a 32-bit or a 16-bit device) for BIOS ROM 26 does not significantly degrade the overall speed characteristics of the system. The use of the 8-bit dedicated memory device for BIOS ROM 26 instead allows for a reduction in the cost of the system when a flash memory device is required, which is relatively expensive in terms of cost-per-bit of storage (compared to standard ROM devices). The bit width of the ROM bulk storage unit 30, on the other hand, can strongly impact the overall performance of the system, and thus it is desirable to maximize the bit width of the ROM bulk storage unit. Although the memory capacity or the number of banks comprising ROM bulk storage unit 30 can typically be varied according to the user requirements, the separate integrated circuit chip for BIOS ROM 26 is still provided and requires a separate BIOS ROM controller 28. This is true even if a flash memory device is not required to allow reprogramming of the BIOS code. Therefore, overall cost of the system may be relatively high due to the number of integrated circuits incorporated within the system. GB-A-2,171,230 discloses provision of a device for the connection of 8-bit and 16-bit modules to a 16-bit microprocessor system providing linear allocation of the addresses of an means for word exchange of all modules coupled to the 16-bit microprocessor system as well as means for increasing the rate of word exchange with the 16-bit modules. The modules are coupled to lower and upper data buses and send identifying signals to a circuit that coordinates control of data buffers. The disposition of the modules and their type is distinguished by means of these signals, whereby different data buffers are controlled to provide for byte and word exchanges. According to the present invention there is provided a computer system as defined in claim 1 of the appended claims and as stated below. Thus there is provided a computer system comprising: a microprocessor; a local bus coupled to said microprocessor and having four byte lanes; a memory controller coupled to said local bus; a memory data bus coupled to said memory controller and having four byte lanes; and a memory bank of non-volatile memory coupled to said memory data bus; wherein said memory controller includes: four output buffers, each said output buffer being for driving data from said memory bank on a respective one of the four byte lanes of said local bus; a data routing unit for selectively routing data from a first byte lane of the four lanes of said memory data bus through said data routing unit to a selected one of the four output buffers depending on a select signal; a latch into which a memory size input signal is latched upon system reset indicative of whether said memory bank has a first predetermined bit width or a second predetermined bit width; and an interface control unit for receiving local bus control signals including a local bus read signal, a local bus address signal and a byte enable signal, wherein said interface control unit is capable of generating memory control signals including a memory read signal and a memory address signal in response to said local bus control signals and said memory size input signal such that: (a) if said memory size input signal indicates that said memory bank has said first predetermined bit width then data is provided from said memory bank simultaneously to the four byte lanes of said memory data bus and hence to the four output buffers; and (b) if said memory size input signal indicates that said memory bank has said second predetermined bit width then, depending on said byte signal, data is provided from said memory bank through said first byte lane of said memory data bus and through said data routing unit to a chosen one of the four output buffers and hence to a corresponding chosen one of the four byte lanes of said local bus, or data is sequentially provided from said memory bank through said first byte lane of said memory data bus and through said data routing unit to a chosen two of the four output buffers and hence to a corresponding chosen two of the four byte lanes of said local bus, or data is sequentially provided from said memory bank through said first byte lane of said memory data bus and through said data routing unit to the four output buffers and hence to the four byte lanes of said local bus. The computer system as defined above may comprise a further bank of non-volatile memory coupled to said memory data bus, wherein said interface control unit is capable of generating said memory control signals in response to said local bus control signals such that data is provided from said further bank of non-volatile memory simultaneously to said four byte lanes of said memory bus. According to the present invention there is also provided a corresponding memory controller as defined in claim 6 of the appended claims, and there is also provided a corresponding method for operating a memory controller as defined in claim 10 of the appended claims. Embodiments of the invention will now be described, by way of example, with reference to Figures 2 to 5 of the accompanying drawings, in which: Figure 2 is a block diagram of computer system including a non-volatile ROM array controller. Figure 3 is a block diagram of the non-volatile ROM array controller connected to a ROM array including several 32-bit banks of ROM and an 8-bit bank of ROM. Figure 4 is a block diagram of the memory controller connected to a ROM array including only 32-bit banks of ROM. Figures 5a-5d are flow diagrams that depict the operation of the memory controller. Referring to Figure 2, a block diagram of a computer system 100 including a non-volatile memory controller 102 is shown. The non-volatile memory controller 102 is coupled to a microprocessor 104 through a CPU local bus 106 and to a ROM array 108 through a memory bus 110. A RAM controller 112 and a bus bridge 114 are further shown coupled to the CPU local bus 106. RAM controller 112 controls memory accesses to a RAM unit 116, and bus bridge 114 supports transfer cycles to peripheral devices (not shown) coupled to a peripheral bus 118. Microprocessor 104 is illustrative, for example, a model 80486 microprocessor, and peripheral bus 118 is illustrative, for example, a PCI standard configuration bus. ROM array 108 includes four banks 120-123 of read only memory. In the embodiment of Figure 2, banks 120-122 are 32-bit banks of memory each having a capacity of, for example, 512K bytes. Depending upon the system configuration, bank 123 may be either an 8-bit bank of memory or a 32-bit bank of memory. Non-volatile memory controller 102 includes an interface control unit 120 coupled to a latch 122, a data routing unit 124, and an output buffers unit 126. Non-volatile memory controller 102 controls the transfer of 32-bit data from ROM banks 120-122 to the CPU local bus 106. An input signal labeled the "ROM SIZE IN" signal is provided to non-volatile memory controller 102 and is indicative of the bit width of ROM bank 123. The operation of the non-volatile memory controller will be better understood from the following. Referring to Figure 3, a block diagram is shown that illustrates ROM array 108 and non-volatile memory controller 102 in greater detail. Circuit portions that correspond to those of Figure 2 are numbered identically. In the configuration of Figure 3, banks 120-122 are 32-bit banks and ROM bank 123 is an 8-bit ROM bank. The memory bus 110 includes a 32-bit data bus MD[31:0] and is depicted with four byte lanes formed by data lines MD[7:0], MD[15:7], MD[23:16], and MD[31:24]. The data output port of ROM banks 120-122 are connected to data lines MD[31:0], while the data output port of ROM bank 123 is connected to only the lower byte lane formed by data lines MD[7:0]. Non-volatile memory controller 102 generates a set of chip enable output signals CE[3:0], an output enable signal, and memory address signal MA[18:0]. These signals are provided to ROM array 108 for controlling the reading of data from the ROM banks 120-123. Interface control unit 120' includes a control logic block 130 coupled to a sequencer 132 and an address translator 134. Interface control unit 120' is connected by a first set of control lines (S 0 and S 1 ) to the data routing unit 124 and by a second set of output lines (138A-138D and 139) to data buffers 126A-126D (shown generally in Figure 2 as output buffers unit 126). Data buffer 126A is coupled at a first port to data lines MD[31:24] of the memory bus 110 and at a second port to the data lines LD[31:24] of CPU local bus 106. Data buffer 126B is similarly coupled to memory bus lines MD[23:16] and lines LD[23:16], and data buffer 126C is connected to memory bus lines MD[15:7] and to CPU local bus data lines LD[15:7]. Data buffer 126D is finally coupled to a channel "A" port of data routing unit 124 and to CPU local bus data lines LD[7:0]. The operation of memory controller 102 is next considered for the configuration of Figure 3. Upon reset of the computer system, the ROM SIZE IN signal at line 136 of memory controller 102 is driven high and is accordingly latched into latch 122. A ROM SIZE OUT signal is thus driven high at an output line 137 of latch 126, and thereby indicates to the interface control unit 120 that ROM bank 123 is an 8-bit ROM. It is noted that line 136 could be passively pulled high to drive the ROM SIZE OUT signal high upon reset (in the absence of a ROM SIZE IN signal) to thereby indicate that a default 8-bit bank is connected within the computer system. Following reset, if a memory read cycle is executed by the system microprocessor on CPU local bus 106, a memory read signal MEMRD and a local bus address signal LA[31:0] is received by interface control unit 120'. Interface control unit 120 accordingly determines whether the memory read request corresponds to a memory location contained by one of the ROM banks 120-123. If the memory read request corresponds to a location contained by one of the 32-bit ROM banks 120-122, address translator 134 translates the local bus address signal LA[31:0] to a corresponding physical address of the ROM bank 120-122 being accessed, and drives the memory address signal MA[18:0] with the physical address. Control logic unit 130 simultaneously drives the chip enable signal CE[3:0] to enable one of the ROM banks 120-122, and asserts the output enable signal to cause the requested data to be driven from the ROM bank (120-122) on memory bus data lines ND[31:0]. If, for example, the memory read operation executed on CPU local bus corresponds to a memory location contained by ROM bank 120, the translated physical address MA[18:0] is provided to ROM bank 120. ROM bank 120 is simultaneously selected by one of the chip enable signals CE[3:0] and the requested data is driven at the output port of ROM bank 120 in response to the asserted OUTPUT ENABLE signal. At the same time the requested data is driven on the memory bus data lines [31:0], interface control unit 120' drives the select lines S 0 and S 1 of data routing unit 124 such that data path "A" is selected. Accordingly, when the 32-bit data is driven on the memory data lines MD[31:0], the three upper bytes of the 32-bit data are provided directly to the data buffers 126A-126C, respectively. The lower byte of data on lines MD[7:0] is simultaneously channelled through data routing unit 124 and is provided to data buffer 126D. The interface control unit 120' then generates a set of control signals on lines 138A-138D and on line 139 to latch the 32-bit data into buffers 126A-126D and to enable the tri-stated output ports of buffers 126A-126D. Interface control unit 120' simultaneously asserts a ready signal RDY to indicate to the microprocessor that the requested 32-bit data is being driven on the CPU local bus 106. If, on the other hand, the memory read request executed on CPU local bus 106 corresponds to a memory location contained by the 8-bit BIOS ROM bank 123, and if the request is for 16 or 32-bits of data (as indicated by the byte enable signal BE[3:0]), interface control unit 120' executes several successive memory read operations to access the 16 or 32-bits of data from ROM bank 123. During these memory read operations, the data routing unit 124 is controlled to channel each 8-bit byte of data from ROM bank 123 to the appropriate byte lane of CPU local bus 106 (i.e., in this embodiment, CPU local bus includes a first byte lane LD[7:0], a second byte lane LD[15:8], a third byte lane LD[23:16], and a fourth byte lane LD[31:24]). For example, if a 32-bit memory read cycle is executed by the microprocessor on CPU local bus 106, interface control unit 120' receives the memory read signal MEMRD along with the local bus addressing signal LA[31:0]. Interface control unit 120' accordingly translates the local bus address signal LA[31:0] to a corresponding memory address signal MA[18:0], drives the chip enable signals CE[3:0] to enable ROM bank 123, and asserts the OUTPUT ENABLE signal. Since the ROM SIZE OUT signal stored by latch 122 indicates that the ROM bank 123 is an 8-bit bank, and since the byte enable signals BE[3:0] indicate that the current request is a 32-bit transfer from ROM bank 123 (i.e., signal BE[3:0] is set at "0000"), the sequencer 132 drives the select lines S 0 and S 1 such that data routing unit 124 selects data path "A". The 8-bit byte of data read from ROM bank 123 is thereby transferred to data buffer 126D. At the same time, control logic unit 130 asserts a control signal on line 138D to latch the byte of data into data buffer 126D. Control logic unit 130 then deasserts the OUTPUT ENABLE signal provided to ROM bank 123. Sequencer 132 next causes the address value on memory address bus MA[18:0] to increment by one, and drives the select lines S 0 and S 1 such that data path "B" is selected. The control logic unit 130 again asserts the OUTPUT ENABLE signal, and the next byte of data from ROM bank 123 is provided on lines MD[7:0] and is routed through data routing unit 124 to data buffer 126C. At this point, control logic unit 130 asserts a control signal at line 138C to latch the data into data buffer 126C. As before, the control logic unit 130 then deasserts the OUTPUT ENABLE signal, and sequencer 132 increments the memory address and causes data routing unit 124 to select data path "C". The OUTPUT ENABLE signal is reasserted, and the third 8-bit byte of data is routed through data routing unit 124 and is latched into data buffer 126B. Finally, a fourth byte of data is read from ROM bank 123 by again deasserting the OUTPUT ENABLE signal, incrementing the memory address signal MA[18:0] by one, selecting data path "D" of data routing unit 124, and reasserting the OUTPUT ENABLE signal. The 8-bit data is thereby routed through data routing unit 124 and is latched into data buffer 126A. When the four bytes of requested data (stored within the successive locations of ROM bank 123) have been latched within buffers 126A-126D, a control signal is asserted by interface control unit 120 at line 139 to enable the tri-state output ports of data buffers 126A-126D to thereby drive the 32-bit data simultaneously on lines LD[31:0] of CPU local bus 106. The ready signal RDY is concurrently asserted by interface control unit 120' to indicate to the microprocessor that the data is now available. The operation of non-volatile memory controller 102 is similar if the memory read cycle executed by the microprocessor on CPU local bus 106 is a 16-bit transfer request as indicated by the byte enable signals BE[3:0]. In this situation, address translator 134 determines the address location of ROM bank 123 that contains the lower byte of data corresponding to the local bus addressing signal LA[31:0], and drives the memory address signal MA[18:0] accordingly. Depending upon the byte enable signal BE[3:0], the data routing unit 124 is controlled to provide successive bytes of data from ROM bank 123 to either data buffers 126A and 126B through data paths "D" and "C", respectively, or to data buffers 126C and 126D through byte paths "B" and "A", respectively. For example, if the byte enable signal BE[3:0] is set to "1100", address translator 134 determines the starting address location of the first byte of requested data and data routing 124 is controlled to first select data path "A". The OUTPUT ENABLE signal is asserted by control logic unit 130 and the first byte of the data is thereby routed through data routing unit 124 to data buffer 126D. The control signal at line 138D is simultaneously asserted to latch the data into data buffer 126D. The OUTPUT ENABLE signal received by ROM bank 123 is subsequently deasserted by interface control unit 120', and the sequencer 132 increments the memory address signal MA[18:0] by one, and causes data routing unit 124 to select data path "B". The OUTPUT ENABLE signal is then reasserted, and the next byte of data is provided from ROM bank 123 through data routing unit 124 and is latched into data buffer 126C. Once both bytes of data have been provided to data buffers 126C and 126D, a control signal on line 139 is asserted by interface control unit 120' to enable the tri-stated output ports of data buffers 126A-126D, and the 16-bit data is thereby driven on lines LD[15:0] of CPU local bus 106. The ready signal RDY is simultaneously asserted by interface control unit 120' to indicate that valid data is being driven on CPU local bus 106. If a similar memory read cycle is executed on CPU local bus 106 while the byte enable signal [3:0] is set at "0011", the memory address lines MA[18:0] are driven with a starting value which is two locations above the starting value of the previous situation (when the byte enable signal BE[3:0] was set at "1100"). For this situation, during the first memory access operation, the first 8-bit byte of data is transferred from ROM bank 123 through the first data routing unit 124 and is latched into buffer 126B. During the next memory access, the second byte of data stored within the subsequent memory location is channeled through channel "D" of data routing unit 124 to channel "C" of buffer 126A. When the two bytes of data have been latched into buffers 126A and 126B, the control signal at line 139 is asserted by interface control unit 120 to enable the tri-stated output ports of data buffers 126A-126D, and the data is driven on lines LD[31:16] of CPU local bus 106. Interface control unit 120' simultaneously asserts the ready signal RDY to indicate to the microprocessor that valid data is being driven on CPU local bus 106. If the byte enable signals BE[3:0] instead indicate that the current memory read cycle executed on CPU local bus 106 is a request for a single 8-bit byte of data, address translator 134 determines the address location within ROM bank 123 that contains the requested byte of data, and drives the memory address signal MA[18:0] accordingly. Depending upon the byte enable signal BE[3:0], data routing unit 124 is controlled such that the 8-bit byte data is channeled through one of the paths A-D to the corresponding byte lane of CPU local bus 106 (i.e., through one of the data buffers 126A-126D). When the byte of data is driven on the appropriate byte lane of CPU local bus 106, the ready signal RDY is asserted by interface control unit 120' to complete the cycle. Referring next to Figure 4, a block diagram is shown that illustrates another configuration of the computer system in which ROM bank 123 of ROM array 108 is a 32-bit ROM bank. During operation for this configuration, upon reset, the ROM SIZE IN signal provided to latch 122 is driven low and is latched into latch 122. Accordingly, the ROM SIZE OUT signal is driven low to provide an indication to the interface control unit 120' that ROM bank 123 is a 32-bit ROM bank. During operation for this configuration, the select signals S 0 and S 1 are driven such that data routing unit 124 always channels data through data path "A", and sequencer 132 is disabled. Accordingly, when a memory read cycle is executed on CPU local bus 106 that corresponds to a memory location of ROM bank 123, the address translator 134 translates the local bus address signal LA[31:0] and drives the corresponding physical address signal on lines MA[18:0]. The interface control unit 120 drives the chip enable signals CE[3:0] to enable ROM bank 123, and asserts the OUTPUT ENABLE signal to drive the 32-bit data from ROM bank 123 onto the memory data lines MD[31:0]. The 32-bit data is thereby provided to buffers 126A-126D. The interface control unit 120' then asserts the control signal at line 139 to enable the tri-stated output ports or buffers 126A-126D to thereby drive the 32-bit data on the local bus data lines LD[31:0]. The ready signal is simultaneously asserted by interface control unit 120' to indicate to the microprocessor that valid data is being driven on CPU local bus 106. This completes the memory access operation. It is noted that for this configuration, read requests from bank 123 are handled identically to those of banks 120-122. Figures 5A-5D are flow diagrams that depict the operation of memory controller 102 for a 32-bit write operation. It is noted that interface control unit 120' may be implemented using a state machine that operates according to the above description. It is further noted that computer-aided design tools may be employed to reduce the interface control unit 120 to a sequential logic circuit. Exemplary computer-aided design tools include the VHSIC hardware description language and the Verilog description language. In accordance with the system described above, a memory controller is provided that allows the bit width of memory bank 123 to be varied according to the user's requirements. In one configuration, memory bank 123 may comprise flash memory having a relatively small bit width for storing BIOS code. The advantages of flash storage can thereby be provided while minimizing cost. Larger capacity and higher performance ROM banks having a wider bit width are additionally provided for storing, for example, user application software and/or the disk operating system software. In another configuration, the 8-bit memory bank may be replaced with a larger capacity, larger bit width memory bank. This configuration is suitable for applications in which the memory capacity must be maximized or if flash storage is not required for the BIOS code. Accordingly, the memory controller advantageously supports low cost systems as well as high memory capacity systems. It is noted that the memory controller 102 described above may further support memory write operations. Such operations may be desirable to reprogram the BIOS code contained by the flash memory of ROM bank 123. To support such memory write operations, data routing unit 124 and buffers 126A-126D are bidirectional. Control signals similar to those described previously are provided to the ROM array 108 and data buffers 126A-126D to effectuate a desired write operation. The generation of the addressing signal MA[18:0] and the control of data routing unit 124 is identical to that described previously. Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. For example, microprocessor 104 and non-volatile memory controller 102 could be fabricated on a common integrated processor chip. Furthermore, it is understood that the particular bit widths and capacities or banks 120-123 could be different from those described above, and that other non-volatile memory devices such as flash memory devices could be used to implement banks 120-123.

Claims: A computer system (100) comprising: a microprocessor (104); a local bus (106) coupled to said microprocessor and having four byte lanes; a memory controller (102) coupled to said local bus (106); a memory data bus (110) coupled to said memory controller (102) and having four byte lanes; and a memory bank (123) of non-volatile memory coupled to said memory data bus (110); wherein said memory controller (102) includes: four output buffers (126A-D), each said output buffer being for driving data from said memory bank (123) on a respective one of the four byte lanes of said local bus (106); a data routing unit (124) for selectively routing data from a first byte lane (MD[7:0]) of the four lanes of said memory data bus through said data routing unit to a selected one of the four output buffers (126A-D) depending on a select signal (S 0 , S 1 ); a latch (122) into which a memory size input signal (136) is latched upon system reset indicative of whether said memory bank (123) has a first predetermined bit width or a second predetermined bit width; and an interface control unit (120) for receiving local bus control signals (MEMRD, LA, BE) including a local bus read signal (MEMRD), a local bus address signal (LA) and a byte enable signal (BE), wherein said interface control unit (120') is capable of generating memory control signals (CE, MA, OUTPUT ENABLE) including a memory read signal (OUTPUT ENABLE) and a memory address signal (MA) in response to said local bus control signals and said memory size input signal such that: (a) if said memory size input signal (136) indicates that said memory bank (123) has said first predetermined bit width then data is provided from said memory bank (123) simultaneously to the four byte lanes of said memory data bus (110) and hence to the four output buffers (126A-D); and (b) if said memory size input signal (136) indicates that said memory bank (123) has said second predetermined bit width, then depending on said byte enable signal, data is provided from said memory bank (123) through said first byte lane (MD[7:0]) of said memory data bus (110) and through said data routing unit (124) to a chosen one of the four output buffers (126A-D) and hence to a corresponding chosen one of the four byte lanes of said local bus (106), or data is sequentially provided from said memory bank through said first byte lane of said memory data bus and through said data routing unit to a chosen two of the four output buffers and hence to a corresponding chosen two of the four byte lanes of said local bus, or data is sequentially provided from said memory bank through said first byte lane of said memory data bus and through said data routing unit to the four output buffers and hence to the four byte lanes of said local bus. The computer system as claimed in claim 1 wherein said memory controller further includes a sequencer (132) coupled to said data routing unit (124) for providing said select signal (S 0 , S 1 ) to said data routing unit. The computer system as claimed in claim 1 or claim 2 wherein said interface control unit (120) includes an address translator (134) configured to translate said local bus address signal into said memory address signal. The computer system as claimed in any one of claims 1 to 3 further comprising a further bank (120, 121, 122) of non-volatile memory coupled to said memory data bus (110), wherein said interface control unit (120') is capable of generating said memory control signals in response to said local bus control signals such that data is provided from said further bank of non-volatile memory simultaneously to said four byte lanes of said memory bus (110). The computer system as claimed in claim 4 wherein the four byte lanes of the local bus (106) and the four byte lanes of the memory data bus (110) are reach 8 bits wide, wherein said first predetermined bit width is 32 bits, wherein said second predetermined bit width is 8 bits, and wherein said further memory bank (120, 121, 122) has a bit width of 32 bits. A memory controller (102) comprising: four output buffers (126A-D), each said output buffer being for driving data from a memory bank (123) of non-volatile memory on a respective one of four byte lanes of a local bus (106); a data routing unit (124) for selectively routing data from a first byte lane (MD)[7:0]) of four lanes of a memory data bus (110) through said data routing unit to a selected one of the four output buffers (126A-D) depending on a select signal (S 0 , S 1 ); a latch (122) into which a memory size input signal (136) is latched upon system reset indicative of whether said memory bank (123) has a first predetermined bit width or a second predetermined bit width; and an interface control unit (120') for receiving local bus control signals (MEMRD, LA, BE) including a local bus read signal (MEMRD), a local bus address signal (LA) and a byte enable signal (BE), wherein said interface control unit (120) is capable of generating memory control signals (CE, MA, OUTPUT ENABLE) including a memory read signal (OUTPUT ENABLE) and a memory address signal (MA) in response to said local bus control signals and said memory size input signal such that: (a) if said memory size input signal (136) indicates that said memory bank (123) has said first predetermined bit width then data is provided from said memory bank (123) simultaneously to the four byte lanes of said memory data bus (110) and hence to the four output buffers (126A-D); and (b) if said memory size input signal (136) indicates that said memory bank (123) has said second predetermined bit width then, depending on said byte enable signal, data is provided from said memory bank (123) through said first byte lane (MD[7:0]) of said memory data bus (110) and through said data routing unit (124) to a chosen one of the four output buffers (126A-D) and hence to a corresponding chosen one of the four byte lanes of said local bus (106), or data is sequentially provided from said memory bank through said first byte lane of said memory data bus and through said data routing unit to a chosen two of the four output buffers and hence to a corresponding chosen two of the four byte lanes of said local bus, or data is sequentially provided from said memory bank through said first byte lane of said memory data bus and through said data routing unit to the four output buffers and hence to the four byte lanes of said local bus. The memory controller claimed in claim 6, wherein said memory controller further includes a sequencer (132) coupled to said data routing unit (124) for providing said select signal (S 0 , S 1 ) to said data routing unit. The memory controller as claimed in claim 6 or claim 7 wherein said interface unit (120) further includes an address translator (134) for translating said local bus address signal (LA) into said memory address signal (MA). A memory controller as claimed in any one of claims 6 to 8 wherein the four byte lanes of the memory data bus (110) are each 8 bits wide, wherein said second predetermined bit width is 8 bits. A method for operating a memory controller (102), wherein said memory controller is connected to a first memory bank (120, 121, 122), to a second memory bank (123), and to four byte lanes of a local bus (106), said method comprising the steps of: providing to said memory controller and latching (122) into said memory controller upon system reset a memory size input signal (136) indicative of the bit width of said second memory bank; executing a memory read cycle on said local bus; determining whether said read cycle corresponds to a memory location contained by said first memory bank or by said second memory bank; reading four bytes of data from said first memory bank (120, 121, 122) simultaneously and providing said four bytes of data to said four byte lanes of said local bus 106 if said memory read cycle corresponds to a location within said first memory bank; and (a) if said memory read cycle corresponds to a memory location contained by said second memory bank (123) and said memory size input signal (136) indicates that said second memory bank has a first predetermined width: reading four bytes of data from said second memory bank simultaneously and providing said four bytes of data to said four byte lanes of said local bus (106); or (b) if said memory read cycle corresponds to a memory location contained by said second memory bank (123) and said memory size input signal (136) indicates that said second memory bank has a second predetermined bit width: providing a byte enable signal (BE) to said memory controller and, depending on said byte enable signal: (i) reading a single byte of data from said second memory bank (123) and providing said byte of data to a data routing unit (124); selectively (S 0 , S 1 ) routing said byte of data from said routing unit (124) to a chosen one of four buffers (126A-D); and providing said byte of data from said chosen buffer to a corresponding one of the four byte lanes of the local bus (106); or (ii) reading two bytes of data from said second memory bank (123) and sequentially providing said two bytes of data to said data routing unit (124); selectively (S 0 , S 1 ) routing said two bytes of data from said data routing unit (124) sequentially to a chosen two of said four buffers (126A-D); and providing said two bytes of data simultaneously from said chosen two buffers to a corresponding two of the four byte lanes of the local bus; or (iii) reading four bytes of data from said second memory bank (123) and sequentially providing said four bytes of data to said data routing unit (124); selectively (S 0 , S 1 ) routing said four bytes of data from said data routing unit (124) sequentially to said four buffers (126A-D); and providing said four bytes of data simultaneously from said four buffers to the four byte lanes of the local bus.

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: G06F13
IPC codes: G06F12, G06F13