Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MEMORY ACCESS UNIT
Document Type and Number:
WIPO Patent Application WO/2016/071091
Kind Code:
A1
Abstract:
A memory access unit (24; 741,...,74m) for handling transfers of samples in a d- dimensional array between a one of m data buses (27; 77), where m ≥ 1, and k*m memories (221,...,22k; 721,...,72k*m), where k ≥ 2, is disclosed. The memory access unit comprises k address calculators (281,...,28k; 791,...,79k), each address calculator configured to receive a bus address (A_B) to add a respective offset to generate a sample bus address (Α_Β') and to generate, from the sample bus address according to an addressing scheme, a respective address (A_1,..., A_d) in each of the d dimensions for access along one of the dimensions from the bus address according to an addressing scheme, for accessing a sample. The memory access unit comprises k sample collectors (291,...,29k; 801,...,80k*m), each sample collector operable to generate a memory select (CS) for a one of the k*m memories so as to transfer the sample between a predetermined position in a bus data word and the respective one of the k*m memories. Each sample collector (291,...,29k; 801,...,80k*m) is configured to calculate a respective memory select in dependence upon the address in each of the d dimensions such that each sample collector selects a different one of the k*m memories so as to allow the sample collectors to access k of the k*m memories concurrently. A memory controller may comprise m memory access units (741,...,74m) for handling transfers of samples in a d-dimensional array between m data buses (771,...,77m) and K*m memories (711,...,71k*m).

Inventors:
GRUENEWALD MATTHIAS (DE)
Application Number:
PCT/EP2015/073870
Publication Date:
May 12, 2016
Filing Date:
October 15, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
RENESAS ELECTRONICS EUROP GMBH (DE)
International Classes:
G06F12/02; G06F12/06; G06F13/16; G06F13/42; G01S13/931
Foreign References:
US20110296078A12011-12-01
US20110087821A12011-04-14
US20100042759A12010-02-18
US20100145993A12010-06-10
Other References:
SONG CHEN ET AL: "Synthesis of custom interleaved memory systems", IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, IEEE SERVICE CENTER, PISCATAWAY, NJ, USA, vol. 8, no. 1, 1 February 2000 (2000-02-01), pages 74 - 83, XP011325599, ISSN: 1063-8210, DOI: 10.1109/92.820763
Attorney, Agent or Firm:
PIOTROWICZ, Pawel et al. (Byron HouseCambridge Business Park,Cowley Road, Cambridge Cambridgeshire CB4 0WZ, GB)
Download PDF:
Claims:
Claims

1. A memory access unit (24; 741,...,74m) for handling transfers of samples in a d- dimensional array between a one of m data buses (27; 77), where m > 1, and k*m memories (221,...,22k; 72i,...,72k*m), where k > 2, the memory access unit comprising: k address calculators (281,...,28k; 79i,—,79vm), each address calculator configured to receive a bus address (A_B), to add a respective offset to generate a sample bus address (Α_Β') and to generate, from the sample bus address according to an addressing scheme, a respective address (A_i, A_d) in each of the d dimensions for accessing a sample; and

k sample collectors (291,...,29k; 80i,...,80k*m), each sample collector operable to generate a memory select (CS) for a one of the k*m memories so as to transfer the sample between a predetermined position in a bus data word and the respective one of the k*m memories,

wherein each sample collector (291,...,29k; 80i,...,80k*m) is configured to calculate a respective memory select (CS) in dependence upon the address (A_i, A_d) in each of the d dimensions such that each sample collector selects a different one of the k*m memories so as to allow the sample collectors to access k of the k*m memories concurrently.

2. A memory access unit according to claim 1, further comprising:

a set of registers (3I1, 3i2,...,3id; 821, 822,...,82d) for changeably setting the numbers of samples in each of the d dimensions and/or sample width.

3. A memory access unit according to claim 1 or 2, wherein the number d of dimensions is set or is settable to be two or three.

4. A memory access unit according to any preceding claim, wherein each sample collector (291,...,29k; 80i,...,80k) is configured to calculate the memory select in dependence upon a sum of the addresses (A_i, A_d) in each of the d dimensions.

5. A memory access unit according to any preceding claim, wherein each address calculator (281,...,28k; 79i,—,79x) is configured to generate an index (I_S).

6. A memory access unit according to any preceding claim, wherein each address calculator (281,...,28k; is configured to calculate the respective addresses in dependence upon a linearly-increasing word address, sample size and numbers of samples in each dimension.

7. A memory access unit according to any preceding claim, further comprising: a bus interface (30;8i) coupled to the address calculators (281,...,28k; 79i,—>79k) and the sample collectors (291,...,29k; 80i,...,80k).

8. A memory access unit according to any preceding claim, implemented in hardware logic.

9. A memory controller comprising:

at least one memory access unit according to any preceding claim.

10. A memory controller according to claim 9, comprising:

m memory access units for handling transfers of samples in a d-dimensional array between m data buses and k*m memories.

11. A memory system comprising:

a memory controller according to claim 9 or 10; and

k*m memories, each set of k*m memories operatively connected to the m memory access units.

12. An integrated circuit comprising:

a memory access unit according to any one of claims 1 to 8 or a memory controller according to claim 9 or 10.

13. An integrated circuit according to claim 12, which is a microcontroller.

14. A motor vehicle comprising:

a computing device comprising a memory access unit according to any one of claims 1 to 8 or a memory controller according to claim 9 or 10.

15. A method of transferring samples in a d-dimensional array between a one of m data buses (27; 77), where m > 1, and k*m memories (221,...,22k; 72i,...,72k*m), where k > 2, the method comprising:

for each of k samples: receiving a bus address (A_B) and adding a respective offset to generate a sample bus address (A_B');

generating, from a sample bus address (Α_Β') according to an addressing scheme, a respective address (A_i, A_d) in each of the d dimensions for accessing samples along one of the dimensions; and

generating a memory select (CS) for a one of the k*m memories so as to transfer a sample between a predetermined position in a bus data word and the respective one of the k*m memories, wherein generating the memory select comprises calculating a memory select in dependence upon the addresses (A_i, A_d),

so as to allow the k sample to be written to or read from k of the k*m memories concurrently.

Description:
Memory access unit

Field of the Invention

The present invention relates to a memory access unit and to a memory controller comprising one or more memory access units.

Background

Motor vehicles are increasing being equipped with different forms of sensors for detecting harmful situations. These sensors produce large amounts of data in multiple dimensions. Ideally, samples should be stored sequentially in memory to allow hardware accelerators to process them efficiently. However, there is often a need to process samples in more than one dimension.

One solution is to re-order samples between processing steps. However, this increases computation overheads and memory requirements.

Another solution is to employ memory which allows data to be read out in orthogonal dimensions. An example of such a memory is described in WO 2009/003115 Ai.

Summary

The present invention seeks to provide a memory access unit for handling transfers of data words of fixed size (herein referred to as "samples"). According to a first aspect of the present invention there is provided a memory access unit for handling transfers of samples in a d-dimensional array between a one of m data buses, where m > l, and k*m memories, where k > 2. The memory access unit comprises k address calculators and k sample collectors. Each address calculator is configured to receive a bus address, to add a respective offset to generate a bus address for a sample and to generate, from the bus address of the sample according to an addressing scheme, a respective address in each of the d dimensions for accessing a respective sample. Each sample collector is operable to generate a memory select for a one of the k*m memories so as to transfer the sample between a predetermined position in a bus data word and the one of the k*m memories. Each sample collector is configured to calculate a respective memory select in dependence upon the address in each of the d dimensions such that each sample collector selects a different one of the k memories so as to allow the sample collectors to access k of the k*m memories concurrently. For a single bus, m = l and k*m = k. Each sample collector may be operable to transfer the respective sample to or from the respective one of the k*m memories.

Thus, samples can be accessed (read or write) along any of the dimensions without sample re-ordering in the order of the dimension. A sample data width and a sample storage data width may be the same. The sample data width may be an integer multiple of (for example, double) the sample storage data width. The sample data width may be or may be settable to be, for example, four bytes, consisting of 32 bits, or eight bytes, consisting of 64 bits. The storage data width may be, for example, four bytes, consisting of 32 bits. However, other storage data widths may be used. The data bus width may be 16 bytes, consisting of 128 bits, or 32 bytes, consisting of 256 bits.

The memory access unit may further comprise a set of registers for changeably setting the numbers of samples in each of the d dimensions and/or sample data width.

The number d of dimensions may be or may be settable to be two or three. Each sample collector may be configured to calculate the memory select in dependence upon a sum of the addresses in each of the d dimensions. Each sample collector may be configured to calculate the memory select, CS, using:

CS = [ (A_l + A_2 + ... + A_d) ] % k

Each address calculator may be configured to generate an index. This may be used when the sample data width is greater than the sample storage data width.

Each sample collector may be configured to calculate the memory select, CS, using:

CS = [ I_S + (w_s /w_m) * (A_l + A_2 + ... + A_d) ] % k where w_s is the sample data width and w_m is memory data width.

Each address calculator may be configured to calculate the respective addresses in dependence upon a linearly-increasing word address, sample data width and numbers of samples in each dimension.

Each address calculator may be configured to receive a bus address and to adjust the bus address based on a respective offset. Thus, the address calculators can generate respective sets of addresses and, thus, generate different memory selects.

The memory access unit may further comprise a bus interface coupled to the address calculators and the sample collectors. The bus interface may be configured to pass a bus address to each of the address calculators. The memory access unit is preferably implemented in hardware logic.

The memory access unit may be suitable for handling transfers of samples in a d- dimensional array between a data bus and k*m memories, where the k*m memories are shared by m data buses. According to a second aspect of the present invention there is provided a memory controller comprising at least one memory access unit.

The memory controller may comprise at least two memory access units. The at least two memory access units may access a common (or "global") set of registers.

The memory controller may comprise m memory access units for handling transfers of samples in a d-dimensional array between m data buses and k*m memories. According to a third aspect of the present invention there is provided a memory system comprising a memory controller and k*m memories, each set of k*m memories operatively connected to the m memory access units.

There may be one data bus, i.e. m = l. There may be more than one data bus, i.e. m > 2. There may be between two and ten, or more data buses, i.e. 10 > m > 2 or m > 10.

According to a fourth aspect of the present invention there is provided an integrated circuit comprising a memory access unit or a memory controller. The integrated circuit may be a microcontroller. The integrated circuit may be an application specific integrated circuit (ASIC). The integrated circuit may be a system on a chip (SoC). The integrated circuit may be a hardware accelerator. The integrated circuit may be a graphical processing unit (GPU). The integrated circuit may be a digital signal processor (DSP).

According to a fifth aspect of the present invention there is provided a motor vehicle comprising a computing device comprising a memory access unit or a memory controller. The motor vehicle may be a motorcycle, an automobile (sometimes referred to as a "car"), a minibus, a bus, a truck or lorry. The motor vehicle may be powered by an internal combustion engine and/or one or more electric motors.

According to a sixth aspect of the present invention there is provided a method of transferring samples in a d-dimensional array between a one of m data buses and k*m memories. The method comprises, for each of k samples: receiving a bus address and adding a respective offset to generate a bus address of a sample and generating, from the sample bus address according to an addressing scheme, a respective address in each of the d dimensions for accessing samples along one of the dimensions and generating a memory select for a one of the k*m memories so as to transfer a sample between a predetermined position in a bus data word and the respective one of the k*m

memories, wherein generating the memory select comprises calculating a memory select in dependence upon the addresses in each of the d dimensions so as to allow the k sample to be written to or read from k of the k*m memories concurrently.

The method can be performed by a unit (or module) such that it allows the unit and other units to access the k*m memories concurrently.

The method is preferably a hardware-implemented method. The unit (or module) may be a logic unit (or "logic module").

According to a seventh aspect of the present invention there is provided a computer program comprising instructions which, when executed by one or more processors, causes the one or more processors to perform the method.

According to an eighth aspect of the present invention there is provided a computer readable medium (which may be non-transitory) carrying or storing the computer program.

Brief Description of the Drawings

Certain embodiments of the present invention will now be described, by way of example, with reference to the accompanying drawings, in which:

Figure l is a schematic block diagram of a memory system which includes memory which is useful for understanding the present invention;

Figure 2 illustrates a simple two-dimensional array of samples which can be stored in the memory shown in Figure l;

Figure 3 shows how samples shown in Figure 2 are stored at linearly increasing addresses;

Figure 4 illustrates how samples can be accessed along a first dimension using the full width of a data bus;

Figure 5 illustrates how samples can be accessed along a second dimension which does not use the full width of the data bus;

Figure 6 is schematic block diagram of a memory system which includes memory and a memory access unit in accordance with the present invention;

Figure 6a illustrates configuration registers;

Figure 7 illustrates a simple two-dimensional array of samples which can be stored in the memory shown in Figure 6;

Figure 8 illustrates how, using the memory access unit shown in Figure 6, samples can be accessed along a first dimension using the full width of a data bus;

Figure 9 illustrates how, using the memory access unit shown in Figure 6, samples can be accessed along a second dimension using the full width of a data bus;

Figure 10 is a process flow diagram of a method performed by the memory access unit shown in Figure 6;

Figure 11 illustrates a three-dimensional array of samples;

Figure 12 is a schematic block diagram of a radar sample processing pipeline;

Figure 13a shows a first set of parameters for a configuration register and a first set of addresses and chip selects in a memory system in which the sample data width is the same as the memory data width;

Figure 13b shows contents of first, second, third and fourth sample storages;

Figures 13c, 13d and I3e illustrate operation of first, second, third and fourth sample collector when accessing first, second, third and fourth sample storages shown in

Figure 13b;

Figure 14a shows a second set of parameters for a configuration register and a second set of addresses and chip selects in a memory system in which the sample data width is double the memory data width; Figure 14b shows contents of first, second, third and fourth sample storages;

Figures 14c, i4d and i4e illustrate operation of first, second, third and fourth sample collector when accessing first, second, third and fourth sample storages shown in Figure 14b;

Figure 15 shows a bus address;

Figure 16 shows dimensional addresses for a range address map in a case where the sample width is the same as the memory data width;

Figure 17 shows dimensional addresses for a range address map in a case where the sample data width is double as the memory data width;

Figure 18 shows dimensional addresses for a pulse address map in a case where the sample data width is the same as the memory data width;

Figure 19 shows dimensional addresses for a pulse address map in a case where the sample data width is double as the memory data width;

Figure 20 shows dimensional addresses for a channel address map in a case where the sample data width is the same as the memory data width;

Figure 21 shows dimensional addresses for a channel address map in a case where the sample data width is double as the memory data width;

Figure 22 is schematic block diagram of a memory system which includes memory and an array of memory access units in accordance with the present invention;

Figure 22a illustrates a configuration register;

Figure 23 is a schematic block diagram of an address calculator;

Figure 24 is a schematic block diagram of a sample collector;

Figure 25 is a schematic block diagram of a sample storage module;

Figure 26 is a schematic block diagram of a bus interface;

Figure 27 is a bus timing diagram; and

Figure 28 illustrates a motor vehicle comprising a memory system.

Detailed Description of Certain Embodiments

In the following description, all constants, variables and registers are of type integer unless otherwise specified.

Memory system 1

Figure 1 is a schematic block diagram of a memory system 1 which is useful for understanding the present invention. Referring to Figure l, the memory system l includes memory 2 in the form of an array of n random access memory (RAM) modules ,...,2 n (where n is an integer greater than one). The memory modules ,...,2 n may take the form of memory macros. The memory system l also includes bus wiring 3 and a memory access circuit 4

interconnecting the memory 2 and a bus 5 which consists of an address bus 6 and a data bus 7.

The memory access circuit 4 includes an address calculator 8 (which may also be referred to as an "address decoder"), a data multiplexer 9 and a bus interface 10.

Each memory module ,...,2 n has a memory data width w_m. In this example, the memory data width w_m is 128 bits. In this example, the data bus 7 is 128 bits wide.

The address calculator 8 selects one RAM module ,...,2 n from n RAM modules ,...,2 n using a chip select signal CS and specifies a part of memory 2 to be accessed using a memory address A_M via chip select and memory address buses 11. The address calculator 8 calculates chip select CS and memory address A_M using a bus address A_B received on the address bus 6 via the bus interface 10. In a write transfer, bus data D_B are placed on memory data bus ,...,i2k. The data are stored in one of the RAM modules ,...,2 n upon selection using chip select CS at a respective address A_M. The bus interface can request only part of the bus data D_B to be stored. In a read transfer, a selected RAM module ,...,2 n can transfer memory data D_M to the bus interface 10. The bus interface 10 can request only part of memory data D_M be transferred.

Referring also to Figures 2 to 5, data is transferred in fixed-sized units 13 (herein referred to as "words" or "samples"). Each memory ,...,2 n has a width w_m which is an integer multiple of the sample size. In this case, width w_m is 128 bits and each sample 13 is four bytes long and contains 32 bits. Thus, if the full bus width is to be used, then samples 13 should be stored in (or written to) adjacent positions across memory. Figure 2 schematically shows a simple two-dimensional picture (or "image") 14 which comprises 4 x 4 samples 13 arranged in a two-dimensional array having x and y dimensions. Figure 3 shows how the picture 14 (Figure 2) can be stored in memory 2, i.e. in first and second memory modules 2i, 2 2 (Figure 2), addressable with chip selects CS equal to o and 1 respectively, at linearly-increasing addresses A_M.

The picture 14 (Figure 2) can be processed in either dimension, that is, along the x dimension or along the y dimension. In this example, samples 13 can be transferred over a data bus 7 (Figure 1) that can carry up to four samples 13 in each cycle.

Figures 4 and 5 illustrate bus transfer performance when data is transferred by accessing samples 13 along the x dimension and the y dimension respectively.

As shown in Figure 4, if samples 13 are read out by accessing the picture 14 along the x dimension, then the full width of the data bus 7 can be utilized. However, as shown in Figure 5, if samples 13 are read out by accessing the picture 14 along the y dimension, then only one sample 13 can be transferred at a time, i.e. per cycle.

Thus, when samples 13 are read out along the y dimension, performance is degraded by a factor of four.

Performance can be degraded even further if data transfer occurs in bursts. Bus systems can have long latencies. If an access request is made, then it may be necessary to wait a several cycles before data is transferred. Hence, modern bus systems transfer multiple data words in sequence (called "burst") with each request. However, bursts require that the address for each data word increases linearly without jumps. Therefore, they cannot be used to transfer the samples in y direction, reducing the performance even more.

If more than one sample is transferred in a bus word, then the full width of a bus cannot be used unless the sample order matches the storage order. However, often there is a need to read out samples along more than one dimension, for example, in image processing and radar applications, and other applications which involve multidimensional data access or transpositions, such as in multi-dimensional fast Fourier transform (FFT) processing. Some applications, such as radar, are automotive applications. In accordance with the present invention, memory access units and memory access methods can allow samples to be read out along different dimensions without the need for sample re-ordering and/or which can help improve bus utilization.

Memory system 21

Figure 6 is a schematic block diagram of a reconfigurable multi-dimensionally accessible memory system 21 in accordance with the present invention. Referring to Figure 6, the memory system 21 includes memory 22 in the form of an array of k sample storage modules 22i,...,22k (where k is an integer greater than one). Each sample storage module 22i,...,22k takes the form of a RAM macro or other RAM module. The memory system 21 includes bus wiring 23 and a memory access unit 24 interconnecting the memory 22 and a bus 25 which consists of an address bus 26 and a data bus 27.

The memory access unit 24 includes an array of k address calculators modules

281,...,28k, an array of k sample collector modules 291,...,29k, a common bus interface 30 and a set of configuration registers 31.

Each memory module 22i,...,22 n has a memory data width w_m. The memory data width w_m and the minimum sample width are the same. In this example, the data bus 27 is 128 bits wide. However, the data bus 27 can be narrower or wider, for example, 256 bits wide.

Referring also to Figure 6a, the configuration registers 31 include a set of registers 3I1, 3i 2 ,...,3id (where d is a positive integer more than one) specifying the number of samples S_i which can be stored in each dimension i, where i = {1, 2,..., d}, and a register 3i s specifying sample data width w_s. The memory data width w_m is equal to or an integer multiple of the sample data width w_s. The configuration registers 31 are set by a user before the memory system 21 is used.

Referring again to Figure 6, an address calculator module 281,...,28k receives the bus address A_B, adds a respective offset corresponding to the position Nr of the sample in the bus data word to obtain an bus address A_B' for a respective sample and converts the sample bus address A_B' into a set of sample addresses A_i, A_d and a sample index I_S according to an address decoding scheme. The bus address A_B' for a sample is calculated using:

A_B' = A_B + (Nr-i)*w_m (l) where Nr = l, 2,..., k and memory data width w_m.

An example of an address decoding scheme for three-dimensional accesses in radar signal processing is described hereinafter. However, any suitable address decoding scheme can be used. The dimension address A_L is the linear address along the access dimension.

Figure 7 schematically shows a simple two-dimensional picture (or "image") 33 which comprises 4 x 4 samples 34 arranged in a two-dimensional array having x and y dimensions.

Referring to Figures 7 and 8, an i-th sample collector 291 (where i = { 1,2,...,k }) is responsible for collecting a sample 34 at a fixed bit position [w_m*8*i-i:w_m*8*(i-i)] in the bus data word.

A sample collector 29 1 ,...,29k identifies a sample storage 22i,...,22k in which a requested sample 33 is stored or is to be stored, selects the identified sample storage 22i,...,22k using a select signal CS, requests transfer (read or write) of the sample 34 at the address A_M and fills or retrieves the sample 34 at the assigned position in the bus data word D_B.

A dedicated sample collector 29 1 ,...,29k exists for each sample 34 in the bus data word D_B. As will be explained in more detail later, the sample collectors 29 1 ,...,29k perform memory access in parallel using a chip select arrangement which ensures that there are no access conflicts in sample storage 22i,...,22k. Thus, the full bus data width can be utilized without introducing wait states.

Figures 8 and 9 illustrate bus transfer performance when data is transferred by accessing samples 34 along x and y dimensions respectively. As shown in Figure 8, if samples 34 are read out by accessing a picture 33 along the x dimension, then the full width (in this case, 128 bits) of the data bus 27 can be utilized.

And, as shown in Figure 9, if samples 34 are read out by accessing a picture 33 along the y dimension, then the full width of the data bus 27 can be employed.

Accesses along the x and y dimensions can utilize the full bus width, in this case, four samples per bus data word. Furthermore, bursts are possible since A_L linearly increases, without jumps. This can further improve performance. For example, if the bus 25 is an Advanced extensible Interface (AXI) bus with ten pipeline stages, a single access requires ten cycles per word. A 16-beat burst requires ten cycles for the initial word and fifteen cycles for the remaining words. On average, one word requires 25/16=1.6 cycles per word. This is another speed up by an additional factor of six. Thus, compared with the memory system 1 shown in Figure 1 in which samples are ordered along the memory address, the memory system 21 can transfer data along the y dimension at a rate which is 24 times faster.

Referring again to Figure 6 and Figure 10, when an access request is received (step Si), an address calculator module 281,...,28k converts the bus address A_B into a representation in the multi-dimensional data array (step S2).

Each sample 34 is addressed within the array by its dimension address A_i, A_2,..., A_d and sample index I_S. The sample index I_S is used if the sample width w_s is greater than the sample storage width w_m.

Since the bus data word D_B contains more than one sample, a bus access field indicates along which dimension access is requested. Several bus address calculation schemes are possible which identify encoding access direction, linear address A_L and index.

Each sample collector 291,...,29k computes (steps S3 to S6) using equations 2 to 5 below: - a sample address A_S using: A_S = (A_d* ( S_d- l * S_d-2 *...* S_l ) +

A_d- 1 * ( S_d-2 * S_d-3 *...* S_l ) +

... +

A_l ) * (w_s /w_m) (2)

- a physical word address A_P using:

A_P = A_S + i_s (3) - a selected memory CS using:

CS = [ I_S + (w_s /w_m) * (A_l + A_2 + ... + A_d) ] % k (4)

- an address in memory A_M using:

A_M = A_P / k (5) where + is addition, - is subtraction, / is integer division (fractions are discarded), % is remainder of integer division (i.e. modulo) and * is integer multiplication.

Each sample collector 291,...,29k accesses a respective sample storage 22i,...,22k (step S7). The bus interface answers the transfer request (step S8).

Selected memory CS is different for adjacent samples in every dimension. If accesses occur along dimension j (j={i,...,k}), only the sample address A_j changes in equation 4. The other sample addresses A_i (i={i,...,k},ioj) remain constant. However, for the term which changes, the term is different for adjacent addresses in the accessed dimension. Thus, parallel accesses to sample storages are possible. There is, however, an exception to this arrangement, namely when a transaction crosses an access dimension boundary. In that case, more than one term changes in the selected memory CS. Depending on the chosen sizes, wait states may be necessary. No wait states occur if each dimension size S_i, S_2,...,S_d is a multiple of w_m*k/w_s. A memory access system which has multiple bus interfaces and which uses wait states is described hereinafter. Application of the memory system 21 in a radar application

Referring to Figure 11, in radar applications, multiple time responses from an antenna vector (not shown) are stored in memory resulting in a three-dimensional array 35 (herein also referred to as a "data cube" or simply "cube") of samples 36. The array 35 may have, for example, 512 samples along a range dimension, 64 samples along a Doppler dimension and 8 samples along a channel dimension.

In radar and other applications, a change of dimension requires re-ordering samples in memory (referred to as performing "corner turns"). A large amount of processing time can be spent on the corner turns.

Referring to Figure 12, the radar pulse processing system 41 can be implemented using a pipeline in which samples 36 are stored, as a data cube 35 (Figure 11), in memory 22. Samples 36 are fed into a pulse compression block 50 and the output is stored in memory 22. Samples 36 are then read out and fed into a Doppler filtering block 51 and the output is stored in memory 22. is the samples are read out and fed, together with weights from a previous data cube, into a space-time adaptive processing section 52 comprising a beamform block 53 and an adaptive weight computation block 54 which generates weights which are saved for the next cube, and are stored. The transformed samples 36 are read out and fed to a constant false alarm rate (CFAR) detection block 55 which outputs a detection report 56.

The multi-dimensional memory system 21 can be used to store and then read out the right concatenation of the samples 35 in the bus response for the given dimension. Thus, data reorganisation can be avoided.

Simple examples showing address calculation and sample storage selection

Referring to Figure 13a, a set of parameters 61 for the configuration register and global assignment of address and chip selects 62 for a simple example are shown in which the sample data width w_s is the same as the memory data width w_m.

The maximum number of samples per bus word k is four, the total number of dimensions d is three, the memory data width w_m is four bytes and the sample data width w_s is four bytes. There are four, five and two samples in first, second and third dimensions respectively S_i, S_2, S _3. As shown in Figure 13a, values of dimension address A_i, A_2, A __3, sample address A_S, sample index I_S, physical word address A_P, sample storage select CS and address in memory A_M are tabulated. Referring to Figure 13b, contents of first, second, third and fourth sample storages 22i, 22 2 , 22 3 , 22 4 are shown. Sample addresses in the array 35 are shown in round brackets and the sample indexes are shown in square brackets.

Figures 13c, 13d and i3e illustrate operation of the sample collector 291, 292, 29 3 , 294 when accessing the sample storages 221, 22 2 , 22 3 , 22 4 along each of the three

dimensions. Figures 13c, 13d and I3e show linear access address A_L, dimension address A_i, A_2, A_3, sample index I_S, physical address A_P, sample storage select CS and memory address A_M accesses for each sample collector 291, 292, 29 3 , 294. Figure 13c illustrates accessing the sample storages 221, 22 2 , 22 3 , 22 4 along the first dimension, i.e. range samples. In this case, no wait states are needed because only one dimensional address changes at a time.

Figure 13d illustrates accessing the sample storages 221, 22 2 , 22 3 , 22 4 along the second dimension, i.e. pulse samples. In this case, no wait states are needed because, even though more than one dimensional address changes at a time, there are no CS conflicts.

Figure i3e illustrates accessing the sample storages 221, 22 2 , 22 3 , 22 4 along the third dimension, i.e. channel samples. In this case, a wait state is needed.

Referring to Figure 14a, a set of parameters 61 for the configuration register and global assignment of address and chip selects 62 for a simple example are shown in which the sample data width w_s is double the memory data width w_m. Figure 14b shows the contents of first, second, third and fourth sample storages 22i, 22 2 , 22 3 , 22 4 and Figures 14c, i4d and i4e illustrate operation of the sample collector 29 1 , 29 2 , 29 3 , 29 4 when accessing the sample storages 22 1 , 22 2 , 22 3 , 22 4 along each of the three dimensions. Bus address decoding scheme for radar devices

Referring again to Figure 6, the address calculators 291,...28k employ an address decoding scheme to generate dimensional address A_i,...,A_d from bus address A_B. An address decoding scheme will now be described with reference to Figure 15.

Figure 15 shows a bus address A_B' 63 (i.e. the bus address A_B after position adjustment for a given sample) comprising a base field 64, a dimension access mode (DIM) field 65 and a linear address A_L 66. As fixed parameters, the memory data width w_m is four bytes and the number of dimensions is three.

Range addressing mode

Range addressing mode can be selected by setting DIM to o, i.e. 2boo. The first, second and third dimensional addresses A_i, A_2 and A3 are calculated as follows:

A_l = (A_L/ (w_s) ) %S_1 (6-R-l) A_2 = (A_L/ (S_l*w_s) ) %S_2 (6-R-2) A_3 = (A_L/ ( S_2 * S_l *w_s ) ) %S_3 (6-R-3) Range addressing mode can also be used to access the memory in a traditional way by setting the sample width to be the same as memory width, i.e. w_s = w_m, and the dimension size S_i,...,S_d to be the maximum physical memory size.

Pulse addressing mode

Pulse addressing mode can be selected by setting DIM to 1, i.e. 2boi. The first, second and third dimensional addresses A_i, A_2 and A3 are calculated as follows:

A_l = (A_L/ (S_2*w_s) %S_1 (6-P-l) A_2 = (A_L/ (w_s) ) %S_2 (6-P-2) A_3 = (A_L/ ( S_2 * S_l *w_s ) ) %S_3 (6-P-3)

Channel addressing mode

Channel addressing mode can be selected by setting DIM to 2, i.e. 2bio. The first, second and third dimensional addresses A_i, A_2 and A3 are calculated as follows: A_l= (A_L/ (S_3*w_s) %S_1 (6-C-i)

A_2= (A_L/ (S_3*S_l*w_s) ) %S_2 (6-C-2)

A_3= (A_L/ (w_s) ) %S_3 (6-C-3) Sample index

The sample index I_S is calculated using:

I_S = A_L/w_m (w_s /w_m) (7) Figures 16 to 21 show examples of dimensional addresses A_i, A_2 and A _3 and physical address A_P calculated using equations 2, 3, 6-R-i, 6-R-2, 6-R-3, 6-P-i, 6-P-2, 6-P-3, 6-C-i, 6-C-2, 6-C-3 and 7.

Referring to Figures 16 and 17, dimensional addresses A_i, A_2 and A_3 are shown for a range address map calculated using equations 6-R-i, 6-R-2, 6-R-3 when S_i=4, S_2=2, S_3=3.

Referring to Figures 18 and 19, values of dimensional addresses A_i, A_2 and A _3 are shown for a pulse address map calculated using equations 6-P-i, 6-P-2, 6-P-3 when S_i=4, S_2=2, S_3=3.

Referring to Figures 20 and 21, values of dimensional addresses A_i, A_2 and A _3 are shown for a channel address map calculated using equations 6-C-i, 6-C-2, 6-C-3 when S_i=4, S_2=2, S_3=3

Memory system 71

Referring to Figure 6, the memory system 21 includes an interface with only one bus. However, memory can be accessed by m buses (where m is a positive integer greater than one) by providing a ready (RDY) feedback from the sample storage to the sample collector. For example, there may be sufficient samples in memory to require a plurality of digital signal processors (DSPs) to process the samples. Memory may be divided into a plurality of portions, with each DSP processing a respective portion of memory. Each DSP uses a respective bus to access the memory. This allows the DSPs to process data in parallel. For example, eight DSPs can be used, thereby requiring eight buses (i.e. m = 8). Each bus is provided with a bus master (not shown). An RDY feedback can also be used to handle conflicts in CS selection. If more than one sample collector accesses the same sample storage, then conflict can be resolved by an arbiter. To support m bus interfaces, there are an equivalent number of memory segments. In the best case, m masters can accesses each segment without conflicts.

Referring to Figure 22, the memory system 71 includes memory 72 in the form of an array of (k*m) sample storage modules 72i,...,72k* m (where k is an integer greater than two). The memory system 71 includes bus wiring 73 and m memory access units

74 l .. ,74m interconnecting the memory 72 and m buses 75i,...,75m each of which consists of an address bus 76, a data bus 77 and RDY signal 78.

Each memory access unit 74 1 ,...,74 m includes an array of k address calculators modules 79i v ,79k, an array of k sample collector modules 80i,...,80k and a common bus interface 81. The memory system 71 is provided with a set of configuration registers 82.

Each memory module 72i,...,72 n has a memory data width w_m. In this example, memory data width w_m is 32 bits and each data bus 77 is 128 bits wide.

Referring also to Figure 22a, the configuration registers 82 include a set of registers 82i, 82 2 ,...,8id (where d is a positive integer more than one) specifying the number of samples S_i where i = { 1,2,...,d } and a register 82 s specifying sample data width w_s. The sample data width w_s equals or is an integer multiple of memory data width w_m. The configuration registers 82 are set by a user before the memory system 71 is used.

Referring to Figure 23, an address calculator 281,...28k, 791,...,79k is shown in more detail.

The address calculator 281,...28k, 791,...,79k comprises an adder unit 28a, 79a and address calculator arithmetic logic unit 28b, 79b.

The adder unit 28a, 79a adjusts the bus address A_B to match the position Nr = 1, 2, k of the sample in the bus data word using equation (1) above. The address calculator arithmetic logic unit 28b, 79b converts the sample bus address A_B' into the dimensional address A_i, A_d and the sample index I_S. Different address decoding schemes are possible. Referring to Figure 24, a sample collector 291,...,29k, 80i,...,80k is shown in more detail.

The sample collector 291,...,29k, 80i,...,80k comprises sample calculator arithmetic logic unit 80a and a multiplexer 80b. To support parallel accesses without conflicts from m bus interfaces, the sample storage select signal CS partitions memory into m segments, where m is a positive integer greater than one. Each segment contains S_M words.

Within the segment, sample collector 80i,...,80k calculates sample storage select signal CS(MULTIPLE BUS) (hereinafter also referred to simply as CS) using:

CS (MULT IPLE BUS ) = (A_P / S_M) * k + CS ( S INGLE BUS ) (4') where CS(SINGLE) can be calculated using equation 4 above.

The sample collector 80i,...,80k calculates address in memory A_M using equation 4' below:

A_M = (A_P % S_M) / k (5')

D_B is bi-directional depending on transfer direction (read / write).

RDY indicates that a bus must wait where there are multiple masters and/or multiple sample collectors access the same RAM module.

Referring to Figure 25, a sample storage module 22i,...,22k* m , 72i,...,72k* m is shown in more detail.

The sample storage module 22i,...,22k* m , 72i,...,72k* m comprises a RAM macro 22a, 72a, a multiplexer 22b, 72b, an arbiter 22c, 72c and comparators 22d(i),...,22d(k*m), 72d(i),...,72d(k*m). Each sample storage r ji 1 ,..., r ji\* m reacts only to CS request that match its number Nr, where Nr = {i,...,k*m}. The arbiter 72c selects one request from all active CS requests by a suitable policy, for example round-robin. All other sample collectors 80i,...,80k are paused using the RDY signal.

RAM 72a handles the data word transfer depending on the direction (read or write).

Referring to Figure 26, a bus interface 81 is shown in more detail.

The bus interface 81 includes a concatenate block 81a and k-input AND gate 81b.

Each sample collector 80i,...,80k handles a fixed sample position in the bus word. The bus interface 81 concatenate data D_M from each sample collector 80i,...,80k for output as bus data, namely:

D_B = { D_M ( k ) , D_M(1)} ( )

The k-input AND gate 81b receives RDY(i),...,RDY(k) from the sample collectors 80i,...,80k and outputs an RDY signal.

Referring to Figure 27, when address calculations are timing-critical, they can be pipelined provided burst-property is maintained. Figure 27 shows halting an AHB bus only for one cycle at the beginning of a burst to compute C_S and A_M.

Referring to Figure 28, a motor vehicle 91 is shown. The motor vehicle 91 includes an advanced driver assistance system (ADAS) 92 which includes sensors (not shown) and one or more memory systems 21, 71.

It will be appreciated that many modifications may be made to the embodiments hereinbefore described.