Shared RAM access arrangement

Abstract: Apparatus for providing shared access to a shared RAM in situations where the shared RAM is electrically connected to a relatively slow address/data bus, and shared access is desired from a relatively faster address bus and data bus. An address buffer is connected between the address bus and the address/data bus, the address buffer for selectably buffering address information between those buses under control of an address buffer selection signal. A data buffer is connected between the data bus and the address/data bus, the data buffer for selectably buffering data information between those buses under control of a data buffer selection signal. A gate array is connected to the address/data bus, the gate array controlling access the shared RAM. A logic array is connected to the address bus and is responsive to address information on the address bus which corresponds to addresses of the shared RAM. In response to those addresses, the logic array activates the address buffer selection signal so as to cause the address buffer to buffer address information from the address bus onto the address/data bus, and thereafter by deactivating the address buffer selection signal and activating the data buffer selection signal so as to cause the data buffer to buffer data information from or to the address/data bus.

Description: The present invention pertains to a shared RAM access arrangement, particularly an arrangement in which the shared RAM is electrically connected to a relatively slow bus controlled by a first microprocessor, and is also accessed by a second microprocessor which operates on a relatively faster bus. Shared RAM is a relatively common arrangement for permitting first and second (or more) microprocessors to communicate with one another. For example, it is now conventional for a first microprocessor to store a message or data in shared RAM, and for the second microprocessor to access the message or data in shared RAM for subsequent processing. Microprocessors, and the buses to which they are connected, differ in both speed and bit width. These differences have caused difficulties in providing an access arrangement to shared RAM, for example, in a situation where shared RAM is electrically connected to a relatively slow microprocessor and address bus to be shared with a second microprocessor which is relatively faster. Likewise, difficulties are encountered when the address or data bus to which the shared RAM is connected has a different width from the address or data bus of the second microprocessor. Various solutions have been proposed to permit access to shared RAM when the shared RAM is electrically connected to a bus which is relatively slower than the bus from which shared access is desired. Those solutions, however, are different from the invention herein. EP-A-0580961 describes an enhanced processor buffered interface for use in a multiprocessor system which can access a shared memory. The processors can access the shared memory via a global bus and a slower local bus to which the shared RAM is connected. In order to allow access between the processors and the shared RAM, address and data buffers are provided in addition to control circuitry which controls the accessing of the shared memory. According to one aspect, the present invention provides an apparatus for accessing a shared RAM via an address bus and a data bus, both of which interface to a slower address/data bus to which the shared RAM is connected, the apparatus comprising: an address buffer connected between the address bus and the address/data bus, for buffering address information between the address bus and the address/data bus; a data buffer connected between the data bus and the address/data bus, for buffering data information between the data bus and the address/data bus; a microprocessor which is connected to the address bus and to the data bus and which is operable to output address information onto the address bus in order to access the shared RAM, the address information corresponding to addresses of the shared RAM; a gate array connected to the address/data bus, for controlling access to the shared RAM; and a logic array connected to the address bus, for receiving the address information output by said microprocessor on the address bus and for outputting control signals for controlling access of said shared RAM by said microcontroller; characterised in that said address buffer is operable to selectably buffer said address information under control of an address buffer selection signal; said data buffer is operable to selectably buffer said data information under control of a data buffer selection signal; and said logic array is operable, in response to address information on the address bus which corresponds to an address of the shared RAM, (i) to activate the address buffer selection signal so as to cause said address buffer to buffer address information from the address bus onto the address/data bus; and thereafter (ii) to deactivate the address buffer selection signal and to activate the data buffer selection signal so as to cause said data buffer to buffer data information from or to the address/data bus. By virtue of the foregoing arrangement, since the relatively fast data and address buses are buffered onto a single combined address/data bus, and since timing for the required address and data buffers are controlled by a logic array, shared access is provided to the shared RAM even though the shared RAM is electrically connected to a slower bus. In particularly preferred embodiments of the invention, the shared RAM access arrangement is implemented in a network interface board which cooperatively communicates with a multi-device controller. The multi-device controller breaks out the peripheral capabilities of a digital copier such as by providing direct access to the video bus of the digital copier whereby the multi-device controller is able to break the digital copier into a digital scanner and a digital printer. Multi-device controller controls the network interface board as well as other boards which are connected to the multi-device controller such as facsimile boards, image processor boards, and the like. The network interface board interfaces to the LAN so as to provide network users with access to the devices controlled by the multi-device controller as well as with access to the digital scanner and printer capabilities of the digital copier. The network interface board operates in a multi-tasking environment whereby multiple network users are able to access this functionality concurrently. For example, because of the multi-tasking capability of the interface board, it is possible for one network user to print a document on the digital copier, a second network user to scan a document concurrent with the first network user's printing of his document, and, in cases where the multi-device controller includes facsimile capability, a third network user to send a facsimile concurrently with the first and second network users' jobs. According to another aspect, the present invention is a method of permitting access by a microprocessor to a shared RAM via a fast address bus and a fast data bus, both of which are interfaced to the shared RAM by a slower address/data bus. The method includes the steps of receiving address information from the address bus, the address information being output onto the address bus by the microprocessor, and outputting a chip enable signal in a case where the address information received in the receiving step matches known address information, the chip enable signal for enabling a gate array used to access the shared RAM. Also included in the method are steps of activating an address buffer selection signal and a data buffer selection signal in a case where the address information received in the receiving step matches the known address information, the address buffer selection signal for enabling the address buffer, and the data buffer selection signal for enabling the data buffer. Address information is buffered from the address bus to the address/data bus via the address buffer, and data information is buffered between the data bus and the address/data bus via the data buffer. The shared RAM is accessed in accordance with the address information and the data information buffered in the buffering step. The shared RAM is accessed by the gate array which has been enabled by the chip enable signal output in the outputting step. Advantageously, according to the foregoing method, a microprocessor is able to access a shared RAM by outputting address information corresponding to addresses of the shared RAM onto an address bus, whereafter the address information, along with data information, is buffered between a fast address bus and a fast data bus to a logic array via slower address/data bus, where the address information is used to access the shared RAM. As a result, the shared RAM can be accessed by merely outputting the address information onto the address bus, regardless of the speeds of the address bus, the data bus and the address/data bus. This brief summary has been provided so that the nature of the invention may be understood quickly. A more complete understanding of the invention can be obtained by reference to the following detailed description of the preferred embodiment thereof in connection with the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is an overall system view of a network interface board installed in a multi-device controller (MDC) which includes a core board for controlling a digital copier. Figure 2 is a cut away perspective view of the MDC for showing individual boards mounted therein. Figure 3 is a functional block diagram of the MDC. Figures 4(a) through 4(d) are views for explaining master/slave communication between the core board in the MDC and other boards in the MDC. Figure 5 is a view showing the physical layout of components on a network interface board. Figure 6 is a block diagram of the network interface board. Figure 7 is a view illustrating program steps stored in persistent storage on the network interface board. Figure 8 is a detailed block diagram of the network interface board. Figure 9(a) is an example of conventional 8-chip select logic. Figure 9(b) and 9(c) are examples of chip select logic used in the present invention. Figure 10 is a timing diagram for explaining an interface for shared RAM. Figure 11 is a flow diagram for explaining multi-tasking operation of the network interface board. Figure 12 is a flow diagram which shows process steps for generating chip select signals according to the present invention. Figure 13 is a flow diagram which shows process steps for interfacing a fast address bus and a fast data bus to a slower address/data bus according to the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT [1. System Description] Figure 1 is an overall system view of a network interface board (hereinafter "NIB") 50 installed in a multi-device controller 20 which also controls a digital copier 10. As seen in Figure 1, a digital copier 10 includes a document feed section 11, a paper supply storage section 12 and a sorter/stacker 14. A suitable digital copier for use in the present. invention is a Canon GP55F digital copier. As is known, such digital copiers operate to feed documents in document feed section 11 past a digital scanner so as to obtain a digital image of the scanned-in document. An unshown internal printer prints the scanned-in digital image onto paper supplied from paper storage section 12 and ejects the printed image to sorter/stacker 14. A multi-device controller (hereinafter "MDC") 20 accesses an interface bus 13 of digital copier 10 so as to break out the functionality of the scanner section and the printer section. As described in more detail below with respect to Figures 2 and 3, MDC 20 includes a core board which accesses the interface bus of digital copier 10 and which provides access to that interface bus for plural option boards which are connectable to the core board. The option boards communicate with the core board via master/slave communication through dual port RAM on each option board. Most typically, one of the option boards will include an interface board so as to permit connection to MDC 20 by a stand-alone computer such as computer 21. Option boards may also include a facsimile board so as to permit connection to telephone 22, rasterizer boards so as to permit rasterization of page description language commands such as PCL5, LIPS, Postscript, and the like, and image processor boards which perform advanced image processing functions such as the block select and page analysis functions described in co-pending application Serial No. 08/171,720, filed December 22, 1993 "Method And Apparatus For Selecting Text And/Or Non-Text Blocks Stored In A Document" (EP-A-0660256 corresponds). Most notably, according to the present invention one of the option boards is a network interface board (NIB) 50 connectable to the core board in MDC 20 so as to permit access to a local area network. In operation, digital copier 10 is operable in a stand-alone mode as a standard digital copier. In addition, it is operable as a scanner or as a printer to local users via personal computer 21. Most typically, via NIB 50, and in coordination with MDC 20, digital copier 10 is operable as a multifunctional network device accessible by any of multiple network users which may desire concurrent use of the scanner in copier 10, the printer in copier 10, or one of the option boards in MDC 20 such as the aforementioned facsimile option board, rasterizer option board, or image processing option board. Figure 2 is a cut-away perspective view of MDC 20. As mentioned above, MDC 20 includes core board 24, interface board 26, option board 27 such as a facsimile or rasterizer or image processing option board, and NIB board 50. Figure 3 is a block diagram of MDC 20. As shown in Figure 3, core board 24, interface board 26, option board 27, and NIB board 50 are all connected to mother board by CPU bus 29 and video bus 30. Core board 24 includes high speed processing circuitry so as to make interface bus 13 from digital copier 10 available on video bus 30. In particular, via connectors 31 and FIFO's 32, and under control of selector 33, core board 24 makes filter processing 34, density processing 35, digital processing 36, rotation processing 37, enlargement processing 38 and smoothing processing 39, available via video bus 30 to any of the connected option boards such as NIB board 50. Core board 24 also includes CPU 41 to control the interface board 26 and any connected option boards. CPU 41 is connected to CPU bus 40, to which are also connected RAM memory 42, RS-232 serial controller 43, and SCSI controller 44 which controls 40 MB hard disk 45. The core board controls all connected option boards using master/slave communications routed via a dual port RAM on each of the option boards. In such master/slave communications, which is described below in Section 1.1, the option boards return responses to access inquiry commands from the core board. Repetition of this process prevents collision during inter-board communications which are also permitted. Interface board 26 is operated under direct control of CPU 41 via CPU bus 40 on core board 24 and CPU bus 29 on mother board 28. In particular, interface board 26 includes memory 46 as well as various controllers 47 for controlling parallel communications such as those with computer 21 via Centronix controller, SCSI communications via SCSI controller, and serial communications via RS-232 controller. [1.1 Master/Slave Communication] All communications in the MDC are relayed through core board 24. For example, reception or transmission of image data to interface bus 13 of digital copier 10 is relayed from or to option boards or the NIB board via core board 24. In addition, inter-board communication is relayed through the core board. For example, in a situation where option board 27 includes facsimile capability, a network user accesses that facsimile capability via NIB board 50 which relays communications to option board 27 through core board 24. This occurs through cyclic transmissions of access inquiry commands by core board 24 to the dual port RAM in each of the option boards. Each option board responds to its access inquiry command from core board 24 by issuing a response. The response may include a request for the core board to issue further commands to the option board, such as a command for the option board to transmit data to the core board or to put video data onto video bus 30. The core board reads the response from the dual port RAM of the option board and processes the response appropriately. For example, when transmitting facsimile data from a network via NIB board 50, when NIB board 50 reads its access inquiry command from core board 24 on the NIB's dual port RAM, it issues a response to the core board indicating that facsimile data is to be transmitted to an option board. Core board 24 would then issue a command for the NIB board 50 to output the facsimile data; the NIB board 50 responds to this command by writing the facsimile data to its dual port RAM. Core board 24 retrieves the facsimile data, and, in its next cycle, core board 24 issues an access inquiry command to the dual port RAM of facsimile option board 27, the access inquiry command including a command to receive data. In this way, core board 24 manages access of boards and devices by cyclically sending access inquiry commands to the boards and devices under its control, and by receiving responses. Thus, all communications in the MDC, including communications to and from copier 10 over interface 13 and communications to and from option boards or NIB 50, are relayed through core board 24 by having core board 24 cycle through all its connected devices and cyclically issue each one an access inquiry command. Core board 24 expects a response from each option board and that response may include a request to issue further commands. In this way, core board 24 acts as a master device in master/slave communication with each attached device. Figures 4(a) through 4(d) illustrate this master/slave communication process in the situation in which NIB 50 transmits a print job sequence to digital copier 10 relayed by core board 24. As shown in Figure 4(a), core board 24 cycles through all option boards connected to it and at (1) issues an access inquiry command to option board 27. Option board 27 responds at (2) indicating that no access is needed. Core board 24 continues on its cyclic accesses to devices connected to it by issuing an access inquiry command (3) to NIB 50. NIB 50, which has a print job ready for sending to digital copier 10, responds at (4) with a request to core board 24 to issue further commands so as to retrieve the print job from NIB 50. As shown at Figure 4(c), core board 24 issues a PCL data input command (5), to which NIB 50 responds at (6) by transmitting a count and PCL data. This sequence of core board 24 issuing commands to which NIB 50 responds continues until NIB 50 has transmitted to core board 24 all set up information (such as destination, page count, paper source, and the like) for the print job. Then, as shown at Figure 4(d), core board 24 issues a command- (7) to NIB 50 to transfer image data. NIB 50 responds at (8) with an acknowledgement of the transmit command and also responds by transmitting image data at (9) on image bus 30. Core board 24 relays the image data at (10) onto digital copier 10 which, in turn, prints the job. In like fashion, core board 24 relays communications to other devices connected thereto, for example, by relaying a scan job from digital copier 10 to NIB 50, or by relaying a facsimile job from NIB 50 to a facsimile option board 27. [2. Network Interface Board] Figure 5 is a view showing the physical layout of components on network interface board 50. As shown in Figure 5, NIB 50 includes, all mounted on PWB (printed wiring board) 51, a microprocessor 52 such as an Intel 80486-DX2 microprocessor for controlling all functions on NIB 50, a PC-AT chipset 54 which includes logic circuitry specific to the NIB for controlling and monitoring various functions on NIB 50 such as monitoring address and data buses and issuing chip select commands, a network controller 55 such as an Ethernet controller for. managing access to the local area network, and three network connectors 56 for connecting to any of the standard network wiring such as 10BaseT, 10Base 2 and AUI. Microprocessor 52 is provided with a minimum of 4 MB of dynamic RAM (DRAM) via SIMM sockets 57, which can accept up to 64 MB of DRAM. Dual port RAM 59 is provided to communicate with MDC core board 24 on MDC CPU bus 29 via connector 60. Microprocessor 52 is also provided with access to a PCMCIA-sized hard disk drive 61 for persistent storage, in this case a 131 MB hard disk drive. Two option slots 62 and 63 respectively, which are controlled by PCMCIA interface controller 64 are provided for PCMCIA type 2 expansions by which it is possible to equip NIB 50 with a variety of additional peripherals such as a modem, an ArcNet interface, and the like. Access to the MDC's video bus 30 is provided via video bus connector 65 which is controlled by video bus gate array 66. Gate array 66 has access to a minimum of 1 MB of video RAM (VRAM) which is expandable up to 32 MB of DRAM via SIMM socket 67. Status lights 68 are provided for a user to monitor internal status flags of NIB 50. In addition, two data interface ports are provided: bi-directional parallel port 69a so as to permit connection to a bi-directional data device such as a stand-alone computer, and RS-232 serial port 69b so as to support serial communication such as for debug purposes. [2.1 Network Interface Board Structure] Figure 6 is a high-level block diagram showing interconnectivity on NIB 50. As seen there, microprocessor 52 is connected to address bus 70 and data bus 71. Chipset 54 is also connected to address and data buses 70 and 71. Chipset 54 includes an interface 54a between address and data buses 70 and 71 and video bus gate array 66, as well as an interface 54b between Ethernet controller 55 and network connectors 56. Address and data buses 70 and 71 also have connected to them the Ethernet controller 55, DRAM SIMM sockets 57a including 4 MB of DRAM 57, dual port RAM 59 which, as mentioned above, interfaces to MDC CPU bus 29 via connector 60, persistent memory 61, here a 131 MB hard disk drive, and PCMCIA interface 64 which interfaces slots 62 and 63 for PCMCIA option cards to address and data buses 70 and 71. Interface 54a interfaces video bus gate array 66 to address and data buses 70 and 71. Video bus gate array 66 includes its own address and data buses 72 and 74 to which are connected memory SIMM sockets 67a including 1 MB of VRAM 67. As mentioned above, video bus gate array 66 interfaces to video bus 30 via connector 65. Figure 7 illustrates one possible arrangement of process steps (or, programs) which are stored in persistent memory on disk drive 61 for access and processing by microprocessor 52. As shown in Figure 7, disk drive 61 includes a configuration file 75 which is processed by microprocessor 52 upon power on or receipt of a boot-up command. The configuration file ordinarily directs processor 52 as to how to partition memory, what memory-resident programs to be loaded into which areas of memory, what application programs to be started as concurrently executed tasks, and the like. For example, configuration file 75 may include instructions to microprocessor 52 to dedicate certain areas of DRAM 57 for network communication protocol. Also included in disk drive 61 is a multi-tasking operating system 76 which permits microprocessor 52 to operate in a multi-tasking environment whereby network processing is executed concurrently for different network users. More particularly, because of multi-tasking operating system 76, microprocessor 52 is capable of processing network requests from a first network user, such as a request for print services, concurrently with processing of network requests from a second user, such as a request for scan services, without the need to wait until processings for the first network user are complete. The kernel of the multi-tasking operation system 76 allows for task management, inter-task communication, memory management and certain other kinds of resource management. Specifically, the kernel will provide the following: (1) Multi-tasking: The kernel supports non-preemptive multi-tasking for cooperating 16-bit applications which will execute in V86 mode, and for cooperating 32-bit applications which will execute in protected mode. In addition, the kernel will preemptively multi-task non-cooperating off-the-shelf DOS applications by executing them in the V86 mode of microprocessor 52. (V86 mode allows real mode executables to be located anywhere in the physical address space and is not restricted to the lower 1 MB of physical memory as real mode would be.) (2) DOS Support: The kernel allows multiple DOS tasks to execute. These tasks execute in V86 mode, each in its own "virtual machine". The level of DOS support that is provided includes support for the DOS file system but typically would not include support for video, keyboard or mouse devices. Preferably, DOS itself is not implemented inside the kernel; rather the kernel allows DOS to be shared among different DOS tasks. (3) Inter-task Communication: A messaging mechanism is provided for inter-task communication. An API that provides IPC will exist; although this may be implemented outside the kernel. (4) Shared Libraries: This kernel allows for libraries to be shared among different tasks such that only a single copy of a library routine exists regardless of the number of tasks. (5) Memory Management: Interfaces to allocate and free memory are provided. This makes it possible to support applications that require access to greater than 1 MB of memory. These applications can be developed as 32-bit DOS applications, although a DOS extender will be required to provide DOS services to the 32-bit application. The kernel implements DPMI thus allowing any DPMI compatible DOS extender to be used to provide the 32-bit access. (6) Interrupt Handlers: DOS style device drivers are supported. (7) Flat Addressing Model: The kernel supports a flat 32-bit addressing model of the Intel 80486. (8) Host PC Support: The kernel will run on a 80486/80386 equipped PC work station. Thus a work station can be used as both a development environment and as a (limited) test environment for NIB application software, using standard off-the-shelf DOS PC tools. Disk 61 further includes a network driver and multiplexer software as well as network protocol stack modules including IPX/SPX which is a Novell-type protocol stack and TCP/IP which is a UNIX® -type protocol stack. Particularly, MLID (multi-link interface driver) comprises the lowest level of network connection software and includes MSM (media support module) linked together with HSM (hardware support module). LSL (link support layer) is network code that acts as a multiplexer between the lowest level MLID functionality and network protocol stacks above. Those protocol stacks include IPX/SPX protocol stacks, which is a Novell-type protocol stack, as well as a TCP/IP protocol stack which is a UNIX-based protocol stack. Disk 61 also includes print server processing step 79 and scan server processing steps 80. The print server and scan server export functionality of the printer and scanner in digital copier 10 onto the local area network. More particularly, in response to network requests for print or scan services, print server 79 and scan server 80 function to service those requests by master/slave communication to core board 24 via CPU bus 29 and connector 60, and to read and to write video information on video bus 30 via connector 65. Moreover, by virtue of multi-tasking operating system 76, print server functionality and scan server functionality may be carried out concurrently without waiting for one service to be completed before the other begins. Disk 61 may include other servers such as facsimile server 81 and image processing server 82. Those other servers operate to export functionality of other option boards 27 connected to MDC 20. For example, in a case where a facsimile option board is connected to MDC 20, facsimile server 81 exports the functionality of the facsimile option board onto the local area network. As another example, in a case where a special-purpose image processing board, such as an image processing board with performs block selection in accordance with the aforementioned Serial No. 08/171,720, is connected to MDC 20, then image processing server 82 operates to export the functionality of that special-purpose board onto the local area network. Moreover, as mentioned above, because of multi-tasking operating system 76, that functionality is exported in a multi-tasking environment whereby all needed servers process data concurrently without the need to wait for completion of a previous network request. Other programs stored on disk 61 include a frame-type pre-scanning program 84 which is responsible for identifying what frame types (such as 802.2, 802.3, Ethernet_II or Ethernet_snap) are associated with what protocol stack (for example, IPX/SPX or TCP/IP). Suitable pre-scan operations are described in co-pending application Serial No. 08/336,062, filed November 4, 1994, entitled "Network Protocol Sensor" (EP Application 95307708.8 corresponds). DOS translator 85 includes codes that translates local DOS-like function calls into network function calls. DOS translator 85 thereby provides network file functions, such as open, read, write and close. Service advertising protocol 86 is a common Novel operating system concept which allows network devices to register themselves with the network's file server. The file server maintains lists of active and inactive network entities such as print servers, scan servers, facsimile servers and the like. A socket monitor 87 is included so as to provide NIB-internal coordination of all protocol stacks. Socket monitor 87 typically owns the status and control channel between the network board and the MDC and, for this reason, is the only task that has the ability to get printer status. Socket monitor 87 provides status and control to other tasks via inter-process communication internal to the NIB. Socket monitor 87 is also responsible for network connection and packet contents between all Novel-oriented status and control utilities. Finally, resident services utilities 89 include a variety of utilities which provide generic services such as non-volatile RAM read and write, a debugger, timer clicks, and other basic features. Figure 8 is a detailed block diagram showing connection of the components shown in Figure 6 to address bus 70 and data bus 71. As shown in Figure 8, microprocessor 52 is connected directly to both address and data buses 70 and 71. Also connected directly to address and data buses 70 and 71 are PC-AT chipset 54, Ethernet controller 55, DRAM 57 and expansion slots 57a, dual port RAM 59, disk interface 61a for persistent storage 61, PCMCIA interface 64, and parallel interface 69. Video bus gate array 66 is indirectly connected to address and data buses 70 and 71 through address buffer 90 and data buffer 95. Address buffer 90 and data buffer 95 define a combined video-address-data bus 91 which is provided to video bus gate array 66. As mentioned above, video bus gate array 66 includes its own video address and data buses 74 and 72 through which gate array 66 addresses video RAM 67 and any RAM inserted into expansion slot 67a. Each of the devices connected directly or indirectly to data or address bus 70 or 71 (i.e., Ethernet controller 55, DRAM 57, dual port RAM 59, disk interface 61a, PCMCIA interface 64, parallel interface 69, address buffer 90, data buffer 95 and video bus gate array 66) includes a chip enable input. Unless the chip enable input is active, the device ignores traffic on the address and data buses, and is prohibited from writing onto the address or data buses. Chip select logic 100 is responsible for determining which of the various devices connected directly to address and data buses 70 and 71 should be permitted to read or write data to those buses. More particularly, chip select logic 100 coordinates bus activity so as to arbitrate bus contention situations. It does so by monitoring address signals appearing on address bus 70 and by decoding those address signals so as to determine which device is being addressed. After decoding the address signals, chip select logic 100 issues one of plural chip select signals which is received at the chip enable input of the designated device. [2.2 Chip Select Logic] Figures 9(a) through 9(c) show possible implementations of chip select logic 100. These implementations use a conventional programmable array logic (PAL) which can be programmed as desired to decode addresses on address bus 70 so as to output one or more signals in response to the decoded address. Figure 9(a) shows conventional chip select logic. As shown in Figure 9(a), two PALS 101 and 102 decode address signals on address bus 70 so as to output exactly one of plural chip select signals 01 through 13. Particularly, conventional PAL chips ordinarily include only eight outputs. Consequently, because of the large number of devices connected to address and data buses 70 and 71, two such PALs are needed so as to provide the needed number of chip select signals. This implementation is not cost effective because two fairly expensive PALs must be provided. Figure 9(b) shows an alternative implementation of chip select logic 100 which only requires use of a single PAL. More particularly, the arrangement shown in Figure 9(b) includes a PAL which outputs not only chip enable signals but which also outputs coded signals which are decoded by a separate decoder so as to output the needed chip select signals. This arrangement is advantageous because it does not require use of a second PAL but rather only requires use of an inexpensive decoder such as a standard one-of-eight binary decoder. More particularly, as shown in Figure 9(b), chip select logic 100 includes PAL 104 which is programmed so as to accept address signals from address bus 70 and to output at least one of chip select signals 01 through 05. PAL 104 is also programmed to output coded signals 105, here three binary coded signals The coded signals are not chip select signals directly, but rather are encoded chip select signals for chip select numbers 06 through 13, as shown in the following table: CODED SIGNALS CHIP SELECT 000 06 001 07 010 08 011 09 100 10 101 11 110 12 111 13 Decoder 106, which is a conventional one-of-eight binary decoder, accepts coded signals 105 and decodes them into the needed chip select signals, i.e., chip select signals 06 through 13. If desired, the arrangement shown in Figure 9(c) can also be used. Figure 9(c) differs from Figure 9(b) by the addition of buffers 107 to the chip select outputs from PAL 104. Buffers 107 compensate for the slight additional delay introduced by decoder 106 and make chip select signals 01 through 13 all valid at the same time. Figure 12 is a flow diagram which shows process steps for generating chip select signals according to the present invention. As shown in Figure 12, in step S1201, PAL 104 receives address signals from address bus 70. As noted above, these address signals are generated by microprocessor 52 and correspond to chips on NIB 50. Next, in step S1202, PAL 104 interprets the received address signals to determine whether the received address signals match known addresses in PAL 104. These known addresses correspond to either the chip select signals or the coded signals described above. In a case where the received address signals do not match a known address, processing proceeds from step S1203 to step S1201, whereafter new address signals are received from address bus 70. If, however, in step S1203, the received address signals match a known address, processing proceeds to step S1204. Step S1204 determines whether the received address signals correspond to known chip select signals, as opposed to the coded signals described above. That is, PAL 104 compares the received address signals to known chip select signals in order to determine whether the received address signals correspond to the known chip select signals. In a case where PAL 104 determines that the received address signals correspond to known chip select signals, processing proceeds to step S1207. In step S1207, chip enable signals which correspond to the received address signals are output. For example, as shown in Figure 9B, in step S1207, PAL 104 outputs one of chip select 01 to chip select 05. As shown in Figure 9B, these chip select signals need not be decoded by decoder 106 before being output by PAL 104 and, as noted above, each of these chip select signals is used to enable one chip on NIB 50. For example, as shown in Figure 8, chip select signal 92 is used to enable data buffer 95. If, however, in step S1204, PAL 104 determines that the received address signals do not correspond to a known chip select signal, processing proceeds to step S1205. More specifically, in a case where the received address signals do not correspond to a known chip select signal, the received address signals are processed, and a coded signal, such as those shown in the foregoing Table, is output by PAL 104. Thereafter, a decoder, such as decoder 106, decodes the coded signal to produce a chip select signal. For the example shown in Figure 9B, decoder 106 decodes the coded signals output by PAL 104 in order to generate and output chip select 06 to chip select 13 in step S1207. Like chip select 01 to chip select 05, each of chip select 06 to chip select 13 corresponds to one chip on NIB 50, and is applied to the one chip in order to enable the one chip. Following step S1207, processing ends. [2.3 Video Bus Communication] Referring again to Figure 8, video bus gate array 66 coordinates all accesses to video RAM (VRAM) 67. Specifically, video bus gate array 66 permits core board 24 to read and write video data into VRAM 67 via video bus 30, and it permits microprocessor 52 to read and write video data into VRAM 67 via address and data buses 70 and 71. Video bus gate array 66 provides proper arbitration services to ensure that only one of core board 24 and microprocessor 52 has access to VRAM at any one time. Video bus gate array 66 has a 16 bit wide data path and operates under 16 MHz clocking provided by PC-At chipset 54 when it is being accessed by microprocessor 52. Since data transfer between core board 24 and VRAM 67 occur over the video bus 30, no special processing need be performed when accesses to VRAM 67 are made via the video bus. Those accesses, both reads and writes, proceed as described above in Section 1.1. On the other hand, the 16-bit format of video bus gate array 66 does not match the 32-bit format of microprocessor 52, and the 16 MHz clocking rate does not match the 25 MHz rate of microprocessor 52. More particularly, the microprocessor used here (an Intel 486 microprocessor) is a 32-bit microprocessor which accesses 32-bit bytes in DRAM 57 and dual port RAM 59. In order to permit access to 16-bit, 16 MHz video gate array 66 by 32-bit, 25 MHz microprocessor 52, special interfaces are needed. Interface 54a implements the needed arbitration, timing, synchronization, and bus signal alignment, between VRAM 67, video bus gate array 66, and microprocessor 52. Interface 54a includes address buffer 90 and data buffer 95. Address buffer 90 is connected between address bus 70 and address/data bus 91 which, in turn, is fed to video bus gate array 66. Address buffer 90 is responsive to chip selection signal 94 from chip select logic 100 such that, in response to activation of selection signal 94, address buffer 90 buffers address information on address bus 70 onto address/data bus 91. Data buffer 95 is connected between data bus 71 and address/data bus 91. Data buffer 95 is responsive to a data buffer selection signal 92 such that, in response to activation of selection signal 92, data buffer 95 buffers data information on data bus 91 from or to (in accordance with whether a read or a write is desired) address/data bus 91. Timing of address buffer selection signal and data buffer selection signal 92 is coordinated by chip select logic 100 such that in response to address information on address bus 70 which corresponds to addresses of video gate array 66, chip select logic 100 activates the address buffer selection signal 94 so as to cause the address buffer to buffer address information from the address bus 70 onto the address/data bus 91. Thereafter, the address buffer selection signal 94 is deactivated and data buffer selection signal 92 is activated so as to cause data buffer 95 to buffer data information on data bus 71 from or to address/data bus 91. Chip select logic 100 also activates a not-ready signal 96 which it sends to microprocessor 52 so as to cause microprocessor 52 to insert wait states, as needed, during read and write operations to video gate array 66. Figure 10 is a timing diagram showing operation as described above. In Figure 10, a is a microprocessor clock signal which, in this embodiment, is 25 MHz, b is a bus clock signal which controls video bus operations for video bus gate array 66 and which is obtained by dividing clock signal a down to 16 MHz, c is a strobe signal indicating a strobe on address/data bus 91, d is a video strobe signal, e is a representative view of address information on address bus 70, f is a representative view of data information on data bus 71, g shows the state of data buffer selection signal 92, h shows the state of address buffer selection signal 94, i shows a representative view of address information and data information on address/data bus 91, j is a read/write signal, and k shows the state of not-ready signal 96 which is fed to microprocessor 52. As shown in Figure 10, when address information on address buffer 70 corresponds to a memory location in VRAM 67, and in response to receipt of address strobe d, chip select logic 100 generates three signals: an address buffer selection signal 94, a not-ready signal 96, and a chip selection-signal for video bus gate array 66. Not-ready signal 96 causes microprocessor 52 to generate wait states during the ensuing memory access operations. Meanwhile, address buffer selection signal 94 causes address buffer 90 to buffer address information on address bus 70 onto address/data bus 91. In response to valid address information on address/data bus 91, and when its chip selection signal has been activated by chip select logic 100, video bus gate array 66 accesses VRAM 67 via video data bus 72 and video address bus 74. In the case of a read from VRAM 67, video bus gate array 66 provides data from VRAM 67 back onto address/data bus 91. In the case of a write to VRAM 67, video bus 66 waits for valid data information to appear onto address/data bus 91 which it thereafter writes to VRAM 67, as described below. After a clock cycle has passed, chip select logic 100 deactivates address buffer selection signal 94 and activates data buffer selection signal 92, which, in turn, causes data buffer 95 to buffer data information on data bus 71 from or to (depending on whether a read or write is requested) address/data bus 91. Particularly, in a case of a write to VRAM 67, data information on data bus 71 is buffered by data buffer 95 onto address/data bus 91 where video bus gate array 66 provides it to VRAM 67 via video data bus 72. In the case of a read from VRAM 67, video bus gate array 66 retrieves data in VRAM 67 via video data bus 72 and puts the data onto address/data bus 91, as described above, where data buffer 95 buffers that data back onto data bus 71. After data buffer selection signal 92 has been active for at least one complete clock signal, not-ready signal 96 is deactivated signalling microprocessor 52 that the current VRAM access cycle is complete. If microprocessor 52 had been writing to VRAM 67, that operation is now complete; likewise, if microprocessor 52 had been reading from VRAM 67, microprocessor 52 can now obtain the requested data information from data bus 71. Figure 13 is a flow diagram which shows process steps for interfacing a fast address bus and a fast data bus to a slower address/data bus according to the present invention. More specifically, in step S1301 chip select logic 100 receives address information from address bus 70, and data information from data bus 71. As noted, the address and data information are output onto address bus 70 by microprocessor 52. In step S1302, chip select logic 100 interprets the received address information to determine whether the address information corresponds to a memory location in VRAM 67. In a case where the received address information does not correspond to a memory location in VRAM 67, processing proceeds from step S1303 to step S1301, whereafter new address and data information are received from address bus 70 and data bus 71, respectively. In a case where the received address information corresponds to a memory location in VRAM 67, processing proceeds to step S1304. In step S1304, video bus gate array 66 is enabled by video bus gate array signal 92a output from chip select logic 100, as shown in Figure 8. More specifically, as noted above, chip select logic 100 interprets the received address information in order to generate a chip select signal, in this case chip select signal 92a. Thereafter, processing proceeds to step S1305. Step S1305 determines whether video bus gate array 66 is ready to access VRAM 67. If video bus gate array 66 is not ready to access VRAM 67, processing proceeds to step S1306, in which processing is halted until video bus gate array 66 is ready to access VRAM 67. Once video bus gate array 66 is ready to access VRAM 67, address buffer 90 and data buffer 95 are turned on in step S1307 by address buffer selection signal 94 and data buffer selection signal 92, respectively. As shown in Figure 8, these signals are output by chip select logic 100 in response to the address information received from address bus 70. As noted above, address buffer 90 buffers address information between address bus 70 and address/data bus 91, and data buffer 95 buffers data information between data bus 71 and address/data bus 91. Accordingly, once address buffer 90 and data buffer 95 are turned on, address information and data information are transferred between address bus 70 and data bus 71, respectively, to video bus gate array 66 via address/data bus 91. Next, in step S1308, video bus gate array uses the address information transferred via address buffer 90 to access VRAM 67. As noted above, this information can be used by video bus gate array 66 either to write the data information to or to read data information from VRAM 67. Following step S1308, processing ends. [3. Operation] Operation of the network interface board will now be explained with reference to the flow diagram shown in Figure 11. The process steps shown in Figure 11 are executed by microprocessor 52 by loading the process steps 61.(Figure 7) into DRAM 57 and executing the process steps from DRAM. The process steps in Figure 11 illustrate operation of a network interface board in a copier system having an interface bus connected to multi-device controller 20, the multi-device controller 20 having a core board 24 to which plural other boards are connected via video bus 29 and CPU bus 30. As described above, multi-device controller 20 controls each of the boards connected thereto by master/slave communication routed via CPU bus 29. Operation of NIB 50 in the manner described below exports scanning and printing functionalities of the copier, using image data transmitted via video bus 30, to a computerized local area network. In particular, as described in more detail below, through the network interface 56, requests for network services from the LAN are issued and responded to, and through MDC connectors 60 and 65 NIB 50 interfaces to the video bus and the CPU bus. Processor 52 operates in a multitasking environment to respond to master/slave access inquiry commands over the CPU bus from core board 24, and to read and write image data onto the video bus. The multitasking processor also responds to LAN requests for scanning and printing services and concurrently processes those scanning and printing requests. Other services may also be provided via NIB 50 in accordance with what other option boards are connected to MDC 20. In step S1101, upon application of power or suitable logic reset, CPU 52 initiates boot-up processing by reference to configuration file 75 in disk drive 61. The configuration file, as mentioned above, can include various options fixing the configuration of NIB 50, such as memory allocation, operating system, etc. Ordinarily, configuration file 75 configures NIB 50 as a network interface board interfacing between the network and MDC 20. In that instance, configuration file 75, as mentioned above, includes configuration of memory, allocation of memory space for various memory-resident programs such as a network communication stack, and initiation and loading of multitasking operating system 76. Specifically, and as mentioned above, operation in multitasking operating system 76 permits concurrent network services for a variety of network users. Reverting to Figure 11, in step S1102, microprocessor 52 loads its network communication software. Specifically, microprocessor 52 loads the network driver and multiplexer into memory allocated for them (typically high memory), and in addition loads whatever network communication stacks are needed for participating in network communications in the network environment that NIB 50 is installed in. For example, in a situation where a Novell Netware network environment has been established, microprocessor 52 would load an IPX/SPX network communication stack into memory. Likewise, in a situation where a UNIX network operating system is in place, microprocessor 52 would load a TCP/IP network communication stack into memory. Whether to load IPX/SPX or TCP/IP, or both, is stored as part of start-up script 75. In steps S1103 and S1104, multitasking operating system 76 and the needed network servers (such as print server 79, scan server 80, facsimile server 81, and/or image processing server 82) are all loaded, whereupon execution of multitasking operating system 76 is initiated. Then, in step S1105, NIB 50 waits for a request for network services. Until a request for network services is received, NIB 50 stands by in an idle state, responding to access inquiry commands from core board 24 with simple acknowledgement ("ACK"). On the other hand, as soon as a request for network services is received, either from the network or from a local user such as a user operating digital copier 10, flow advances to step S1106. In steps S1106 and S1107, after a request for network services has been received, the request is serviced. In particular, in step S1106, microprocessor 52 initiates execution of the appropriate network server. For example, in a situation where a request for print services is requested, microprocessor 52 initiates execution of print server 79. Likewise, in a case where scan services are requested, microprocessor 52 initiates execution of server 80. Facsimile server 81 and image processing server 82 are provided in situations where facsimile services or image processing services are requested, In step S1107, microprocessor 52 continues execution of the needed server so as to service the request. Then, because of multitasking operation provided by operating system 76, flow also returns to step S1105 to wait for additional requests for network services. Meanwhile, services already being processed in step S1107 continue until they are complete. Should additional requests be received, then, in accordance with multitasking operation, microprocessor 52 initiates execution of the appropriate server (step S1106) and begins servicing the request (step S1107). Concurrent network processings, to the extent physically supported by devices controlled by NIB 50, are then carried out. The invention has been described with respect to a particular illustrative embodiment. It is to be understood that the invention is not limited to the above described embodiment and that various changes and modifications may be made by those of ordinary skill in the art without departing from the scope of the invention.

