Data processing system

Abstract: A system and method are described which provide for fast sequential access of stored data, as required, for example, in the performance of multiply/accumulate operations in neural network calculations and other sequential computations. The system includes a video dynamic random access memory (VRAM) (17) with a shift register (41), a digital signal processor (DSP) (13), and a data/address/control bus for coupling the DSP (13) and VRAM (17). The VRAM (17) has a parallel access port (23) and a serial access port (25), and the DSP (13) has a first input-output (I/O) port (19) and a second I/O port (21). The second I/O port (21) of the DSP (13) is coupled, via the bus (15), to the parallel- and serial-access ports (23,25) of the VRAM (17). In response to data applied via the first I/O port (19), the DSP (13) transfers the applied data, via the second I/O port (21), the data bus (15), and the parallel (or serial) access port (23), to the VRAM (17) for storage. The stored data is then accessed by the DSP (13) as a serial sequence via the serial access port (25). The stored data is transferred in parallel to the shift register (41), from which it is provided as a synchronized (clocked) serial sequence to the serial access port (25) from transmission to the DSP (13).

Description: This invention relates to data processing systems of the kind including processing means, memory means and a data bus interconnecting the processing means and memory means. The invention has a particular application to the performance of sequential computational operations such as multiply/accumulate operations which are required, for example, in neural network calculations. In performing neural network calculations, a large number of multiply/accumulate operations are performed. A DSP (digital signal processor) may be used to perform these calculations because it can complete a multiply and accumulate operation in a single memory access cycle (generally, within 75-125 nanoseconds). DSPs are commercially available devices and provide high speed computational power at relatively low cost. However, a large sequentially accessed table of static weights (data values) must be available to the DSP. If the data values from this table, which is sequentially accessed, cannot be supplied within the access cycle time (i.e., within 75-125 nanoseconds), the DSP is obliged to wait for the data; in which event, the full speed of the DSP would not be utilized. EP-A-0234 181 discloses a data processing system where data is transferred between an asynchronous I/O adapter and one portion of memory via a sequential access port, while a processor communicates synchronously with another portion of the memory via a random access port. It is an object of the present invention to provide a low cost, high performance data processing system and method suitable for performing sequential computation operations. Therefore according to one aspect of the present invention there is provided a data processing system comprising: processing means for processing data; memory means including a Video Random Access Memory (VRAM) for storing data, the VRAM having a parallel access port and a serial access port; and a data bus for interconnecting the processing means to the parallel and serial access ports of the VRAM ; wherein the processing means is adapted to transfer data via the data bus to the VRAM for storage and to access data stored in the VRAM via the data bus as a serial sequence via the serial access port of the VRAM. The memory means is implemented by a commercially available video RAM (VRAM) including a dynamic RAM (DRAM) and a shift register. This assists in providing a low cost system. Although a system employing a high speed static RAM (SRAM) for data storage would enable high speed access to stored data to be achieved, such system would have the disadvantages of high costs, high power dissipation and the requirement of a relatively large area of space utilization on a printed circuit board. A data processing system according to the present invention has the capability of avoiding these disadvantages. One embodiment of the present invention will now be described by way of example, with reference to the accompanying drawings, in which:- Figure 1 is a block diagram of a system of the present invention, including a DSP (digital signal processor), a data/address/control bus, and a VRAM (video DRAM); Figure 2 is a block diagram of the system of Figure 1 in greater detail, including a memory access controller; Figure 3 is a block diagram of the memory access controller of Figure 2 in greater detail; Figure 4 is a block diagram of the VRAM employed in the system of Figure 1; Figure 5 is a waveform diagram showing timing relationships between clock signals and data and memory address values transferred between the DSP and VRAM of the system of Figure 1; and Figure 6 is a graphic representation of a neural network, showing input values (X i ), weight values (W ij ), and output values (Y j ). Referring now to Figure 1, there is shown a system 11 which embodies the present invention. The system includes a processor 13, a data/address/control bus 15, and a memory 17. The processor 13 has an input/output port 19 for receiving data (e.g., data such as input variables or weight values) from an external source such as a host computer (not shown), and for outputting information to the host computer. The processor 13 also has a second input/output port 21 for accessing (reading from and writing to) the memory 17. The memory has a parallel port 23 for receiving data from or transmitting data to the processor 13. To access data stored in the memory via this parallel port 23, the address of each stored data value (element) is supplied, and the memory is randomly accessed, by the processor 13. The memory 17 also has a serial port 25 for receiving data from and transmitting data to the processor 13. Data stored in the memory are generally arranged in matrix form. A matrix location is accessible by specifying individual row and column addresses of the location. As shown in Figure 2, the memory 17 includes a VRAM memory chip 37 with an internal shift register 41, and a VRAM timing controller 39. Data is transferred via serial port 25 to or from the shift register. This internal shift register (shown in greater detail in Figure 4) can be initialized (loaded) with the contents of any row of the VRAM's memory matrix or can have its contents transferred (unloaded) to any row of the VRAM's memory matrix. The advantage of serial port 25 is the fast sequential access that it provides to data stored in the VRAM. Fast sequential access can be made without specification of the individual data addresses. As shown in Figure 2, processor 13 includes a dedicated digital signal processor chip 33 (e.g., a model ADSP-2101 processor from Analog Devices Corporation), and a memory access controller 35 capable of providing fast serial access to the memory 17 in addition to normal parallel access. As indicated above, the memory 17 includes the VRAM chip 37 and VRAM timing controller 39. VRAM chip 37 may be a model TI44c251 VRAM from Texas Instruments Corporation, or a model MT42C4064 VRAM from Micron Technologies Corporation, for example, and controller 39 may be, for example, a model 74F1764 from Signetics Corporation. As shown in Figures 2 and 3, memory access controller 35 includes a row address register 43 and a column address register 45 for specifying individual addresses of data values (e.g., a row address and a column address of a data value in an array of data values) stored in VRAM 37. Memory access controller 35 also includes an access counter 47 and a transfer counter 49. The access counter 47 and the transfer counter 49 are used to denote the current address of the VRAM location accessed by the processor 13 via the serial access port 25. The access counter contains the least significant bits (e.g., nine bits) of the address, and the transfer counter 49 contains the most significant bits (e.g., nine leading bits) of the address. The memory access controller 35 further includes an address-decode and control circuit 51 which maps addresses in the microprocessor's memory space to the various registers of the controller. For example, the address-decode logic of control circuit 51 maps the address space of the microprocessor 33 to the following registers and functions of the control circuit 51. Address Register/function xx0 ROW ADDR REG (write only) xx1 COL. ADDR REG (write only) xx2 NORMAL ACCESS TO VRAM (read/write) xx3 ACCESS COUNTER (write only) xx4 TRANSFER COUNTER (write only) xx5 MISC MODE CONTROL REG (write only) xx6 SAM ACCESS (would assert SERIAL CLOCK) (read/write) xx7 FORCED SAM TRANSFER REQUEST (write only) Normal Access Mode Generally, the memory space of the microprocessor 33 is less than the memory space available in the memory 17, and data is stored in the memory 17. In order to allow the microprocessor 33 to access the full address space available in the memory 17, the microprocessor first loads the row address register 43 with the row address of a location in memory 17 by writing to address xx0, then loads the column address register 45 with the column address of that location by writing to address xx1. The microprocessor then accesses address xx2. This causes the memory access controller 35 to apply output-enable (OE) signals 44, 46 (Figure 3) to the row and column address registers 43, 45, to pass the row and column addresses to the VRAM timing controller 39, and to assert the appropriate RQ (request) signal. The VRAM timing controller 39 then completes the memory access by asserting RAS/CAS signals 18, 20 (Figure 2), and supplying the appropriate address values on the address bus 28 to the VRAM 37 at predetermined VRAM-access times. In this way the microprocessor 33 reads data from and writes data to selected locations (addresses) in the VRAM 37. Data may be written in any sequence. Fast Sequential Access Mode After the processor 13 loads the VRAM 37 with data (i.e., lists the data in a sequence suitable for later sequential access), the fast sequential access feature of the system is initialized, as follows. First, the transfer counter 49 (Figure 3) is loaded with the row address of the first data word required (i.e., the first data word to be accessed), then the access counter 47 is loaded with the column address of that first data word. Next, the mode register 52 is set to serial read mode (for serial data transfer), and a transfer cycle is initiated by accessing address xx7. This access operation results in the memory access controller 35 applying output-enable (OE) signals 48, 50 to the access counter 47 and to the transfer counter 49, respectively. This allows the row/column addresses in the counters 47, 49 to be passed to the VRAM timing controller 39, and allows the serial request signal (RQ) 56 to be applied to controller 39. In response to the serial request signal 56, the VRAM timing controller completes the transfer cycle by applying the RAS/CAS signals 18, 20 and the transfer signal 58 (Figure 4) to the VRAM while supplying the row/column addresses, on the address bus 27. This action of completing the transfer cycle results in the transfer of the data values in the memory locations having the row address to the SAM or shift register 41. The associated column address in the access counter 47 indicates which data value in the SAM is the first to be shifted out. The processor then accesses the data list sequentially, by accessing the SAM ACCESS address (xx6). Each time the processor asserts (specifies) the SAM ACCESS address, the following events occur. First a serial clock signal 30 (Figures 2 and 3) is asserted (applied to VRAM 37), resulting in the next data word being clocked out of the SAM 41 and transmitted to the processor via the serial access port 25 (Figure 1). Then, the access counter 47 is decremented and, when the access counter value (i.e., the contents of the access counter) equals zero, the transfer counter 49 is decremented. After which, a transfer cycle is initiated (forced) by the memory access controller 35 (Figure 2). Next, the row address is obtained from the transfer counter 49, and the SAM's start address is obtained from the access counter 47 (the contents of which would now read 0). In this way, the processor sequentially accesses the data in the VRAM without supplying any intermediate addresses. The processor is required to supply the initial (starting) address only. Use of VRAMs which have split SAMs (each SAM having one half the width of a row in the VRAM matrix) allows one half of the SAM to be involved in the transfer of data, while the other half is involved in the shifting of data. This type of VRAM architecture allows the processor to sequentially access data from the VRAM without requiring the processor to be involved with VRAM's transfer cycles. The transfer cycles are transparent to the processor. A time relationship between clock signal, address access, and serial data output is shown in Figure 5. As indicated previously, the ability of the system to perform fast sequential data access operations is important for performance of compute-intensive sequential operations (e.g., fast multiply/accumulate operations that are common to neural net computations). An example of a neural net configuration is shown in Figure 6. An associated neural net computation is shown by equation (1) below for one layer of the neural net. In preparation for performing a neural net computation, the system 11 (Figure 1), upon receipt of weight data (W ij ) from the host computer (not shown), develops (builds) a table of the weight data in memory 17 by loading the weight data via parallel port 23 into the memory in a predetermined sequence (as shown in Table I below) suitable for sequential access subsequently. The table may be represented as an array of weight values (e.g., a 512 x 512 matrix of memory locations/addresses, each location having a four-bit weight value). (W i,j ) (FIRST LAYER) W 1,1 W 1,2 W 1,3 W 1,4 W 1,5 W 1,6 W 1,7 W 1,8 W 1,9 W 1,10 W 2,1 W 2,2 . . . . . . . W 2,10 . . . . . . . . . .. . . . . . . . . . .. W 5,1 W 5,2 . . . . . . . W 5,10 (SECOND LAYER) W 1,1 W 1,2 W 1,3 W 1,4 W 1,5 W 2,1 . . . W 2,5 W 3,1 . . . W 3,5 (THIRD LAYER) W 1,1 W 1,2 W 1,3 W 2,1 W 2,2 W 2,3 The above table represents a sequentially arranged three-layer list (data list) for performing nxm computations, where n represents the number of inputs, and m represents the number of outputs. The output of one layer becomes the input to the next layer. For example, for the first layer there are n = 10 inputs (columns) and m = 5 outputs (rows). For the second layer there are n = 5 inputs and m = 3 outputs, and for the third layer there are n = 3 inputs and m = 2 outputs. As an alternative to loading the VRAM 37 via parallel port 23, loading may be achieved via serial port 25 and SAM 41. After the weight values (W ij ) are stored in the memory 17, the input values (X i ) from the host computer are stored locally in the processor 13. (Typically, the quantity (n) of input values number about one hundred). The DSP then performs the multiply-accumulate operation shown in equation (1) below for each output (Y j ): The output value Y j may be adjusted to ensure that it falls within a predefined range of values or meets a predefined threshold. When so adjusted, the adjusted value (Y') may be expressed as a function of Y j as follows: where n represents the number of input (X) values. In the case where m represents the number of output (Y) values, the total number of outputs (Z) per layer may be expressed as: When n = 100 and m = 30, for example, the DSP 13 performs 3000 MAC (multiply/accumulate) operations for each layer of the neural net. In the event there are k layers, with each layer having Z outputs, the total number of outputs (O T ) may be expressed as: and the total number of multiply/accumulate operations (O P ) may be expressed as follows: where, Z i represents the initial number of inputs (X) to the neural net. To accommodate such computer-intensive multiply-accumulate operations, the system configuration (architecture) enables the processor 13 to access (via the serial access port of the memory 17) the weight values in the memory at a rate of up to 40 x 10 6 words (memory locations) per second, significantly faster than normal (parallel) DRAM access rates of about 5 X 10 6 words (memory locations) per second.