Claims: An apparatus for accessing a shared RAM (67) via an address bus (70) and a data bus (71), both of which interface to a slower address/data bus (91) to which the shared RAM (67) is connected, the apparatus comprising: an address buffer (90) connected between the address bus (70) and the address/data bus (91), for buffering address information between the address bus and the address/data bus; a data buffer (95) connected between the data bus (71) and the address/data bus (91), for buffering data information between the data bus (71) and the address/data bus (91); a microprocessor (52) which is connected to the address bus (70) and to the data bus (71) and which is operable to output address information onto the address bus (70) in order to access the shared RAM (67), the address information corresponding to addresses of the shared RAM (67); a gate array (66) connected to the address/data bus (91), for controlling access to the shared RAM (67); and a logic array (100) connected to the address bus (70), for receiving the address information output by said microprocessor (52) on the address bus (70) and for outputting control signals for controlling access of said shared RAM (67) by said microcontroller; characterised in that said address buffer (90) is operable to selectably buffer said address information under control of an address buffer selection signal (94); said data buffer (95) is operable to selectably buffer said data information under control of a data buffer selection signal (92); and said logic array (100) is operable, in response to address information on the address bus (70) which corresponds to an address of the shared RAM (67), (i) to activate the address buffer selection signal (94) so as to cause said address buffer (90) to buffer address information from the address bus (70) onto the address/data bus (91); and thereafter (ii) to deactivate the address buffer selection signal (94) and to activate the data buffer selection signal (92) so as to cause said data buffer (95) to buffer data information from or to the address/data bus (91). An apparatus according to claim 1, further comprising a second RAM (59) also connected to the address bus (70) and the data bus (71), and wherein said logic array (100) is operable, in response to address information on the address bus which corresponds to the second RAM (59), to activate a RAM (59) selection signal. An apparatus according to claim 1 or 2, wherein said microprocessor (52) is operable to respond to a not-ready signal (96) by inserting wait states, and wherein said logic array (100) is operable to activate the not-ready signal (96) when it activates the address buffer selection signal (94) and is operable to deactivate the not-ready signal (96) after the data buffer selection signal (92) has been activated for at least one microprocessor clock cycle. An apparatus according to any of claims 1 to 3, wherein said microprocessor (52) is clocked at a first clock rate and said gate array (66) is clocked at a second and slower clock rate. An apparatus according to claim 4, wherein said first RAM (67) is comprised by 16-bit bytes and wherein said second RAM (59) is comprised by 32-bit bytes. An apparatus according to any of claims 1 to 5, wherein said shared RAM (67) comprises video RAM and said gate array (66) is connectable to a video bus (30) which accesses said video RAM (67), and wherein said gate array (66) includes arbitration control means for arbitrating access to said shared RAM (67) between said video bus (30) and said microprocessor (52). A network device by which a peripheral (10) is interfaced to a local area network, hereinafter "LAN", comprising: a core board (24) which operates at a first frequency and which is couplable to said peripheral and to a shared RAM (67); and a network interface board (50) which operates at a second frequency which is greater than said first frequency, and which is couplable to the LAN and couplable to said core board (24) via said shared RAM (67), and wherein said network interface board (50) comprises an apparatus according to any of claims 1 to 6 for accessing the shared RAM (67) to communicate peripheral data between said LAN and said peripheral (10). A device according to claim 7, wherein said core board and said network interface board are disposed within a multidevice controller (20). A method by which a microprocessor (52) accesses a shared RAM (67) via an address bus (70) and a data bus (71), both of which interface to a slower address/data bus (91) to which the shared RAM (67) is connected, said method comprising the steps of: receiving address information from the address bus (S1301), the address information being output onto the address bus by the microprocessor (52); outputting a chip enable signal which, in a case where the address information received in said receiving step matches an address in the shared RAM (S1304), enables a gate array (66) used to access the shared RAM (67); and accessing the shared RAM (67) using the enabled gate array (66); characterised in that said accessing step comprises the steps of: activating an address buffer selection signal (94) and a data buffer selection signal (92) when the address information received in said receiving step matches an address in the shared RAM (67), the address buffer selection signal for enabling an address buffer (90), and the data buffer selection signal for enabling a data buffer (95); buffering address information from the address bus to the address/data bus via the address buffer, and buffering data information between the data bus and the address/data bus via the data buffer (s1308); and accessing the shared RAM in accordance with the address information buffered in said buffering step. A method according to claim 9, wherein said activating step comprises activating the address buffer selection signal (94) in response to addresses of a second RAM (59) on the address bus (70). A method according to claim 9 or 10, further comprising the steps of: inserting wait states in response to a not-ready signal (96); and activating the not-ready signal (96) in a case where the address buffer selection signal is activated (S1305, S1306), and deactivating the not-ready signal in a case where the data buffer selection signal has been activated for at least one microprocessor clock. A method according to any of claims 9 to 11, wherein the shared RAM is comprised by a video RAM (67), access to the shared RAM (67) by a video bus (30) and the microprocessor (52) is controlled by the gate array (66), and wherein said method further comprises a step of arbitrating access to the shared RAM (67) between the video bus (30) and the microprocessor (52). A storage medium storing processor implementable instructions for controlling a processor to implement the method of any one of claims 9 to 12 when said instructions are loaded into said processor. A processor implementable instructions product for controlling a processor to implement the method of any one of claims 9 to 12 when said instructions product is run on said processor.

Inventors: IP TONY K, IP, TONY K.
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1996
Main classification: G06F13
IPC codes: G06F13