Claims: A data processing system comprising: processing means (13) for processing data; memory means including a Video Random Access Memory (VRAM) (17) for storing data, the VRAM having a parallel access port (23) and a serial access port (25); and a data bus (27) for interconnecting the processing means to the parallel and serial access ports (23, 25) of the VRAM ; wherein the processing means (13) is adapted to transfer data via the data bus (27) to the VRAM for storage and to access data stored in the VRAM (17) via the data bus (27) as a serial sequence via the serial access port (25) of the VRAM (17). A data processing system according to claim 1, characterized in that the processing means (13) is adapted to transfer data via the data bus (27) and the parallel access port (23) into the VRAM (17). A data processing system according to claim 1, characterized in that the processing means (13) includes a memory access control means (35) for controlling the transfer of data between the processing means (13) and the VRAM (17), the memory acess control means including mode register means (52) for specifying the data transfer mode of the system. A data processing system according to claim 1, characterized in that the VRAM (17) includes a matrix memory, a timing control means (39) and a shift register (41), the shift register (41) being adapted to receive data transferred in parallel from the matrix memory and to transfer data as a serial sequence via the serial access port (25) to the processing means (13) during a fast sequential access mode. A data processing system according to claims 3 and 4, characterized in that the memory access control means (35) includes a row address register (43) and a column address register (45) for specifying a row address and a column address, respectively, of a selected storage location in the VRAM (17) during a normal access mode. A data processing system according to any preceding claim, characterized in that the memory access control means (35) includes a transfer counter (49) and an access counter (47) adapted to specify the current address of the VRAM storage location being accessed by the processing means (13) via the serial access port (25) in a fast sequential access mode. A data processing system according to claim 6, characterized by clock means (30) for actuating the access counter (47) until a predetermined count value is reached and in response to the predetermined count being reached by the access counter (47), for actuating the transfer counter (49) to transfer a further row of data from the matrix memory to the shift register (41). A data processing system according to claim 4, characterized in that the shift register (41) of the VRAM (17) has a first half and a second half, the first half receiving data from the matrix memory while the second half transfers data words to the processing means (13), the receiving and shifting of data via the shift register (41) being transparent to the processing means (13).

Inventors: COOPER ROBERT WILLIAM, COOPER, ROBERT WILLIAM
Applicants: NCR INT INC, NCR INTERNATIONAL, INC.
Application year: 1992
Main classification: G06F12
IPC codes: G06F9, G06F13, G06N3