WO2014030383A1 - Associative memory - Google Patents

Associative memory Download PDF

Info

Publication number
WO2014030383A1
WO2014030383A1 PCT/JP2013/060326 JP2013060326W WO2014030383A1 WO 2014030383 A1 WO2014030383 A1 WO 2014030383A1 JP 2013060326 W JP2013060326 W JP 2013060326W WO 2014030383 A1 WO2014030383 A1 WO 2014030383A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
counter
distance
detection circuit
clock
Prior art date
Application number
PCT/JP2013/060326
Other languages
French (fr)
Japanese (ja)
Inventor
ハンスユルゲン マタウシュ
小出 哲士
静龍 佐々木
智信 赤澤
Original Assignee
国立大学法人広島大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 国立大学法人広島大学 filed Critical 国立大学法人広島大学
Publication of WO2014030383A1 publication Critical patent/WO2014030383A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C15/00Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores
    • G11C15/04Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores using semiconductor elements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C15/00Digital stores in which information comprising one or more characteristic parts is written into the store and in which information is read-out by searching for one or more of these characteristic parts, i.e. associative or content-addressed stores

Definitions

  • the present invention relates to an associative memory.
  • the former is called CAM (Contents Addressable Memory), and is used to realize the routing of the IP address table of the network router and the cache of the processor.
  • CAM Content Addressable Memory
  • a memory having a function for realizing such a flexible comparison is particularly referred to as an associative memory.
  • Non-patent Document 1 As means for realizing an associative memory, (1) an implementation method using a digital method (Non-patent Document 1), (2) an implementation method using an analog method, and (3) a digital / analog fusion method (Non-Patent Document 2) have been proposed.
  • Non-Patent Document 2 “A High-Speed and Low-Voltage Associative Co-Processor with Hamming Distance Ordering Using Word-Parallel and Hierarchical Search Architecture,” CICC, 2004.
  • Y. Oike et al. “A Word-Parallel Digital Associative Engine with Wide Search RangeBased on ManhattanDistance,” CICC, 2004.
  • Non-Patent Document 1 performs a similar search using the Hamming distance between the search data and the reference data, there is a problem that it is difficult to perform a similar search using the Manhattan distance. Further, in the associative memory described in Non-Patent Document 2, since the distance representing the similarity between the search data and the reference data is converted into a voltage, there is a problem that an erroneous search occurs.
  • an object of the present invention is to provide an associative memory capable of performing a similar search accurately and at high speed even when the Manhattan distance is used. It is to be.
  • the content addressable memory includes a reference data storage circuit, R distance calculation circuits, R distance / clock number conversion circuits, and a Winner detector.
  • the reference data storage circuit stores R reference data each having a bit length of M ⁇ W bits.
  • the R distance calculation circuits are provided corresponding to the R reference data, each of which has a bit length of M ⁇ W bits, and represents the distance between the search data to be searched and the reference data. Number of distance signals are output.
  • the R distance / clock number conversion circuits are provided corresponding to the R distance calculation circuits, each receiving W distance signals each having an M-bit bit length from the corresponding distance calculation circuit, The number of clocks of the clock signal when a counter value that matches the sum of the received W distance signals is obtained is counted, and a timing signal indicating the coincidence timing that is the timing at which the number of clocks is counted is output.
  • the Winner detector detects k timing signals in order of the matching timing based on the R timing signals received from the R distance / clock number conversion circuits, and searches for the detected k timing signals. A match signal indicating the similarity between the data and the reference data is output.
  • each of the R distance / clock number conversion circuits has a counter value that matches the sum of the W distance signals received from the corresponding distance calculation circuit. The number of clocks of the clock signal is counted, and a timing signal indicating the coincidence timing that is the timing of counting the number of clocks is output. That is, each of the R distance / clock number conversion circuits converts the sum of the W distance signals into the clock number of the clock signal, and outputs a timing signal indicating the timing at which the converted clock number is obtained.
  • the timing signal indicates an earlier coincidence timing, and if the distance represented by the sum of the W distance signals is large, the timing signal is slower. Indicates the match timing.
  • the number of clocks of the clock signal when a counter value matching the sum of the W distance signals is obtained is W of the clock signal when the W counter values matching each of the W distance signals are obtained. Since the number of clocks is added, the clock signal when the counter value matching the distance signal between the search data and the reference data when the distance between the search data and the reference data is expressed by the Manhattan distance is obtained. It becomes the number of clocks.
  • the two timings indicated by the two timing signals have a time difference of at least one period of the clock signal. Further, the search time is shortened by increasing the frequency of the clock signal.
  • the similarity search can be performed accurately and at high speed.
  • FIG. 2 is a schematic diagram illustrating a configuration of a distance / clock number conversion circuit illustrated in FIG. 1.
  • FIG. 3 is a schematic diagram illustrating a configuration of a counter coincidence detection circuit illustrated in FIG. 2.
  • FIG. 4 is a diagram for explaining the operation of the counter coincidence detection circuit shown in FIG. 3.
  • FIG. 2 is a diagram for explaining the operation of a distance / clock number conversion circuit shown in FIG. 1. It is a figure for demonstrating operation
  • FIG. 3 is a schematic diagram showing another configuration of the distance / clock number conversion circuit shown in FIG. 1.
  • FIG. 5 is a schematic diagram showing still another configuration of the distance / clock number conversion circuit shown in FIG. 1.
  • FIG. 10 is a schematic diagram showing a specific configuration of the distance / clock number conversion circuit shown in FIG. 9. It is a figure for demonstrating operation
  • FIG. 10 is a schematic diagram showing another specific configuration of the distance / clock number conversion circuit shown in FIG. 9. It is a figure for demonstrating operation
  • FIG. 11 is a schematic diagram illustrating a specific configuration of the distance / clock number conversion circuit illustrated in FIG. 10.
  • FIG. 16 is a diagram for explaining the operation of the distance / clock number conversion circuit shown in FIG. 15;
  • FIG. 11 is a schematic diagram showing still another specific configuration of the distance / clock number conversion circuit shown in FIG. 10.
  • FIG. 18 is a diagram for explaining the operation of the distance / clock number conversion circuit shown in FIG. 17. It is a figure which shows the comparison of the shortest search time. It is a figure which shows the comparison of power consumption.
  • FIG. 1 is a schematic block diagram showing a configuration of an associative memory according to an embodiment of the present invention.
  • an associative memory 100 according to the first embodiment of the present invention includes a memory array unit 10 and a Winner detector 20.
  • the memory array unit 10 includes a memory unit 1, a row decoder 2, a column decoder 3, a read / write circuit 4, and a search data storage circuit 5.
  • the memory unit 1 includes a reference data storage circuit (Storage Cell: SC) SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW, and a distance calculation circuit (Distance Processor: DP) DP 11 to DP 1W , DP 21 to DP 2W ,..., DP R1 to DP RW , and distance / clock number conversion circuits DC 1 to DC R are included.
  • Each of W and R is an integer of 2 or more.
  • the distance calculation circuits DP 11 to DP 1W are provided corresponding to the reference data storage circuits SC 11 to SC 1W , respectively.
  • the distance calculation circuits DP 21 to DP 2W are provided corresponding to the reference data storage circuits SC 21 to SC 2W , respectively.
  • the distance calculation circuits DP R1 to DP RW are provided corresponding to the reference data storage circuits SC R1 to SC RW , respectively.
  • the distance / clock number conversion circuit DC 1 is provided corresponding to the distance calculation circuits DP 11 to DP 1W .
  • the distance / clock number conversion circuit DC 2 is provided corresponding to the distance calculation circuits DP 21 to DP 2W .
  • the distance / clock number conversion circuit DC R is provided corresponding to the distance calculation circuits DP R1 to DP RW .
  • Reference data storage circuits SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW store reference data written by the row decoder 2, the column decoder 3, and the read / write circuit 4. .
  • the reference data storage circuits SC 11 to SC 1W store M ⁇ W (M is an integer of 1 or more) bits of reference data 1, and the reference data storage circuits SC 21 to SC 2W have M ⁇ W bits.
  • the reference data 2 is stored, and the reference data storage circuits SC R1 to SC RW store the M ⁇ W bit reference data R in the same manner. That is, each of the reference data storage circuits SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW stores M bits of reference data.
  • the distance calculation circuits DP 11 to DP 1W include M ⁇ W bit reference data 1 stored in the reference data storage circuits SC 11 to SC 1W , M ⁇ W bit search data stored in the search data storage circuit 5, and Is calculated by a method described later.
  • the distance calculation circuits DP 21 to DP 2W search for the M ⁇ W bit reference data 2 stored in the reference data storage circuits SC 21 to SC 2W and the M ⁇ W bit search stored in the search data storage circuit 5.
  • the distance from the data is calculated by the method described later.
  • the distance calculation circuits DP R1 to DP RW perform the M ⁇ W bit reference data R stored in the reference data storage circuits SC R1 to SC RW and the M ⁇ W stored in the search data storage circuit 5.
  • the distance from the W-bit search data is calculated by a method described later.
  • the distance calculation circuits DP 11 to DP 1W , the distance calculation circuits DP 21 to DP 2W ,..., And the distance calculation circuits DP R1 to DP RW calculate the distance between the reference data and the search data in parallel. .
  • the distance calculation circuits DP 11 to DP 1W output the distance between the reference data 1 and the search data to the distance / clock number conversion circuit DC 1 as a distance signal of M ⁇ W bits
  • the distance calculation circuits DP 21 to DP 2W is the distance between the reference data 2 and the search data is output as the distance signal of the M ⁇ W bits to distance / clock number conversion circuit DC 2
  • the distance calculation circuit DP R1 ⁇ DP RW are reference data the distance between R and the search data is output to the distance / clock number conversion circuit DC R as a distance signal M ⁇ W bits.
  • Each of the distance calculation circuits DP 11 to DP 1W calculates the distance between the reference data 1 and the search data using the following equation.
  • In j is the search data
  • Re rj is the reference data. is there.
  • Each of the data In j and Re rj consists of M bits.
  • the distance calculation circuits DP 11 to DP 1W calculate the distance between the M ⁇ W bit reference data 1 and the M ⁇ W bit search data in M bits, and each has a bit length of M bits.
  • the W distance signals D 1j are output to the distance / clock number conversion circuit DC 1 .
  • the distance calculation circuits DP 21 to DP 2W ,... And the distance calculation circuits DP R1 to DP RW also calculate the distances between the reference data 2 to R and the search data using the equation (1). Further, the distance calculation circuits DP 21 to DP 2W ,... And the distance calculation circuits DP R1 to DP RW also receive W distance signals D 2j to D Rj each having a bit length of M bits, respectively. Output to the conversion circuits DC 2 to DC R.
  • the distance / clock number conversion circuit DC 1 receives W distance signals D 1j from the distance calculation circuits DP 11 to DP 1W, and the number of clock signals CLK that matches the sum of the received W distance signals D 1j. counted by a method described later CN_total1, and outputs a timing signal C 1 indicating a timing of counting the number of clocks CN_total1 to Winner detector 20.
  • the timing at which the clock number CN_total1 is counted is the coincidence timing that matches the distance between the search data and the reference data 1.
  • the distance / clock number conversion circuit DC 2 receives W distance signals D 2j from the distance calculation circuits DP 21 to DP 2W , and receives the clock signal CLK that matches the sum of the received W distance signals D 2j . It was counted by the method described below a clock number CN_total2, and outputs a timing signal C 2 which shows the timing of counting the number of clocks CN_total2 to Winner detector 20.
  • the timing at which the number of clocks CN_total2 is counted is the coincidence timing at which the search data and the reference data 2 coincide.
  • the distance / clock number conversion circuit DC R receives W distance signals D Rj from the distance calculation circuits DP R1 to DP RW and matches the sum of the received W distance signals D Rj. It was counted by the method described below the number of clocks CN_totalR of the clock signal CLK, and outputs a timing signal C R indicating the timing of counting the number of clocks CN_totalR to Winner detector 20.
  • the timing at which the clock number CN_totalR is counted is the coincidence timing at which the search data and the reference data R coincide.
  • the row decoder 2 designates an address in the row direction of the memory unit 1.
  • the column decoder 3 designates an address in the column direction of the memory unit 1.
  • Read / write circuit 4 writes reference data to reference data storage circuits SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW designated by row decoder 2 and column decoder 3.
  • the search data is written into the search data storage circuit 5.
  • the search data storage circuit 5 stores the search data (M ⁇ W bit data) written by the read / write circuit 4.
  • Winner detector 20 receives from the timing signal C 1 ⁇ C R, respectively distance / clock number conversion circuits DC 1 ⁇ DC R, among the received timing signals C 1 ⁇ C R, the matching timing chronological order k (k Are integers satisfying 1 ⁇ k ⁇ R), and the detected k timing signals are output as match signals M 1 to M k indicating the similarity between the search data and the reference data.
  • Figure 2 is a schematic diagram showing the structure of a distance / clock number converting circuit DC 1 shown in FIG.
  • the distance / clock number converting circuit DC 1 includes an amplifier 21 ⁇ 2W, a counter coincidence detection circuit 31 ⁇ 3W.
  • the amplifier 21 receives a clock signal CLK from a clock generation circuit (not shown) built in the associative memory 100, amplifies the received clock signal CLK, and outputs it to the amplifier 22 and the counter coincidence detection circuit 31.
  • the amplifier 22 receives the clock signal CLK from the amplifier 21 and outputs the received clock signal CLK to the amplifier 23 (not shown) and the counter coincidence detection circuit 32.
  • the amplifier 2W receives the clock signal CLK from the amplifier 2W-1 (not shown) and outputs the received clock signal CLK to the counter coincidence detection circuit 3W.
  • Counter coincidence detection circuits 31 to 3W are provided corresponding to distance calculation circuits DP 11 to DP 1W , respectively.
  • the counter match detection circuits 31 to 3W are connected in series.
  • Counter coincidence detection circuit 31 receives a clock signal CLK from the amplifier 21, receiving the search start signal SB from the control circuit for the associative memory 100 (not shown), the distance calculation circuit distance signal from the DP 11 has a bit length of M bits subject to D 11.
  • Counter match detection circuit 31, when the search start signal SB is switched from L (logical low) level to H (logical high) level, when counted in ascending order in synchronization with the counter value to the clock signal CLK, the distance signal D 11 The number of clocks of the clock signal CLK when a counter value that matches is obtained is counted. Then, the counter coincidence detection circuit 31 outputs a coincidence signal MTH1 indicating the timing of counting the number of clocks to the counter coincidence detection circuit 32 in synchronization with the clock signal CLK.
  • the counter coincidence detection circuit 31 stops its operation when outputting the coincidence signal MTH1.
  • Counter coincidence detection circuit 32 receives a clock signal CLK from the amplifier 22 receives the coincidence signal MTH1 from the counter coincidence detection circuit 31 receives the distance signal D 12 having a bit length of M bits from the distance calculation circuit DP 12. The counter coincidence detection circuit 32 stops operating until it receives the coincidence signal MTH1 from the counter coincidence detection circuit 31. Counter coincidence detection circuit 32 is driven to undergo a coincidence signal MTH1 from the counter coincidence detection circuit 31, when the count in ascending order in synchronization with the counter value to the clock signal CLK, the counter value matches the distance signal D 12 is obtained The number of clocks of the clock signal CLK is counted.
  • the counter coincidence detection circuit 32 outputs a coincidence signal MTH2 indicating the timing of counting the number of clocks to the counter coincidence detection circuit 33 (not shown) in synchronization with the clock signal CLK.
  • the counter coincidence detection circuit 32 stops its operation when outputting the coincidence signal MTH2.
  • counter coincidence detection circuit 3W receives clock signal CLK from amplifier 2W, receives coincidence signal MTHW-1 from counter coincidence detection circuit 3W-1, and sets a bit length of M bits from distance calculation circuit DP 1W. It has a distance signal D 1W .
  • the counter coincidence detection circuit 3W stops operating until it receives a coincidence signal MTHW-1 from the counter coincidence detection circuit 3W-1.
  • Counter coincidence detection circuit 3W is driven from the counter coincidence detecting circuit 3W-1 and receives a match signal MTHW-1, when the count in ascending order in synchronization with the counter value of the clock signal CLK, and coincides with the distance signal D 1W
  • the number of clocks of the clock signal CLK when the counter value is obtained is counted.
  • the counter coincidence detection circuit 3W outputs a coincidence signal MTHW indicating a timing of counting the number of clocks in synchronization with the clock signal CLK as a timing signal C 1 to Winner detector 20.
  • Counter match detection circuit 3W when a timing signal C 1, to stop the operation.
  • FIG. 3 is a schematic diagram showing the configuration of the counter coincidence detection circuit 31 shown in FIG.
  • counter match detection circuit 31 includes a counter 311 and a match detection circuit 312.
  • the counter 311 receives a clock signal CLK from the amplifier 21 and a reset signal RST from a control circuit (not shown) of the associative memory 100. Upon receiving the reset signal RST, the counter 311 resets the counter value, and counts the M-bit bit value in ascending order in synchronization with the clock signal CLK. Then, the counter 311 sequentially outputs the counted counter value CV 11 to the coincidence detection circuit 312 in synchronization with the clock signal CLK.
  • Coincidence detection circuit 312 receives a clock signal CLK from the amplifier 21, receiving the search start signal SB from the control circuit for the associative memory 100 (not shown), sequentially receives the counter value CV 11 from the counter 311, the distance calculation circuit DP 11 receiving a distance signal D 11 from.
  • the search start signal SB when switched from L level to H level, and counts the number of clocks of the clock signal CLK when the counter value CV 11 matching the distance signal D 11 is obtained. Then, the coincidence detection circuit 312 outputs a coincidence signal MTH1 indicating the timing of counting the number of clocks to the counter coincidence detection circuit 32.
  • each of the counter coincidence detection circuits 32 to 3W shown in FIG. 2 has the same configuration as the counter coincidence detection circuit 31 shown in FIG.
  • the coincidence detection circuit 312 of the counter coincidence detection circuits 32 to 3W stops operation until it receives the coincidence signals MTH1 to MTHW-1 from the coincidence detection circuit 312 of the counter coincidence detection circuits 31 to 3W-1, respectively.
  • the signals MTH1 to MTHW-1 are received, they are driven and start operating.
  • FIG. 4 is a diagram for explaining the operation of the counter coincidence detection circuit 31 shown in FIG.
  • the operation of the counter coincidence detection circuit 31 will be described by taking as an example the case where each of the counter value CV 11 and the distance signal D 11 is 3 bits.
  • the distance signal D 11 is assumed to consist of "011".
  • counter 311 of counter coincidence detection circuit 31 receives reset signal RST from the control circuit of associative memory 100, counter 311 resets the number of counts, and period T1, T2, T3, in which clock signal CLK continues.
  • the bit values of “000”, “001”, “010”, “011” are sequentially counted, and the counted “000”, “001”, “010”, “011” are counted.
  • the counter value CV 11 is sequentially output to the coincidence detection circuit 312.
  • the coincidence detection circuit 312 receives the distance signal D 11 from the distance computing circuit DP 11 "011", when receiving a counter value CV 11 for synchronization with the cycle T1 of the clock signal CLK "000” from the counter 311, At timing t1, the number of clocks “0” is counted, and it is detected that the counter value CV 11 of “000” does not match the distance signal D 11 of “011” at the number of clocks “0”.
  • the coincidence detection circuit 312 When the coincidence detection circuit 312 receives the counter value CV 11 of “001” from the counter 311 in synchronization with the next cycle T2 of the cycle T1 of the clock signal CLK, it counts the number of clocks of “1” at the timing t2. , It is detected that the counter value CV 11 of “001” does not coincide with the distance signal D 11 of “011” in the number of clocks of “1”.
  • the coincidence detection circuit 312 receives a counter value CV 11 for synchronization with the next cycle T3 of the period T2 of the clock signal CLK "010" from the counter 311 counts the number of clocks of the "2" at the timing t3 , It is detected that the counter value CV 11 of “010” does not coincide with the distance signal D 11 of “011” in the number of clocks “2”.
  • the coincidence detection circuit 312 receives the counter value CV 11 of “011” from the counter 311 in synchronization with the period T4 next to the period T3 of the clock signal CLK, it counts the number of clocks of “3” at the timing t4. , It is detected that the counter value CV 11 of “011” matches the distance signal D 11 of “011” in the number of clocks “3”.
  • the coincidence detection circuit 312, a timing t4 counted clock number ( "3") of the clock signal CLK when the counter value CV 11 are obtained "011” matches the distance signal D 11 of "011”
  • the coincidence signal MTH1 is output to the counter coincidence detection circuit 32 and the control circuit of the associative memory 100. Thereafter, the coincidence detection circuit 312 stops the operation so that the counter value “011” is held at the clock numbers “4” and “5” in FIG. 4.
  • the counter 311 stops operating until it receives a reset signal RST from the control circuit of the associative memory 100, and the reset signal from the control circuit of the associative memory 100.
  • RST a reset signal
  • the bit values “000”, “001”, “010”, “011”,... are sequentially counted, and the counted “000”, “001”, “010”, “011” are counted.
  • the match detection circuits 312 of the counter match detection circuits 32 to 3W-1 stop operating until they receive the match signals MTH1 to MTHW-2 from the match detection circuits 312 of the counter match detection circuits 31 to 3W-2, respectively.
  • MTH1 to MTHW-2 the number of clocks of the clock signal CLK when the counter values CV 12 to CV 1W-1 coincide with the distance signals D 12 to D 1W-1 , respectively, is counted.
  • Match signals MTH2 to MTHW-1 indicating timing are output to the counter match detection circuits 33 to 3W and the control circuit of the content addressable memory 100, respectively. Then, the coincidence detection circuit 312 of the counter coincidence detection circuits 32 to 3W-1 stops its operation.
  • the counter 311 of the counter coincidence detection circuit 3W stops operating until it receives a reset signal RST from the control circuit of the associative memory 100.
  • a reset signal RST from the control circuit of the associative memory 100
  • “000”, “001” , “010”, “011”,... are sequentially counted, and the counter values CV 1W of “000”, “001”, “010”, “011” ,.
  • the data is sequentially output to the detection circuit 312.
  • the coincidence detection circuit 312 of the counter coincidence detection circuit 3W stops operating until it receives the coincidence signal MTHW-1 from the coincidence detection circuit 312 of the counter coincidence detection circuit 3W-1, and when receiving the coincidence signal MTHW-1, The number of clocks of the clock signal CLK when 1W coincides with the distance signal D 1W is counted, and timing signals (respective timing signals C 1 to C R ) indicating the timing at which the number of clocks is counted are used as the Winner detector 20 and the associative memory. To 100 control circuits. Then, the coincidence detection circuit 312 of the counter coincidence detection circuit 3W stops its operation.
  • the control circuit of the associative memory 100 When receiving the coincidence signals MTH1 to MTHW-1 from the counter coincidence detection circuits 31 to 3W-1, the control circuit of the associative memory 100 outputs the reset signal RST to the counter coincidence detection circuits 32 to 3W, respectively.
  • the control circuit of the associative memory 100 receives a timing signal C 1 from the counter coincidence detection circuit 3W, outputs a reset signal RST to the counter coincidence detection circuits 31 ⁇ 3W.
  • Figure 5 is a diagram for explaining the operation of the distance / clock number converting circuit DC 1 shown in FIG.
  • the distance / clock number converting circuit DC 1 is an illustrating the operation of the distance / clock number converting circuit DC 1 as an example the case of two counter match detection circuits 31 and 32.
  • the distance signal D 11 is composed of "3”
  • the distance signal D 12 is assumed to consist of "5".
  • the counter coincidence detection circuit 32 outputs a timing signal C 1 indicating the timing at which the number of clocks of “5” is counted to the Winner detector 20 and the associative memory 100 control circuit. Then, the counter coincidence detection circuit 32 stops its operation.
  • the counter coincidence detection circuit 32 determines the number of clocks of the clock signal CLK when a counter value that coincides with the distance signal “8” that is the sum of the distance signal “3” and the distance signal “5” is obtained.
  • a timing signal C 1 indicating the timing at which the number of clocks is counted is output.
  • the total number of clocks “8” counted by the two counter coincidence detection circuits 31 and 32 is “3” that the counter coincidence detection circuit 31 counts and “5” that the counter coincidence detection circuit 32 counts. This is the sum of the number of clocks.
  • the distance / clock number conversion circuit DC 1 generally receives W distance signals D 11 to D 1W . Each of the W distance signals D 11 to D 1W has a bit length of M bits. Therefore, the distance / clock number converting circuit DC 1 receives the distance signal D 11 D 12 ⁇ D 1W having a bit length of M ⁇ W bits.
  • the counter coincidence detection circuits 31 to 3 W respectively receive the clock signals CLK when the counter values CV 11 to CV 1W respectively corresponding to the distance signals D 11 to D 1W are obtained.
  • the number of clocks CN1 to CNW is counted.
  • the counter coincidence detection circuits 32 to 3W receive the coincidence signals MTH2 to MTHW-1 from the counter coincidence detection circuits 31 to 3W-1, respectively, and then the counter values CV 12 coincide with the distance signals D 12 to D 1W , respectively.
  • the count of the clock numbers CN2 to CNW of the clock signal CLK when .about.CV 1W is obtained is started.
  • the number of clocks CN_total distance / clock number conversion circuit DC 1 counts is equal to the sum of the number of clocks CN1 ⁇ CNW.
  • clock numbers CN1 to CNW represent distance signals D 11 to D 1W , respectively
  • clock number CN_total represents the sum of distance signals D 11 to D 1W .
  • the Manhattan distance n M equals the distance calculated by equation (1) to those obtained by adding the W number of distance.
  • each of the distance / clock number conversion circuits DC 2 ⁇ DC R also by the distance / operation and the same operation of the clock number conversion circuit DC 1 described in FIG. 5, respectively, and outputs a timing signal C 2 ⁇ C R.
  • FIG. 6 is a diagram for explaining the operation of the Winner detector 20 shown in FIG. Referring to FIG. 6, the distance / clock number conversion circuits DC 1 ⁇ DC R, respectively, and output to the Winner detector 20 in synchronization with timing signals C 1 ⁇ C R to the clock signal CLK.
  • Winner detector 20 receives a timing signal C 1 ⁇ C R, detects the rising timing t 1 ⁇ t R of the received timing signals C 1 ⁇ C R. Then, the Winner detector 20 detects the k timing signals C ′ 1 to C ′ k in order from the earliest rise timing t 1 to t R. Then, the Winner detector 20 outputs the timing signals C ′ 1 to C ′ k as the match signals M 1 to M k .
  • the detected k timing signals C ′ 1 to C ′ k are output as match signals M 1 to M k .
  • Winner detector 20 outputs a timing signal corresponding to the reference data most similar to the search data (any timing signals C 1 ⁇ C R) as a match signal M 1.
  • the Winner detector 20 When k ⁇ 1, the Winner detector 20 outputs k timing signals C ′ 1 to C ′ k corresponding to k reference data similar to the search data as match signals M 1 to M k. To do. In this case, in the k timing signals C ′ 1 to C ′ k , the k rising timings differ from each other by at least one cycle of the clock signal CLK. ' 1 to C' k can be detected accurately. That is, the associative memory 100 can accurately search k reference data similar to the search data.
  • the associative memory 100 can perform the similarity search accurately and at high speed even when the Manhattan distance is used.
  • FIG. 7 is a schematic diagram showing a preferred configuration of the counter 311 shown in FIG.
  • the counter 311 preferably comprises a counter 311A shown in FIG.
  • counter 311A includes frequency dividers 311-1 to 311-M.
  • Divider 311-1 a clock signal CLK to 2 0 times division and outputs a frequency division signal DV 1 that the dividing into coincidence detection circuit 312.
  • Divider 311-2 is a clock signal CLK and 2 one time division and outputs a frequency division signal DV 2 that the dividing into coincidence detection circuit 312.
  • the frequency divider 311 -M divides the clock signal CLK by 2 M ⁇ 1 times, and outputs the divided frequency signal DV M to the coincidence detection circuit 312.
  • FIG. 8 is a diagram for explaining the operation of the counter 311A shown in FIG. In FIG. 8, the operation of the counter 311A will be described by taking as an example the case where the counter 311A includes four frequency dividers 311-1 to 311-4.
  • the frequency divider 311-1 a clock signal CLK to 2 0 times division and outputs a frequency division signal DV 1 that the dividing into coincidence detection circuit 312.
  • Divider 311-2 is a clock signal CLK and 2 one time division and outputs a frequency division signal DV 2 that the dividing into coincidence detection circuit 312.
  • Divider 311-3 is a clock signal CLK 2 2 times by frequency, and outputs a divided signal DV 3 that the division into coincidence detection circuit 312.
  • Divider 311-4 is a clock signal CLK to 2 3 times division and outputs a frequency division signal DV 4 that the dividing into coincidence detection circuit 312.
  • the four frequency dividers 311-1 to 311-4 first output the counter value “0000”, the second output the counter value “0001”, the third “ The counter value “0010” is output, and thereafter, similarly, the counter value “1110” is output 15th, and the counter value “1111” is output last.
  • the counter 311A outputs a counter value other than 4 bits, it is constituted by M frequency dividers 311-1 to 311-M, and the M frequency dividers 311-1 to 311-M are configured as shown in FIG. in the same manner as the embodiment illustrated in, respectively, the clock signal CLK 2 0 times, 2 once, 2 twice, ⁇ ⁇ ⁇ , 2 M-1 times by frequency, the frequency-divided divided signal DV 1 ⁇ DV M Is output.
  • the counter 311A is a counter value of M bits "0 1 0 2 0 3 ⁇ 0 M", "0 1 0 2 0 3 ⁇ 1 M", ⁇ , "1 1 1 2 Output in the order of 1 3 ... 1 M ′′.
  • the bit value of the m-th (m is an integer satisfying 1 ⁇ m ⁇ M) in the direction from the least significant bit to the most significant bit of the M-bit counter value.
  • the circuit size can be reduced and the power consumption can be reduced as compared with a normal counter.
  • distance signal D 11 ⁇ D 1W having a length, D 21 ⁇ D 2W, ⁇ , D R1 ⁇ D timing signals C 1 ⁇ shows the timing obtained by counting the matching number of clocks CN_total1 ⁇ CN_totalR respectively to the sum of the RW C R Is output to the Winner detector 20.
  • each range / clock number conversion circuits DC 1 ⁇ DC R as shown in FIG. 2, a W number of counter match detecting circuits 31 ⁇ 3W connected in series.
  • each of the distance / clock number conversion circuits DC 1 to DC R includes counter coincidence detection circuits 31 and 32.
  • the distance calculation circuits DP 11 to DP 1W are made up of distance calculation circuits DP 11 and DP 12
  • the distance signals D 11 to D 1W are made up of distance signals D 11 and D 12 .
  • the counter coincidence detection circuit 31 the distance signal D 11, provided in correspondence with one of the distance signal of the edge first distance signal D 11 when the sequence D 12 in a line, the first distance signal D upon receiving the 11 from the distance calculation circuit DP 11, when counted in ascending order in synchronization with the counter value to the clock signal CLK, the clock number when the counter value matches the first distance signal D 11 having received the obtained CN1 is counted, and a coincidence signal MTH1 indicating the timing when the number of clocks CN1 is counted is output.
  • the counter coincidence detection circuit 31 constitutes a “first counter coincidence detection circuit”
  • the counter coincidence detection circuit 32 constitutes a “second counter coincidence detection circuit”.
  • each of the distance / clock number conversion circuits DC 1 to DC R includes counter coincidence detection circuits 31 to 3W.
  • the counter coincidence detection circuit 31 is provided corresponding to the first distance signal D 11 that is the distance signal at one end when the distance signals D 11 to D 1W are arranged in a line.
  • the clock number when the counter value matches the first distance signal D 11 having received the obtained CN1 is counted, and a coincidence signal MTH1 indicating the timing when the number of clocks CN1 is counted is output.
  • the counter coincidence detection circuits 32 ⁇ 3W-1 is corresponding to the second distance signal W-2 pieces of distance signals D 12 ⁇ D 1W-1 from D 12 to W-1 th distance signal D 1W-1 Provided.
  • Each of the counter coincidence detection circuits 32 to 3W-1 includes a counter coincidence detection circuit 31 or a counter provided corresponding to the w-1 (w is an integer satisfying 2 ⁇ w ⁇ W ⁇ 1) -th distance signal.
  • a counter value corresponding to the first or wth distance signal from the counter match detection circuits 31 to 3W-2 provided corresponding to the first or w-1th distance signal from the coincidence detection circuits 32 to 3W-2 is obtained.
  • the counter coincidence detection circuit 3W is provided corresponding to the W-th distance signal D 1W, consistent from the counter coincidence detecting circuit 3W-1 provided corresponding to the W-1 th distance signal signal MTHW-1 receiving the W th distance signal D 1W with driven to undergo, when receiving a coincidence signal MTH3W-1 from the counter coincidence detecting circuit 3W-1, when the count in ascending order in synchronization with the counter value of the clock signal CLK counts the number of clocks CN4 when the counter value matches the W th distance signal D 1W is obtained, a timing signal C 1 indicating a timing of counting the number of clocks CN4 to Winner detector 20.
  • the counter coincidence detection circuit 31 constitutes a “first counter coincidence detection circuit”
  • the counter coincidence detection circuits 32 to 3W-1 constitute “W-2 third counter coincidence detection circuits”.
  • the counter coincidence detection circuit 3W constitutes a “fourth counter coincidence detection circuit”.
  • FIG. 9 is a schematic diagram showing another configuration of distance / clock number conversion circuits DC 1 to DC R shown in FIG.
  • each of the distance / clock number conversion circuits DC 1 ⁇ DC R may consist Distance / clock number conversion circuit DC '1 shown in FIG.
  • W 2 i (i is an integer of 2 or more).
  • distance / clock number conversion circuit DC ′ 1 includes amplifiers 41 to 4L and counter match detection circuits 51 to 5L.
  • L W / s (s is an integer satisfying 2 x equal to or less than W, and x is a positive integer).
  • the amplifier 41 receives a clock signal CLK from a clock generation circuit (not shown) built in the associative memory 100, amplifies the received clock signal CLK, and outputs it to the amplifier 42 and the counter coincidence detection circuit 51.
  • the amplifier 42 receives the clock signal CLK from the amplifier 41, amplifies the received clock signal CLK, and outputs the amplified clock signal CLK to the amplifier 43 (not shown) and the counter coincidence detection circuit 52.
  • the amplifier 4L receives the clock signal CLK from the amplifier 4L-1 (not shown), amplifies the received clock signal CLK, and outputs it to the counter coincidence detection circuit 5L.
  • the counter coincidence detection circuits 51, 52,..., 5L have s distance calculation circuits DP 11 , DP 1 (1 + L) ,..., DP 1 (1+ (u ⁇ 1) L) s, respectively.
  • U is 1, 2, 3,..., S.
  • the counter coincidence detection circuits 51 to 5L are connected in series. Each of the counter coincidence detection circuits 51 to 5L has the same configuration as the counter coincidence detection circuit 31 shown in FIG. In this case, each of the counter match detection circuits 51 to 5L includes the counter 311 shown in FIG. 3 or the counter 311A shown in FIG.
  • the counter coincidence detection circuit 51 receives the clock signal CLK from the amplifier 41, the search start signal SB from the control circuit (not shown) of the associative memory 100, and the distance calculation circuits DP 11 , DP 1 (1 + L) ,. , DP 1 (1+ (u ⁇ 1) L) receive distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u ⁇ 1) L) , respectively.
  • the counter coincidence detection circuit 51 receives the distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u ⁇ 1) L) , and when the search start signal SB switches from the L level to the H level, The clock of the clock signal CLK when the counter value CV 11 that matches the sum of the distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u ⁇ 1) L) is obtained by the method described above.
  • the number CN_1 is counted.
  • the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing of counting the clock number CN_1 to the counter coincidence detection circuit 52 in synchronization with the clock signal CLK. Thereafter, the counter coincidence detection circuit 51 stops its operation.
  • the counter coincidence detection circuit 52 receives the clock signal CLK from the amplifier 42, the coincidence signal MTH1 from the counter coincidence detection circuit 51, and the distance calculation circuits DP 12 , DP 1 (2 + L) ,..., DP 1 (2+ (U ⁇ 1) L) receives distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u ⁇ 1) L) .
  • the counter coincidence detection circuit 52 When the counter coincidence detection circuit 52 receives the distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u ⁇ 1) L) and receives the coincidence signal MTH1, the counter signal is detected by the method described above. D 12, D 1 (2 + L), ⁇ , counts the number of clocks CN_2 of the clock signal CLK when the counter value CV 12 that matches the sum of D 1 (2+ (u-1 ) L) is obtained. Then, the counter coincidence detection circuit 52 outputs a coincidence signal MTH2 indicating the timing of counting the clock number CN_2 to the counter coincidence detection circuit 53 in synchronization with the clock signal CLK. Thereafter, the counter match detection circuit 52 stops its operation.
  • the counter coincidence detection circuit 5L receives the clock signal CLK from the amplifier 4L, receives the coincidence signal MTHL-1 from the counter coincidence detection circuit 5L-1, and receives the distance calculation circuits DP 1L , DP 1 (L + L) , ..., DP 1 (L + (u-1) L) receives distance signals D1L , D1 (L + L) , ..., D1 (L + (u-1) L) , respectively.
  • the counter coincidence detection circuit 5L receives the distance signals D 1L , D 1 (L + L) ,..., D 1 (L + (u ⁇ 1) L) and receives the coincidence signal MTHL ⁇ 1, the above-described method is performed.
  • the counter coincidence detection circuit 5L outputs to Winner detector 20 a timing signal C 1 indicating a timing of counting the number of clocks CN_L synchronism with the clock signal CLK. Thereafter, the counter coincidence detection circuit 5L stops its operation.
  • Taimi showing And it outputs a ring signal (any timing signals C 1 ⁇ C R) to the Winner detector 20.
  • FIG. 10 is a schematic diagram showing still another configuration of the distance / clock number conversion circuits DC 1 to DC R shown in FIG.
  • each of the distance / clock number conversion circuits DC 1 to DC R may comprise the distance / clock number conversion circuit DC ′′ 1 shown in FIG. 10.
  • W 2 i (i is an integer of 2 or more).
  • distance / clock number conversion circuit DC ′′ 1 is obtained by adding switching control circuit 60 and multiplexers 61 to 6L to distance / clock number conversion circuit DC ′ 1 shown in FIG. is the same as the distance / clock number conversion circuit DC '1.
  • the amplifiers 41 to 4L amplify the clock signal CLK, output the amplified clock signal CLK to the counter coincidence detection circuits 51 to 5L, respectively, and the amplified clock signal. CLK is output to the switching control circuit 60.
  • multiplexer 61, 62, ⁇ ⁇ ⁇ , 6L respectively, s pieces of distance calculation circuit DP 11, DP 1 (1 + L), ⁇ , DP 1 ( 1+ (u ⁇ 1) L) , s distance arithmetic circuits DP 12 , DP 1 (2 + L) ,..., DP 1 (2+ (u ⁇ 1) L) ,. DP 1L , DP 1 (L + L) ,..., DP 1 (L + (u ⁇ 1) L) are provided, and counter match detection circuits 51 to 5L correspond to multiplexers 61 to 6L, respectively. Provided.
  • the switching control circuit 60 receives the search start signal SB and the reset signal RST from the control circuit of the associative memory 100, and receives the match signals MTH1 to MTHL from the counter match detection circuits 51 to 5L, respectively.
  • switching control circuit 60 When switching control circuit 60 receives search start signal SB and reset signal RST, switching control circuit 60 outputs reset signal RST to counter match detection circuit 51 and output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. .
  • switching control circuit 60 When switching control circuit 60 receives coincidence signal MTHL from counter coincidence detection circuit 5L, it outputs reset signal RST to counter coincidence detection circuit 51 and outputs output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. To do. The switching control circuit 60 executes this process s-1 times.
  • the switching control circuit 60 when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do. The switching control circuit 60 performs this process s times.
  • the switching control circuit 60 when receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 53 and outputs the output signal OUT3 to the multiplexer 63 in synchronization with the clock signal CLK. To do. The switching control circuit 60 performs this process s times.
  • the switching control circuit 60 receives the coincidence signal MTHL-1 from the counter coincidence detection circuit 5L-1, it outputs a reset signal RST to the counter coincidence detection circuit 5L in synchronization with the clock signal CLK. Output signal OUTL is output to multiplexer 6L. The switching control circuit 60 performs this process s times.
  • the multiplexer 61 receives s distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u ⁇ 1) L) .
  • the multiplexer 61 receives the first output signal OUT1 from the switching control circuit 60 outputs a distance signal D 11 to the counter match detection circuit 51, when receiving the second output signal OUT1 from the switching control circuit 60, The distance signal D 1 (1 + L) is output to the counter coincidence detection circuit 51.
  • the distance signal D 1 (1+ (u ⁇ 1) L ) Is output to the counter coincidence detection circuit 51.
  • the multiplexer 62 receives s distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u ⁇ 1) L) .
  • the multiplexer 62 receives the first output signal OUT2 from the switching control circuit 60 outputs a distance signal D 12 to the counter coincidence detection circuit 52, when receiving the second output signal OUT2 from the switching control circuit 60, The distance signal D 1 (2 + L) is output to the counter coincidence detection circuit 52.
  • the distance signal D 1 (2+ (u ⁇ 1) L ) Is output to the counter match detection circuit 52.
  • the multiplexer 6L receives s distance signals D 1L , D 1 (L + L) ,..., D 1 (L + (u ⁇ 1) L) .
  • the multiplexer 6L receives the first output signal OUTL from the switching control circuit 60
  • the multiplexer 6L outputs the distance signal D1L to the counter coincidence detection circuit 5L, and receives the second output signal OUTL from the switching control circuit 60.
  • the distance signal D1 (L + (u-1) L is output when the distance signal D1 (L + L) is output to the counter coincidence detection circuit 5L and the s-th output signal OUTL is similarly received from the switching control circuit 60.
  • the counter coincidence detection circuit 51 is driven when it receives the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 51 receives the distance signal D 11 from the multiplexer 61, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 11 is obtained
  • the clock number CN_1 of the clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60.
  • the counter coincidence detection circuit 51 stops its operation.
  • the counter coincidence detection circuit 51 executes this processing for all s distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u ⁇ 1) L) .
  • the counter coincidence detection circuit 52 is driven when it receives the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 52 receives the distance signal D 12 from the multiplexer 62, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 12 is obtained
  • the clock number CN_2 of the clock signal CLK is counted, and the coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60.
  • the counter match detection circuit 52 stops its operation.
  • the counter coincidence detection circuit 52 executes this process for all s distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u ⁇ 1) L) .
  • the counter coincidence detection circuit 5L is driven when it receives the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 5L receives the distance signal D 1L from the multiplexer 6L, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 1L is obtained
  • the clock number CN_L of the clock signal CLK is counted, and a coincidence signal MTHL indicating the timing at which the clock number CN_L is counted is output to the switching control circuit 60.
  • the counter match detection circuit 5L stops its operation.
  • the counter coincidence detection circuit 5L executes this process for all of the s ⁇ 1 distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u ⁇ 1) L ⁇ 1) .
  • the counter coincidence detection circuit 5L is driven when the s-th reset signal RST is received from the switching control circuit 60, receives the distance signal D1 (L + (u ⁇ 1) L) from the multiplexer 6L, and receives the counter value as a clock.
  • the number of clocks CN_L of the clock signal CLK when the counter value matching the distance signal D1 (L + (u-1) L) is obtained is counted, and the number of clocks CN_L a timing signal C 1 indicating timing for counting the output to Winner detector 20.
  • the switching control circuit 60 In synchronization with the signal CLK, the reset signal RST is output to the counter coincidence detection circuit 51 and the output signal OUT1 is output to the multiplexer 61.
  • the multiplexer 61 depending on the first output signal OUT1 from the switching control circuit 60 outputs a distance signal D 11 to the counter match detection circuit 51.
  • the counter coincidence detection circuit 51 is driven in response to the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 51 receives the distance signal D 11 from the multiplexer 61, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 11 is obtained
  • the clock number CN_1 of the clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
  • the switching control circuit 60 outputs the reset signal RST to the counter match detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK according to the match signal MTH1 from the counter match detection circuit 51. Output.
  • Multiplexer 62 in response to the first output signal OUT2 from the switching control circuit 60 outputs a distance signal D 12 to the counter coincidence detection circuit 52.
  • the counter coincidence detection circuit 52 is driven in response to the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 52 receives the distance signal D 12 from the multiplexer 62, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 12 is obtained
  • the clock number CN_2 of the clock signal CLK is counted, and the coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
  • the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 5L in synchronization with the clock signal CLK in response to the coincidence signal MTHL-1 from the counter coincidence detection circuit 5L-1. At the same time, the output signal OUTL is output to the multiplexer 6L.
  • the multiplexer 6L outputs the distance signal D1L to the counter coincidence detection circuit 5L in response to the first output signal OUTL from the switching control circuit 60.
  • the counter coincidence detection circuit 5L is driven according to the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 5L receives the distance signal D 1L from the multiplexer 6L, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 1L is obtained
  • the clock number CN_L of the clock signal CLK is counted, and a coincidence signal MTHL indicating the timing at which the clock number CN_L is counted is output to the switching control circuit 60. Then, the counter match detection circuit 5L stops its operation.
  • the switching control circuit 60 outputs the reset signal RST to the counter match detection circuit 51 and the output signal OUT1 to the multiplexer 61 in synchronization with the clock signal CLK according to the match signal MTHL from the counter match detection circuit 5L. Output.
  • the counter match detection circuits 51 to 5L-1, the switching control circuit 60, and the multiplexers 61 to 6L-1 repeatedly execute the above-described operation s-1 times, and the counter match detection circuit 5L and the multiplexer 6L perform the above-described operation. Are repeatedly executed s-2 times.
  • the counter coincidence detection circuit 5L When the counter coincidence detection circuit 5L receives the s-th reset signal RST from the switching control circuit 60 and the distance signal D1 (L + (u ⁇ 1) L) from the multiplexer 6L, the counter value is converted to the clock signal CLK. When counting in ascending order synchronously, the clock number CN_L of the clock signal CLK when the counter value matching the distance signal D1 (L + (u ⁇ 1) L) is obtained is counted, and the clock number CN_L is counted A timing signal C 1 indicating the timing is output to the Winner detector 20. Then, the counter match detection circuit 5L stops its operation.
  • the counter coincidence detection circuits 51 to 5L count the clock numbers CN_1 to CN_L of the clock signal CLK when the counter values coincident with the distance signals D 11 to D 1L are obtained, and the timing at which the clock numbers CN_1 to CN_L are counted
  • the coincidence signals MTH1 to MTHL indicating the number of clock signals CLK when the counter coincidence detection circuit MDC obtains a counter value that coincides with the sum of the distance signals D 11 to D 1L (CN_1 + CN_2 +... + CN_L )
  • the coincidence signal indicating the timing when the number of clocks (CN_1 + CN_2 +... + CN_L) is counted is output.
  • the counter match detection circuit MDC repeatedly executes this process s-1 times.
  • CLK clock signals
  • CN_1 + CN_2 +... + CN_L clock number
  • Figure 11 is a schematic diagram showing a specific configuration of the distance / clock number converting circuit DC '1 shown in FIG.
  • Conversion circuit DC ′ 1 ⁇ 1 includes amplifiers 41 to 44 and counter coincidence detection circuits 51 to 54.
  • the W distance signals D 11 to D 1W are composed of eight distance signals D 11 to D 18 , and the W distance calculation circuits DP 11 to DP 1W are eight distance calculation circuits DP 11 to DP 1. It consists of 18 .
  • the counter coincidence detection circuit 51 is provided corresponding to the two distance arithmetic circuits DP 11 and DP 15
  • the counter coincidence detection circuit 52 is provided corresponding to the two distance arithmetic circuits DP 12 and DP 16.
  • the counter match detection circuit 53 is provided corresponding to the two distance calculation circuits DP 13 and DP 17
  • the counter match detection circuit 54 is provided corresponding to the two distance calculation circuits DP 14 and DP 18. It is done.
  • FIG. 12 is a diagram for explaining the operation of the distance / clock number conversion circuit DC ′ 1 ⁇ 1 shown in FIG.
  • Each of the distance / clock number conversion circuits DC 1 to DC R includes a distance / clock number conversion circuit DC ′ 1 ⁇ 1 shown in FIG.
  • each of the distance / clock number conversion circuits DC 1 to DC R is composed of the distance / clock number conversion circuit DC ′ 1 ⁇ 1
  • Figure 13 is a schematic diagram showing another specific configuration of the distance / clock number converting circuit DC '1 shown in FIG.
  • Conversion circuit DC ′ 1 -2 includes amplifiers 41 and 42 and counter coincidence detection circuits 51 and 52.
  • the W distance signals D 11 to D 1W are composed of eight distance signals D 11 to D 18
  • the W distance calculation circuits DP 11 to DP 1W are eight distance calculation circuits DP 11 to DP 1. It consists of 18 .
  • Each of the distance signals D 11 to D 18 is composed of a 4-bit bit value.
  • the counter coincidence detection circuit 51 is provided corresponding to the four distance arithmetic circuits DP 11 , DP 13 , DP 15 , and DP 17 , and the counter coincidence detection circuit 52 includes the four distance arithmetic circuits DP 12 , DP 14 , DP 16 , and DP 18 .
  • the counter 311 or 311A outputs a 4-bit counter value to the coincidence detection circuit 312.
  • FIG. 14 is a diagram for explaining the operation of the distance / clock number conversion circuit DC ′ 1 -2 shown in FIG.
  • the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing of counting the clock number CN1 to the counter coincidence detection circuit 52 in synchronization with the clock signal CLK. Then, the counter coincidence detection circuit 51 stops its operation.
  • the counter coincidence detection circuit 52 is driven when the coincidence signal MTH1 is received from the counter coincidence detection circuit 51.
  • FIG. 15 is a schematic diagram showing a specific configuration of the distance / clock number conversion circuit DC ′′ 1 shown in FIG.
  • the conversion circuit DC ′′ 1 ⁇ 1 includes amplifiers 41 to 44, counter coincidence detection circuits 51 to 54, a switching control circuit 60, and multiplexers 61 to 64.
  • the W distance signals D 11 to D 1W are composed of eight distance signals D 11 to D 18 , and the W distance calculation circuits DP 11 to DP 1W are eight distance calculation circuits DP 11 to DP 1. It consists of 18 .
  • the multiplexer 61 is provided corresponding to the two distance calculation circuits DP 11 and DP 15
  • the multiplexer 62 is provided with the two distance calculation circuits DP 12 and DP 15
  • the multiplexer 63 is provided corresponding to the two distance arithmetic circuits DP 13 and DP 17
  • the multiplexer 64 is provided corresponding to the two distance arithmetic circuits DP 14 and DP 18. It is done.
  • Counter coincidence detection circuits 51 to 54 are provided corresponding to the multiplexers 61 to 64, respectively.
  • the amplifiers 41 to 44 amplify the clock signal CLK, and output the amplified clock signal CLK to the counter coincidence detection circuits 51 to 54, respectively.
  • the clock signal CLK is output to the switching control circuit 60.
  • Switching control circuit 60 receives search start signal SB and reset signal RST from the control circuit of associative memory 100, and receives match signals MTH1 to MTH4 from counter match detection circuits 51 to 54, respectively.
  • switching control circuit 60 When switching control circuit 60 receives search start signal SB and reset signal RST, switching control circuit 60 outputs reset signal RST to counter match detection circuit 51 and output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. .
  • the switching control circuit 60 when receiving the coincidence signal MTH4 from the counter coincidence detection circuit 54, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 and outputs the output signal OUT1 to the multiplexer 61 in synchronization with the clock signal CLK. To do.
  • the switching control circuit 60 when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do.
  • the switching control circuit 60 when receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 53 and outputs the output signal OUT3 to the multiplexer 63 in synchronization with the clock signal CLK. To do.
  • the switching control circuit 60 when receiving the coincidence signal MTH3 from the counter coincidence detection circuit 53, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 54 and outputs the output signal OUT4 to the multiplexer 64 in synchronization with the clock signal CLK. To do.
  • the multiplexer 61 receives two distance signals D 11 and D 15 .
  • the multiplexer 61 receives the first output signal OUT1 from the switching control circuit 60 outputs a distance signal D 11 to the counter match detection circuit 51, when receiving the second output signal OUT1 from the switching control circuit 60, and it outputs a distance signal D 15 to the counter match detection circuit 51.
  • the multiplexer 62 receives two distance signals D 12 and D 16 .
  • the multiplexer 62 receives the first output signal OUT2 from the switching control circuit 60 outputs a distance signal D 12 to the counter coincidence detection circuit 52, when receiving the second output signal OUT2 from the switching control circuit 60, and it outputs a distance signal D 16 to the counter coincidence detection circuit 52.
  • the multiplexer 63 receives the two distance signals D 13 and D 17 .
  • the multiplexer 63 receives the first output signal OUT3 from the switching control circuit 60 outputs a distance signal D 13 to the counter coincidence detection circuit 53, when receiving the second output signal OUT3 from the switching control circuit 60, The distance signal D 17 is output to the counter coincidence detection circuit 53.
  • the multiplexer 64 receives the two distance signals D 14 and D 18 .
  • the multiplexer 64 receives the first output signal OUT4 from the switching control circuit 60 outputs a distance signal D 14 to the counter coincidence detection circuit 54, when receiving the second output signal OUT4 from the switching control circuit 60, and it outputs the distance signal D 18 to the counter coincidence detection circuit 54.
  • the counter coincidence detection circuit 51 is driven when it receives the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 51 receives the distance signal D 11 from the multiplexer 61, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 11 is obtained
  • the clock number CN_1 of the clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
  • the counter coincidence detection circuit 51 executes this process for all the two distance signals D 11 and D 15 .
  • the counter coincidence detection circuit 52 is driven when it receives the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 52 receives the distance signal D 12 from the multiplexer 62, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 12 is obtained
  • the clock number CN_2 of the clock signal CLK is counted, and the coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60.
  • the counter match detection circuit 52 stops its operation.
  • the counter coincidence detection circuit 52 executes this process for all of the two distance signals D 12 and D 16 .
  • the counter coincidence detection circuit 53 is driven when it receives the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 53 receives the distance signals D 13 from the multiplexer 63, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 13 is obtained
  • the clock number CN_3 of the clock signal CLK is counted, and a coincidence signal MTH3 indicating the timing at which the clock number CN_3 is counted is output to the switching control circuit 60.
  • the counter coincidence detection circuit 53 stops its operation.
  • the counter coincidence detection circuit 53 executes this process for all of the two distance signals D 13 and D 17 .
  • the counter coincidence detection circuit 54 is driven when it receives the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuit 54 receives the distance signal D 14 from the multiplexer 64, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 14 is obtained.
  • the clock number CN_4 of the clock signal CLK is counted, and a coincidence signal MTH4 indicating the timing at which the clock number CN_4 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 54 stops its operation.
  • FIG. 16 is a diagram for explaining the operation of the distance / clock number conversion circuit DC ′′ 1 ⁇ 1 shown in FIG.
  • the switching control circuit 60 In synchronization with the clock signal CLK, the reset signal RST is output to the counter coincidence detection circuit 51 and the output signal OUT1 is output to the multiplexer 61.
  • the counter coincidence detection circuit 51 is driven in response to the reset signal RST from the switching control circuit 60.
  • the switching control circuit 60 when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do.
  • the counter coincidence detection circuit 52 is driven in response to the reset signal RST from the switching control circuit 60.
  • the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 53 and outputs the output signal OUT3 to the multiplexer 63 in synchronization with the clock signal CLK. To do.
  • the counter coincidence detection circuit 53 is driven in response to the reset signal RST from the switching control circuit 60.
  • the switching control circuit 60 when receiving the coincidence signal MTH3 from the counter coincidence detection circuit 53, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 54 and outputs the output signal OUT4 to the multiplexer 64 in synchronization with the clock signal CLK. To do.
  • the counter coincidence detection circuit 54 is driven according to the reset signal RST from the switching control circuit 60.
  • the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 and the output signal OUT1 to the multiplexer 61 in synchronization with the clock signal CLK. To do.
  • the counter coincidence detection circuit 51 is driven in response to the reset signal RST from the switching control circuit 60.
  • the switching control circuit 60 when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do.
  • the counter coincidence detection circuit 52 is driven in response to the reset signal RST from the switching control circuit 60.
  • the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 53 and outputs the output signal OUT3 to the multiplexer 63 in synchronization with the clock signal CLK. To do.
  • the counter coincidence detection circuit 53 is driven in response to the reset signal RST from the switching control circuit 60.
  • the switching control circuit 60 when receiving the coincidence signal MTH3 from the counter coincidence detection circuit 53, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 54 and outputs the output signal OUT4 to the multiplexer 64 in synchronization with the clock signal CLK. To do.
  • the counter coincidence detection circuit 54 is driven according to the reset signal RST from the switching control circuit 60.
  • the counter coincidence detection circuits 51 to 54 count the clock numbers CN_1 to CN_4 of the clock signal CLK when the counter values coincident with the distance signals D 11 to D 14 are obtained, and the clock numbers CN_1 to CN_4 after outputting a coincidence signal MTH1 ⁇ MTH4 showing a timing of counting, counts the number of clocks CN_1 ⁇ CN_4 of the clock signal CLK when the respective counter value matches the distance signal D 15 ⁇ D 18 is obtained, Match signals MTH1 to MTH4 indicating the timings when the clock numbers CN_1 to CN_4 are counted are output.
  • each of the counter coincidence detection circuits 51 to 54 counts the clock number of the clock signal CLK when a counter value that coincides with the distance signal is obtained, and outputs a coincidence signal indicating the timing at which the clock number is counted. Repeat twice.
  • each of the distance / clock number conversion circuits DC 1 to DC R is composed of the distance / clock number conversion circuit DC ′′ 1 ⁇ 1
  • FIG. 17 is a schematic diagram showing still another specific configuration of the distance / clock number conversion circuit DC ′′ 1 shown in FIG.
  • the conversion circuit DC ′′ 1 -2 includes amplifiers 41 and 42, counter coincidence detection circuits 51 and 52, a switch control circuit 60, and multiplexers 61 and 62.
  • the multiplexer 61 is provided corresponding to the four distance calculation circuits DP 11 , DP 13 , DP 15 , DP 17 , and the multiplexer 62 is added to the four distance calculation circuits DP 12 , DP 14 , DP 16 , DP 18 . Correspondingly provided.
  • the counter match detection circuit 51 is provided corresponding to the multiplexer 61, and the counter match detection circuit 52 is provided corresponding to the multiplexer 62.
  • the switching control circuit 60 receives the search start signal SB and the reset signal RST from the control circuit of the associative memory 100. Further, the switching control circuit 60 receives the clock signal CLK from the amplifiers 41 and 42. Further, the switching control circuit 60 receives the coincidence signal MTH1 from the counter coincidence detection circuit 51 and the coincidence signal MTH2 from the counter coincidence detection circuit 52.
  • switching control circuit 60 When switching control circuit 60 receives search start signal SB and reset signal RST, switching control circuit 60 outputs reset signal RST to counter match detection circuit 51 and output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. .
  • switching control circuit 60 When switching control circuit 60 receives match signal MTH2 from counter match detection circuit 52, switching control circuit 60 outputs reset signal RST to counter match detection circuit 51 and output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. To do.
  • the switching control circuit 60 when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do.
  • the multiplexer 61 receives distance signals D 11 , D 13 , D 15 , and D 17 from the distance calculation circuits DP 11 , DP 13 , DP 15 , and DP 17 , respectively, and receives an output signal OUT 1 from the switching control circuit 60.
  • the multiplexer 61 receives the first output signal OUT1, the distance and outputs a signal D 11 to the counter match detection circuit 51, when receiving the second output signal OUT1, the distance signal D 13 counter match detection circuit 51 and outputs to and receives the output signal OUT1 of the third, and outputs a distance signal D 15 to the counter coincidence detection circuit 51 receives the output signal OUT1 of the fourth, it outputs a distance signal D 17 to the counter match detection circuit 51 To do.
  • the multiplexer 62 receives distance signals D 12 , D 14 , D 16 , D 18 from the distance calculation circuits DP 12 , DP 14 , DP 16 , DP 18 , respectively, and receives the output signal OUT 2 from the switching control circuit 60.
  • the multiplexer 62 receives the first output signal OUT2, and outputs a distance signal D 12 to the counter coincidence detection circuit 52, when receiving the second output signal OUT2, the distance signal D 14 counter coincidence detection circuit 52 and outputs to and receives the output signal OUT2 of the third, and outputs a distance signal D 16 to the counter coincidence detection circuit 52 receives the output signal OUT2 of the fourth, it outputs a distance signal D 18 to the counter coincidence detection circuit 52 To do.
  • Counter coincidence detection circuit 51 receives the distance signal D 11 from the multiplexer 61 receives the reset signal RST from the switching control circuit 60, by the above-described method, when the counter value CV 11 matching the distance signal D 11 is obtained.
  • the clock number CN_1 of the clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
  • the counter coincidence detection circuit 51 receives the distance signal D 13 from the multiplexer 61 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 11 matching the distance signal D 13 is obtained
  • the clock number CN_1 of the current clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
  • the counter coincidence detection circuit 51 receives the distance signal D 15 from the multiplexer 61 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 11 matching the distance signal D 15 is obtained
  • the clock number CN_1 of the current clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
  • the counter coincidence detection circuit 51 receives the distance signal D 17 from the multiplexer 61 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 11 matching the distance signal D 17 is obtained
  • the clock number CN_1 of the current clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
  • Counter coincidence detection circuit 52 receives the distance signal D 12 from the multiplexer 62 receives the reset signal RST from the switching control circuit 60, by the above-described method, when the counter value CV 12 matching the distance signal D 12 is obtained.
  • the clock number CN_2 of the clock signal CLK is counted, and a coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
  • the counter coincidence detection circuit 52 receives the distance signal D 14 from the multiplexer 62 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 12 matching the distance signal D 14 is obtained
  • the clock number CN_2 of the current clock signal CLK is counted, and a coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
  • the counter coincidence detection circuit 52 receives the distance signal D 16 from the multiplexer 62 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 12 matching the distance signal D 16 is obtained
  • the clock number CN_2 of the current clock signal CLK is counted, and a coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
  • the counter coincidence detection circuit 52 receives the distance signal D 18 from the multiplexer 62 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 12 matching the distance signal D 18 is obtained
  • the clock number CN_2 of the current clock signal CLK is counted, and a coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
  • FIG. 18 is a diagram for explaining the operation of the distance / clock number conversion circuit DC ′′ 1 -2 shown in FIG.
  • switching control circuit 60 generates reset signal RST as counter match detection circuit 51 in synchronization with clock signal CLK in response to search start signal SB and reset signal RST from the control circuit of associative memory 100. And output signal OUT1 to multiplexer 61.
  • the multiplexer 61 receives distance signals D 11 , D 13 , D 15 , and D 17 from the distance calculation circuits DP 11 , DP 13 , DP 15 , and DP 17 , respectively. Then, the multiplexer 61, depending on the first output signal OUT1, and outputs a distance signal D 11 to the counter match detection circuit 51.
  • the switching control circuit 60 when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. Output.
  • the switching control circuit 60 when receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 in synchronization with the clock signal CLK, and outputs the output signal OUT1 to the multiplexer 61. Output to.
  • the switching control circuit 60 When receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and outputs the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. .
  • the switching control circuit 60 When receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 in synchronization with the clock signal CLK and outputs the output signal OUT1 to the multiplexer 61. Output.
  • the switching control circuit 60 When receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 in synchronization with the clock signal CLK and outputs the output signal OUT2 to the multiplexer 62. Output.
  • the switching control circuit 60 When receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 in synchronization with the clock signal CLK and outputs the output signal OUT1 to the multiplexer 61. Output.
  • the switching control circuit 60 when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. Output.
  • CN_2 is counted, and coincidence signals MTH1 and MTH2 indicating the timing when the clock numbers CN_1 and CN_2 are counted are output to the switching control circuit 60.
  • the case where the coincidence detection circuits 51 and 52 are formed has been described.
  • each of the distance / clock number conversion circuits DC 1 to DC R includes the distance / clock number conversion circuit DC ′ 1-2 shown in FIG. 13 or the distance / clock number conversion circuit DC ′′ 1-2 shown in FIG.
  • the clock number CN_1 of the clock signal CLK when the counter value matching the p-th distance signal is obtained is counted, and the clock number
  • the matching process for outputting the matching signal MTH1 indicating the timing when CN_1 is counted is repeatedly executed W / 2 times.
  • the distance signal is received, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the number of clocks CN_2 of the clock signal CLK when the counter value matching the qth distance signal is obtained is counted.
  • the coincidence process for outputting the coincidence signal MTH2 indicating the timing of counting the number CN_2 is repeatedly executed ((W / 2) -1) times, the coincidence signal MTH1 is received W / 2 times, and the Wth distance signal is received.
  • the counter coincidence detection circuit 51 constitutes a “first counter coincidence detection circuit”
  • the counter coincidence detection circuit 52 constitutes a “second counter coincidence detection circuit”.
  • the counter 311 (or the counter 311A) of the counter coincidence detection circuit 51 constitutes a “first counter”, and the coincidence detection circuit 312 of the counter coincidence detection circuit 51 constitutes a “first coincidence detection circuit”.
  • the counter 311 (or the counter 311A) of the counter coincidence detection circuit 52 constitutes a “second counter”, and the coincidence detection circuit 312 of the counter coincidence detection circuit 52 constitutes a “second coincidence detection circuit”.
  • the distance / reduces the circuit area of the clock number conversion circuits DC 1 ⁇ DC R power consumption can be reduced.
  • FIG. 19 is a diagram showing a comparison of the shortest search times.
  • the frequency mapping type in FIG. 19 means an associative memory that searches for reference data similar to the search data by converting the distance between the search data and the reference data into a frequency.
  • the shortest search time is 1280 (ns) in the frequency mapping type associative memory.
  • the shortest search time is 20 (ns).
  • the shortest search time is 210000 (ns) in the frequency mapping type associative memory.
  • the shortest search time is 40 (ns).
  • the associative memory 100 can search for reference data similar to the search data in a time shorter by two digits or more than the conventional frequency mapping type associative memory.
  • the associative memory 100 according to the embodiment of the present invention can drastically shorten the search time as the number of bits of reference data increases.
  • FIG. 20 is a diagram showing a comparison of power consumption.
  • the associative memory of the conventional example is the associative memory described in Non-Patent Document 3.
  • 64 reference data are used in the associative memory of the conventional example, and 128 reference data are used in the associative memory 100 of the present invention.
  • the power consumption is 321 (mW), whereas in the associative memory 100 of the present invention, the power consumption is 2.13 (mW).
  • the associative memory 100 can reduce power consumption by two orders of magnitude or more than the conventional associative memory although the number of reference data is twice as large. .
  • the reference data similar to the search data can be searched at high speed with low power consumption by using the associative memory 100 according to the embodiment of the present invention.
  • k reference data similar to the search data is searched using the Manhattan distance.
  • the search data is not limited to this and may be searched using the Hamming distance. You may search k similar reference data.
  • the M bit consists of 1 bit
  • each of the reference data storage circuits SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW stores 1-bit reference data.
  • each of the distance calculation circuits DP 11 to DP 1W , DP 21 to DP 2W ,..., DP R1 to DP RW determines the distance between one bit of the search data and one bit of the reference data according to the equation (1). Calculate.
  • the associative memory 100 searches the k reference data similar to the search data using the Hamming distance according to the above-described operation.
  • This invention is applied to an associative memory.

Abstract

An associative memory is provided with R distance/clock converters (DC1 to DCR), each of which includes a counter match detection circuit (31 to 3W). Each distance signal (D11 to D1W) represents the distance between data to be retrieved and reference data. The counter match detection circuit (31) counts the number of clocks that has a counter value that matches the distance signal (D11). Thereafter, the counter match detection circuit (32) counts the number of clocks that has a counter value that matches the distance signal (D12). Similarly, when the counter match detection circuit (3W-1) counts the number of clocks that has a counter value that matches the distance signal (D1W-1), the counter match detection circuit (3W) counts the number of clocks that has a counter value that matches the distance signal (D1W).

Description

連想メモリAssociative memory
 この発明は、連想メモリに関するものである。 The present invention relates to an associative memory.
 近年、文字認識・画像認識などに代表されるパターンマッチングを必要とするアプリケーションが大変注目されている。特に、パターンマッチングをLSI(Large Scale Integrated circuit)上で実現することにより、将来、人工知能およびモバイル機器等の高機能アプリケーションに適用可能になり、この技術の実現は、非常に注目を浴びている。 In recent years, applications that require pattern matching, such as character recognition and image recognition, have attracted a great deal of attention. In particular, by realizing pattern matching on LSI (Large Scale Integrated Circuit), it will be applicable to high-function applications such as artificial intelligence and mobile devices in the future, and the realization of this technology has received much attention. .
 パターンマッチングでは、データベースに保存された複数の参照データの中から、完全に検索データと一致するパターンを検索する「完全一致検索処理」と、検索データと最も類似するパターンを検索する「最類似検索処理」とがある。 In pattern matching, "complete match search process" that searches for a pattern that completely matches the search data from multiple reference data stored in the database, and "most similar search" that searches for the most similar pattern to the search data. Treatment ".
 前者は、CAM(Contents Addressable Memory)と呼ばれ、ネットワークルータのIPアドレステーブルのルーティングおよびプロセッサのキャッシュ等の実現に用いられる。人間の脳のような柔軟な検索・比較をコンピュータに処理させるには、後者の最類似検索処理を実現することが必要不可欠である。このような柔軟な比較を実現する機能を持つメモリのことを特に連想メモリ(Associative Memory)と呼ぶ。 The former is called CAM (Contents Addressable Memory), and is used to realize the routing of the IP address table of the network router and the cache of the processor. In order for a computer to perform flexible search / comparison such as the human brain, it is indispensable to realize the latter most similar search process. A memory having a function for realizing such a flexible comparison is particularly referred to as an associative memory.
 連想メモリを実現する手段として(1)ディジタル方式による実現方法(非特許文献1)、(2)アナログ方式による実現方法および(3)ディジタル・アナログ融合方式(非特許文献2)等が提案されている。
Y. Oike, et al., "A High-Speed and Low-Voltage Associative Co-Processor with Hamming Distance Ordering Using Word-Parallel and Hierarchical Search Architecture," CICC, 2004. M. A. Abedin, et al., "Nearest-euclidean-distance search associative memory with fully parallel mixed digital-analog match circuitry," Proc. of SSDM2006, pp. 282-283, 2006. Y. Oike et al., "A Word-Parallel Digital Associative Engine with Wide Search RangeBased on ManhattanDistance," CICC, 2004.
As means for realizing an associative memory, (1) an implementation method using a digital method (Non-patent Document 1), (2) an implementation method using an analog method, and (3) a digital / analog fusion method (Non-Patent Document 2) have been proposed. Yes.
Y. Oike, et al., "A High-Speed and Low-Voltage Associative Co-Processor with Hamming Distance Ordering Using Word-Parallel and Hierarchical Search Architecture," CICC, 2004. M. A. Abedin, et al., "Nearest-euclidean-distance search associative memory with fully parallel mixed digital-analog match circuitry," Proc. Of SSDM2006, pp. 282-283, 2006. Y. Oike et al., "A Word-Parallel Digital Associative Engine with Wide Search RangeBased on ManhattanDistance," CICC, 2004.
 しかし、非特許文献1に記載の連想メモリは、検索データと参照データとのハミング距離を用いて類似検索を行うため、マンハッタン距離を用いて類似検索を行うことが困難であるという問題がある。また、非特許文献2に記載の連想メモリにおいては、検索データと参照データとの類似度を表す距離を電圧に変換するので、誤検索が生じるという問題がある。 However, since the associative memory described in Non-Patent Document 1 performs a similar search using the Hamming distance between the search data and the reference data, there is a problem that it is difficult to perform a similar search using the Manhattan distance. Further, in the associative memory described in Non-Patent Document 2, since the distance representing the similarity between the search data and the reference data is converted into a voltage, there is a problem that an erroneous search occurs.
 そこで、この発明は、かかる問題を解決するためになされたものであり、その目的は、マンハッタン距離を用いた場合にも、正確、かつ、高速に類似検索を行うことが可能な連想メモリを提供することである。 Accordingly, the present invention has been made to solve such a problem, and an object of the present invention is to provide an associative memory capable of performing a similar search accurately and at high speed even when the Manhattan distance is used. It is to be.
 この発明の実施の形態による連想メモリは、参照データ保存回路と、R個の距離演算回路と、R個の距離/クロック数変換回路と、Winner検出器とを備える。参照データ保存回路は、各々がM×Wビットのビット長を有するR個の参照データを保存する。R個の距離演算回路は、R個の参照データに対応して設けられ、各々がM×Wビットのビット長を有し、かつ、検索対象である検索データと参照データとの距離を表わすR個の距離信号を出力する。R個の距離/クロック数変換回路は、R個の距離演算回路に対応して設けられ、各々が対応する距離演算回路から各々がMビットのビット長を有するW個の距離信号を受け、その受けたW個の距離信号の和に一致するカウンタ値が得られるときのクロック信号のクロック数をカウントし、そのクロック数をカウントしたタイミングである一致タイミングを示すタイミング信号を出力する。Winner検出器は、R個の距離/クロック数変換回路から受けたR個のタイミング信号に基づいて、一致タイミングが早い順にk個のタイミング信号を検出し、その検出したk個のタイミング信号を検索データと参照データとの類似度を示すマッチ信号として出力する。 The content addressable memory according to the embodiment of the present invention includes a reference data storage circuit, R distance calculation circuits, R distance / clock number conversion circuits, and a Winner detector. The reference data storage circuit stores R reference data each having a bit length of M × W bits. The R distance calculation circuits are provided corresponding to the R reference data, each of which has a bit length of M × W bits, and represents the distance between the search data to be searched and the reference data. Number of distance signals are output. The R distance / clock number conversion circuits are provided corresponding to the R distance calculation circuits, each receiving W distance signals each having an M-bit bit length from the corresponding distance calculation circuit, The number of clocks of the clock signal when a counter value that matches the sum of the received W distance signals is obtained is counted, and a timing signal indicating the coincidence timing that is the timing at which the number of clocks is counted is output. The Winner detector detects k timing signals in order of the matching timing based on the R timing signals received from the R distance / clock number conversion circuits, and searches for the detected k timing signals. A match signal indicating the similarity between the data and the reference data is output.
 この発明の実施の形態による連想メモリにおいては、R個の距離/クロック数変換回路の各々は、対応する距離演算回路から受けたW個の距離信号の和に一致するカウンタ値が得られるときのクロック信号のクロック数をカウントし、そのクロック数をカウントしたタイミングである一致タイミングを示すタイミング信号を出力する。即ち、R個の距離/クロック数変換回路の各々は、W個の距離信号の和をクロック信号のクロック数に変換し、その変換したクロック数が得られるタイミングを示すタイミング信号を出力する。その結果、W個の距離信号の和によって表わされる距離が小さければ、タイミング信号は、より早い一致タイミングを示し、W個の距離信号の和によって表わされる距離が大きければ、タイミング信号は、より遅い一致タイミングを示す。また、W個の距離信号の和に一致するカウンタ値が得られるときのクロック信号のクロック数は、W個の距離信号のそれぞれに一致するW個のカウンタ値が得られるときのクロック信号のW個のクロック数を加算した値からなるので、検索データと参照データとの距離をマンハッタン距離によって表わしたときの検索データと参照データとの距離信号に一致するカウンタ値が得られるときのクロック信号のクロック数になる。更に、2つのタイミング信号によって示される2つのタイミングは、クロック信号の少なくとも1周期以上の時間差を有する。更に、クロック信号の周波数を高くすることによって検索時間が短くなる。 In the associative memory according to the embodiment of the present invention, each of the R distance / clock number conversion circuits has a counter value that matches the sum of the W distance signals received from the corresponding distance calculation circuit. The number of clocks of the clock signal is counted, and a timing signal indicating the coincidence timing that is the timing of counting the number of clocks is output. That is, each of the R distance / clock number conversion circuits converts the sum of the W distance signals into the clock number of the clock signal, and outputs a timing signal indicating the timing at which the converted clock number is obtained. As a result, if the distance represented by the sum of the W distance signals is small, the timing signal indicates an earlier coincidence timing, and if the distance represented by the sum of the W distance signals is large, the timing signal is slower. Indicates the match timing. Further, the number of clocks of the clock signal when a counter value matching the sum of the W distance signals is obtained is W of the clock signal when the W counter values matching each of the W distance signals are obtained. Since the number of clocks is added, the clock signal when the counter value matching the distance signal between the search data and the reference data when the distance between the search data and the reference data is expressed by the Manhattan distance is obtained. It becomes the number of clocks. Furthermore, the two timings indicated by the two timing signals have a time difference of at least one period of the clock signal. Further, the search time is shortened by increasing the frequency of the clock signal.
 従って、この発明の実施の形態によれば、マンハッタン距離を用いた場合にも、正確、かつ、高速に類似検索を行うことができる。 Therefore, according to the embodiment of the present invention, even when the Manhattan distance is used, the similarity search can be performed accurately and at high speed.
この発明の実施の形態による連想メモリの構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of the content addressable memory by embodiment of this invention. 図1に示す距離/クロック数変換回路の構成を示す概略図である。FIG. 2 is a schematic diagram illustrating a configuration of a distance / clock number conversion circuit illustrated in FIG. 1. 図2に示すカウンタ一致検出回路の構成を示す概略図である。FIG. 3 is a schematic diagram illustrating a configuration of a counter coincidence detection circuit illustrated in FIG. 2. 図3に示すカウンタ一致検出回路の動作を説明するための図である。FIG. 4 is a diagram for explaining the operation of the counter coincidence detection circuit shown in FIG. 3. 図1に示す距離/クロック数変換回路の動作を説明するための図である。FIG. 2 is a diagram for explaining the operation of a distance / clock number conversion circuit shown in FIG. 1. 図1に示すWinner検出器の動作を説明するための図である。It is a figure for demonstrating operation | movement of the Winner detector shown in FIG. 図3に示すカウンタの好ましい構成を示す概略図である。It is the schematic which shows the preferable structure of the counter shown in FIG. 図7に示すカウンタの動作を説明するための図である。It is a figure for demonstrating operation | movement of the counter shown in FIG. 図1に示す距離/クロック数変換回路の別の構成を示す概略図である。FIG. 3 is a schematic diagram showing another configuration of the distance / clock number conversion circuit shown in FIG. 1. 図1に示す距離/クロック数変換回路の更に別の構成を示す概略図である。FIG. 5 is a schematic diagram showing still another configuration of the distance / clock number conversion circuit shown in FIG. 1. 図9に示す距離/クロック数変換回路の具体的な構成を示す概略図である。FIG. 10 is a schematic diagram showing a specific configuration of the distance / clock number conversion circuit shown in FIG. 9. 図11に示す距離/クロック数変換回路の動作を説明するための図である。It is a figure for demonstrating operation | movement of the distance / clock number conversion circuit shown in FIG. 図9に示す距離/クロック数変換回路の別の具体的な構成を示す概略図である。FIG. 10 is a schematic diagram showing another specific configuration of the distance / clock number conversion circuit shown in FIG. 9. 図13に示す距離/クロック数変換回路の動作を説明するための図である。It is a figure for demonstrating operation | movement of the distance / clock number conversion circuit shown in FIG. 図10に示す距離/クロック数変換回路の具体的な構成を示す概略図である。FIG. 11 is a schematic diagram illustrating a specific configuration of the distance / clock number conversion circuit illustrated in FIG. 10. 図15に示す距離/クロック数変換回路の動作を説明するための図である。FIG. 16 is a diagram for explaining the operation of the distance / clock number conversion circuit shown in FIG. 15; 図10に示す距離/クロック数変換回路の更に別の具体的な構成を示す概略図である。FIG. 11 is a schematic diagram showing still another specific configuration of the distance / clock number conversion circuit shown in FIG. 10. 図17に示す距離/クロック数変換回路の動作を説明するための図である。FIG. 18 is a diagram for explaining the operation of the distance / clock number conversion circuit shown in FIG. 17. 最短検索時間の比較を示す図である。It is a figure which shows the comparison of the shortest search time. 消費電力の比較を示す図である。It is a figure which shows the comparison of power consumption.
 本発明の実施の形態について図面を参照しながら詳細に説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰返さない。 Embodiments of the present invention will be described in detail with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals and description thereof will not be repeated.
 図1は、この発明の実施の形態による連想メモリの構成を示す概略ブロック図である。図1を参照して、この発明の実施の形態1による連想メモリ100は、メモリアレイ部10と、Winner検出器20とを備える。 FIG. 1 is a schematic block diagram showing a configuration of an associative memory according to an embodiment of the present invention. Referring to FIG. 1, an associative memory 100 according to the first embodiment of the present invention includes a memory array unit 10 and a Winner detector 20.
 メモリアレイ部10は、メモリ部1と、行デコーダ2と、列デコーダ3と、読出/書込回路4と、検索データ保存回路5とを含む。 The memory array unit 10 includes a memory unit 1, a row decoder 2, a column decoder 3, a read / write circuit 4, and a search data storage circuit 5.
 メモリ部1は、参照データ保存回路(Storage Cell:SC)SC11~SC1W,SC21~SC2W,・・・,SCR1~SCRWと、距離演算回路(Distance Processor:DP)DP11~DP1W,DP21~DP2W,・・・,DPR1~DPRWと、距離/クロック数変換回路DC~DCとを含む。なお、WおよびRの各々は、2以上の整数である。 The memory unit 1 includes a reference data storage circuit (Storage Cell: SC) SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW, and a distance calculation circuit (Distance Processor: DP) DP 11 to DP 1W , DP 21 to DP 2W ,..., DP R1 to DP RW , and distance / clock number conversion circuits DC 1 to DC R are included. Each of W and R is an integer of 2 or more.
 距離演算回路DP11~DP1Wは、それぞれ、参照データ保存回路SC11~SC1Wに対応して設けられる。また、距離演算回路DP21~DP2Wは、それぞれ、参照データ保存回路SC21~SC2Wに対応して設けられる。以下、同様にして、距離演算回路DPR1~DPRWは、それぞれ、参照データ保存回路SCR1~SCRWに対応して設けられる。 The distance calculation circuits DP 11 to DP 1W are provided corresponding to the reference data storage circuits SC 11 to SC 1W , respectively. The distance calculation circuits DP 21 to DP 2W are provided corresponding to the reference data storage circuits SC 21 to SC 2W , respectively. Similarly, the distance calculation circuits DP R1 to DP RW are provided corresponding to the reference data storage circuits SC R1 to SC RW , respectively.
 距離/クロック数変換回路DCは、距離演算回路DP11~DP1Wに対応して設けられる。距離/クロック数変換回路DCは、距離演算回路DP21~DP2Wに対応して設けられる。以下、同様にして、距離/クロック数変換回路DCは、距離演算回路DPR1~DPRWに対応して設けられる。 The distance / clock number conversion circuit DC 1 is provided corresponding to the distance calculation circuits DP 11 to DP 1W . The distance / clock number conversion circuit DC 2 is provided corresponding to the distance calculation circuits DP 21 to DP 2W . Similarly, the distance / clock number conversion circuit DC R is provided corresponding to the distance calculation circuits DP R1 to DP RW .
 参照データ保存回路SC11~SC1W,SC21~SC2W,・・・,SCR1~SCRWは、行デコーダ2、列デコーダ3および読出/書込回路4によって書き込まれた参照データを保存する。この場合、参照データ保存回路SC11~SC1Wは、M×W(Mは1以上の整数)ビットの参照データ1を保存し、参照データ保存回路SC21~SC2Wは、M×Wビットの参照データ2を保存し、以下、同様にして、参照データ保存回路SCR1~SCRWは、M×Wビットの参照データRを保存する。つまり、参照データ保存回路SC11~SC1W,SC21~SC2W,・・・,SCR1~SCRWの各々は、参照データのMビットを保存する。 Reference data storage circuits SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW store reference data written by the row decoder 2, the column decoder 3, and the read / write circuit 4. . In this case, the reference data storage circuits SC 11 to SC 1W store M × W (M is an integer of 1 or more) bits of reference data 1, and the reference data storage circuits SC 21 to SC 2W have M × W bits. The reference data 2 is stored, and the reference data storage circuits SC R1 to SC RW store the M × W bit reference data R in the same manner. That is, each of the reference data storage circuits SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW stores M bits of reference data.
 距離演算回路DP11~DP1Wは、参照データ保存回路SC11~SC1Wに保存されたM×Wビットの参照データ1と、検索データ保存回路5に保存されたM×Wビットの検索データとの距離を後述する方法によって演算する。また、距離演算回路DP21~DP2Wは、参照データ保存回路SC21~SC2Wに保存されたM×Wビットの参照データ2と、検索データ保存回路5に保存されたM×Wビットの検索データとの距離を後述する方法によって演算する。以下、同様にして、距離演算回路DPR1~DPRWは、参照データ保存回路SCR1~SCRWに保存されたM×Wビットの参照データRと、検索データ保存回路5に保存されたM×Wビットの検索データとの距離を後述する方法によって演算する。そして、距離演算回路DP11~DP1W、距離演算回路DP21~DP2W、・・・、および距離演算回路DPR1~DPRWにおける参照データと検索データとの距離の演算は、並列に行なわれる。 The distance calculation circuits DP 11 to DP 1W include M × W bit reference data 1 stored in the reference data storage circuits SC 11 to SC 1W , M × W bit search data stored in the search data storage circuit 5, and Is calculated by a method described later. The distance calculation circuits DP 21 to DP 2W search for the M × W bit reference data 2 stored in the reference data storage circuits SC 21 to SC 2W and the M × W bit search stored in the search data storage circuit 5. The distance from the data is calculated by the method described later. In the same manner, the distance calculation circuits DP R1 to DP RW perform the M × W bit reference data R stored in the reference data storage circuits SC R1 to SC RW and the M × W stored in the search data storage circuit 5. The distance from the W-bit search data is calculated by a method described later. The distance calculation circuits DP 11 to DP 1W , the distance calculation circuits DP 21 to DP 2W ,..., And the distance calculation circuits DP R1 to DP RW calculate the distance between the reference data and the search data in parallel. .
 そして、距離演算回路DP11~DP1Wは、参照データ1と検索データとの距離をM×Wビットの距離信号として距離/クロック数変換回路DCへ出力し、距離演算回路DP21~DP2Wは、参照データ2と検索データとの距離をM×Wビットの距離信号として距離/クロック数変換回路DCへ出力し、以下、同様にして、距離演算回路DPR1~DPRWは、参照データRと検索データとの距離をM×Wビットの距離信号として距離/クロック数変換回路DCへ出力する。 The distance calculation circuits DP 11 to DP 1W output the distance between the reference data 1 and the search data to the distance / clock number conversion circuit DC 1 as a distance signal of M × W bits, and the distance calculation circuits DP 21 to DP 2W. is the distance between the reference data 2 and the search data is output as the distance signal of the M × W bits to distance / clock number conversion circuit DC 2, in the same manner, the distance calculation circuit DP R1 ~ DP RW are reference data the distance between R and the search data is output to the distance / clock number conversion circuit DC R as a distance signal M × W bits.
 距離演算回路DP11~DP1Wの各々は、参照データ1と検索データとの距離を次式を用いて演算する。 Each of the distance calculation circuits DP 11 to DP 1W calculates the distance between the reference data 1 and the search data using the following equation.
Figure JPOXMLDOC01-appb-M000001
Figure JPOXMLDOC01-appb-M000001
 式(1)において、Drj(r=1~R,j=1~W)は、参照データと検索データとの距離であり、Inは、検索データであり、Rerjは、参照データである。そして、各データIn,Rerjの各々は、Mビットからなる。 In Expression (1), D rj (r = 1 to R, j = 1 to W) is the distance between the reference data and the search data, In j is the search data, and Re rj is the reference data. is there. Each of the data In j and Re rj consists of M bits.
 このように、距離演算回路DP11~DP1Wは、M×Wビットの参照データ1と、M×Wビットの検索データとの距離をMビットづつ演算し、各々がMビットのビット長を有するW個の距離信号D1jを距離/クロック数変換回路DCへ出力する。 As described above, the distance calculation circuits DP 11 to DP 1W calculate the distance between the M × W bit reference data 1 and the M × W bit search data in M bits, and each has a bit length of M bits. The W distance signals D 1j are output to the distance / clock number conversion circuit DC 1 .
 距離演算回路DP21~DP2W、・・・および距離演算回路DPR1~DPRWも、それぞれ、式(1)を用いて参照データ2~Rと検索データとの距離を演算する。そして、距離演算回路DP21~DP2W、・・・および距離演算回路DPR1~DPRWも、各々がMビットのビット長を有するW個の距離信号D2j~DRjをそれぞれ距離/クロック数変換回路DC~DCへ出力する。 The distance calculation circuits DP 21 to DP 2W ,... And the distance calculation circuits DP R1 to DP RW also calculate the distances between the reference data 2 to R and the search data using the equation (1). Further, the distance calculation circuits DP 21 to DP 2W ,... And the distance calculation circuits DP R1 to DP RW also receive W distance signals D 2j to D Rj each having a bit length of M bits, respectively. Output to the conversion circuits DC 2 to DC R.
 距離/クロック数変換回路DCは、距離演算回路DP11~DP1WからW個の距離信号D1jを受け、その受けたW個の距離信号D1jの和に一致するクロック信号CLKのクロック数CN_total1を後述する方法によってカウントし、そのクロック数CN_total1をカウントしたタイミングを示すタイミング信号CをWinner検出器20へ出力する。そして、このクロック数CN_total1をカウントしたタイミングは、検索データと参照データ1との距離に一致する一致タイミングである。 The distance / clock number conversion circuit DC 1 receives W distance signals D 1j from the distance calculation circuits DP 11 to DP 1W, and the number of clock signals CLK that matches the sum of the received W distance signals D 1j. counted by a method described later CN_total1, and outputs a timing signal C 1 indicating a timing of counting the number of clocks CN_total1 to Winner detector 20. The timing at which the clock number CN_total1 is counted is the coincidence timing that matches the distance between the search data and the reference data 1.
 また、距離/クロック数変換回路DCは、距離演算回路DP21~DP2WからW個の距離信号D2jを受け、その受けたW個の距離信号D2jの和に一致するクロック信号CLKのクロック数CN_total2を後述する方法によってカウントし、そのクロック数CN_total2をカウントしたタイミングを示すタイミング信号CをWinner検出器20へ出力する。このクロック数CN_total2をカウントしたタイミングは、検索データと参照データ2とが一致する一致タイミングである。 Further, the distance / clock number conversion circuit DC 2 receives W distance signals D 2j from the distance calculation circuits DP 21 to DP 2W , and receives the clock signal CLK that matches the sum of the received W distance signals D 2j . It was counted by the method described below a clock number CN_total2, and outputs a timing signal C 2 which shows the timing of counting the number of clocks CN_total2 to Winner detector 20. The timing at which the number of clocks CN_total2 is counted is the coincidence timing at which the search data and the reference data 2 coincide.
 以下、同様にして、距離/クロック数変換回路DCは、距離演算回路DPR1~DPRWからW個の距離信号DRjを受け、その受けたW個の距離信号DRjの和に一致するクロック信号CLKのクロック数CN_totalRを後述する方法によってカウントし、そのクロック数CN_totalRをカウントしたタイミングを示すタイミング信号CをWinner検出器20へ出力する。このクロック数CN_totalRをカウントしたタイミングは、検索データと参照データRとが一致する一致タイミングである。 Similarly, the distance / clock number conversion circuit DC R receives W distance signals D Rj from the distance calculation circuits DP R1 to DP RW and matches the sum of the received W distance signals D Rj. It was counted by the method described below the number of clocks CN_totalR of the clock signal CLK, and outputs a timing signal C R indicating the timing of counting the number of clocks CN_totalR to Winner detector 20. The timing at which the clock number CN_totalR is counted is the coincidence timing at which the search data and the reference data R coincide.
 行デコーダ2は、メモリ部1の行方向のアドレスを指定する。列デコーダ3は、メモリ部1の列方向のアドレスを指定する。読出/書込回路4は、参照データを行デコーダ2および列デコーダ3によって指定された参照データ保存回路SC11~SC1W,SC21~SC2W,・・・,SCR1~SCRWに書き込むとともに、検索データを検索データ保存回路5に書き込む。 The row decoder 2 designates an address in the row direction of the memory unit 1. The column decoder 3 designates an address in the column direction of the memory unit 1. Read / write circuit 4 writes reference data to reference data storage circuits SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW designated by row decoder 2 and column decoder 3. The search data is written into the search data storage circuit 5.
 検索データ保存回路5は、読出/書込回路4によって書き込まれた検索データ(M×Wビットのデータ)を保存する。 The search data storage circuit 5 stores the search data (M × W bit data) written by the read / write circuit 4.
 Winner検出器20は、タイミング信号C~Cをそれぞれ距離/クロック数変換回路DC~DCから受け、その受けたタイミング信号C~Cのうち、一致タイミングが早い順にk(kは1≦k<Rを満たす整数)個のタイミング信号を検出し、その検出したk個のタイミング信号を検索データと参照データとの類似度を示すマッチ信号M~Mとして出力する。 Winner detector 20 receives from the timing signal C 1 ~ C R, respectively distance / clock number conversion circuits DC 1 ~ DC R, among the received timing signals C 1 ~ C R, the matching timing chronological order k (k Are integers satisfying 1 ≦ k <R), and the detected k timing signals are output as match signals M 1 to M k indicating the similarity between the search data and the reference data.
 図2は、図1に示す距離/クロック数変換回路DCの構成を示す概略図である。図2を参照して、距離/クロック数変換回路DCは、増幅器21~2Wと、カウンタ一致検出回路31~3Wとを含む。 Figure 2 is a schematic diagram showing the structure of a distance / clock number converting circuit DC 1 shown in FIG. Referring to FIG. 2, the distance / clock number converting circuit DC 1 includes an amplifier 21 ~ 2W, a counter coincidence detection circuit 31 ~ 3W.
 増幅器21は、連想メモリ100に内蔵されたクロック発生回路(図示せず)からクロック信号CLKを受け、その受けたクロック信号CLKを増幅して増幅器22およびカウンタ一致検出回路31へ出力する。 The amplifier 21 receives a clock signal CLK from a clock generation circuit (not shown) built in the associative memory 100, amplifies the received clock signal CLK, and outputs it to the amplifier 22 and the counter coincidence detection circuit 31.
 増幅器22は、クロック信号CLKを増幅器21から受け、その受けたクロック信号CLKを増幅器23(図示せず)およびカウンタ一致検出回路32へ出力する。 The amplifier 22 receives the clock signal CLK from the amplifier 21 and outputs the received clock signal CLK to the amplifier 23 (not shown) and the counter coincidence detection circuit 32.
 以下、同様にして、増幅器2Wは、クロック信号CLKを増幅器2W-1(図示せず)から受け、その受けたクロック信号CLKをカウンタ一致検出回路3Wへ出力する。 Similarly, the amplifier 2W receives the clock signal CLK from the amplifier 2W-1 (not shown) and outputs the received clock signal CLK to the counter coincidence detection circuit 3W.
 カウンタ一致検出回路31~3Wは、それぞれ、距離演算回路DP11~DP1Wに対応して設けられる。そして、カウンタ一致検出回路31~3Wは、直列に接続される。 Counter coincidence detection circuits 31 to 3W are provided corresponding to distance calculation circuits DP 11 to DP 1W , respectively. The counter match detection circuits 31 to 3W are connected in series.
 カウンタ一致検出回路31は、増幅器21からクロック信号CLKを受け、連想メモリ100の制御回路(図示せず)から検索開始信号SBを受け、距離演算回路DP11からMビットのビット長を有する距離信号D11を受ける。カウンタ一致検出回路31は、検索開始信号SBがL(論理ロー)レベルからH(論理ハイ)レベルに切り替わると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D11に一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントする。そして、カウンタ一致検出回路31は、そのクロック数をカウントしたタイミングを示す一致信号MTH1をクロック信号CLKに同期してカウンタ一致検出回路32へ出力する。カウンタ一致検出回路31は、一致信号MTH1を出力すると、動作を停止する。 Counter coincidence detection circuit 31 receives a clock signal CLK from the amplifier 21, receiving the search start signal SB from the control circuit for the associative memory 100 (not shown), the distance calculation circuit distance signal from the DP 11 has a bit length of M bits subject to D 11. Counter match detection circuit 31, when the search start signal SB is switched from L (logical low) level to H (logical high) level, when counted in ascending order in synchronization with the counter value to the clock signal CLK, the distance signal D 11 The number of clocks of the clock signal CLK when a counter value that matches is obtained is counted. Then, the counter coincidence detection circuit 31 outputs a coincidence signal MTH1 indicating the timing of counting the number of clocks to the counter coincidence detection circuit 32 in synchronization with the clock signal CLK. The counter coincidence detection circuit 31 stops its operation when outputting the coincidence signal MTH1.
 カウンタ一致検出回路32は、増幅器22からクロック信号CLKを受け、カウンタ一致検出回路31から一致信号MTH1を受け、距離演算回路DP12からMビットのビット長を有する距離信号D12を受ける。カウンタ一致検出回路32は、カウンタ一致検出回路31から一致信号MTH1を受けるまで動作を停止している。カウンタ一致検出回路32は、カウンタ一致検出回路31から一致信号MTH1を受けると駆動され、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D12に一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントする。そして、カウンタ一致検出回路32は、そのクロック数をカウントしたタイミングを示す一致信号MTH2をクロック信号CLKに同期してカウンタ一致検出回路33(図示せず)へ出力する。カウンタ一致検出回路32は、一致信号MTH2を出力すると、動作を停止する。 Counter coincidence detection circuit 32 receives a clock signal CLK from the amplifier 22 receives the coincidence signal MTH1 from the counter coincidence detection circuit 31 receives the distance signal D 12 having a bit length of M bits from the distance calculation circuit DP 12. The counter coincidence detection circuit 32 stops operating until it receives the coincidence signal MTH1 from the counter coincidence detection circuit 31. Counter coincidence detection circuit 32 is driven to undergo a coincidence signal MTH1 from the counter coincidence detection circuit 31, when the count in ascending order in synchronization with the counter value to the clock signal CLK, the counter value matches the distance signal D 12 is obtained The number of clocks of the clock signal CLK is counted. Then, the counter coincidence detection circuit 32 outputs a coincidence signal MTH2 indicating the timing of counting the number of clocks to the counter coincidence detection circuit 33 (not shown) in synchronization with the clock signal CLK. The counter coincidence detection circuit 32 stops its operation when outputting the coincidence signal MTH2.
 以下、同様にして、カウンタ一致検出回路3Wは、増幅器2Wからクロック信号CLKを受け、カウンタ一致検出回路3W-1から一致信号MTHW-1を受け、距離演算回路DP1WからMビットのビット長を有する距離信号D1Wを受ける。カウンタ一致検出回路3Wは、カウンタ一致検出回路3W-1から一致信号MTHW-1を受けるまで動作を停止している。カウンタ一致検出回路3Wは、カウンタ一致検出回路3W-1から一致信号MTHW-1を受けると駆動され、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D1Wに一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントする。そして、カウンタ一致検出回路3Wは、そのクロック数をカウントしたタイミングを示す一致信号MTHWをタイミング信号Cとしてクロック信号CLKに同期してWinner検出器20へ出力する。カウンタ一致検出回路3Wは、タイミング信号Cを出力すると、動作を停止する。 Similarly, counter coincidence detection circuit 3W receives clock signal CLK from amplifier 2W, receives coincidence signal MTHW-1 from counter coincidence detection circuit 3W-1, and sets a bit length of M bits from distance calculation circuit DP 1W. It has a distance signal D 1W . The counter coincidence detection circuit 3W stops operating until it receives a coincidence signal MTHW-1 from the counter coincidence detection circuit 3W-1. Counter coincidence detection circuit 3W is driven from the counter coincidence detecting circuit 3W-1 and receives a match signal MTHW-1, when the count in ascending order in synchronization with the counter value of the clock signal CLK, and coincides with the distance signal D 1W The number of clocks of the clock signal CLK when the counter value is obtained is counted. The counter coincidence detection circuit 3W outputs a coincidence signal MTHW indicating a timing of counting the number of clocks in synchronization with the clock signal CLK as a timing signal C 1 to Winner detector 20. Counter match detection circuit 3W, when a timing signal C 1, to stop the operation.
 なお、図1に示す距離/クロック数変換回路DC~距離/クロック数変換回路DCの各々も、図2に示す距離/クロック数変換回路DCと同じ構成からなる。 Also each of the distance / clock number conversion circuits DC 2 ~ Distance / clock number conversion circuit DC R shown in FIG. 1, the same configuration as the distance / clock number conversion circuit DC 1 shown in FIG.
 図3は、図2に示すカウンタ一致検出回路31の構成を示す概略図である。図3を参照して、カウンタ一致検出回路31は、カウンタ311と、一致検出回路312とを含む。 FIG. 3 is a schematic diagram showing the configuration of the counter coincidence detection circuit 31 shown in FIG. Referring to FIG. 3, counter match detection circuit 31 includes a counter 311 and a match detection circuit 312.
 カウンタ311は、増幅器21からクロック信号CLKを受け、連想メモリ100の制御回路(図示せず)からリセット信号RSTを受ける。カウンタ311は、リセット信号RSTを受けると、カウンタ値をリセットし、Mビットのビット値をクロック信号CLKに同期して昇順にカウントする。そして、カウンタ311は、そのカウントしたカウンタ値CV11をクロック信号CLKに同期して一致検出回路312へ順次出力する。 The counter 311 receives a clock signal CLK from the amplifier 21 and a reset signal RST from a control circuit (not shown) of the associative memory 100. Upon receiving the reset signal RST, the counter 311 resets the counter value, and counts the M-bit bit value in ascending order in synchronization with the clock signal CLK. Then, the counter 311 sequentially outputs the counted counter value CV 11 to the coincidence detection circuit 312 in synchronization with the clock signal CLK.
 一致検出回路312は、増幅器21からクロック信号CLKを受け、連想メモリ100の制御回路(図示せず)から検索開始信号SBを受け、カウンタ311からカウンタ値CV11を順次受け、距離演算回路DP11から距離信号D11を受ける。 Coincidence detection circuit 312 receives a clock signal CLK from the amplifier 21, receiving the search start signal SB from the control circuit for the associative memory 100 (not shown), sequentially receives the counter value CV 11 from the counter 311, the distance calculation circuit DP 11 receiving a distance signal D 11 from.
 一致検出回路312は、検索開始信号SBがLレベルからHレベルに切り替わると、距離信号D11に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数をカウントする。そして、一致検出回路312は、そのクロック数をカウントしたタイミングを示す一致信号MTH1をカウンタ一致検出回路32へ出力する。 Coincidence detection circuit 312, the search start signal SB when switched from L level to H level, and counts the number of clocks of the clock signal CLK when the counter value CV 11 matching the distance signal D 11 is obtained. Then, the coincidence detection circuit 312 outputs a coincidence signal MTH1 indicating the timing of counting the number of clocks to the counter coincidence detection circuit 32.
 一致検出回路312は、一致信号MTH1を出力すると、動作を停止する。 When the coincidence detection circuit 312 outputs the coincidence signal MTH1, the operation is stopped.
 なお、図2に示すカウンタ一致検出回路32~3Wの各々も、図3に示すカウンタ一致検出回路31と同じ構成からなる。この場合、カウンタ一致検出回路32~3Wの一致検出回路312は、それぞれ、カウンタ一致検出回路31~3W-1の一致検出回路312から一致信号MTH1~MTHW-1を受けるまで動作を停止し、一致信号MTH1~MTHW-1を受けると駆動され、動作を開始する。 Note that each of the counter coincidence detection circuits 32 to 3W shown in FIG. 2 has the same configuration as the counter coincidence detection circuit 31 shown in FIG. In this case, the coincidence detection circuit 312 of the counter coincidence detection circuits 32 to 3W stops operation until it receives the coincidence signals MTH1 to MTHW-1 from the coincidence detection circuit 312 of the counter coincidence detection circuits 31 to 3W-1, respectively. When the signals MTH1 to MTHW-1 are received, they are driven and start operating.
 図4は、図3に示すカウンタ一致検出回路31の動作を説明するための図である。なお、図4においては、カウンタ値CV11および距離信号D11の各々が3ビットである場合を例にしてカウンタ一致検出回路31の動作を説明する。また、距離信号D11は、“011”からなるものとする。 FIG. 4 is a diagram for explaining the operation of the counter coincidence detection circuit 31 shown in FIG. In FIG. 4, the operation of the counter coincidence detection circuit 31 will be described by taking as an example the case where each of the counter value CV 11 and the distance signal D 11 is 3 bits. The distance signal D 11 is assumed to consist of "011".
 図4を参照して、カウンタ一致検出回路31のカウンタ311は、連想メモリ100の制御回路からリセット信号RSTを受けると、カウント数をリセットし、クロック信号CLKの連続する周期T1,T2,T3,T4に同期して、それぞれ、“000”,“001”,“010”,“011”のビット値を順次カウントし、そのカウントした“000”,“001”,“010”,“011”のカウンタ値CV11を一致検出回路312へ順次出力する。 Referring to FIG. 4, when counter 311 of counter coincidence detection circuit 31 receives reset signal RST from the control circuit of associative memory 100, counter 311 resets the number of counts, and period T1, T2, T3, in which clock signal CLK continues. In synchronization with T4, the bit values of “000”, “001”, “010”, “011” are sequentially counted, and the counted “000”, “001”, “010”, “011” are counted. The counter value CV 11 is sequentially output to the coincidence detection circuit 312.
 そして、一致検出回路312は、距離演算回路DP11から“011”の距離信号D11を受け、クロック信号CLKの周期T1に同期して“000”のカウンタ値CV11をカウンタ311から受けると、タイミングt1において“0”のクロック数をカウントし、“0”のクロック数において、“000”のカウンタ値CV11が“011”の距離信号D11に一致しないことを検出する。 The coincidence detection circuit 312 receives the distance signal D 11 from the distance computing circuit DP 11 "011", when receiving a counter value CV 11 for synchronization with the cycle T1 of the clock signal CLK "000" from the counter 311, At timing t1, the number of clocks “0” is counted, and it is detected that the counter value CV 11 of “000” does not match the distance signal D 11 of “011” at the number of clocks “0”.
 そして、一致検出回路312は、クロック信号CLKの周期T1の次の周期T2に同期して“001”のカウンタ値CV11をカウンタ311から受けると、タイミングt2において“1”のクロック数をカウントし、“1”のクロック数において、“001”のカウンタ値CV11が“011”の距離信号D11に一致しないことを検出する。 When the coincidence detection circuit 312 receives the counter value CV 11 of “001” from the counter 311 in synchronization with the next cycle T2 of the cycle T1 of the clock signal CLK, it counts the number of clocks of “1” at the timing t2. , It is detected that the counter value CV 11 of “001” does not coincide with the distance signal D 11 of “011” in the number of clocks of “1”.
 また、一致検出回路312は、クロック信号CLKの周期T2の次の周期T3に同期して“010”のカウンタ値CV11をカウンタ311から受けると、タイミングt3において“2”のクロック数をカウントし、“2”のクロック数において、“010”のカウンタ値CV11が“011”の距離信号D11に一致しないことを検出する。 Moreover, the coincidence detection circuit 312 receives a counter value CV 11 for synchronization with the next cycle T3 of the period T2 of the clock signal CLK "010" from the counter 311 counts the number of clocks of the "2" at the timing t3 , It is detected that the counter value CV 11 of “010” does not coincide with the distance signal D 11 of “011” in the number of clocks “2”.
 更に、一致検出回路312は、クロック信号CLKの周期T3の次の周期T4に同期して“011”のカウンタ値CV11をカウンタ311から受けると、タイミングt4において“3”のクロック数をカウントし、“3”のクロック数において、“011”のカウンタ値CV11が“011”の距離信号D11に一致することを検出する。そして、一致検出回路312は、“011”の距離信号D11に一致する“011”のカウンタ値CV11が得られるときのクロック信号CLKのクロック数(=“3”)をカウントしたタイミングt4を示す一致信号MTH1をカウンタ一致検出回路32および連想メモリ100の制御回路へ出力する。その後、一致検出回路312は、図4において、“4”,“5”のクロック数において、“011”のカウンタ値が保持されているように、動作を停止する。 Further, when the coincidence detection circuit 312 receives the counter value CV 11 of “011” from the counter 311 in synchronization with the period T4 next to the period T3 of the clock signal CLK, it counts the number of clocks of “3” at the timing t4. , It is detected that the counter value CV 11 of “011” matches the distance signal D 11 of “011” in the number of clocks “3”. The coincidence detection circuit 312, a timing t4 counted clock number (= "3") of the clock signal CLK when the counter value CV 11 are obtained "011" matches the distance signal D 11 of "011" The coincidence signal MTH1 is output to the counter coincidence detection circuit 32 and the control circuit of the associative memory 100. Thereafter, the coincidence detection circuit 312 stops the operation so that the counter value “011” is held at the clock numbers “4” and “5” in FIG. 4.
 この場合、カウンタ一致検出回路31は、タイミングt1において“0”のクロック数をカウントしてからタイミングt4において“3”のクロック数をカウントして一致信号MTH1を出力するまでに、タイミングt1からタイミングt4までの時間(=t4-t1)を要する。 In this case, the counter coincidence detection circuit 31 counts from the timing t1 until it counts the number of clocks “0” at the timing t1 and outputs the coincidence signal MTH1 after counting the number of clocks “3” at the timing t4. It takes time to t4 (= t4-t1).
 なお、図2に示すカウンタ一致検出回路32~3W-1の各々において、カウンタ311は、連想メモリ100の制御回路からリセット信号RSTを受けるまで動作を停止し、連想メモリ100の制御回路からリセット信号RSTを受けると、“000”,“001”,“010”,“011”,・・・のビット値を順次カウントし、そのカウントした“000”,“001”,“010”,“011”,・・・のカウンタ値(=各カウンタ値CV12~CV1W-1)を一致検出回路312へ順次出力する。 In each of the counter match detection circuits 32 to 3W-1 shown in FIG. 2, the counter 311 stops operating until it receives a reset signal RST from the control circuit of the associative memory 100, and the reset signal from the control circuit of the associative memory 100. When RST is received, the bit values “000”, “001”, “010”, “011”,... Are sequentially counted, and the counted “000”, “001”, “010”, “011” are counted. ,... (= Counter values CV 12 to CV 1W−1 ) are sequentially output to the coincidence detection circuit 312.
 カウンタ一致検出回路32~3W-1の一致検出回路312は、それぞれ、カウンタ一致検出回路31~3W-2の一致検出回路312から一致信号MTH1~MTHW-2を受けるまで動作を停止し、一致信号MTH1~MTHW-2を受けると、カウンタ値CV12~CV1W-1がそれぞれ距離信号D12~D1W-1に一致するときのクロック信号CLKのクロック数をカウントし、そのクロック数をカウントしたタイミングを示す一致信号MTH2~MTHW-1をそれぞれカウンタ一致検出回路33~3Wおよび連想メモリ100の制御回路へ出力する。そして、カウンタ一致検出回路32~3W-1の一致検出回路312は、動作を停止する。 The match detection circuits 312 of the counter match detection circuits 32 to 3W-1 stop operating until they receive the match signals MTH1 to MTHW-2 from the match detection circuits 312 of the counter match detection circuits 31 to 3W-2, respectively. When MTH1 to MTHW-2 are received, the number of clocks of the clock signal CLK when the counter values CV 12 to CV 1W-1 coincide with the distance signals D 12 to D 1W-1 , respectively, is counted. Match signals MTH2 to MTHW-1 indicating timing are output to the counter match detection circuits 33 to 3W and the control circuit of the content addressable memory 100, respectively. Then, the coincidence detection circuit 312 of the counter coincidence detection circuits 32 to 3W-1 stops its operation.
 また、カウンタ一致検出回路3Wのカウンタ311は、連想メモリ100の制御回路からリセット信号RSTを受けるまで動作を停止し、連想メモリ100の制御回路からリセット信号RSTを受けると、“000”,“001”,“010”,“011”,・・・のビット値を順次カウントし、そのカウントした“000”,“001”,“010”,“011”,・・・のカウンタ値CV1Wを一致検出回路312へ順次出力する。 The counter 311 of the counter coincidence detection circuit 3W stops operating until it receives a reset signal RST from the control circuit of the associative memory 100. When the reset signal RST is received from the control circuit of the associative memory 100, “000”, “001” , “010”, “011”,... Are sequentially counted, and the counter values CV 1W of “000”, “001”, “010”, “011” ,. The data is sequentially output to the detection circuit 312.
 カウンタ一致検出回路3Wの一致検出回路312は、カウンタ一致検出回路3W-1の一致検出回路312から一致信号MTHW-1を受けるまで動作を停止し、一致信号MTHW-1を受けると、カウンタ値CV1Wが距離信号D1Wに一致するときのクロック信号CLKのクロック数をカウントし、そのクロック数をカウントしたタイミングを示すタイミング信号(各タイミング信号C~C)をWinner検出器20および連想メモリ100の制御回路へ出力する。そして、カウンタ一致検出回路3Wの一致検出回路312は、動作を停止する。 The coincidence detection circuit 312 of the counter coincidence detection circuit 3W stops operating until it receives the coincidence signal MTHW-1 from the coincidence detection circuit 312 of the counter coincidence detection circuit 3W-1, and when receiving the coincidence signal MTHW-1, The number of clocks of the clock signal CLK when 1W coincides with the distance signal D 1W is counted, and timing signals (respective timing signals C 1 to C R ) indicating the timing at which the number of clocks is counted are used as the Winner detector 20 and the associative memory. To 100 control circuits. Then, the coincidence detection circuit 312 of the counter coincidence detection circuit 3W stops its operation.
 連想メモリ100の制御回路は、カウンタ一致検出回路31~3W-1からそれぞれ一致信号MTH1~MTHW-1を受けると、リセット信号RSTをそれぞれカウンタ一致検出回路32~3Wへ出力する。また、連想メモリ100の制御回路は、カウンタ一致検出回路3Wからタイミング信号Cを受けると、リセット信号RSTをカウンタ一致検出回路31~3Wへ出力する。 When receiving the coincidence signals MTH1 to MTHW-1 from the counter coincidence detection circuits 31 to 3W-1, the control circuit of the associative memory 100 outputs the reset signal RST to the counter coincidence detection circuits 32 to 3W, respectively. The control circuit of the associative memory 100 receives a timing signal C 1 from the counter coincidence detection circuit 3W, outputs a reset signal RST to the counter coincidence detection circuits 31 ~ 3W.
 図5は、図1に示す距離/クロック数変換回路DCの動作を説明するための図である。なお、図5においては、距離/クロック数変換回路DCが2つのカウンタ一致検出回路31,32からなる場合を例にして距離/クロック数変換回路DCの動作を説明する。また、距離信号D11が“3”からなり、距離信号D12が“5”からなることを前提とする。 Figure 5 is a diagram for explaining the operation of the distance / clock number converting circuit DC 1 shown in FIG. In FIG. 5, the distance / clock number converting circuit DC 1 is an illustrating the operation of the distance / clock number converting circuit DC 1 as an example the case of two counter match detection circuits 31 and 32. The distance signal D 11 is composed of "3", the distance signal D 12 is assumed to consist of "5".
 図5を参照して、距離演算回路DP11は、検索データと参照データSC11との距離を式(1)に従って演算し、距離信号D11(=“011”)をカウンタ一致検出回路31へ出力する。また、距離演算回路DP12は、検索データと参照データSC12との距離を式(1)に従って演算し、距離信号D12(=“101”)をカウンタ一致検出回路32へ出力する。 Referring to FIG. 5, distance calculation circuit DP 11 calculates the distance between search data and reference data SC 11 according to equation (1), and outputs distance signal D 11 (= “011”) to counter match detection circuit 31. Output. The distance calculation circuit DP 12 calculates the distance between the search data and the reference data SC 12 according to the equation (1), and outputs a distance signal D 12 (= “101”) to the counter coincidence detection circuit 32.
 カウンタ一致検出回路31は、距離演算回路DP11から距離信号D11(=“011”)を受け、連想メモリ100の制御回路からリセット信号RSTおよび検索開始信号SBを受けると、上述した方法によって、カウンタ値CV11が距離信号D11(=“011”)に一致するときのクロック信号CLKのクロック数(=“3”)をカウントし、“3”のクロック数をカウントしたタイミングを示す一致信号MTH1をカウンタ一致検出回路32および連想メモリ100の制御回路へ出力する。そして、カウンタ一致検出回路31は、動作を停止する。 When the counter coincidence detection circuit 31 receives the distance signal D 11 (= “011”) from the distance calculation circuit DP 11 and the reset signal RST and the search start signal SB from the control circuit of the associative memory 100, A coincidence signal indicating the timing of counting the number of clocks of the clock signal CLK (= “3”) when the counter value CV 11 coincides with the distance signal D 11 (= “011”) and counting the number of clocks of “3”. MTH1 is output to the counter coincidence detection circuit 32 and the associative memory 100 control circuit. Then, the counter match detection circuit 31 stops its operation.
 カウンタ一致検出回路32は、距離演算回路DP12から距離信号D12(=“101”)を受け、連想メモリ100の制御回路からリセット信号RSTを受ける。そして、カウンタ一致検出回路32は、“3”のクロック数が得られたタイミングでカウンタ一致検出回路31から一致信号MTH1を受けると、動作を開始し、距離信号D12(=“101”)に一致するカウンタ値CV12(=“101”)が得られるときのクロック信号CLKのクロック数(=“5”)をカウントし、“5”のクロック数をカウントしたタイミングでカウンタ値CV12(=“101”)が距離信号D12(=“101”)に一致することを検出する。 The counter coincidence detection circuit 32 receives the distance signal D 12 (= “101”) from the distance calculation circuit DP 12 and the reset signal RST from the control circuit of the associative memory 100. When the counter coincidence detection circuit 32 receives the coincidence signal MTH1 from the counter coincidence detection circuit 31 at the timing when the number of clocks of “3” is obtained, the counter coincidence detection circuit 32 starts the operation and generates the distance signal D 12 (= “101”). The number of clocks (= “5”) of the clock signal CLK when the matching counter value CV 12 (= “101”) is obtained is counted, and the counter value CV 12 (= It is detected that “101”) matches the distance signal D 12 (= “101”).
 そうすると、カウンタ一致検出回路32は、“5”のクロック数をカウントしたタイミングを示すタイミング信号CをWinner検出器20および連想メモリ100の制御回路へ出力する。そして、カウンタ一致検出回路32は、動作を停止する。 Then, the counter coincidence detection circuit 32 outputs a timing signal C 1 indicating the timing at which the number of clocks of “5” is counted to the Winner detector 20 and the associative memory 100 control circuit. Then, the counter coincidence detection circuit 32 stops its operation.
 このように、カウンタ一致検出回路32は、カウンタ一致検出回路31による“3”のクロック数のカウントが完了した後に、“5”のクロック数をカウントしたタイミングで“5”のクロック数をカウントしたタイミングを示すタイミング信号Cを出力する。従って、カウンタ一致検出回路32は、カウンタ一致検出回路31によるクロック数のカウント開始から“3”+“5”=“8”のクロック数をカウントするまでの時間が経過したタイミングで“5”のクロック数をカウントしたタイミングを示すタイミング信号Cを出力する。即ち、カウンタ一致検出回路32は、“3”の距離信号と“5”の距離信号との和である“8”の距離信号に一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントし、そのクロック数をカウントしたタイミングを示すタイミング信号Cを出力する。 As described above, the counter coincidence detection circuit 32 counts the number of clocks “5” at the timing of counting the number of clocks “5” after the counter coincidence detection circuit 31 completes the counting of the number of clocks “3”. a timing signal C 1 indicating the timing. Therefore, the counter coincidence detection circuit 32 is “5” at the timing when the time from the count start of the clock number by the counter coincidence detection circuit 31 to the counting of the number of clocks “3” + “5” = “8” has elapsed. a timing signal C 1 indicating a timing of counting the number of clocks. That is, the counter coincidence detection circuit 32 determines the number of clocks of the clock signal CLK when a counter value that coincides with the distance signal “8” that is the sum of the distance signal “3” and the distance signal “5” is obtained. A timing signal C 1 indicating the timing at which the number of clocks is counted is output.
 2つのカウンタ一致検出回路31,32が全体でカウントする“8”のクロック数は、カウンタ一致検出回路31がカウントする“3”のクロック数と、カウンタ一致検出回路32がカウントする“5”のクロック数とを加算したものである。このことは、カウンタ一致検出回路32が、カウンタ一致検出回路31において“3”のクロック数がカウントされたタイミングでカウンタ一致検出回路31から一致信号MTH1を受けると、距離信号D12に一致するカウンタ値CV12が得られるときのクロック数をカウントする動作を開始することからも明らかである(図5参照)。 The total number of clocks “8” counted by the two counter coincidence detection circuits 31 and 32 is “3” that the counter coincidence detection circuit 31 counts and “5” that the counter coincidence detection circuit 32 counts. This is the sum of the number of clocks. This is counter coincidence detection circuit 32, clock number "3" in the counter coincidence detection circuit 31 is matched from the counter coincidence detection circuit 31 by the count timing when receiving a coincidence signal MTH1, the distance signal D 12 counter It is also apparent from starting the operation of counting the number of clocks when the value CV 12 is obtained (see FIG. 5).
 その結果、2つのカウンタ一致検出回路31,32が全体で“8”のクロック数をカウントすることは、距離“3”と距離“5”との和(=“8”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントすることに相当する。 As a result, the fact that the two counter coincidence detection circuits 31 and 32 collectively count the number of clocks “8” means that the counter value coincides with the sum (= “8”) of the distance “3” and the distance “5”. Is equivalent to counting the number of clocks of the clock signal CLK.
 距離/クロック数変換回路DCは、一般的に、W個の距離信号D11~D1Wを受ける。そして、W個の距離信号D11~D1Wの各々は、Mビットのビット長を有する。従って、距離/クロック数変換回路DCは、M×Wビットのビット長を有する距離信号D1112・・・D1Wを受ける。 The distance / clock number conversion circuit DC 1 generally receives W distance signals D 11 to D 1W . Each of the W distance signals D 11 to D 1W has a bit length of M bits. Therefore, the distance / clock number converting circuit DC 1 receives the distance signal D 11 D 12 ··· D 1W having a bit length of M × W bits.
 そして、距離/クロック数変換回路DCにおいて、カウンタ一致検出回路31~3Wは、それぞれ、距離信号D11~D1Wにそれぞれ一致するカウンタ値CV11~CV1Wが得られるときのクロック信号CLKのクロック数CN1~CNWをカウントする。また、カウンタ一致検出回路32~3Wは、それぞれ、カウンタ一致検出回路31~3W-1から一致信号MTH2~MTHW-1を受けた後に、距離信号D12~D1Wにそれぞれ一致するカウンタ値CV12~CV1Wが得られるときのクロック信号CLKのクロック数CN2~CNWのカウントを開始する。 In the distance / clock number conversion circuit DC 1 , the counter coincidence detection circuits 31 to 3 W respectively receive the clock signals CLK when the counter values CV 11 to CV 1W respectively corresponding to the distance signals D 11 to D 1W are obtained. The number of clocks CN1 to CNW is counted. The counter coincidence detection circuits 32 to 3W receive the coincidence signals MTH2 to MTHW-1 from the counter coincidence detection circuits 31 to 3W-1, respectively, and then the counter values CV 12 coincide with the distance signals D 12 to D 1W , respectively. The count of the clock numbers CN2 to CNW of the clock signal CLK when .about.CV 1W is obtained is started.
 その結果、距離/クロック数変換回路DCがカウントするクロック数CN_totalは、クロック数CN1~CNWの和に等しい。そうすると、クロック数CN1~CNWは、それぞれ、距離信号D11~D1Wを表わすので、クロック数CN_totalは、距離信号D11~D1Wの和を表わす。 As a result, the number of clocks CN_total distance / clock number conversion circuit DC 1 counts is equal to the sum of the number of clocks CN1 ~ CNW. Then, clock numbers CN1 to CNW represent distance signals D 11 to D 1W , respectively, and clock number CN_total represents the sum of distance signals D 11 to D 1W .
 一方、マンハッタン距離nは、次式によって表わされる。 On the other hand, the Manhattan distance n M is represented by the following equation.
Figure JPOXMLDOC01-appb-M000002
Figure JPOXMLDOC01-appb-M000002
 式(2)の右辺の|In-Re|は、式(1)の右辺の|In-Rerj|において、1つの行(rによって表わされる)における検索データと参照データとの距離|In-Re|に一致する。 | In j -Re j | on the right side of Expression (2) is the distance between the search data and the reference data in one row (represented by r) in | In j -Re rj | on the right side of Expression (1). | In j −Re j |
 従って、マンハッタン距離nは、式(1)によって演算した距離をW個の距離について加算したものに等しい。 Accordingly, the Manhattan distance n M equals the distance calculated by equation (1) to those obtained by adding the W number of distance.
 そうすると、距離/クロック数変換回路DCがクロック数CN_totalをカウントしたタイミングを示すタイミング信号Cを出力することは、マンハッタン距離nによって検索データに類似する参照データを検索し、検索データに類似する参照データを検出したことを示すWinner信号を出力することに相当する。 Then, outputting the timing signal C 1 indicating the timing at which the distance / clock number conversion circuit DC 1 counts the clock number CN_total searches the reference data similar to the search data by the Manhattan distance n M and is similar to the search data. This is equivalent to outputting a Winner signal indicating that reference data to be detected is detected.
 なお、距離/クロック数変換回路DC~DCの各々も、図5において説明した距離/クロック数変換回路DCの動作と同じ動作によって、それぞれ、タイミング信号C~Cを出力する。 Incidentally, each of the distance / clock number conversion circuits DC 2 ~ DC R also by the distance / operation and the same operation of the clock number conversion circuit DC 1 described in FIG. 5, respectively, and outputs a timing signal C 2 ~ C R.
 図6は、図1に示すWinner検出器20の動作を説明するための図である。図6を参照して、距離/クロック数変換回路DC~DCは、それぞれ、タイミング信号C~Cをクロック信号CLKに同期してWinner検出器20へ出力する。 FIG. 6 is a diagram for explaining the operation of the Winner detector 20 shown in FIG. Referring to FIG. 6, the distance / clock number conversion circuits DC 1 ~ DC R, respectively, and output to the Winner detector 20 in synchronization with timing signals C 1 ~ C R to the clock signal CLK.
 Winner検出器20は、タイミング信号C~Cを受け、その受けたタイミング信号C~Cの立ち上がりタイミングt~tを検出する。そして、Winner検出器20は、立ち上がりタイミングt~tが早い順にk個のタイミング信号C’~C’を検出する。そうすると、Winner検出器20は、タイミング信号C’~C’をマッチ信号M~Mとして出力する。 Winner detector 20 receives a timing signal C 1 ~ C R, detects the rising timing t 1 ~ t R of the received timing signals C 1 ~ C R. Then, the Winner detector 20 detects the k timing signals C ′ 1 to C ′ k in order from the earliest rise timing t 1 to t R. Then, the Winner detector 20 outputs the timing signals C ′ 1 to C ′ k as the match signals M 1 to M k .
 例えば、2個のマッチ信号M,Mを検出する場合、Winner検出器20は、タイミング信号C~Cのうち、立ち上がりタイミングが早い順に2個のタイミング信号C,Cを検出し、その検出したタイミング信号C,Cをマッチ信号M,Mとして出力する。 For example, when detecting the two match signals M 1, M 2, Winner detector 20, of the timing signals C 1 ~ C R, detects the two timing signals C 1, C 3 to rise timing is earlier order The detected timing signals C 1 and C 3 are output as match signals M 1 and M 2 .
 なお、k=2以外のk個のタイミング信号C’~C’を検出する場合も、Winner検出器20は、同様にして、k個のタイミング信号C’~C’を検出し、その検出したk個のタイミング信号C’~C’をマッチ信号M~Mとして出力する。 When detecting k timing signals C ′ 1 to C ′ k other than k = 2, the Winner detector 20 similarly detects k timing signals C ′ 1 to C ′ k. The detected k timing signals C ′ 1 to C ′ k are output as match signals M 1 to M k .
 k=1である場合、Winner検出器20は、検索データに最も類似する参照データに対応するタイミング信号(タイミング信号C~Cのいずれか)をマッチ信号Mとして出力する。 If a k = 1, Winner detector 20 outputs a timing signal corresponding to the reference data most similar to the search data (any timing signals C 1 ~ C R) as a match signal M 1.
 また、k≠1である場合、Winner検出器20は、検索データに類似するk個の参照データに対応するk個のタイミング信号C’~C’をマッチ信号M~Mとして出力する。この場合、k個のタイミング信号C’~C’において、k個の立ち上がりタイミングは、相互に、少なくともクロック信号CLKの1周期分だけ異なるので、立ち上がりタイミングの早い順にk個のタイミング信号C’~C’を正確に検出できる。つまり、連想メモリ100は、検索データに類似するk個の参照データを正確に検索できる。 When k ≠ 1, the Winner detector 20 outputs k timing signals C ′ 1 to C ′ k corresponding to k reference data similar to the search data as match signals M 1 to M k. To do. In this case, in the k timing signals C ′ 1 to C ′ k , the k rising timings differ from each other by at least one cycle of the clock signal CLK. ' 1 to C' k can be detected accurately. That is, the associative memory 100 can accurately search k reference data similar to the search data.
 また、距離/クロック数変換回路DC~DCの動作は、クロック信号CLKに同期して実行されるので、クロック信号CLKの周波数を高くすることによって、連想メモリ100の動作を高速にできる。 The distance / operation of the clock number conversion circuits DC 1 ~ DC R, since is performed in synchronization with the clock signal CLK, by increasing the frequency of the clock signal CLK, the possible operation of the associative memory 100 at high speed.
 従って、連想メモリ100は、マンハッタン距離を用いた場合にも、正確、かつ、高速に類似検索を行うことができる。 Therefore, the associative memory 100 can perform the similarity search accurately and at high speed even when the Manhattan distance is used.
 図7は、図3に示すカウンタ311の好ましい構成を示す概略図である。この発明の実施の形態においては、カウンタ311は、好ましくは、図7に示すカウンタ311Aからなる。 FIG. 7 is a schematic diagram showing a preferred configuration of the counter 311 shown in FIG. In the embodiment of the present invention, the counter 311 preferably comprises a counter 311A shown in FIG.
 図7を参照して、カウンタ311Aは、分周器311-1~311-Mを含む。分周器311-1は、Mビットの距離信号(=距離信号D11~D1W,D21~D2W,・・,DR1~DRWの各々)の最下位ビットに対応して設けられる。分周器311-2は、Mビットの距離信号(=距離信号D11~D1W,D21~D2W,・・,DR1~DRWの各々)の第2位ビットに対応して設けられる。以下、同様にして、分周器311-Mは、Mビットの距離信号(=距離信号D11~D1W,D21~D2W,・・,DR1~DRWの各々)の最上位ビットに対応して設けられる。 Referring to FIG. 7, counter 311A includes frequency dividers 311-1 to 311-M. The frequency divider 311-1 is provided corresponding to the least significant bit of the M-bit distance signal (= distance signals D 11 to D 1W , D 21 to D 2W ,..., D R1 to D RW ). . The frequency divider 311-2 is provided corresponding to the second bit of the M-bit distance signal (= distance signals D 11 to D 1W , D 21 to D 2W ,..., D R1 to D RW ). It is done. Hereinafter, similarly, the frequency divider 311 -M is the most significant bit of the M-bit distance signal (= distance signals D 11 to D 1W , D 21 to D 2W ,..., D R1 to D RW ). It is provided corresponding to.
 分周器311-1は、クロック信号CLKを2回分周し、その分周した分周信号DVを一致検出回路312へ出力する。分周器311-2は、クロック信号CLKを2回分周し、その分周した分周信号DVを一致検出回路312へ出力する。以下、同様にして、分周器311-Mは、クロック信号CLKを2M-1回分周し、その分周した分周信号DVを一致検出回路312へ出力する。 Divider 311-1, a clock signal CLK to 2 0 times division and outputs a frequency division signal DV 1 that the dividing into coincidence detection circuit 312. Divider 311-2 is a clock signal CLK and 2 one time division and outputs a frequency division signal DV 2 that the dividing into coincidence detection circuit 312. Similarly, the frequency divider 311 -M divides the clock signal CLK by 2 M−1 times, and outputs the divided frequency signal DV M to the coincidence detection circuit 312.
 図8は、図7に示すカウンタ311Aの動作を説明するための図である。なお、図8においては、カウンタ311Aが4個の分周器311-1~311-4からなる場合を例にしてカウンタ311Aの動作を説明する。 FIG. 8 is a diagram for explaining the operation of the counter 311A shown in FIG. In FIG. 8, the operation of the counter 311A will be described by taking as an example the case where the counter 311A includes four frequency dividers 311-1 to 311-4.
 図8を参照して、分周器311-1は、クロック信号CLKを2回分周し、その分周した分周信号DVを一致検出回路312へ出力する。分周器311-2は、クロック信号CLKを2回分周し、その分周した分周信号DVを一致検出回路312へ出力する。分周器311-3は、クロック信号CLKを2回分周し、その分周した分周信号DVを一致検出回路312へ出力する。分周器311-4は、クロック信号CLKを2回分周し、その分周した分周信号DVを一致検出回路312へ出力する。 Referring to FIG. 8, the frequency divider 311-1, a clock signal CLK to 2 0 times division and outputs a frequency division signal DV 1 that the dividing into coincidence detection circuit 312. Divider 311-2 is a clock signal CLK and 2 one time division and outputs a frequency division signal DV 2 that the dividing into coincidence detection circuit 312. Divider 311-3 is a clock signal CLK 2 2 times by frequency, and outputs a divided signal DV 3 that the division into coincidence detection circuit 312. Divider 311-4 is a clock signal CLK to 2 3 times division and outputs a frequency division signal DV 4 that the dividing into coincidence detection circuit 312.
 その結果、4個の分周器311-1~311-4は、最初に、“0000”のカウンタ値を出力し、2番目に、“0001”のカウンタ値を出力し、3番目に、“0010”のカウンタ値を出力し、以下、同様にして、15番目に、“1110”のカウンタ値を出力し、最後に、“1111”のカウンタ値を出力する。 As a result, the four frequency dividers 311-1 to 311-4 first output the counter value “0000”, the second output the counter value “0001”, the third “ The counter value “0010” is output, and thereafter, similarly, the counter value “1110” is output 15th, and the counter value “1111” is output last.
 カウンタ311Aは、4ビット以外のカウンタ値を出力する場合も、M個の分周器311-1~311-Mによって構成され、M個の分周器311-1~311-Mは、図8に示す態様と同じ態様で、それぞれ、クロック信号CLKを2回、2回、2回、・・・、2M-1回分周し、その分周した分周信号DV~DVを出力する。その結果、カウンタ311Aは、Mビットのカウンタ値を“0・・・0”,“0・・・1”,・・・,“1・・・1”の順で出力する。 Even when the counter 311A outputs a counter value other than 4 bits, it is constituted by M frequency dividers 311-1 to 311-M, and the M frequency dividers 311-1 to 311-M are configured as shown in FIG. in the same manner as the embodiment illustrated in, respectively, the clock signal CLK 2 0 times, 2 once, 2 twice, · · ·, 2 M-1 times by frequency, the frequency-divided divided signal DV 1 ~ DV M Is output. As a result, the counter 311A is a counter value of M bits "0 1 0 2 0 3 ··· 0 M", "0 1 0 2 0 3 ··· 1 M", ···, "1 1 1 2 Output in the order of 1 3 ... 1 M ″.
 従って、分周器311-1~311-Mのうち、Mビットのカウンタ値の最下位ビットから最上位ビットへ向かう方向において第m(mは1≦m≦Mを満たす整数)位のビット値を出力する分周器は、クロック信号CLKを2m-1回に分周した信号を出力する。 Accordingly, among the frequency dividers 311-1 to 311-M, the bit value of the m-th (m is an integer satisfying 1 ≦ m ≦ M) in the direction from the least significant bit to the most significant bit of the M-bit counter value. , Outputs a signal obtained by dividing the clock signal CLK by 2 m−1 times.
 このように、カウンタ311Aを分周器311-1~311-Mによって構成することによって、通常のカウンタに比べて、回路サイズを小さくでき、消費電力を低減できる。 Thus, by configuring the counter 311A with the frequency dividers 311-1 to 311-M, the circuit size can be reduced and the power consumption can be reduced as compared with a normal counter.
 カウンタ一致検出回路31~3Wのカウンタ311が図7に示すカウンタ311Aからなっている場合も、距離/クロック数変換回路DC~DCは、上述した方法によって、それぞれ、M×Wビットのビット長を有する距離信号D11~D1W,D21~D2W,・・・,DR1~DRWの和にそれぞれ一致するクロック数CN_total1~CN_totalRをカウントしたタイミングを示すタイミング信号C~CをWinner検出器20へ出力する。 Even when the counter 311 of the counter coincidence detection circuits 31 to 3W is composed of the counter 311A shown in FIG. 7, the distance / clock number conversion circuits DC 1 to DC R are each provided with M × W bit bits by the above-described method. distance signal D 11 ~ D 1W having a length, D 21 ~ D 2W, ··· , D R1 ~ D timing signals C 1 ~ shows the timing obtained by counting the matching number of clocks CN_total1 ~ CN_totalR respectively to the sum of the RW C R Is output to the Winner detector 20.
 上述したように、距離/クロック数変換回路DC~DCの各々は、図2に示すように、直列に接続されたW個のカウンタ一致検出回路31~3Wからなる。 As described above, each range / clock number conversion circuits DC 1 ~ DC R, as shown in FIG. 2, a W number of counter match detecting circuits 31 ~ 3W connected in series.
 W=2である場合、距離/クロック数変換回路DC~DCの各々は、カウンタ一致検出回路31,32からなる。この場合、距離演算回路DP11~DP1Wは、距離演算回路DP11,DP12からなり、距離信号D11~D1Wは、距離信号D11,D12からなる。 When W = 2, each of the distance / clock number conversion circuits DC 1 to DC R includes counter coincidence detection circuits 31 and 32. In this case, the distance calculation circuits DP 11 to DP 1W are made up of distance calculation circuits DP 11 and DP 12 , and the distance signals D 11 to D 1W are made up of distance signals D 11 and D 12 .
 そして、カウンタ一致検出回路31は、距離信号D11,D12を一列に配列したときの一方端の距離信号である1番目の距離信号D11に対応して設けられ、1番目の距離信号D11を距離演算回路DP11から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、その受けた1番目の距離信号D11に一致するカウンタ値が得られるときのクロック数CN1をカウントし、クロック数CN1をカウントしたタイミングを示す一致信号MTH1を出力する。 The counter coincidence detection circuit 31, the distance signal D 11, provided in correspondence with one of the distance signal of the edge first distance signal D 11 when the sequence D 12 in a line, the first distance signal D upon receiving the 11 from the distance calculation circuit DP 11, when counted in ascending order in synchronization with the counter value to the clock signal CLK, the clock number when the counter value matches the first distance signal D 11 having received the obtained CN1 is counted, and a coincidence signal MTH1 indicating the timing when the number of clocks CN1 is counted is output.
 また、カウンタ一致検出回路32は、距離信号D11,D12を一列に配列したときの一方端からW番目(=2番目)の距離信号であるW番目(=2番目)の距離信号D12に対応して設けられ、カウンタ一致検出回路31から一致信号MTH1を受けると駆動されるとともにW番目(=2番目)の距離信号D12を距離演算回路DP12から受け、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、その受けたW番目(=2番目)の距離信号D12に一致するカウンタ値が得られるときのクロック数CN2をカウントし、クロック数CN2をカウントしたタイミングを示すタイミング信号CをWinner検出器20へ出力する。 The counter coincidence detection circuit 32, the distance signal D 11, D 12 and W th from one end when arranged in a line W th the distance signal (= second) (= 2nd) the distance signal D 12 of It provided corresponding to undergo W th while being driven to undergo coincidence signal MTH1 from the counter coincidence detection circuit 31 the distance signal D 12 (= the second) from the distance calculating circuit DP 12, the clock counter value signal CLK when counted in ascending order in synchronization with the timing of counting the number of clocks CN2 when the counter value matches the distance signal D 12 of the received W th (= second) was obtained by counting the number of clocks CN2 a timing signal C 1 indicating the output to Winner detector 20.
 この場合、カウンタ一致検出回路31は、「第1のカウンタ一致検出回路」を構成し、カウンタ一致検出回路32は、「第2のカウンタ一致検出回路」を構成する。 In this case, the counter coincidence detection circuit 31 constitutes a “first counter coincidence detection circuit”, and the counter coincidence detection circuit 32 constitutes a “second counter coincidence detection circuit”.
 また、W=3以上である場合、距離/クロック数変換回路DC~DCの各々は、カウンタ一致検出回路31~3Wからなる。 When W = 3 or more, each of the distance / clock number conversion circuits DC 1 to DC R includes counter coincidence detection circuits 31 to 3W.
 そして、カウンタ一致検出回路31は、距離信号D11~D1Wを一列に配列したときの一方端の距離信号である1番目の距離信号D11に対応して設けられ、1番目の距離信号D11を距離演算回路DP11から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、その受けた1番目の距離信号D11に一致するカウンタ値が得られるときのクロック数CN1をカウントし、クロック数CN1をカウントしたタイミングを示す一致信号MTH1を出力する。 The counter coincidence detection circuit 31 is provided corresponding to the first distance signal D 11 that is the distance signal at one end when the distance signals D 11 to D 1W are arranged in a line. upon receiving the 11 from the distance calculation circuit DP 11, when counted in ascending order in synchronization with the counter value to the clock signal CLK, the clock number when the counter value matches the first distance signal D 11 having received the obtained CN1 is counted, and a coincidence signal MTH1 indicating the timing when the number of clocks CN1 is counted is output.
 また、カウンタ一致検出回路32~3W-1は、2番目の距離信号D12からW-1番目の距離信号D1W-1までのW-2個の距離信号D12~D1W-1に対応して設けられる。そして、カウンタ一致検出回路32~3W-1の各々は、カウンタ一致検出回路31またはw-1(wは2≦w≦W-1を満たす整数)番目の距離信号に対応して設けられたカウンタ一致検出回路32~3W-2から1番目またはw-1番目の距離信号に対応して設けられたカウンタ一致検出回路31~3W-2から1番目またはw番目の距離信号に一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントしたタイミングを示す一致信号MTH1~MTH3W-2を受けると駆動されるとともにw番目の距離信号(=距離信号D12~D1W-1のいずれか)を受け、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、w番目の距離信号(=距離信号D12~D1W-1のいずれか)に一致するカウンタ値が得られるときのクロック数CN3をカウントし、クロック数CN3をカウントしたタイミングを示す一致信号(=一致信号MTH2~MTHW-1のいずれか)を出力する。 The counter coincidence detection circuits 32 ~ 3W-1 is corresponding to the second distance signal W-2 pieces of distance signals D 12 ~ D 1W-1 from D 12 to W-1 th distance signal D 1W-1 Provided. Each of the counter coincidence detection circuits 32 to 3W-1 includes a counter coincidence detection circuit 31 or a counter provided corresponding to the w-1 (w is an integer satisfying 2 ≦ w ≦ W−1) -th distance signal. A counter value corresponding to the first or wth distance signal from the counter match detection circuits 31 to 3W-2 provided corresponding to the first or w-1th distance signal from the coincidence detection circuits 32 to 3W-2 is obtained. while being driven and receives match signal MTH1 ~ MTH3W-2 showing a timing obtained by counting the number of clocks of the clock signal CLK when the obtained w th distance signal (= distance signal either D 12 ~ D 1W-1) receiving one of the counter value when the count in ascending order in synchronization with the clock signal CLK, the w-th distance signal (= distance signal either D 12 ~ D 1W-1) To count the number of clocks CN3 when the counter value is obtained, the coincidence signal (= either match signals MTH2 ~ MTHW-1) outputs the indicating timing for counting the number of clocks CN3.
 更に、カウンタ一致検出回路3Wは、W番目の距離信号D1Wに対応して設けられ、W-1番目の距離信号に対応して設けられたカウンタ一致検出回路3W-1から一致信号MTHW-1を受けると駆動されるとともにW番目の距離信号D1Wを受け、カウンタ一致検出回路3W-1から一致信号MTH3W-1を受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、W番目の距離信号D1Wに一致するカウンタ値が得られるときのクロック数CN4をカウントし、クロック数CN4をカウントしたタイミングを示すタイミング信号CをWinner検出器20へ出力する。 Furthermore, the counter coincidence detection circuit 3W is provided corresponding to the W-th distance signal D 1W, consistent from the counter coincidence detecting circuit 3W-1 provided corresponding to the W-1 th distance signal signal MTHW-1 receiving the W th distance signal D 1W with driven to undergo, when receiving a coincidence signal MTH3W-1 from the counter coincidence detecting circuit 3W-1, when the count in ascending order in synchronization with the counter value of the clock signal CLK counts the number of clocks CN4 when the counter value matches the W th distance signal D 1W is obtained, a timing signal C 1 indicating a timing of counting the number of clocks CN4 to Winner detector 20.
 この場合、カウンタ一致検出回路31は、「第1のカウンタ一致検出回路」を構成し、カウンタ一致検出回路32~3W-1は、「W-2個の第3のカウンタ一致検出回路」を構成し、カウンタ一致検出回路3Wは、「第4のカウンタ一致検出回路」を構成する。 In this case, the counter coincidence detection circuit 31 constitutes a “first counter coincidence detection circuit”, and the counter coincidence detection circuits 32 to 3W-1 constitute “W-2 third counter coincidence detection circuits”. The counter coincidence detection circuit 3W constitutes a “fourth counter coincidence detection circuit”.
 図9は、図1に示す距離/クロック数変換回路DC~DCの別の構成を示す概略図である。 FIG. 9 is a schematic diagram showing another configuration of distance / clock number conversion circuits DC 1 to DC R shown in FIG.
 この発明の実施の形態においては、距離/クロック数変換回路DC~DCの各々は、図9に示す距離/クロック数変換回路DC’からなっていてもよい。この場合、W=2(iは2以上の整数)である。 In the embodiment of the present invention, each of the distance / clock number conversion circuits DC 1 ~ DC R may consist Distance / clock number conversion circuit DC '1 shown in FIG. In this case, W = 2 i (i is an integer of 2 or more).
 図9を参照して、距離/クロック数変換回路DC’は、増幅器41~4Lと、カウンタ一致検出回路51~5Lとを含む。ここで、L=W/s(sは、W以下の2を満たす整数、xは、正の整数)である。 Referring to FIG. 9, distance / clock number conversion circuit DC ′ 1 includes amplifiers 41 to 4L and counter match detection circuits 51 to 5L. Here, L = W / s (s is an integer satisfying 2 x equal to or less than W, and x is a positive integer).
 増幅器41は、連想メモリ100に内蔵されたクロック発生回路(図示せず)からクロック信号CLKを受け、その受けたクロック信号CLKを増幅して増幅器42およびカウンタ一致検出回路51へ出力する。 The amplifier 41 receives a clock signal CLK from a clock generation circuit (not shown) built in the associative memory 100, amplifies the received clock signal CLK, and outputs it to the amplifier 42 and the counter coincidence detection circuit 51.
 増幅器42は、クロック信号CLKを増幅器41から受け、その受けたクロック信号CLKを増幅して増幅器43(図示せず)およびカウンタ一致検出回路52へ出力する。 The amplifier 42 receives the clock signal CLK from the amplifier 41, amplifies the received clock signal CLK, and outputs the amplified clock signal CLK to the amplifier 43 (not shown) and the counter coincidence detection circuit 52.
 以下、同様にして、増幅器4Lは、クロック信号CLKを増幅器4L-1(図示せず)から受け、その受けたクロック信号CLKを増幅してカウンタ一致検出回路5Lへ出力する。 Thereafter, similarly, the amplifier 4L receives the clock signal CLK from the amplifier 4L-1 (not shown), amplifies the received clock signal CLK, and outputs it to the counter coincidence detection circuit 5L.
 カウンタ一致検出回路51,52,・・・,5Lは、それぞれ、s個の距離演算回路DP11,DP1(1+L),・・・,DP1(1+(u-1)L)、s個の距離演算回路DP12,DP1(2+L),・・・,DP1(2+(u-1)L)、・・・、s個の距離演算回路DP1L,DP1(L+L),・・・,DP1(L+(u-1)L)に対応して設けられる。なお、uは、1,2,3,・・・,sである。 The counter coincidence detection circuits 51, 52,..., 5L have s distance calculation circuits DP 11 , DP 1 (1 + L) ,..., DP 1 (1+ (u−1) L) s, respectively. Distance calculation circuits DP 12 , DP 1 (2 + L) ,..., DP 1 (2+ (u−1) L) ,..., S distance calculation circuits DP 1L , DP 1 (L + L) ,. .., provided corresponding to DP 1 (L + (u−1) L) . U is 1, 2, 3,..., S.
 そして、カウンタ一致検出回路51~5Lは、直列に接続される。また、カウンタ一致検出回路51~5Lの各々は、図3に示すカウンタ一致検出回路31と同じ構成からなる。この場合、カウンタ一致検出回路51~5Lの各々は、図3に示すカウンタ311または図7に示すカウンタ311Aを含む。 The counter coincidence detection circuits 51 to 5L are connected in series. Each of the counter coincidence detection circuits 51 to 5L has the same configuration as the counter coincidence detection circuit 31 shown in FIG. In this case, each of the counter match detection circuits 51 to 5L includes the counter 311 shown in FIG. 3 or the counter 311A shown in FIG.
 カウンタ一致検出回路51は、増幅器41からクロック信号CLKを受け、連想メモリ100の制御回路(図示せず)から検索開始信号SBを受け、距離演算回路DP11,DP1(1+L),・・・,DP1(1+(u-1)L)からそれぞれ距離信号D11,D1(1+L),・・・,D1(1+(u-1)L)を受ける。 The counter coincidence detection circuit 51 receives the clock signal CLK from the amplifier 41, the search start signal SB from the control circuit (not shown) of the associative memory 100, and the distance calculation circuits DP 11 , DP 1 (1 + L) ,. , DP 1 (1+ (u−1) L) receive distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u−1) L) , respectively.
 カウンタ一致検出回路51は、距離信号D11,D1(1+L),・・・,D1(1+(u-1)L)を受け、検索開始信号SBがLレベルからHレベルに切り替わると、上述した方法によって、距離信号D11,D1(1+L),・・・,D1(1+(u-1)L)の和に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1をカウントする。そして、カウンタ一致検出回路51は、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をクロック信号CLKに同期してカウンタ一致検出回路52へ出力する。その後、カウンタ一致検出回路51は、動作を停止する。 The counter coincidence detection circuit 51 receives the distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u−1) L) , and when the search start signal SB switches from the L level to the H level, The clock of the clock signal CLK when the counter value CV 11 that matches the sum of the distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u−1) L) is obtained by the method described above. The number CN_1 is counted. Then, the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing of counting the clock number CN_1 to the counter coincidence detection circuit 52 in synchronization with the clock signal CLK. Thereafter, the counter coincidence detection circuit 51 stops its operation.
 また、カウンタ一致検出回路52は、増幅器42からクロック信号CLKを受け、カウンタ一致検出回路51から一致信号MTH1を受け、距離演算回路DP12,DP1(2+L),・・・,DP1(2+(u-1)L)からそれぞれ距離信号D12,D1(2+L),・・・,D1(2+(u-1)L)を受ける。 The counter coincidence detection circuit 52 receives the clock signal CLK from the amplifier 42, the coincidence signal MTH1 from the counter coincidence detection circuit 51, and the distance calculation circuits DP 12 , DP 1 (2 + L) ,..., DP 1 (2+ (U−1) L) receives distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u−1) L) .
 カウンタ一致検出回路52は、距離信号D12,D1(2+L),・・・,D1(2+(u-1)L)を受け、一致信号MTH1を受けると、上述した方法によって、距離信号D12,D1(2+L),・・・,D1(2+(u-1)L)の和に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2をカウントする。そして、カウンタ一致検出回路52は、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をクロック信号CLKに同期してカウンタ一致検出回路53へ出力する。その後、カウンタ一致検出回路52は、動作を停止する。 When the counter coincidence detection circuit 52 receives the distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u−1) L) and receives the coincidence signal MTH1, the counter signal is detected by the method described above. D 12, D 1 (2 + L), ···, counts the number of clocks CN_2 of the clock signal CLK when the counter value CV 12 that matches the sum of D 1 (2+ (u-1 ) L) is obtained. Then, the counter coincidence detection circuit 52 outputs a coincidence signal MTH2 indicating the timing of counting the clock number CN_2 to the counter coincidence detection circuit 53 in synchronization with the clock signal CLK. Thereafter, the counter match detection circuit 52 stops its operation.
 以下、同様にして、カウンタ一致検出回路5Lは、増幅器4Lからクロック信号CLKを受け、カウンタ一致検出回路5L-1から一致信号MTHL-1を受け、距離演算回路DP1L,DP1(L+L),・・・,DP1(L+(u-1)L)からそれぞれ距離信号D1L,D1(L+L),・・・,D1(L+(u-1)L)を受ける。 Similarly, the counter coincidence detection circuit 5L receives the clock signal CLK from the amplifier 4L, receives the coincidence signal MTHL-1 from the counter coincidence detection circuit 5L-1, and receives the distance calculation circuits DP 1L , DP 1 (L + L) , ..., DP 1 (L + (u-1) L) receives distance signals D1L , D1 (L + L) , ..., D1 (L + (u-1) L) , respectively.
 カウンタ一致検出回路5Lは、距離信号D1L,D1(L+L),・・・,D1(L+(u-1)L)を受け、一致信号MTHL-1を受けると、上述した方法によって、距離信号D1L,D1(L+L),・・・,D1(L+(u-1)L)の和に一致するカウンタ値CV1Lが得られるときのクロック信号CLKのクロック数CN_Lをカウントする。そして、カウンタ一致検出回路5Lは、クロック数CN_Lをカウントしたタイミングを示すタイミング信号Cをクロック信号CLKに同期してWinner検出器20へ出力する。その後、カウンタ一致検出回路5Lは、動作を停止する。 When the counter coincidence detection circuit 5L receives the distance signals D 1L , D 1 (L + L) ,..., D 1 (L + (u−1) L) and receives the coincidence signal MTHL−1, the above-described method is performed. Counts the number of clocks CN_L of the clock signal CLK when a counter value CV 1L that matches the sum of the distance signals D 1L , D 1 (L + L) ,..., D 1 (L + (u−1) L) is obtained. . The counter coincidence detection circuit 5L outputs to Winner detector 20 a timing signal C 1 indicating a timing of counting the number of clocks CN_L synchronism with the clock signal CLK. Thereafter, the counter coincidence detection circuit 5L stops its operation.
 なお、距離信号D11,D1(1+L),・・・,D1(1+(u-1)L),D12,D1(2+L),・・・,D1(2+(u-1)L),・・・,D1L,D1(L+L),・・・,D1(L+(u-1)L)の各々は、Mビットのビット値からなる。 The distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u−1) L) , D 12 , D 1 (2 + L) , ..., D 1 (2+ (u−1) ) L) ,..., D 1L , D 1 (L + L) ,.
 従って、距離/クロック数変換回路DC~DC(=距離/クロック数変換回路DC’)の各々は、L(=W/s)個の距離信号に対応して設けられ、各々がMビットのビット長を有するW個の距離信号に基づいて、タイミング信号(タイミング信号C~Cのいずれか)を出力するL(=W/s)個のカウンタ一致検出回路を含み、L(=W/s)個のカウンタ一致検出回路は、各々がL(=W/s)個の距離信号からなるs組の距離信号を受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、その受けたs組の距離信号に含まれるW個の距離信号の和に一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントし、そのクロック数をカウントしたタイミングを示すタイミング信号(タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 Accordingly, each of the distance / clock number conversion circuits DC 1 to DC R (= distance / clock number conversion circuit DC ′ 1 ) is provided corresponding to L (= W / s) distance signals, and each of them is M based on the W number of distance signal having a bit length of the bit comprise a L (= W / s) number of the counter match detection circuit for outputting a (any timing signals C 1 ~ C R) timing signals, L ( = W / s) counter coincidence detection circuits, when receiving s pairs of distance signals each consisting of L (= W / s) distance signals, count the counter values in ascending order in synchronization with the clock signal CLK. The number of clocks of the clock signal CLK when a counter value matching the sum of the W distance signals included in the received s sets of distance signals is obtained, and the timing at which the number of clocks is counted is counted. Taimi showing And it outputs a ring signal (any timing signals C 1 ~ C R) to the Winner detector 20.
 カウンタ一致検出回路51~5L-1の各々は、s個の距離信号の和に一致するカウンタ値が得られるときのクロック信号CLKのクロック数(=クロック数CN_1~CN_L-1のいずれか)をカウントしたタイミングを示す一致信号(=一致信号MTH1~MTHL-1のいずれか)を出力し、カウンタ一致検出回路5Lは、s個の距離信号の和に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_Lをカウントしたタイミングを示すタイミング信号(タイミング信号C~Cのいずれか)を出力し、L=W/sであるので、L(=W/s)個のカウンタ一致検出回路51~5Lは、結局、(W/s)×s=W個の距離信号の和に一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントしたタイミングを示すタイミング信号(タイミング信号C~Cのいずれか)を出力することになる。 Each of the counter coincidence detection circuits 51 to 5L-1 calculates the number of clocks of the clock signal CLK (= any of the number of clocks CN_1 to CN_L-1) when a counter value matching the sum of s distance signals is obtained. A coincidence signal (= any of coincidence signals MTH1 to MTHL-1) indicating the counted timing is output, and the counter coincidence detection circuit 5L is a clock signal when a counter value that coincides with the sum of the s distance signals is obtained. outputs a timing signal indicating a timing of counting the number of clocks CN_L of CLK (any timing signals C 1 ~ C R), since it is L = W / s, L ( = W / s) number of the counter match detection The circuits 51 to 5L eventually determine the number of clocks of the clock signal CLK when a counter value that matches the sum of (W / s) × s = W distance signals is obtained. Will output a timing signal indicating the timing count (any timing signals C 1 ~ C R).
 図10は、図1に示す距離/クロック数変換回路DC~DCの更に別の構成を示す概略図である。 FIG. 10 is a schematic diagram showing still another configuration of the distance / clock number conversion circuits DC 1 to DC R shown in FIG.
 この発明の実施の形態においては、距離/クロック数変換回路DC~DCの各々は、図10に示す距離/クロック数変換回路DC”からなっていてもよい。この場合も、W=2(iは2以上の整数)である。 In the embodiment of the present invention, each of the distance / clock number conversion circuits DC 1 to DC R may comprise the distance / clock number conversion circuit DC ″ 1 shown in FIG. 10. In this case as well, W = 2 i (i is an integer of 2 or more).
 図10を参照して、距離/クロック数変換回路DC”は、図9に示す距離/クロック数変換回路DC’にスイッチング制御回路60およびマルチプレクサ61~6Lを追加したものであり、その他は、距離/クロック数変換回路DC’と同じである。 Referring to FIG. 10, distance / clock number conversion circuit DC ″ 1 is obtained by adding switching control circuit 60 and multiplexers 61 to 6L to distance / clock number conversion circuit DC ′ 1 shown in FIG. is the same as the distance / clock number conversion circuit DC '1.
 距離/クロック数変換回路DC”においては、増幅器41~4Lは、クロック信号CLKを増幅し、その増幅したクロック信号CLKをそれぞれカウンタ一致検出回路51~5Lへ出力するとともに、その増幅したクロック信号CLKをスイッチング制御回路60へ出力する。 In the distance / clock number conversion circuit DC ″ 1 , the amplifiers 41 to 4L amplify the clock signal CLK, output the amplified clock signal CLK to the counter coincidence detection circuits 51 to 5L, respectively, and the amplified clock signal. CLK is output to the switching control circuit 60.
 また、距離/クロック数変換回路DC”においては、マルチプレクサ61,62,・・・,6Lは、それぞれ、s個の距離演算回路DP11,DP1(1+L),・・・,DP1(1+(u-1)L)、s個の距離演算回路DP12,DP1(2+L),・・・,DP1(2+(u-1)L)、・・・、s個の距離演算回路DP1L,DP1(L+L),・・・,DP1(L+(u-1)L)に対応して設けられる。そして、カウンタ一致検出回路51~5Lは、それぞれ、マルチプレクサ61~6Lに対応して設けられる。 In the distance / clock number conversion circuit DC "1, multiplexer 61, 62, · · ·, 6L, respectively, s pieces of distance calculation circuit DP 11, DP 1 (1 + L), ···, DP 1 ( 1+ (u−1) L) , s distance arithmetic circuits DP 12 , DP 1 (2 + L) ,..., DP 1 (2+ (u−1) L) ,. DP 1L , DP 1 (L + L) ,..., DP 1 (L + (u−1) L) are provided, and counter match detection circuits 51 to 5L correspond to multiplexers 61 to 6L, respectively. Provided.
 スイッチング制御回路60は、連想メモリ100の制御回路から検索開始信号SBおよびリセット信号RSTを受け、カウンタ一致検出回路51~5Lからそれぞれ一致信号MTH1~MTHLを受ける。 The switching control circuit 60 receives the search start signal SB and the reset signal RST from the control circuit of the associative memory 100, and receives the match signals MTH1 to MTHL from the counter match detection circuits 51 to 5L, respectively.
 そして、スイッチング制御回路60は、検索開始信号SBおよびリセット信号RSTを受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 When switching control circuit 60 receives search start signal SB and reset signal RST, switching control circuit 60 outputs reset signal RST to counter match detection circuit 51 and output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. .
 また、スイッチング制御回路60は、一致信号MTHLをカウンタ一致検出回路5Lから受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。スイッチング制御回路60は、この処理をs-1回実行する。 When switching control circuit 60 receives coincidence signal MTHL from counter coincidence detection circuit 5L, it outputs reset signal RST to counter coincidence detection circuit 51 and outputs output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. To do. The switching control circuit 60 executes this process s-1 times.
 更に、スイッチング制御回路60は、一致信号MTH1をカウンタ一致検出回路51から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに出力信号OUT2をマルチプレクサ62へ出力する。スイッチング制御回路60は、この処理をs回実行する。 Further, when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do. The switching control circuit 60 performs this process s times.
 更に、スイッチング制御回路60は、一致信号MTH2をカウンタ一致検出回路52から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路53へ出力するとともに出力信号OUT3をマルチプレクサ63へ出力する。スイッチング制御回路60は、この処理をs回実行する。 Further, when receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 53 and outputs the output signal OUT3 to the multiplexer 63 in synchronization with the clock signal CLK. To do. The switching control circuit 60 performs this process s times.
 以下、同様にして、スイッチング制御回路60は、一致信号MTHL-1をカウンタ一致検出回路5L-1から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路5Lへ出力するとともに出力信号OUTLをマルチプレクサ6Lへ出力する。スイッチング制御回路60は、この処理をs回実行する。 Similarly, when the switching control circuit 60 receives the coincidence signal MTHL-1 from the counter coincidence detection circuit 5L-1, it outputs a reset signal RST to the counter coincidence detection circuit 5L in synchronization with the clock signal CLK. Output signal OUTL is output to multiplexer 6L. The switching control circuit 60 performs this process s times.
 マルチプレクサ61は、s個の距離信号D11,D1(1+L),・・・,D1(1+(u-1)L)を受ける。そして、マルチプレクサ61は、1回目の出力信号OUT1をスイッチング制御回路60から受けると、距離信号D11をカウンタ一致検出回路51へ出力し、2回目の出力信号OUT1をスイッチング制御回路60から受けると、距離信号D1(1+L)をカウンタ一致検出回路51へ出力し、以下、同様にして、s回目の出力信号OUT1をスイッチング制御回路60から受けると、距離信号D1(1+(u-1)L)をカウンタ一致検出回路51へ出力する。 The multiplexer 61 receives s distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u−1) L) . The multiplexer 61 receives the first output signal OUT1 from the switching control circuit 60 outputs a distance signal D 11 to the counter match detection circuit 51, when receiving the second output signal OUT1 from the switching control circuit 60, The distance signal D 1 (1 + L) is output to the counter coincidence detection circuit 51. Similarly, when the s-th output signal OUT1 is received from the switching control circuit 60, the distance signal D 1 (1+ (u−1) L ) Is output to the counter coincidence detection circuit 51.
 マルチプレクサ62は、s個の距離信号D12,D1(2+L),・・・,D1(2+(u-1)L)を受ける。そして、マルチプレクサ62は、1回目の出力信号OUT2をスイッチング制御回路60から受けると、距離信号D12をカウンタ一致検出回路52へ出力し、2回目の出力信号OUT2をスイッチング制御回路60から受けると、距離信号D1(2+L)をカウンタ一致検出回路52へ出力し、以下、同様にして、s回目の出力信号OUT2をスイッチング制御回路60から受けると、距離信号D1(2+(u-1)L)をカウンタ一致検出回路52へ出力する。 The multiplexer 62 receives s distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u−1) L) . The multiplexer 62 receives the first output signal OUT2 from the switching control circuit 60 outputs a distance signal D 12 to the counter coincidence detection circuit 52, when receiving the second output signal OUT2 from the switching control circuit 60, The distance signal D 1 (2 + L) is output to the counter coincidence detection circuit 52. Similarly, when the s-th output signal OUT2 is received from the switching control circuit 60, the distance signal D 1 (2+ (u−1) L ) Is output to the counter match detection circuit 52.
 以下、同様にして、マルチプレクサ6Lは、s個の距離信号D1L,D1(L+L),・・・,D1(L+(u-1)L)を受ける。そして、マルチプレクサ6Lは、1回目の出力信号OUTLをスイッチング制御回路60から受けると、距離信号D1Lをカウンタ一致検出回路5Lへ出力し、2回目の出力信号OUTLをスイッチング制御回路60から受けると、距離信号D1(L+L)をカウンタ一致検出回路5Lへ出力し、以下、同様にして、s回目の出力信号OUTLをスイッチング制御回路60から受けると、距離信号D1(L+(u-1)L)をカウンタ一致検出回路5Lへ出力する。 Similarly, the multiplexer 6L receives s distance signals D 1L , D 1 (L + L) ,..., D 1 (L + (u−1) L) . When the multiplexer 6L receives the first output signal OUTL from the switching control circuit 60, the multiplexer 6L outputs the distance signal D1L to the counter coincidence detection circuit 5L, and receives the second output signal OUTL from the switching control circuit 60. The distance signal D1 (L + (u-1) L is output when the distance signal D1 (L + L) is output to the counter coincidence detection circuit 5L and the s-th output signal OUTL is similarly received from the switching control circuit 60. ) Is output to the counter coincidence detection circuit 5L.
 カウンタ一致検出回路51は、リセット信号RSTをスイッチング制御回路60から受けると駆動される。そして、カウンタ一致検出回路51は、距離信号D11をマルチプレクサ61から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D11に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。カウンタ一致検出回路51は、この処理をs個の距離信号D11,D1(1+L),・・・,D1(1+(u-1)L)の全てについて実行する。 The counter coincidence detection circuit 51 is driven when it receives the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 51 receives the distance signal D 11 from the multiplexer 61, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 11 is obtained The clock number CN_1 of the clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation. The counter coincidence detection circuit 51 executes this processing for all s distance signals D 11 , D 1 (1 + L) ,..., D 1 (1+ (u−1) L) .
 また、カウンタ一致検出回路52は、リセット信号RSTをスイッチング制御回路60から受けると駆動される。そして、カウンタ一致検出回路52は、距離信号D12をマルチプレクサ62から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D12に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。カウンタ一致検出回路52は、この処理をs個の距離信号D12,D1(2+L),・・・,D1(2+(u-1)L)の全てについて実行する。 The counter coincidence detection circuit 52 is driven when it receives the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 52 receives the distance signal D 12 from the multiplexer 62, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 12 is obtained The clock number CN_2 of the clock signal CLK is counted, and the coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation. The counter coincidence detection circuit 52 executes this process for all s distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u−1) L) .
 以下、同様にして、カウンタ一致検出回路5Lは、リセット信号RSTをスイッチング制御回路60から受けると駆動される。そして、カウンタ一致検出回路5Lは、距離信号D1Lをマルチプレクサ6Lから受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D1Lに一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_Lをカウントし、クロック数CN_Lをカウントしたタイミングを示す一致信号MTHLをスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路5Lは、動作を停止する。カウンタ一致検出回路5Lは、この処理をs-1個の距離信号D12,D1(2+L),・・・,D1(2+(u-1)L-1)の全てについて実行する。 Similarly, the counter coincidence detection circuit 5L is driven when it receives the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 5L receives the distance signal D 1L from the multiplexer 6L, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 1L is obtained The clock number CN_L of the clock signal CLK is counted, and a coincidence signal MTHL indicating the timing at which the clock number CN_L is counted is output to the switching control circuit 60. Then, the counter match detection circuit 5L stops its operation. The counter coincidence detection circuit 5L executes this process for all of the s−1 distance signals D 12 , D 1 (2 + L) ,..., D 1 (2+ (u−1) L−1) .
 そして、カウンタ一致検出回路5Lは、s回目のリセット信号RSTをスイッチング制御回路60から受けると駆動されるとともに距離信号D1(L+(u-1)L)をマルチプレクサ6Lから受け、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D1(L+(u-1)L)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_Lをカウントし、クロック数CN_Lをカウントしたタイミングを示すタイミング信号CをWinner検出器20へ出力する。 The counter coincidence detection circuit 5L is driven when the s-th reset signal RST is received from the switching control circuit 60, receives the distance signal D1 (L + (u−1) L) from the multiplexer 6L, and receives the counter value as a clock. When counting in ascending order in synchronization with the signal CLK, the number of clocks CN_L of the clock signal CLK when the counter value matching the distance signal D1 (L + (u-1) L) is obtained is counted, and the number of clocks CN_L a timing signal C 1 indicating timing for counting the output to Winner detector 20.
 距離/クロック数変換回路DC~DC(=距離/クロック数変換回路DC”)の各々においては、検索データに類似する参照データの検索が開始されると、スイッチング制御回路60は、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 In each of the distance / clock number conversion circuits DC 1 to DC R (= distance / clock number conversion circuit DC ″ 1 ), when the search of the reference data similar to the search data is started, the switching control circuit 60 In synchronization with the signal CLK, the reset signal RST is output to the counter coincidence detection circuit 51 and the output signal OUT1 is output to the multiplexer 61.
 そして、マルチプレクサ61は、スイッチング制御回路60からの1回目の出力信号OUT1に応じて、距離信号D11をカウンタ一致検出回路51へ出力する。 Then, the multiplexer 61, depending on the first output signal OUT1 from the switching control circuit 60 outputs a distance signal D 11 to the counter match detection circuit 51.
 カウンタ一致検出回路51は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路51は、距離信号D11をマルチプレクサ61から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D11に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 The counter coincidence detection circuit 51 is driven in response to the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 51 receives the distance signal D 11 from the multiplexer 61, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 11 is obtained The clock number CN_1 of the clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路51からの一致信号MTH1に応じて、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに出力信号OUT2をマルチプレクサ62へ出力する。 Thereafter, the switching control circuit 60 outputs the reset signal RST to the counter match detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK according to the match signal MTH1 from the counter match detection circuit 51. Output.
 マルチプレクサ62は、スイッチング制御回路60からの1回目の出力信号OUT2に応じて、距離信号D12をカウンタ一致検出回路52へ出力する。 Multiplexer 62, in response to the first output signal OUT2 from the switching control circuit 60 outputs a distance signal D 12 to the counter coincidence detection circuit 52.
 カウンタ一致検出回路52は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路52は、距離信号D12をマルチプレクサ62から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D12に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 The counter coincidence detection circuit 52 is driven in response to the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 52 receives the distance signal D 12 from the multiplexer 62, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 12 is obtained The clock number CN_2 of the clock signal CLK is counted, and the coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
 以下、同様にして、スイッチング制御回路60は、カウンタ一致検出回路5L-1からの一致信号MTHL-1に応じて、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路5Lへ出力するとともに出力信号OUTLをマルチプレクサ6Lへ出力する。 Similarly, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 5L in synchronization with the clock signal CLK in response to the coincidence signal MTHL-1 from the counter coincidence detection circuit 5L-1. At the same time, the output signal OUTL is output to the multiplexer 6L.
 そして、マルチプレクサ6Lは、スイッチング制御回路60からの1回目の出力信号OUTLに応じて、距離信号D1Lをカウンタ一致検出回路5Lへ出力する。 Then, the multiplexer 6L outputs the distance signal D1L to the counter coincidence detection circuit 5L in response to the first output signal OUTL from the switching control circuit 60.
 カウンタ一致検出回路5Lは、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路5Lは、距離信号D1Lをマルチプレクサ6Lから受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D1Lに一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_Lをカウントし、クロック数CN_Lをカウントしたタイミングを示す一致信号MTHLをスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路5Lは、動作を停止する。 The counter coincidence detection circuit 5L is driven according to the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 5L receives the distance signal D 1L from the multiplexer 6L, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 1L is obtained The clock number CN_L of the clock signal CLK is counted, and a coincidence signal MTHL indicating the timing at which the clock number CN_L is counted is output to the switching control circuit 60. Then, the counter match detection circuit 5L stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路5Lからの一致信号MTHLに応じて、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 Thereafter, the switching control circuit 60 outputs the reset signal RST to the counter match detection circuit 51 and the output signal OUT1 to the multiplexer 61 in synchronization with the clock signal CLK according to the match signal MTHL from the counter match detection circuit 5L. Output.
 その後、カウンタ一致検出回路51~5L-1、スイッチング制御回路60およびマルチプレクサ61~6L-1は、上述した動作をs-1回繰り返し実行し、カウンタ一致検出回路5Lおよびマルチプレクサ6Lは、上述した動作をs-2回繰り返し実行する。 Thereafter, the counter match detection circuits 51 to 5L-1, the switching control circuit 60, and the multiplexers 61 to 6L-1 repeatedly execute the above-described operation s-1 times, and the counter match detection circuit 5L and the multiplexer 6L perform the above-described operation. Are repeatedly executed s-2 times.
 そして、カウンタ一致検出回路5Lは、s回目のリセット信号RSTをスイッチング制御回路60から受け、距離信号D1(L+(u-1)L)をマルチプレクサ6Lから受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D1(L+(u-1)L)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_Lをカウントし、クロック数CN_Lをカウントしたタイミングを示すタイミング信号CをWinner検出器20へ出力する。そして、カウンタ一致検出回路5Lは、動作を停止する。 When the counter coincidence detection circuit 5L receives the s-th reset signal RST from the switching control circuit 60 and the distance signal D1 (L + (u−1) L) from the multiplexer 6L, the counter value is converted to the clock signal CLK. When counting in ascending order synchronously, the clock number CN_L of the clock signal CLK when the counter value matching the distance signal D1 (L + (u−1) L) is obtained is counted, and the clock number CN_L is counted A timing signal C 1 indicating the timing is output to the Winner detector 20. Then, the counter match detection circuit 5L stops its operation.
 L(=W/s)個のカウンタ一致検出回路51~5Lを1個のカウンタ一致検出回路MDCと考えた場合、カウンタ一致検出回路MDCは、1回目、L(=W/s)個の距離信号D11~D1Lを受ける。そして、カウンタ一致検出回路51~5Lがそれぞれ距離信号D11~D1Lに一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_1~CN_Lをカウントし、クロック数CN_1~CN_Lをカウントしたタイミングを示す一致信号MTH1~MTHLを出力することは、カウンタ一致検出回路MDCが距離信号D11~D1Lの和に一致するカウンタ値が得られるときのクロック信号CLKのクロック数(CN_1+CN_2+・・・+CN_L)をカウントし、そのクロック数(CN_1+CN_2+・・・+CN_L)をカウントしたタイミングを示す一致信号を出力することに相当する。また、カウンタ一致検出回路MDCは、この処理をs-1回繰り返し実行する。そして、カウンタ一致検出回路MDCは、s-1回目の一致信号を出力すると、L(=W/s)個の距離信号D1(1+(u-1)L),D1(2+(u-1)L),・・・,D1(L+(u-1)L)の和に一致するカウンタ値が得られるときのクロック信号CLKのクロック数(CN_1+CN_2+・・・+CN_L)をカウントし、そのクロック数(CN_1+CN_2+・・・+CN_L)をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 When L (= W / s) counter coincidence detection circuits 51 to 5L are considered as one counter coincidence detection circuit MDC, the counter coincidence detection circuit MDC performs L (= W / s) distances for the first time. Receives signals D 11 to D 1L . Then, the counter coincidence detection circuits 51 to 5L count the clock numbers CN_1 to CN_L of the clock signal CLK when the counter values coincident with the distance signals D 11 to D 1L are obtained, and the timing at which the clock numbers CN_1 to CN_L are counted The coincidence signals MTH1 to MTHL indicating the number of clock signals CLK when the counter coincidence detection circuit MDC obtains a counter value that coincides with the sum of the distance signals D 11 to D 1L (CN_1 + CN_2 +... + CN_L ) And the coincidence signal indicating the timing when the number of clocks (CN_1 + CN_2 +... + CN_L) is counted is output. The counter match detection circuit MDC repeatedly executes this process s-1 times. When the counter coincidence detection circuit MDC outputs the s−1th coincidence signal, L (= W / s) number of distance signals D 1 (1+ (u−1) L) , D 1 (2+ (u−) 1) Count the number of clock signals CLK (CN_1 + CN_2 +... + CN_L) when a counter value that matches the sum of L) ,..., D1 (L + (u-1) L) is obtained. and it outputs the clock number (CN_1 + CN_2 + ··· + CN_L ) ( either = timing signals C 1 ~ C R) timing signal indicating a timing of counting the Winner detector 20.
 従って、距離/クロック数変換回路DC”においては、L(=W/s)個のカウンタ一致検出回路51~5Lは、L(=W/s)個の距離信号D11~D1Lを受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、その受けたL(=W/s)個の距離信号D11~D1Lの和に一致するカウンタ値が得られるときのクロック信号CLKの第1のクロック数をカウントし、第1のクロック数をカウントしたタイミングを示す第1の一致信号を出力する処理をs-1回繰り返し実行し、前記第1の一致信号をs-1回出力し、かつ、s回目にL(=W/s)個の距離信号を受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、その受けたL(=W/s)個の距離信号に一致するカウンタ値が得られるときのクロック信号CLKの第2のクロック数をカウントし、前記第2のクロック数をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 Accordingly, in the distance / clock number conversion circuit DC ″ 1 , the L (= W / s) counter coincidence detection circuits 51 to 5L receive the L (= W / s) distance signals D 11 to D 1L . When the counter value is counted in ascending order in synchronization with the clock signal CLK, a counter value that matches the sum of the received L (= W / s) distance signals D 11 to D 1L is obtained. The process of counting the first clock number of the clock signal CLK and outputting the first coincidence signal indicating the timing of counting the first clock number is repeatedly executed s-1 times, and the first coincidence signal is changed to s -1 times and when receiving L (= W / s) distance signals at the sth time, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the received L (= W / S) matches the number of distance signals And second counts the number of clocks of the clock signal CLK when the count value is obtained, the second timing signal indicating a timing of counting the number of clocks (= one of the timing signals C 1 ~ C R) the Winner detection Output to the device 20.
 図11は、図9に示す距離/クロック数変換回路DC’の具体的な構成を示す概略図である。 Figure 11 is a schematic diagram showing a specific configuration of the distance / clock number converting circuit DC '1 shown in FIG.
 図11を参照して、W=2=2=8からなり、s=2=2=2からなる場合、L=W/s=8/2=4であり、距離/クロック数変換回路DC’-1は、増幅器41~44と、カウンタ一致検出回路51~54とを含む。 Referring to FIG. 11, when W = 2 i = 2 3 = 8 and s = 2 x = 2 1 = 2, L = W / s = 8/2 = 4, and distance / number of clocks Conversion circuit DC ′ 1 −1 includes amplifiers 41 to 44 and counter coincidence detection circuits 51 to 54.
 また、W個の距離信号D11~D1Wは、8個の距離信号D11~D18からなり、W個の距離演算回路DP11~DP1Wは、8個の距離演算回路DP11~DP18からなる。ここで、距離信号D11~D18は、それぞれ、D11=“3”,D12=“2”,D13=“5”,D14=“1”,D15=“2”,D16=“4”,D17=“2”,D18=“3”であるものとする。 The W distance signals D 11 to D 1W are composed of eight distance signals D 11 to D 18 , and the W distance calculation circuits DP 11 to DP 1W are eight distance calculation circuits DP 11 to DP 1. It consists of 18 . Here, the distance signals D 11 to D 18 are respectively D 11 = “3”, D 12 = “2”, D 13 = “5”, D 14 = “1”, D 15 = “2”, D It is assumed that 16 = “4”, D 17 = “2”, and D 18 = “3”.
 そして、カウンタ一致検出回路51は、2個の距離演算回路DP11,DP15に対応して設けられ、カウンタ一致検出回路52は、2個の距離演算回路DP12,DP16に対応して設けられ、カウンタ一致検出回路53は、2個の距離演算回路DP13,DP17に対応して設けられ、カウンタ一致検出回路54は、2個の距離演算回路DP14,DP18に対応して設けられる。 The counter coincidence detection circuit 51 is provided corresponding to the two distance arithmetic circuits DP 11 and DP 15 , and the counter coincidence detection circuit 52 is provided corresponding to the two distance arithmetic circuits DP 12 and DP 16. The counter match detection circuit 53 is provided corresponding to the two distance calculation circuits DP 13 and DP 17 , and the counter match detection circuit 54 is provided corresponding to the two distance calculation circuits DP 14 and DP 18. It is done.
 図12は、図11に示す距離/クロック数変換回路DC’-1の動作を説明するための図である。 FIG. 12 is a diagram for explaining the operation of the distance / clock number conversion circuit DC ′ 1 −1 shown in FIG.
 距離/クロック数変換回路DC~DCの各々は、図11に示す距離/クロック数変換回路DC’-1からなる。そして、距離/クロック数変換回路DC~DCの各々(=距離/クロック数変換回路DC’-1)において、検索データに類似する参照データの検索が開始されると、カウンタ一致検出回路51は、距離演算回路DP11,DP15からそれぞれ距離信号D11(=“3”),D15(=“2”)を受け、カウンタ一致検出回路52は、距離演算回路DP12,DP16からそれぞれ距離信号D12(=“2”),D16(=“4”)を受け、カウンタ一致検出回路53は、距離演算回路DP13,DP17からそれぞれ距離信号D13(=“5”),D17(=“2”)を受け、カウンタ一致検出回路54は、距離演算回路DP14,DP18からそれぞれ距離信号D14(=“1”),D18(=“3”)を受ける。 Each of the distance / clock number conversion circuits DC 1 to DC R includes a distance / clock number conversion circuit DC ′ 1 −1 shown in FIG. When the search of reference data similar to the search data is started in each of the distance / clock number conversion circuits DC 1 to DC R (= distance / clock number conversion circuit DC ′ 1 −1), the counter match detection circuit 51 receives distance signals D 11 (= “3”) and D 15 (= “2”) from the distance calculation circuits DP 11 and DP 15 respectively, and the counter coincidence detection circuit 52 receives the distance calculation circuits DP 12 and DP 16. In response to the distance signals D 12 (= “2”) and D 16 (= “4”), the counter coincidence detection circuit 53 receives the distance signals D 13 (= “5”) from the distance calculation circuits DP 13 and DP 17 , respectively. ), D 17 (= “2”), the counter coincidence detection circuit 54 receives the distance signals D 14 (= “1”) and D 18 (= “3”) from the distance calculation circuits DP 14 and DP 18 , respectively. receive.
 そうすると、カウンタ一致検出回路51は、距離信号D11(=“3”),D15(=“2”)の和(=“5”=“101”)に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN1(=“5”)をカウントする。そして、カウンタ一致検出回路51は、クロック数CN1(=“5”)をカウントしたタイミングを示す一致信号MTH1をクロック信号CLKに同期してカウンタ一致検出回路52へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Then, the counter coincidence detection circuit 51 obtains a counter value CV 11 that coincides with the sum (= “5” = “101”) of the distance signals D 11 (= “3”) and D 15 (= “2”). The number of clocks CN1 (= “5”) of the clock signal CLK is counted. Then, the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing of counting the clock number CN1 (= “5”) to the counter coincidence detection circuit 52 in synchronization with the clock signal CLK. Then, the counter coincidence detection circuit 51 stops its operation.
 カウンタ一致検出回路52は、一致信号MTH1をカウンタ一致検出回路51から受けると、距離信号D12(=“2”),D16(=“4”)の和(=“6”=“110”)に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN2(=“6”)をカウントする。そして、カウンタ一致検出回路52は、クロック数CN2(=“6”)をカウントしたタイミングを示す一致信号MTH2をクロック信号CLKに同期してカウンタ一致検出回路53へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 When the counter coincidence detection circuit 52 receives the coincidence signal MTH1 from the counter coincidence detection circuit 51, the sum (= “6” = “110”) of the distance signals D 12 (= “2”) and D 16 (= “4”). ) the number of clocks of the clock signal CLK when the counter value CV 12 is obtained which matches CN2 (= "6") to count. Then, the counter coincidence detection circuit 52 outputs a coincidence signal MTH2 indicating the timing of counting the clock number CN2 (= “6”) to the counter coincidence detection circuit 53 in synchronization with the clock signal CLK. Then, the counter match detection circuit 52 stops its operation.
 カウンタ一致検出回路53は、一致信号MTH2をカウンタ一致検出回路52から受けると、距離信号D13(=“5”),D17(=“2”)の和(=“7”=“111”)に一致するカウンタ値CV13が得られるときのクロック信号CLKのクロック数CN4(=“7”)をカウントする。そして、カウンタ一致検出回路53は、クロック数CN4(=“7”)をカウントしたタイミングを示す一致信号MTH3をクロック信号CLKに同期してカウンタ一致検出回路54へ出力する。そして、カウンタ一致検出回路53は、動作を停止する。 When the counter match detection circuit 53 receives the match signal MTH2 from the counter match detection circuit 52, the sum (= “7” = “111”) of the distance signals D 13 (= “5”) and D 17 (= “2”). ) the number of clocks of the clock signal CLK when the counter value CV 13 is obtained which matches CN4 (= "7") to count. Then, the counter coincidence detection circuit 53 outputs a coincidence signal MTH3 indicating the timing at which the clock number CN4 (= “7”) is counted to the counter coincidence detection circuit 54 in synchronization with the clock signal CLK. Then, the counter coincidence detection circuit 53 stops its operation.
 カウンタ一致検出回路54は、一致信号MTH3をカウンタ一致検出回路53から受けると、距離信号D14(=“1”),D18(=“3”)の和(=“4”=“100”)に一致するカウンタ値CV14が得られるときのクロック数CN4(=“4”)をカウントする。そして、カウンタ一致検出回路54は、クロック数CN4(=“4”)をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をクロック信号CLKに同期してWinner検出器20へ出力する。そして、カウンタ一致検出回路54は、動作を停止する。 When the counter coincidence detection circuit 54 receives the coincidence signal MTH3 from the counter coincidence detection circuit 53, the sum (= “4” = “100”) of the distance signals D 14 (= “1”) and D 18 (= “3”). ) Counts the number of clocks CN4 (= “4”) when the counter value CV 14 matching the above is obtained. The counter coincidence detection circuit 54, a clock number CN4 (= "4") and count timing signal indicating a timing (= one of the timing signals C 1 ~ C R) in synchronization with the clock signal CLK Winner detector 20 output. Then, the counter coincidence detection circuit 54 stops its operation.
 このように、カウンタ一致検出回路51~54の各々は、2つの距離信号の和に一致するカウンタ値が得られるときのクロック数をカウントし、2つの距離信号の和に一致するカウンタ値が得られるときのクロック数をカウントすると、それぞれ、一致信号MTH1~MTH3およびタイミング信号(=タイミング信号C~Cのいずれか)を出力する。 In this way, each of the counter coincidence detection circuits 51 to 54 counts the number of clocks when a counter value that matches the sum of the two distance signals is obtained, and a counter value that matches the sum of the two distance signals is obtained. when counting the number of clocks when it is, respectively, it outputs a coincidence signal MTH1 ~ MTH3 and the timing signal (either = timing signals C 1 ~ C R).
 距離/クロック数変換回路DC~DCの各々が距離/クロック数変換回路DC’-1からなる場合、距離/クロック数変換回路DC~DCの各々は、距離信号D11=“3”,D12=“2”,D13=“5”,D14=“1”,D15=“2”,D16=“4”,D17=“2”,D18=“3”の和(=“22”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数(=“22”)をカウントし、クロック数(=“22”)をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 When each of the distance / clock number conversion circuits DC 1 to DC R is composed of the distance / clock number conversion circuit DC ′ 1 −1, each of the distance / clock number conversion circuits DC 1 to DC R has a distance signal D 11 = “ 3 ", D 12 =" 2 ", D 13 =" 5 ", D 14 =" 1 ", D 15 =" 2 ", D 16 =" 4 ", D 17 =" 2 ", D 18 =" 3 The number of clocks (= “22”) of the clock signal CLK when the counter value matching the sum of “=” (“22”) is obtained is counted, and the timing indicating the timing of counting the number of clocks (= “22”) and it outputs a signal (either = timing signals C 1 ~ C R) to the Winner detector 20.
 図13は、図9に示す距離/クロック数変換回路DC’の別の具体的な構成を示す概略図である。 Figure 13 is a schematic diagram showing another specific configuration of the distance / clock number converting circuit DC '1 shown in FIG.
 図13を参照して、W=2=2=8からなり、s=2=2=4からなる場合、L=W/s=8/4=2であり、距離/クロック数変換回路DC’-2は、増幅器41,42と、カウンタ一致検出回路51,52とを含む。 Referring to FIG. 13, when W = 2 i = 2 3 = 8 and s = 2 x = 2 2 = 4, L = W / s = 8/4 = 2, and distance / number of clocks Conversion circuit DC ′ 1 -2 includes amplifiers 41 and 42 and counter coincidence detection circuits 51 and 52.
 また、W個の距離信号D11~D1Wは、8個の距離信号D11~D18からなり、W個の距離演算回路DP11~DP1Wは、8個の距離演算回路DP11~DP18からなる。また、距離信号D11~D18の各々は、4ビットのビット値からなる。ここで、距離信号D11~D18は、それぞれ、D11=“3”,D12=“2”,D13=“5”,D14=“1”,D15=“2”,D16=“4”,D17=“2”,D18=“3”であるものとする。 The W distance signals D 11 to D 1W are composed of eight distance signals D 11 to D 18 , and the W distance calculation circuits DP 11 to DP 1W are eight distance calculation circuits DP 11 to DP 1. It consists of 18 . Each of the distance signals D 11 to D 18 is composed of a 4-bit bit value. Here, the distance signals D 11 to D 18 are respectively D 11 = “3”, D 12 = “2”, D 13 = “5”, D 14 = “1”, D 15 = “2”, D It is assumed that 16 = “4”, D 17 = “2”, and D 18 = “3”.
 そして、カウンタ一致検出回路51は、4個の距離演算回路DP11,DP13,DP15,DP17に対応して設けられ、カウンタ一致検出回路52は、4個の距離演算回路DP12,DP14,DP16,DP18に対応して設けられる。 The counter coincidence detection circuit 51 is provided corresponding to the four distance arithmetic circuits DP 11 , DP 13 , DP 15 , and DP 17 , and the counter coincidence detection circuit 52 includes the four distance arithmetic circuits DP 12 , DP 14 , DP 16 , and DP 18 .
 なお、カウンタ一致検出回路51,52の各々において、カウンタ311または311Aは、4ビットのカウンタ値を一致検出回路312へ出力する。 In each of the counter coincidence detection circuits 51 and 52, the counter 311 or 311A outputs a 4-bit counter value to the coincidence detection circuit 312.
 図14は、図13に示す距離/クロック数変換回路DC’-2の動作を説明するための図である。 FIG. 14 is a diagram for explaining the operation of the distance / clock number conversion circuit DC ′ 1 -2 shown in FIG.
 距離/クロック数変換回路DC~DCの各々は、図13に示す距離/クロック数変換回路DC’-2からなる。そして、距離/クロック数変換回路DC~DCの各々(=距離/クロック数変換回路DC’-2)において、検索データに類似する参照データの検索が開始されると、カウンタ一致検出回路51は、距離演算回路DP11,DP13,DP15,DP17からそれぞれ距離信号D11(=“3”),D13(=“5”),D15(=“2”),D17(=“2”)を受け、カウンタ一致検出回路52は、距離演算回路DP12,DP14,DP16,DP18からそれぞれ距離信号D12(=“2”),D14(=“1”),D16(=“4”),D18(=“3”)を受ける。 Each of the distance / clock number conversion circuits DC 1 to DC R includes a distance / clock number conversion circuit DC ′ 1 -2 shown in FIG. Then, in each of the distance / clock number conversion circuits DC 1 to DC R (= distance / clock number conversion circuit DC ′ 1 -2), when the search for the reference data similar to the search data is started, the counter coincidence detection circuit Reference numeral 51 denotes distance signals D 11 (= “3”), D 13 (= “5”), D 15 (= “2”), D 17 from the distance calculation circuits DP 11 , DP 13 , DP 15 , DP 17 , respectively. (= “2”), the counter match detection circuit 52 receives the distance signals D 12 (= “2”) and D 14 (= “1” from the distance calculation circuits DP 12 , DP 14 , DP 16 , DP 18 , respectively. ), D 16 (= “4”), D 18 (= “3”).
 そうすると、カウンタ一致検出回路51は、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D11(=“3”),D13(=“5”),D15(=“2”),D17(=“2”)の和(=“12”=“1100”)に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN1(=“12”)をカウントする。そして、カウンタ一致検出回路51は、クロック数CN1をカウントしたタイミングを示す一致信号MTH1をクロック信号CLKに同期してカウンタ一致検出回路52へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Then, when the counter match detection circuit 51 counts the counter value in ascending order in synchronization with the clock signal CLK, the distance signals D 11 (= “3”), D 13 (= “5”), D 15 (= “2”) and D 17 (= “2”) (= “12” = “1100”) When the counter value CV 11 is obtained, the number of clocks of the clock signal CLK CN1 (= “12”) Count. Then, the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing of counting the clock number CN1 to the counter coincidence detection circuit 52 in synchronization with the clock signal CLK. Then, the counter coincidence detection circuit 51 stops its operation.
 カウンタ一致検出回路52は、一致信号MTH1をカウンタ一致検出回路51から受けると駆動され、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D12(=“2”),D14(=“1”),D16(=“4”),D18(=“3”)の和(=“10”=“1010”)に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN2(=“10”)をカウントする。そして、カウンタ一致検出回路52は、クロック数CN2(=“10”)をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をクロック信号CLKに同期してWinner検出器20へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 The counter coincidence detection circuit 52 is driven when the coincidence signal MTH1 is received from the counter coincidence detection circuit 51. When the counter value is counted in ascending order in synchronization with the clock signal CLK, the distance signal D 12 (= “2”), D 14 (= "1") , D 16 (= "4"), D 18 (= "3") of the sum (= "10" = "1010") when the counter value CV 12 matching can be obtained for The number of clocks CN2 (= “10”) of the clock signal CLK is counted. The counter coincidence detection circuit 52, a clock number CN2 (= "10") counted timing signal indicating the timing (= one of the timing signals C 1 ~ C R) in synchronization with the clock signal CLK the Winner detector 20 output. Then, the counter match detection circuit 52 stops its operation.
 このように、カウンタ一致検出回路51,52の各々は、4つの距離信号の和に一致するカウンタ値が得られるときのクロック数をカウントし、4つの距離信号の和に一致するカウンタ値が得られるときのクロック数をカウントすると、それぞれ、一致信号MTH1およびタイミング信号(=タイミング信号C~Cのいずれか)を出力する。 In this way, each of the counter coincidence detection circuits 51 and 52 counts the number of clocks when a counter value that matches the sum of the four distance signals is obtained, and a counter value that matches the sum of the four distance signals is obtained. when counting the number of clocks when it is, respectively, it outputs a coincidence signal MTH1 and the timing signal (either = timing signals C 1 ~ C R).
 距離/クロック数変換回路DC~DCの各々が距離/クロック数変換回路DC’-2からなる場合も、距離/クロック数変換回路DC~DCの各々は、距離信号D11=“3”,D12=“2”,D13=“5”,D14=“1”,D15=“2”,D16=“4”,D17=“2”,D18=“3”の和(=“22”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数(=“22”)をカウントし、クロック数(=“22”)をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 Even when each of the distance / clock number conversion circuits DC 1 to DC R is composed of the distance / clock number conversion circuit DC ′ 1 -2, each of the distance / clock number conversion circuits DC 1 to DC R has a distance signal D 11 = “3”, D 12 = “2”, D 13 = “5”, D 14 = “1”, D 15 = “2”, D 16 = “4”, D 17 = “2”, D 18 = “ Indicates the timing at which the number of clocks (= “22”) of the clock signal CLK when the counter value matching the sum of 3 ”(=“ 22 ”) is obtained and the number of clocks (=“ 22 ”) is counted (either = timing signals C 1 ~ C R) timing signal output to the Winner detector 20.
 図15は、図10に示す距離/クロック数変換回路DC”の具体的な構成を示す概略図である。 FIG. 15 is a schematic diagram showing a specific configuration of the distance / clock number conversion circuit DC ″ 1 shown in FIG.
 図15を参照して、W=2=2=8からなり、s=2=2=2からなる場合、L=W/s=8/2=4であり、距離/クロック数変換回路DC”-1は、増幅器41~44と、カウンタ一致検出回路51~54と、スイッチング制御回路60と、マルチプレクサ61~64とを含む。 Referring to FIG. 15, when W = 2 i = 2 3 = 8 and s = 2 x = 2 1 = 2, L = W / s = 8/2 = 4, and distance / number of clocks The conversion circuit DC ″ 1 −1 includes amplifiers 41 to 44, counter coincidence detection circuits 51 to 54, a switching control circuit 60, and multiplexers 61 to 64.
 また、W個の距離信号D11~D1Wは、8個の距離信号D11~D18からなり、W個の距離演算回路DP11~DP1Wは、8個の距離演算回路DP11~DP18からなる。ここで、距離信号D11~D18は、それぞれ、D11=“3”,D12=“2”,D13=“5”,D14=“1”,D15=“2”,D16=“4”,D17=“2”,D18=“3”であるものとする。 The W distance signals D 11 to D 1W are composed of eight distance signals D 11 to D 18 , and the W distance calculation circuits DP 11 to DP 1W are eight distance calculation circuits DP 11 to DP 1. It consists of 18 . Here, the distance signals D 11 to D 18 are respectively D 11 = “3”, D 12 = “2”, D 13 = “5”, D 14 = “1”, D 15 = “2”, D It is assumed that 16 = “4”, D 17 = “2”, and D 18 = “3”.
 距離/クロック数変換回路DC”-1においては、マルチプレクサ61は、2個の距離演算回路DP11,DP15に対応して設けられ、マルチプレクサ62は、2個の距離演算回路DP12,DP16に対応して設けられ、マルチプレクサ63は、2個の距離演算回路DP13,DP17に対応して設けられ、マルチプレクサ64は、2個の距離演算回路DP14,DP18に対応して設けられる。 In the distance / clock number conversion circuit DC ″ 1 −1, the multiplexer 61 is provided corresponding to the two distance calculation circuits DP 11 and DP 15 , and the multiplexer 62 is provided with the two distance calculation circuits DP 12 and DP 15 . 16 , the multiplexer 63 is provided corresponding to the two distance arithmetic circuits DP 13 and DP 17 , and the multiplexer 64 is provided corresponding to the two distance arithmetic circuits DP 14 and DP 18. It is done.
 カウンタ一致検出回路51~54は、それぞれ、マルチプレクサ61~64に対応して設けられる。 Counter coincidence detection circuits 51 to 54 are provided corresponding to the multiplexers 61 to 64, respectively.
 距離/クロック数変換回路DC”-1においては、増幅器41~44は、クロック信号CLKを増幅し、その増幅したクロック信号CLKをそれぞれカウンタ一致検出回路51~54へ出力するとともに、その増幅したクロック信号CLKをスイッチング制御回路60へ出力する。 In the distance / clock number conversion circuit DC ″ 1 −1, the amplifiers 41 to 44 amplify the clock signal CLK, and output the amplified clock signal CLK to the counter coincidence detection circuits 51 to 54, respectively. The clock signal CLK is output to the switching control circuit 60.
 スイッチング制御回路60は、連想メモリ100の制御回路から検索開始信号SBおよびリセット信号RSTを受け、カウンタ一致検出回路51~54からそれぞれ一致信号MTH1~MTH4を受ける。 Switching control circuit 60 receives search start signal SB and reset signal RST from the control circuit of associative memory 100, and receives match signals MTH1 to MTH4 from counter match detection circuits 51 to 54, respectively.
 そして、スイッチング制御回路60は、検索開始信号SBおよびリセット信号RSTを受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 When switching control circuit 60 receives search start signal SB and reset signal RST, switching control circuit 60 outputs reset signal RST to counter match detection circuit 51 and output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. .
 また、スイッチング制御回路60は、一致信号MTH4をカウンタ一致検出回路54から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。スイッチング制御回路60は、この処理を1(=s-1=2-1)回実行する。 Further, when receiving the coincidence signal MTH4 from the counter coincidence detection circuit 54, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 and outputs the output signal OUT1 to the multiplexer 61 in synchronization with the clock signal CLK. To do. The switching control circuit 60 executes this process 1 (= s−1 = 2-1) times.
 更に、スイッチング制御回路60は、一致信号MTH1をカウンタ一致検出回路51から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに出力信号OUT2をマルチプレクサ62へ出力する。スイッチング制御回路60は、この処理を2(=s=2)回実行する。 Further, when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do. The switching control circuit 60 executes this process twice (= s = 2).
 更に、スイッチング制御回路60は、一致信号MTH2をカウンタ一致検出回路52から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路53へ出力するとともに出力信号OUT3をマルチプレクサ63へ出力する。スイッチング制御回路60は、この処理を2(=s=2)回実行する。 Further, when receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 53 and outputs the output signal OUT3 to the multiplexer 63 in synchronization with the clock signal CLK. To do. The switching control circuit 60 executes this process twice (= s = 2).
 更に、スイッチング制御回路60は、一致信号MTH3をカウンタ一致検出回路53から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路54へ出力するとともに出力信号OUT4をマルチプレクサ64へ出力する。スイッチング制御回路60は、この処理を2(=s=2)回実行する。 Further, when receiving the coincidence signal MTH3 from the counter coincidence detection circuit 53, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 54 and outputs the output signal OUT4 to the multiplexer 64 in synchronization with the clock signal CLK. To do. The switching control circuit 60 executes this process twice (= s = 2).
 マルチプレクサ61は、2個の距離信号D11,D15を受ける。そして、マルチプレクサ61は、1回目の出力信号OUT1をスイッチング制御回路60から受けると、距離信号D11をカウンタ一致検出回路51へ出力し、2回目の出力信号OUT1をスイッチング制御回路60から受けると、距離信号D15をカウンタ一致検出回路51へ出力する。 The multiplexer 61 receives two distance signals D 11 and D 15 . The multiplexer 61 receives the first output signal OUT1 from the switching control circuit 60 outputs a distance signal D 11 to the counter match detection circuit 51, when receiving the second output signal OUT1 from the switching control circuit 60, and it outputs a distance signal D 15 to the counter match detection circuit 51.
 マルチプレクサ62は、2個の距離信号D12,D16を受ける。そして、マルチプレクサ62は、1回目の出力信号OUT2をスイッチング制御回路60から受けると、距離信号D12をカウンタ一致検出回路52へ出力し、2回目の出力信号OUT2をスイッチング制御回路60から受けると、距離信号D16をカウンタ一致検出回路52へ出力する。 The multiplexer 62 receives two distance signals D 12 and D 16 . The multiplexer 62 receives the first output signal OUT2 from the switching control circuit 60 outputs a distance signal D 12 to the counter coincidence detection circuit 52, when receiving the second output signal OUT2 from the switching control circuit 60, and it outputs a distance signal D 16 to the counter coincidence detection circuit 52.
 マルチプレクサ63は、2個の距離信号D13,D17を受ける。そして、マルチプレクサ63は、1回目の出力信号OUT3をスイッチング制御回路60から受けると、距離信号D13をカウンタ一致検出回路53へ出力し、2回目の出力信号OUT3をスイッチング制御回路60から受けると、距離信号D17をカウンタ一致検出回路53へ出力する。 The multiplexer 63 receives the two distance signals D 13 and D 17 . The multiplexer 63 receives the first output signal OUT3 from the switching control circuit 60 outputs a distance signal D 13 to the counter coincidence detection circuit 53, when receiving the second output signal OUT3 from the switching control circuit 60, The distance signal D 17 is output to the counter coincidence detection circuit 53.
 マルチプレクサ64は、2個の距離信号D14,D18を受ける。そして、マルチプレクサ64は、1回目の出力信号OUT4をスイッチング制御回路60から受けると、距離信号D14をカウンタ一致検出回路54へ出力し、2回目の出力信号OUT4をスイッチング制御回路60から受けると、距離信号D18をカウンタ一致検出回路54へ出力する。 The multiplexer 64 receives the two distance signals D 14 and D 18 . The multiplexer 64 receives the first output signal OUT4 from the switching control circuit 60 outputs a distance signal D 14 to the counter coincidence detection circuit 54, when receiving the second output signal OUT4 from the switching control circuit 60, and it outputs the distance signal D 18 to the counter coincidence detection circuit 54.
 カウンタ一致検出回路51は、リセット信号RSTをスイッチング制御回路60から受けると駆動される。そして、カウンタ一致検出回路51は、距離信号D11をマルチプレクサ61から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D11に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。カウンタ一致検出回路51は、この処理を2個の距離信号D11,D15の全てについて実行する。 The counter coincidence detection circuit 51 is driven when it receives the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 51 receives the distance signal D 11 from the multiplexer 61, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 11 is obtained The clock number CN_1 of the clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation. The counter coincidence detection circuit 51 executes this process for all the two distance signals D 11 and D 15 .
 また、カウンタ一致検出回路52は、リセット信号RSTをスイッチング制御回路60から受けると駆動される。そして、カウンタ一致検出回路52は、距離信号D12をマルチプレクサ62から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D12に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。カウンタ一致検出回路52は、この処理を2個の距離信号D12,D16の全てについて実行する。 The counter coincidence detection circuit 52 is driven when it receives the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 52 receives the distance signal D 12 from the multiplexer 62, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 12 is obtained The clock number CN_2 of the clock signal CLK is counted, and the coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation. The counter coincidence detection circuit 52 executes this process for all of the two distance signals D 12 and D 16 .
 更に、カウンタ一致検出回路53は、リセット信号RSTをスイッチング制御回路60から受けると駆動される。そして、カウンタ一致検出回路53は、距離信号D13をマルチプレクサ63から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D13に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_3をカウントし、クロック数CN_3をカウントしたタイミングを示す一致信号MTH3をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路53は、動作を停止する。カウンタ一致検出回路53は、この処理を2個の距離信号D13,D17の全てについて実行する。 Further, the counter coincidence detection circuit 53 is driven when it receives the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 53 receives the distance signals D 13 from the multiplexer 63, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 13 is obtained The clock number CN_3 of the clock signal CLK is counted, and a coincidence signal MTH3 indicating the timing at which the clock number CN_3 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 53 stops its operation. The counter coincidence detection circuit 53 executes this process for all of the two distance signals D 13 and D 17 .
 更に、カウンタ一致検出回路54は、リセット信号RSTをスイッチング制御回路60から受けると駆動される。そして、カウンタ一致検出回路54は、距離信号D14をマルチプレクサ64から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D14に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_4をカウントし、クロック数CN_4をカウントしたタイミングを示す一致信号MTH4をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路54は、動作を停止する。 Further, the counter coincidence detection circuit 54 is driven when it receives the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 54 receives the distance signal D 14 from the multiplexer 64, when counted in ascending order in synchronization with the counter value to the clock signal CLK, and when the counter value matches the distance signal D 14 is obtained The clock number CN_4 of the clock signal CLK is counted, and a coincidence signal MTH4 indicating the timing at which the clock number CN_4 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 54 stops its operation.
 そして、カウンタ一致検出回路54は、2回目のリセット信号RSTをスイッチング制御回路60から受け、距離信号D18をマルチプレクサ64から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D18に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_4をカウントし、クロック数CN_4をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。そして、カウンタ一致検出回路54は、動作を停止する。 The counter coincidence detection circuit 54 receives a second reset signal RST from the switching control circuit 60, a distance signal D 18 receives from the multiplexer 64, when counted in ascending order in synchronization with the counter value of the clock signal CLK counts the number of clocks CN_4 of the clock signal CLK when the counter value matches the distance signal D 18 is obtained (either = timing signals C 1 ~ C R) timing signal indicating a timing of counting the number of clocks CN_4 Is output to the Winner detector 20. Then, the counter coincidence detection circuit 54 stops its operation.
 図16は、図15に示す距離/クロック数変換回路DC”-1の動作を説明するための図である。 FIG. 16 is a diagram for explaining the operation of the distance / clock number conversion circuit DC ″ 1 −1 shown in FIG.
 距離/クロック数変換回路DC~DC(=距離/クロック数変換回路DC”-1)の各々において、検索データに類似する参照データの検索が開始されると、スイッチング制御回路60は、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 In each of the distance / clock number conversion circuits DC 1 to DC R (= distance / clock number conversion circuit DC ″ 1 −1), when the search of the reference data similar to the search data is started, the switching control circuit 60 In synchronization with the clock signal CLK, the reset signal RST is output to the counter coincidence detection circuit 51 and the output signal OUT1 is output to the multiplexer 61.
 そして、マルチプレクサ61は、スイッチング制御回路60からの1回目の出力信号OUT1に応じて、距離信号D11(=“3”)をカウンタ一致検出回路51へ出力する。 Then, the multiplexer 61 outputs the distance signal D 11 (= “3”) to the counter coincidence detection circuit 51 in response to the first output signal OUT 1 from the switching control circuit 60.
 カウンタ一致検出回路51は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路51は、距離信号D11(=“3”)をマルチプレクサ61から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D11(=“3”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_1(=“3”)をカウントし、クロック数CN_1(=“3”)をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 The counter coincidence detection circuit 51 is driven in response to the reset signal RST from the switching control circuit 60. When the counter coincidence detection circuit 51 receives the distance signal D 11 (= “3”) from the multiplexer 61, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the distance signal D 11 (= “ When the counter value corresponding to 3 ″) is obtained, the clock number CN_1 (= “3”) of the clock signal CLK is counted, and the coincidence signal MTH1 indicating the timing when the clock number CN_1 (= “3”) is counted is switched. Output to the control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路51から一致信号MTH1を受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに出力信号OUT2をマルチプレクサ62へ出力する。 After that, when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do.
 マルチプレクサ62は、スイッチング制御回路60からの1回目の出力信号OUT2に応じて、距離信号D12(=“2”)をカウンタ一致検出回路52へ出力する。 The multiplexer 62 outputs the distance signal D 12 (= “2”) to the counter coincidence detection circuit 52 in response to the first output signal OUT 2 from the switching control circuit 60.
 カウンタ一致検出回路52は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路52は、距離信号D12(=“2”)をマルチプレクサ62から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D12(=“2”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_2(=“2”)をカウントし、クロック数CN_2(=“2”)をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 The counter coincidence detection circuit 52 is driven in response to the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 52 receives the distance signal D 12 (= the "2") from the multiplexer 62, when counted in ascending order in synchronization with the counter value to the clock signal CLK, the distance signal D 12 (= " 2 ”), when the counter value corresponding to 2 ″) is obtained, the number of clocks CN_2 (=“ 2 ”) of the clock signal CLK is counted, and the coincidence signal MTH2 indicating the timing when the clock number CN_2 (=“ 2 ”) is counted is switched. Output to the control circuit 60. Then, the counter match detection circuit 52 stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路52から一致信号MTH2を受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路53へ出力するとともに出力信号OUT3をマルチプレクサ63へ出力する。 Thereafter, when receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 53 and outputs the output signal OUT3 to the multiplexer 63 in synchronization with the clock signal CLK. To do.
 マルチプレクサ63は、スイッチング制御回路60からの1回目の出力信号OUT3に応じて、距離信号D13(=“5”)をカウンタ一致検出回路53へ出力する。 The multiplexer 63 outputs the distance signal D 13 (= “5”) to the counter coincidence detection circuit 53 in response to the first output signal OUT 3 from the switching control circuit 60.
 カウンタ一致検出回路53は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路53は、距離信号D13(=“5”)をマルチプレクサ63から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D13(=“5”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_3(=“5”)をカウントし、クロック数CN_3(=“5”)をカウントしたタイミングを示す一致信号MTH3をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路53は、動作を停止する。 The counter coincidence detection circuit 53 is driven in response to the reset signal RST from the switching control circuit 60. The counter coincidence detection circuit 53 receives the distance signal D 13 (= the "5") from the multiplexer 63, when counted in ascending order in synchronization with the counter value to the clock signal CLK, the distance signal D 13 (= " When the counter value coincident with 5 ″) is obtained, the clock number CN_3 (= “5”) of the clock signal CLK is counted, and the coincidence signal MTH3 indicating the timing when the clock number CN_3 (= “5”) is counted is switched. Output to the control circuit 60. Then, the counter coincidence detection circuit 53 stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路53から一致信号MTH3を受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路54へ出力するとともに出力信号OUT4をマルチプレクサ64へ出力する。 After that, when receiving the coincidence signal MTH3 from the counter coincidence detection circuit 53, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 54 and outputs the output signal OUT4 to the multiplexer 64 in synchronization with the clock signal CLK. To do.
 マルチプレクサ64は、スイッチング制御回路60からの1回目の出力信号OUT4に応じて、距離信号D14(=“1”)をカウンタ一致検出回路54へ出力する。 The multiplexer 64 outputs the distance signal D 14 (= “1”) to the counter coincidence detection circuit 54 in response to the first output signal OUT 4 from the switching control circuit 60.
 カウンタ一致検出回路54は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路54は、距離信号D14(=“1”)をマルチプレクサ64から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D14(=“1”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_4(=“1”)をカウントし、クロック数CN_4(=“1”)をカウントしたタイミングを示す一致信号MTH4をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路54は、動作を停止する。 The counter coincidence detection circuit 54 is driven according to the reset signal RST from the switching control circuit 60. When the counter coincidence detection circuit 54 receives the distance signal D 14 (= “1”) from the multiplexer 64, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the distance signal D 14 (= “ When the counter value corresponding to 1 ″) is obtained, the clock number CN_4 (= “1”) of the clock signal CLK is counted, and the coincidence signal MTH4 indicating the timing when the clock number CN_4 (= “1”) is counted is switched. Output to the control circuit 60. Then, the counter coincidence detection circuit 54 stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路54から一致信号MTH4を受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 Thereafter, when receiving the coincidence signal MTH4 from the counter coincidence detection circuit 54, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 and the output signal OUT1 to the multiplexer 61 in synchronization with the clock signal CLK. To do.
 マルチプレクサ61は、スイッチング制御回路60からの2回目の出力信号OUT1に応じて、距離信号D15(=“2”)をカウンタ一致検出回路51へ出力する。 The multiplexer 61 outputs the distance signal D 15 (= “2”) to the counter coincidence detection circuit 51 in response to the second output signal OUT 1 from the switching control circuit 60.
 カウンタ一致検出回路51は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路51は、距離信号D15(=“2”)をマルチプレクサ61から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D15(=“2”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_1(=“2”)をカウントし、クロック数CN_1(=“2”)をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 The counter coincidence detection circuit 51 is driven in response to the reset signal RST from the switching control circuit 60. When the counter coincidence detection circuit 51 receives the distance signal D 15 (= “2”) from the multiplexer 61, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the distance signal D 15 (= “ 2 ”), when the counter value corresponding to 2 ″) is obtained, the number of clocks CN_1 (=“ 2 ”) of the clock signal CLK is counted, and the coincidence signal MTH1 indicating the timing when the clock number CN_1 (=“ 2 ”) is counted is switched. Output to the control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路51から一致信号MTH1を受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに出力信号OUT2をマルチプレクサ62へ出力する。 After that, when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do.
 マルチプレクサ62は、スイッチング制御回路60からの2回目の出力信号OUT2に応じて、距離信号D16(=“4”)をカウンタ一致検出回路52へ出力する。 The multiplexer 62 outputs the distance signal D 16 (= “4”) to the counter coincidence detection circuit 52 in response to the second output signal OUT 2 from the switching control circuit 60.
 カウンタ一致検出回路52は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路52は、距離信号D16(=“4”)をマルチプレクサ62から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D16(=“4”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_2(=“4”)をカウントし、クロック数CN_2(=“4”)をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 The counter coincidence detection circuit 52 is driven in response to the reset signal RST from the switching control circuit 60. When the counter coincidence detection circuit 52 receives the distance signal D 16 (= “4”) from the multiplexer 62, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the distance signal D 16 (= “ 4 ”), when the counter value corresponding to 4 ″) is obtained, the clock number CN_2 (=“ 4 ”) of the clock signal CLK is counted, and the coincidence signal MTH2 indicating the timing when the clock number CN_2 (=“ 4 ”) is counted is switched. Output to the control circuit 60. Then, the counter match detection circuit 52 stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路52から一致信号MTH2を受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路53へ出力するとともに出力信号OUT3をマルチプレクサ63へ出力する。 Thereafter, when receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 53 and outputs the output signal OUT3 to the multiplexer 63 in synchronization with the clock signal CLK. To do.
 マルチプレクサ63は、スイッチング制御回路60からの2回目の出力信号OUT3に応じて、距離信号D17(=“2”)をカウンタ一致検出回路53へ出力する。 The multiplexer 63 outputs the distance signal D 17 (= “2”) to the counter coincidence detection circuit 53 in response to the second output signal OUT 3 from the switching control circuit 60.
 カウンタ一致検出回路53は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路53は、距離信号D17(=“2”)をマルチプレクサ63から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D17(=“2”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_3(=“2”)をカウントし、クロック数CN_3(=“2”)をカウントしたタイミングを示す一致信号MTH3をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路53は、動作を停止する。 The counter coincidence detection circuit 53 is driven in response to the reset signal RST from the switching control circuit 60. When the counter coincidence detection circuit 53 receives the distance signal D 17 (= “2”) from the multiplexer 63, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the distance signal D 17 (= “ 2 ”), when the counter value corresponding to 2 ″) is obtained, the clock number CN_3 (=“ 2 ”) of the clock signal CLK is counted, and the coincidence signal MTH3 indicating the timing when the clock number CN_3 (=“ 2 ”) is counted is switched. Output to the control circuit 60. Then, the counter coincidence detection circuit 53 stops its operation.
 その後、スイッチング制御回路60は、カウンタ一致検出回路53から一致信号MTH3を受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路54へ出力するとともに出力信号OUT4をマルチプレクサ64へ出力する。 After that, when receiving the coincidence signal MTH3 from the counter coincidence detection circuit 53, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 54 and outputs the output signal OUT4 to the multiplexer 64 in synchronization with the clock signal CLK. To do.
 マルチプレクサ64は、スイッチング制御回路60からの2回目の出力信号OUT4に応じて、距離信号D18(=“3”)をカウンタ一致検出回路54へ出力する。 The multiplexer 64 outputs the distance signal D 18 (= “3”) to the counter coincidence detection circuit 54 in response to the second output signal OUT 4 from the switching control circuit 60.
 カウンタ一致検出回路54は、スイッチング制御回路60からのリセット信号RSTに応じて駆動される。そして、カウンタ一致検出回路54は、距離信号D18(=“3”)をマルチプレクサ64から受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、距離信号D18(=“3”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_4(=“3”)をカウントし、クロック数CN_4(=“3”)をカウントしたタイミングを示す一致信号MTH4をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路54は、動作を停止する。 The counter coincidence detection circuit 54 is driven according to the reset signal RST from the switching control circuit 60. When the counter coincidence detection circuit 54 receives the distance signal D 18 (= “3”) from the multiplexer 64, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the distance signal D 18 (= “ When the counter value corresponding to 3 ″) is obtained, the clock number CN_4 (= “3”) of the clock signal CLK is counted, and the coincidence signal MTH4 indicating the timing when the clock number CN_4 (= “3”) is counted is switched. Output to the control circuit 60. Then, the counter coincidence detection circuit 54 stops its operation.
 そうすると、スイッチング制御回路60は、カウンタ一致検出回路54からの2回目の一致信号MTH4に応じて、2回目の一致信号MTH4によって示されるタイミングと同じタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 Then, in response to the second coincidence signal MTH4 from the counter coincidence detection circuit 54, the switching control circuit 60 shows a timing signal (= timing signals C 1 to C) indicating the same timing as that indicated by the second coincidence signal MTH4. Any one of R ) is output to the Winner detector 20.
 このように、カウンタ一致検出回路51~54は、それぞれ、距離信号D11~D14に一致するカウンタ値が得られたときのクロック信号CLKのクロック数CN_1~CN_4をカウントし、クロック数CN_1~CN_4をカウントしたタイミングを示す一致信号MTH1~MTH4を出力した後に、それぞれ、距離信号D15~D18に一致するカウンタ値が得られたときのクロック信号CLKのクロック数CN_1~CN_4をカウントし、クロック数CN_1~CN_4をカウントしたタイミングを示す一致信号MTH1~MTH4を出力する。 As described above, the counter coincidence detection circuits 51 to 54 count the clock numbers CN_1 to CN_4 of the clock signal CLK when the counter values coincident with the distance signals D 11 to D 14 are obtained, and the clock numbers CN_1 to CN_4 after outputting a coincidence signal MTH1 ~ MTH4 showing a timing of counting, counts the number of clocks CN_1 ~ CN_4 of the clock signal CLK when the respective counter value matches the distance signal D 15 ~ D 18 is obtained, Match signals MTH1 to MTH4 indicating the timings when the clock numbers CN_1 to CN_4 are counted are output.
 つまり、カウンタ一致検出回路51~54の各々は、距離信号に一致するカウンタ値が得られるときのクロック信号CLKのクロック数をカウントし、そのクロック数をカウントしたタイミングを示す一致信号を出力する処理を2回繰り返し実行する。 That is, each of the counter coincidence detection circuits 51 to 54 counts the clock number of the clock signal CLK when a counter value that coincides with the distance signal is obtained, and outputs a coincidence signal indicating the timing at which the clock number is counted. Repeat twice.
 距離/クロック数変換回路DC~DCの各々が距離/クロック数変換回路DC”-1からなる場合も、距離/クロック数変換回路DC~DCの各々は、距離信号D11=“3”,D12=“2”,D13=“5”,D14=“1”,D15=“2”,D16=“4”,D17=“2”,D18=“3”の和(=“22”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数(=“22”)をカウントし、クロック数(=“22”)をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 Even when each of the distance / clock number conversion circuits DC 1 to DC R is composed of the distance / clock number conversion circuit DC ″ 1 −1, each of the distance / clock number conversion circuits DC 1 to DC R has the distance signal D 11 = “3”, D 12 = “2”, D 13 = “5”, D 14 = “1”, D 15 = “2”, D 16 = “4”, D 17 = “2”, D 18 = “ Indicates the timing at which the number of clocks (= “22”) of the clock signal CLK when the counter value matching the sum of 3 ”(=“ 22 ”) is obtained and the number of clocks (=“ 22 ”) is counted (either = timing signals C 1 ~ C R) timing signal output to the Winner detector 20.
 図17は、図10に示す距離/クロック数変換回路DC”の更に別の具体的な構成を示す概略図である。 FIG. 17 is a schematic diagram showing still another specific configuration of the distance / clock number conversion circuit DC ″ 1 shown in FIG.
 図17を参照して、W=2=2=8からなり、s=2=2=4からなる場合、L=W/s=8/4=2であり、距離/クロック数変換回路DC”-2は、増幅器41,42と、カウンタ一致検出回路51,52と、スイッチ制御回路60と、マルチプレクサ61,62とを含む。 Referring to FIG. 17, when W = 2 i = 2 3 = 8 and s = 2 x = 2 2 = 4, L = W / s = 8/4 = 2, and distance / number of clocks The conversion circuit DC ″ 1 -2 includes amplifiers 41 and 42, counter coincidence detection circuits 51 and 52, a switch control circuit 60, and multiplexers 61 and 62.
 マルチプレクサ61は、4個の距離演算回路DP11,DP13,DP15,DP17に対応して設けられ、マルチプレクサ62は、4個の距離演算回路DP12,DP14,DP16,DP18に対応して設けられる。 The multiplexer 61 is provided corresponding to the four distance calculation circuits DP 11 , DP 13 , DP 15 , DP 17 , and the multiplexer 62 is added to the four distance calculation circuits DP 12 , DP 14 , DP 16 , DP 18 . Correspondingly provided.
 カウンタ一致検出回路51は、マルチプレクサ61に対応して設けられ、カウンタ一致検出回路52は、マルチプレクサ62に対応して設けられる。 The counter match detection circuit 51 is provided corresponding to the multiplexer 61, and the counter match detection circuit 52 is provided corresponding to the multiplexer 62.
 スイッチング制御回路60は、連想メモリ100の制御回路から検索開始信号SBおよびリセット信号RSTを受ける。また、スイッチング制御回路60は、増幅器41,42からクロック信号CLKを受ける。更に、スイッチング制御回路60は、カウンタ一致検出回路51から一致信号MTH1を受け、カウンタ一致検出回路52から一致信号MTH2を受ける。 The switching control circuit 60 receives the search start signal SB and the reset signal RST from the control circuit of the associative memory 100. Further, the switching control circuit 60 receives the clock signal CLK from the amplifiers 41 and 42. Further, the switching control circuit 60 receives the coincidence signal MTH1 from the counter coincidence detection circuit 51 and the coincidence signal MTH2 from the counter coincidence detection circuit 52.
 そして、スイッチング制御回路60は、検索開始信号SBおよびリセット信号RSTを受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 When switching control circuit 60 receives search start signal SB and reset signal RST, switching control circuit 60 outputs reset signal RST to counter match detection circuit 51 and output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. .
 また、スイッチング制御回路60は、一致信号MTH2をカウンタ一致検出回路52から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 When switching control circuit 60 receives match signal MTH2 from counter match detection circuit 52, switching control circuit 60 outputs reset signal RST to counter match detection circuit 51 and output signal OUT1 to multiplexer 61 in synchronization with clock signal CLK. To do.
 更に、スイッチング制御回路60は、一致信号MTH1をカウンタ一致検出回路51から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに出力信号OUT2をマルチプレクサ62へ出力する。 Further, when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. To do.
 そして、スイッチング制御回路60は、s回目の一致信号MTH2をカウンタ一致検出回路52から受けると、s回目の一致信号MTH2によって示されるタイミングと同じタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。  When the switching control circuit 60 receives the s-th coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 shows a timing signal (= timing signals C 1 to C R) indicating the same timing as that indicated by the s-th coincidence signal MTH2. Is output to the Winner detector 20.
 マルチプレクサ61は、距離演算回路DP11,DP13,DP15,DP17からそれぞれ距離信号D11,D13,D15,D17を受け、出力信号OUT1をスイッチング制御回路60から受ける。 The multiplexer 61 receives distance signals D 11 , D 13 , D 15 , and D 17 from the distance calculation circuits DP 11 , DP 13 , DP 15 , and DP 17 , respectively, and receives an output signal OUT 1 from the switching control circuit 60.
 そして、マルチプレクサ61は、1回目の出力信号OUT1を受けると、距離信号D11をカウンタ一致検出回路51へ出力し、2回目の出力信号OUT1を受けると、距離信号D13をカウンタ一致検出回路51へ出力し、3回目の出力信号OUT1を受けると、距離信号D15をカウンタ一致検出回路51へ出力し、4回目の出力信号OUT1を受けると、距離信号D17をカウンタ一致検出回路51へ出力する。 The multiplexer 61 receives the first output signal OUT1, the distance and outputs a signal D 11 to the counter match detection circuit 51, when receiving the second output signal OUT1, the distance signal D 13 counter match detection circuit 51 and outputs to and receives the output signal OUT1 of the third, and outputs a distance signal D 15 to the counter coincidence detection circuit 51 receives the output signal OUT1 of the fourth, it outputs a distance signal D 17 to the counter match detection circuit 51 To do.
 また、マルチプレクサ62は、距離演算回路DP12,DP14,DP16,DP18からそれぞれ距離信号D12,D14,D16,D18を受け、出力信号OUT2をスイッチング制御回路60から受ける。 Further, the multiplexer 62 receives distance signals D 12 , D 14 , D 16 , D 18 from the distance calculation circuits DP 12 , DP 14 , DP 16 , DP 18 , respectively, and receives the output signal OUT 2 from the switching control circuit 60.
 そして、マルチプレクサ62は、1回目の出力信号OUT2を受けると、距離信号D12をカウンタ一致検出回路52へ出力し、2回目の出力信号OUT2を受けると、距離信号D14をカウンタ一致検出回路52へ出力し、3回目の出力信号OUT2を受けると、距離信号D16をカウンタ一致検出回路52へ出力し、4回目の出力信号OUT2を受けると、距離信号D18をカウンタ一致検出回路52へ出力する。 The multiplexer 62 receives the first output signal OUT2, and outputs a distance signal D 12 to the counter coincidence detection circuit 52, when receiving the second output signal OUT2, the distance signal D 14 counter coincidence detection circuit 52 and outputs to and receives the output signal OUT2 of the third, and outputs a distance signal D 16 to the counter coincidence detection circuit 52 receives the output signal OUT2 of the fourth, it outputs a distance signal D 18 to the counter coincidence detection circuit 52 To do.
 カウンタ一致検出回路51は、マルチプレクサ61から距離信号D11を受け、リセット信号RSTをスイッチング制御回路60から受けると、上述した方法によって、距離信号D11に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Counter coincidence detection circuit 51 receives the distance signal D 11 from the multiplexer 61 receives the reset signal RST from the switching control circuit 60, by the above-described method, when the counter value CV 11 matching the distance signal D 11 is obtained The clock number CN_1 of the clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
 また、カウンタ一致検出回路51は、マルチプレクサ61から距離信号D13を受け、リセット信号RSTをスイッチング制御回路60から受けると、上述した方法によって、距離信号D13に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 The counter coincidence detection circuit 51 receives the distance signal D 13 from the multiplexer 61 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 11 matching the distance signal D 13 is obtained The clock number CN_1 of the current clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
 更に、カウンタ一致検出回路51は、マルチプレクサ61から距離信号D15を受け、リセット信号RSTをスイッチング制御回路60から受けると、上述した方法によって、距離信号D15に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Furthermore, the counter coincidence detection circuit 51 receives the distance signal D 15 from the multiplexer 61 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 11 matching the distance signal D 15 is obtained The clock number CN_1 of the current clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
 更に、カウンタ一致検出回路51は、マルチプレクサ61から距離信号D17を受け、リセット信号RSTをスイッチング制御回路60から受けると、上述した方法によって、距離信号D17に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Furthermore, the counter coincidence detection circuit 51 receives the distance signal D 17 from the multiplexer 61 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 11 matching the distance signal D 17 is obtained The clock number CN_1 of the current clock signal CLK is counted, and a coincidence signal MTH1 indicating the timing at which the clock number CN_1 is counted is output to the switching control circuit 60. Then, the counter coincidence detection circuit 51 stops its operation.
 このように、カウンタ一致検出回路51は、距離信号とリセット信号とを受けるごとに、距離信号(=距離信号D11から奇数番目の距離信号D11,D13,D15,D17のいずれか)に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1をスイッチング制御回路60へ出力し、その後、動作を停止する。 Thus, the counter coincidence detection circuit 51, each time receiving the distance signal and the reset signal, either the distance signal (= the distance signal D odd distance signal D 11 from 11, D 13, D 15, D 17 ) to count the clock number CN_1 of the clock signal CLK when the counter value CV 11 matching is obtained, and outputs a coincidence signal MTH1 indicating timing for counting the number of clocks CN_1 to the switching control circuit 60, then, stops the operation To do.
 カウンタ一致検出回路52は、マルチプレクサ62から距離信号D12を受け、リセット信号RSTをスイッチング制御回路60から受けると、上述した方法によって、距離信号D12に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 Counter coincidence detection circuit 52 receives the distance signal D 12 from the multiplexer 62 receives the reset signal RST from the switching control circuit 60, by the above-described method, when the counter value CV 12 matching the distance signal D 12 is obtained The clock number CN_2 of the clock signal CLK is counted, and a coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
 また、カウンタ一致検出回路52は、マルチプレクサ62から距離信号D14を受け、リセット信号RSTをスイッチング制御回路60から受けると、上述した方法によって、距離信号D14に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 The counter coincidence detection circuit 52 receives the distance signal D 14 from the multiplexer 62 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 12 matching the distance signal D 14 is obtained The clock number CN_2 of the current clock signal CLK is counted, and a coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
 更に、カウンタ一致検出回路52は、マルチプレクサ62から距離信号D16を受け、リセット信号RSTをスイッチング制御回路60から受けると、上述した方法によって、距離信号D16に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 Furthermore, the counter coincidence detection circuit 52 receives the distance signal D 16 from the multiplexer 62 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 12 matching the distance signal D 16 is obtained The clock number CN_2 of the current clock signal CLK is counted, and a coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
 更に、カウンタ一致検出回路52は、マルチプレクサ62から距離信号D18を受け、リセット信号RSTをスイッチング制御回路60から受けると、上述した方法によって、距離信号D18に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 Furthermore, the counter coincidence detection circuit 52 receives the distance signal D 18 from the multiplexer 62 receives the reset signal RST from the switching control circuit 60, by the above-described method, the counter value CV 12 matching the distance signal D 18 is obtained The clock number CN_2 of the current clock signal CLK is counted, and a coincidence signal MTH2 indicating the timing at which the clock number CN_2 is counted is output to the switching control circuit 60. Then, the counter match detection circuit 52 stops its operation.
 このように、カウンタ一致検出回路52は、距離信号とリセット信号とを受けるごとに、距離信号(=距離信号D11から偶数番目の距離信号D12,D14,D16,D18のいずれか)に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2をスイッチング制御回路60へ出力し、その後、動作を停止する。 As described above, the counter coincidence detection circuit 52 receives the distance signal (= the distance signal D 11 , the even-numbered distance signals D 12 , D 14 , D 16 , D 18 every time the distance signal and the reset signal are received. ) to count the clock number CN_2 of the clock signal CLK when the counter value CV 12 matching is obtained, and outputs a coincidence signal MTH2 indicating timing for counting the number of clocks CN_2 to the switching control circuit 60, then, stops the operation To do.
 図18は、図17に示す距離/クロック数変換回路DC”-2の動作を説明するための図である。 FIG. 18 is a diagram for explaining the operation of the distance / clock number conversion circuit DC ″ 1 -2 shown in FIG.
 図18を参照して、スイッチング制御回路60は、連想メモリ100の制御回路からの検索開始信号SBおよびリセット信号RSTに応じて、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに出力信号OUT1をマルチプレクサ61へ出力する。 Referring to FIG. 18, switching control circuit 60 generates reset signal RST as counter match detection circuit 51 in synchronization with clock signal CLK in response to search start signal SB and reset signal RST from the control circuit of associative memory 100. And output signal OUT1 to multiplexer 61.
 マルチプレクサ61は、距離演算回路DP11,DP13,DP15,DP17からそれぞれ距離信号D11,D13,D15,D17を受ける。そして、マルチプレクサ61は、1回目の出力信号OUT1に応じて、距離信号D11をカウンタ一致検出回路51へ出力する。 The multiplexer 61 receives distance signals D 11 , D 13 , D 15 , and D 17 from the distance calculation circuits DP 11 , DP 13 , DP 15 , and DP 17 , respectively. Then, the multiplexer 61, depending on the first output signal OUT1, and outputs a distance signal D 11 to the counter match detection circuit 51.
 そうすると、カウンタ一致検出回路51は、距離信号D11(=“3”)に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1(=“3”)をカウントする。そして、カウンタ一致検出回路51は、クロック数CN_1(=“3”)をカウントしたタイミングを示す一致信号MTH1をクロック信号CLKに同期してスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Then, the counter match detection circuit 51 counts the number of clocks CN_1 (= “3”) of the clock signal CLK when the counter value CV 11 that matches the distance signal D 11 (= “3”) is obtained. Then, the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing when the clock number CN_1 (= “3”) is counted to the switching control circuit 60 in synchronization with the clock signal CLK. Then, the counter coincidence detection circuit 51 stops its operation.
 その後、スイッチング制御回路60は、一致信号MTH1をカウンタ一致検出回路51から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに、出力信号OUT2をマルチプレクサ62へ出力する。 After that, when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. Output.
 マルチプレクサ62は、距離演算回路DP12,DP14,DP16,DP18からそれぞれ距離信号D12,D14,D16,D18を受ける。そして、マルチプレクサ62は、1回目の出力信号OUT2に応じて、距離信号D12(=“2”)をカウンタ一致検出回路52へ出力する。 The multiplexer 62 receives distance signals D 12 , D 14 , D 16 , and D 18 from the distance calculation circuits DP 12 , DP 14 , DP 16 , and DP 18 , respectively. Then, the multiplexer 62 outputs the distance signal D 12 (= “2”) to the counter coincidence detection circuit 52 in accordance with the first output signal OUT2.
 そうすると、カウンタ一致検出回路52は、距離信号D12(=“2”)に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2(=“2”)をカウントする。そして、カウンタ一致検出回路52は、クロック数CN_2(=“2”)をカウントしたタイミングを示す一致信号MTH2をクロック信号CLKに同期してスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 Then, the counter match detection circuit 52 counts the number of clocks CN_2 (= “2”) of the clock signal CLK when the counter value CV 12 that matches the distance signal D 12 (= “2”) is obtained. Then, the counter coincidence detection circuit 52 outputs a coincidence signal MTH2 indicating the timing when the clock number CN_2 (= “2”) is counted to the switching control circuit 60 in synchronization with the clock signal CLK. Then, the counter match detection circuit 52 stops its operation.
 引き続いて、スイッチング制御回路60は、一致信号MTH2をカウンタ一致検出回路52から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに、出力信号OUT1をマルチプレクサ61へ出力する。 Subsequently, when receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 in synchronization with the clock signal CLK, and outputs the output signal OUT1 to the multiplexer 61. Output to.
 マルチプレクサ61は、2回目の出力信号OUT1に応じて、距離信号D13(=“5”)をカウンタ一致検出回路51へ出力する。 The multiplexer 61 outputs the distance signal D 13 (= “5”) to the counter coincidence detection circuit 51 in response to the second output signal OUT1.
 そうすると、カウンタ一致検出回路51は、距離信号D13(=“5”)に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1(=“5”)をカウントする。そして、カウンタ一致検出回路51は、クロック数CN_1(=“5”)をカウントしたタイミングを示す一致信号MTH1をクロック信号CLKに同期してスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Then, the counter match detection circuit 51 counts the number of clocks CN_1 (= “5”) of the clock signal CLK when the counter value CV 11 that matches the distance signal D 13 (= “5”) is obtained. Then, the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing of counting the clock number CN_1 (= “5”) to the switching control circuit 60 in synchronization with the clock signal CLK. Then, the counter coincidence detection circuit 51 stops its operation.
 スイッチング制御回路60は、一致信号MTH1をカウンタ一致検出回路51から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに、出力信号OUT2をマルチプレクサ62へ出力する。 When receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and outputs the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. .
 マルチプレクサ62は、2回目の出力信号OUT2に応じて、距離信号D14(=“1”)をカウンタ一致検出回路52へ出力する。 The multiplexer 62 outputs the distance signal D 14 (= “1”) to the counter coincidence detection circuit 52 in response to the second output signal OUT2.
 そうすると、カウンタ一致検出回路52は、距離信号D14(=“1”)に一致するカウンタ値CV12が得られるときのクロック数CN_2(=“1”)をカウントする。そして、カウンタ一致検出回路52は、クロック数CN_2(=“1”)をカウントしたタイミングを示す一致信号MTH2をクロック信号CLKに同期してスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 Then, the counter match detection circuit 52 counts the number of clocks CN_2 (= “1”) when the counter value CV 12 that matches the distance signal D 14 (= “1”) is obtained. Then, the counter coincidence detection circuit 52 outputs a coincidence signal MTH2 indicating the timing of counting the clock number CN_2 (= “1”) to the switching control circuit 60 in synchronization with the clock signal CLK. Then, the counter match detection circuit 52 stops its operation.
 そして、スイッチング制御回路60は、一致信号MTH2をカウンタ一致検出回路52から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに、出力信号OUT1をマルチプレクサ61へ出力する。 When receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 in synchronization with the clock signal CLK and outputs the output signal OUT1 to the multiplexer 61. Output.
 マルチプレクサ61は、3回目の出力信号OUT1に応じて、距離信号D15(=“2”)をカウンタ一致検出回路51へ出力する。 The multiplexer 61 outputs the distance signal D 15 (= “2”) to the counter coincidence detection circuit 51 in response to the third output signal OUT1.
 そうすると、カウンタ一致検出回路51は、距離信号D15(=“2”)に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1(=“2”)をカウントする。そして、カウンタ一致検出回路51は、クロック数CN_1(=“2”)をカウントしたタイミングを示す一致信号MTH1をクロック信号CLKに同期してスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Then, the counter coincidence detection circuit 51 counts the number of clocks CN_1 (= “2”) of the clock signal CLK when the counter value CV 11 that coincides with the distance signal D 15 (= “2”) is obtained. Then, the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing at which the number of clocks CN_1 (= “2”) is counted to the switching control circuit 60 in synchronization with the clock signal CLK. Then, the counter coincidence detection circuit 51 stops its operation.
 そして、スイッチング制御回路60は、一致信号MTH1をカウンタ一致検出回路51から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに、出力信号OUT2をマルチプレクサ62へ出力する。 When receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 in synchronization with the clock signal CLK and outputs the output signal OUT2 to the multiplexer 62. Output.
 マルチプレクサ62は、3回目の出力信号OUT2に応じて、距離信号D16(=“4”)をカウンタ一致検出回路52へ出力する。 The multiplexer 62 outputs the distance signal D 16 (= “4”) to the counter coincidence detection circuit 52 in response to the third output signal OUT2.
 そうすると、カウンタ一致検出回路52は、距離信号D16(=“4”)に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2(=“4”)をカウントする。そして、カウンタ一致検出回路52は、クロック数CN_2(=“4”)をカウントしたタイミングを示す一致信号MTH2をクロック信号CLKに同期してスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 Then, the counter match detection circuit 52 counts the number of clocks CN_2 (= “4”) of the clock signal CLK when the counter value CV 12 matching the distance signal D 16 (= “4”) is obtained. Then, the counter coincidence detection circuit 52 outputs a coincidence signal MTH2 indicating the timing at which the number of clocks CN_2 (= “4”) is counted to the switching control circuit 60 in synchronization with the clock signal CLK. Then, the counter match detection circuit 52 stops its operation.
 そして、スイッチング制御回路60は、一致信号MTH2をカウンタ一致検出回路52から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路51へ出力するとともに、出力信号OUT1をマルチプレクサ61へ出力する。 When receiving the coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 51 in synchronization with the clock signal CLK and outputs the output signal OUT1 to the multiplexer 61. Output.
 マルチプレクサ61は、4回目の出力信号OUT1に応じて、距離信号D17(=“2”)をカウンタ一致検出回路51へ出力する。 The multiplexer 61 outputs the distance signal D 17 (= “2”) to the counter coincidence detection circuit 51 in response to the fourth output signal OUT1.
 そうすると、カウンタ一致検出回路51は、距離信号D17(=“2”)に一致するカウンタ値CV11が得られるときのクロック信号CLKのクロック数CN_1(=“2”)をカウントする。そして、カウンタ一致検出回路51は、クロック数CN_1(=“2”)をカウントしたタイミングを示す一致信号MTH1をクロック信号CLKに同期してスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51は、動作を停止する。 Then, the counter coincidence detection circuit 51 counts the number of clocks CN_1 (= “2”) of the clock signal CLK when the counter value CV 11 that coincides with the distance signal D 17 (= “2”) is obtained. Then, the counter coincidence detection circuit 51 outputs a coincidence signal MTH1 indicating the timing at which the number of clocks CN_1 (= “2”) is counted to the switching control circuit 60 in synchronization with the clock signal CLK. Then, the counter coincidence detection circuit 51 stops its operation.
 その後、スイッチング制御回路60は、一致信号MTH1をカウンタ一致検出回路51から受けると、クロック信号CLKに同期して、リセット信号RSTをカウンタ一致検出回路52へ出力するとともに、出力信号OUT2をマルチプレクサ62へ出力する。 After that, when receiving the coincidence signal MTH1 from the counter coincidence detection circuit 51, the switching control circuit 60 outputs the reset signal RST to the counter coincidence detection circuit 52 and the output signal OUT2 to the multiplexer 62 in synchronization with the clock signal CLK. Output.
 マルチプレクサ62は、4回目の出力信号OUT2に応じて、距離信号D18(=“3”)をカウンタ一致検出回路52へ出力する。  The multiplexer 62 outputs the distance signal D 18 (= “3”) to the counter coincidence detection circuit 52 in response to the fourth output signal OUT2.
 そうすると、カウンタ一致検出回路52は、距離信号D18(=“3”)に一致するカウンタ値CV12が得られるときのクロック信号CLKのクロック数CN_2(=“3”)をカウントする。そして、カウンタ一致検出回路52は、クロック数CN_2(=“3”)をカウントしたタイミングを示す一致信号MTH2をクロック信号CLKに同期してスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路52は、動作を停止する。 Then, the counter match detection circuit 52 counts the number of clocks CN_2 (= “3”) of the clock signal CLK when the counter value CV 12 matching the distance signal D 18 (= “3”) is obtained. Then, the counter coincidence detection circuit 52 outputs a coincidence signal MTH2 indicating the timing at which the clock number CN_2 (= “3”) is counted to the switching control circuit 60 in synchronization with the clock signal CLK. Then, the counter match detection circuit 52 stops its operation.
 そうすると、スイッチング制御回路60は、カウンタ一致検出回路52からの4回目の一致信号MTH2に応じて、4回目の一致信号MTH2によって示されるタイミングと同じタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 Then, in response to the fourth coincidence signal MTH2 from the counter coincidence detection circuit 52, the switching control circuit 60 has a timing signal (= timing signals C 1 to C) indicating the same timing as that indicated by the fourth coincidence signal MTH2. Any one of R ) is output to the Winner detector 20.
 このように、カウンタ一致検出回路51,52は、交互に、それぞれ、距離信号(=距離信号D11から奇数番目の距離信号D11,D13,D15,D17のいずれか)および距離信号(=距離信号D11から偶数番目の距離信号D12,D14,D16,D18のいずれか)に一致するカウンタ値CV11,CV12が得られるときのクロック信号CLKのクロック数CN_1,CN_2をカウントし、クロック数CN_1,CN_2をカウントしたタイミングを示す一致信号MTH1,MTH2をスイッチング制御回路60へ出力する。そして、カウンタ一致検出回路51,52は、この処理を4(=s)回繰り返し実行する。 Thus, the counter coincidence detection circuits 51 and 52, alternately, respectively, the distance signal (= distance either signal odd distance signal D 11 from D 11, D 13, D 15 , D 17) and the distance signal The number of clocks CN_1 of the clock signal CLK when the counter values CV 11 and CV 12 that coincide with (= any one of the even-numbered distance signals D 12 , D 14 , D 16 , and D 18 from the distance signal D 11 ) are obtained. CN_2 is counted, and coincidence signals MTH1 and MTH2 indicating the timing when the clock numbers CN_1 and CN_2 are counted are output to the switching control circuit 60. The counter coincidence detection circuits 51 and 52 repeat this process 4 (= s) times.
 距離/クロック数変換回路DC~DCの各々が距離/クロック数変換回路DC”-2からなる場合も、距離/クロック数変換回路DC~DCの各々は、距離信号D11=“3”,D12=“2”,D13=“5”,D14=“1”,D15=“2”,D16=“4”,D17=“2”,D18=“3”の和(=“22”)に一致するカウンタ値が得られるときのクロック信号CLKのクロック数(=“22”)をカウントし、クロック数(=“22”)をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 Even when each of the distance / clock number conversion circuits DC 1 to DC R is composed of the distance / clock number conversion circuit DC ″ 1 -2, each of the distance / clock number conversion circuits DC 1 to DC R is connected to the distance signal D 11 = “3”, D 12 = “2”, D 13 = “5”, D 14 = “1”, D 15 = “2”, D 16 = “4”, D 17 = “2”, D 18 = “ Indicates the timing at which the number of clocks (= “22”) of the clock signal CLK when the counter value matching the sum of 3 ”(=“ 22 ”) is obtained and the number of clocks (=“ 22 ”) is counted (either = timing signals C 1 ~ C R) timing signal output to the Winner detector 20.
 上記においては、W=8である場合について説明したが、Wは、2を満たせば、8以外の値であってもよい。 Although the case where W = 8 has been described above, W may be a value other than 8 as long as 2 i is satisfied.
 そして、Wが2を満たす8以外の値であるときも、距離/クロック数変換回路DC~DCは、それぞれ、上述した動作と同じ動作によってタイミング信号C~CをWinner検出器20へ出力する。 Even when W is other than 8 value satisfying 2 i, the distance / clock number conversion circuits DC 1 ~ DC R are each, Winner detector timing signals C 1 ~ C R by the same operation as described above 20 output.
 また、上記においては、s=2,4の場合について説明したが、sは、W以下の2を満たす整数であれば、2,4以外の値からなっていてもよく、その場合も、距離/クロック数変換回路DC~DCは、それぞれ、上述した動作と同じ動作によってタイミング信号C~CをWinner検出器20へ出力する。 In the above description, the case of s = 2, 4 has been described. However, as long as s is an integer satisfying 2 x equal to or less than W, it may be composed of a value other than 2, 4, and in that case, distance / clock number conversion circuits DC 1 ~ DC R, respectively, and outputs a timing signal C 1 ~ C R to Winner detector 20 by the same operations as described above.
 上述したように、図13および図17においては、距離/クロック数変換回路DC~DC(=距離/クロック数変換回路DC’-2,DC”-2)の各々が2つのカウンタ一致検出回路51,52からなる場合について説明した。 As described above, in FIGS. 13 and 17, each of the distance / clock number conversion circuits DC 1 to DC R (= distance / clock number conversion circuits DC ′ 1 −2, DC ″ 1 −2) has two counters. The case where the coincidence detection circuits 51 and 52 are formed has been described.
 そして、距離/クロック数変換回路DC~DCの各々が図13に示す距離/クロック数変換回路DC’-2または図17に示す距離/クロック数変換回路DC”-2からなる場合、カウンタ一致検出回路51は、W個の距離信号(=距離信号D11~D1W等)を一列に配列したときの一方端からp(pは1≦p<Wを満たす奇数)番目の距離信号を受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、p番目の距離信号に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_1をカウントし、クロック数CN_1をカウントしたタイミングを示す一致信号MTH1を出力する一致処理をW/2回繰り返し実行する。 When each of the distance / clock number conversion circuits DC 1 to DC R includes the distance / clock number conversion circuit DC ′ 1-2 shown in FIG. 13 or the distance / clock number conversion circuit DC ″ 1-2 shown in FIG. The counter coincidence detection circuit 51 is p-th (p is an odd number satisfying 1 ≦ p <W) -th distance from one end when W distance signals (= distance signals D 11 to D 1W, etc.) are arranged in a line. When receiving the signal, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the clock number CN_1 of the clock signal CLK when the counter value matching the p-th distance signal is obtained is counted, and the clock number The matching process for outputting the matching signal MTH1 indicating the timing when CN_1 is counted is repeatedly executed W / 2 times.
 また、カウンタ一致検出回路52は、W個の距離信号(=距離信号D11~D1W等)を一列に配列したときの一方端からq(qは1<q≦Wを満たす偶数)番目の距離信号を受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、q番目の距離信号に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示す一致信号MTH2を出力する一致処理を((W/2)-1)回繰り返し実行し、一致信号MTH1をW/2回受け、かつ、W番目の距離信号を受けると、カウンタ値をクロック信号CLKに同期して昇順にカウントしたときに、W番目の距離信号に一致するカウンタ値が得られるときのクロック信号CLKのクロック数CN_2をカウントし、クロック数CN_2をカウントしたタイミングを示すタイミング信号(=タイミング信号C~Cのいずれか)をWinner検出器20へ出力する。 Further, the counter coincidence detection circuit 52 is qth (q is an even number satisfying 1 <q ≦ W) from one end when W distance signals (= distance signals D 11 to D 1W, etc.) are arranged in a line. When the distance signal is received, when the counter value is counted in ascending order in synchronization with the clock signal CLK, the number of clocks CN_2 of the clock signal CLK when the counter value matching the qth distance signal is obtained is counted. The coincidence process for outputting the coincidence signal MTH2 indicating the timing of counting the number CN_2 is repeatedly executed ((W / 2) -1) times, the coincidence signal MTH1 is received W / 2 times, and the Wth distance signal is received. When the counter value is counted in ascending order in synchronization with the clock signal CLK, the clock signal CLK clock when the counter value matching the Wth distance signal is obtained. Counts the click number CN_2, outputs (either = timing signals C 1 ~ C R) timing signal indicating a timing of counting the number of clocks CN_2 to Winner detector 20.
 この場合、カウンタ一致検出回路51は、「第1のカウンタ一致検出回路」を構成し、カウンタ一致検出回路52は、「第2のカウンタ一致検出回路」を構成する。 In this case, the counter coincidence detection circuit 51 constitutes a “first counter coincidence detection circuit”, and the counter coincidence detection circuit 52 constitutes a “second counter coincidence detection circuit”.
 また、カウンタ一致検出回路51のカウンタ311(またはカウンタ311A)は、「第1のカウンタ」を構成し、カウンタ一致検出回路51の一致検出回路312は、「第1の一致検出回路」を構成する。 Further, the counter 311 (or the counter 311A) of the counter coincidence detection circuit 51 constitutes a “first counter”, and the coincidence detection circuit 312 of the counter coincidence detection circuit 51 constitutes a “first coincidence detection circuit”. .
 更に、カウンタ一致検出回路52のカウンタ311(またはカウンタ311A)は、「第2のカウンタ」を構成し、カウンタ一致検出回路52の一致検出回路312は、「第2の一致検出回路」を構成する。 Further, the counter 311 (or the counter 311A) of the counter coincidence detection circuit 52 constitutes a “second counter”, and the coincidence detection circuit 312 of the counter coincidence detection circuit 52 constitutes a “second coincidence detection circuit”. .
 図13および図17に示すように、距離/クロック数変換回路DC~DC(=距離/クロック数変換回路DC’-2,DC”-2)の各々を2個のカウンタ一致検出回路51,52によって構成することによって、距離/クロック数変換回路DC~DCの回路面積を削減でき、消費電力を低減できる。 As shown in FIGS. 13 and 17, each of the distance / clock number conversion circuits DC 1 to DC R (= distance / clock number conversion circuit DC ′ 1 −2, DC ″ 1 −2) is detected as two counter coincidences. by configuring the circuits 51 and 52, the distance / reduces the circuit area of the clock number conversion circuits DC 1 ~ DC R, power consumption can be reduced.
 図19は、最短検索時間の比較を示す図である。図19における周波数マッピング型とは、検索データと参照データとの距離を周波数に変換して検索データに類似する参照データを検索する連想メモリを意味する。 FIG. 19 is a diagram showing a comparison of the shortest search times. The frequency mapping type in FIG. 19 means an associative memory that searches for reference data similar to the search data by converting the distance between the search data and the reference data into a frequency.
 また、図19の(a)は、M×W=16ビット×8ユニット=128ビットの参照データを64個用いた場合の最短検索時間の比較を示す。更に、図19の(b)は、M×W=16ビット×16ユニット=256ビットの参照データを64個用いた場合の最短検索時間の比較を示す。 FIG. 19A shows a comparison of the shortest search times when 64 pieces of reference data of M × W = 16 bits × 8 units = 128 bits are used. Further, FIG. 19B shows a comparison of shortest search times when 64 pieces of reference data of M × W = 16 bits × 16 units = 256 bits are used.
 図19の(a)を参照して、M×W=16ビット×8ユニット=128ビットの参照データを64個用いた場合、周波数マッピング型の連想メモリにおいては、最短検索時間が1280(ns)であるのに対し、本発明の連想メモリ100においては、最短検索時間が20(ns)である。 Referring to FIG. 19A, when 64 pieces of reference data of M × W = 16 bits × 8 units = 128 bits are used, the shortest search time is 1280 (ns) in the frequency mapping type associative memory. On the other hand, in the content addressable memory 100 of the present invention, the shortest search time is 20 (ns).
 図19の(b)を参照して、M×W=16ビット×16ユニット=256ビットの参照データを64個用いた場合、周波数マッピング型の連想メモリにおいては、最短検索時間が210000(ns)であるのに対し、本発明の連想メモリ100においては、最短検索時間が40(ns)である。 Referring to FIG. 19B, when 64 pieces of reference data of M × W = 16 bits × 16 units = 256 bits are used, the shortest search time is 210000 (ns) in the frequency mapping type associative memory. On the other hand, in the associative memory 100 of the present invention, the shortest search time is 40 (ns).
 このように、この発明の実施の形態による連想メモリ100は、従来の周波数マッピング型の連想メモリよりも2桁以上短い時間で検索データに類似する参照データを検索できることが実験的に実証された。 As described above, it has been experimentally proved that the associative memory 100 according to the embodiment of the present invention can search for reference data similar to the search data in a time shorter by two digits or more than the conventional frequency mapping type associative memory.
 また、この発明の実施の形態による連想メモリ100は、参照データのビット数が多くなるに従って、検索時間を飛躍的に短くできることが実験的に実証された。 Further, it has been experimentally proved that the associative memory 100 according to the embodiment of the present invention can drastically shorten the search time as the number of bits of reference data increases.
 図20は、消費電力の比較を示す図である。図20において、従来例の連想メモリは、非特許文献3に記載された連想メモリである。 FIG. 20 is a diagram showing a comparison of power consumption. In FIG. 20, the associative memory of the conventional example is the associative memory described in Non-Patent Document 3.
 図20を参照して、従来例の連想メモリにおいては、64個の参照データが用いられ、本発明の連想メモリ100においては、128個の参照データが用いられた。 Referring to FIG. 20, 64 reference data are used in the associative memory of the conventional example, and 128 reference data are used in the associative memory 100 of the present invention.
 そして、従来例の連想メモリにおいては、消費電力は、321(mW)であるのに対し、本発明の連想メモリ100においては、消費電力は、2.13(mW)である。 In the conventional associative memory, the power consumption is 321 (mW), whereas in the associative memory 100 of the present invention, the power consumption is 2.13 (mW).
 このように、この発明の実施の形態による連想メモリ100は、参照データ数が2倍多いにも拘わらず、従来例の連想メモリよりも2桁以上消費電力を低減できることが実験的に実証された。 Thus, it has been experimentally demonstrated that the associative memory 100 according to the embodiment of the present invention can reduce power consumption by two orders of magnitude or more than the conventional associative memory although the number of reference data is twice as large. .
 従って、この発明の実施の形態による連想メモリ100を用いれば、低消費電力で高速に検索データに類似する参照データを検索できることが明らかである。 Therefore, it is apparent that the reference data similar to the search data can be searched at high speed with low power consumption by using the associative memory 100 according to the embodiment of the present invention.
 なお、上記においては、マンハッタン距離を用いて検索データに類似するk個の参照データを検索すると説明したが、この発明の実施の形態においては、これに限らず、ハミング距離を用いて検索データに類似するk個の参照データを検索してもよい。 In the above description, it has been described that k reference data similar to the search data is searched using the Manhattan distance. However, in the embodiment of the present invention, the search data is not limited to this and may be searched using the Hamming distance. You may search k similar reference data.
 この場合、Mビットは、1ビットからなり、参照データ保存回路SC11~SC1W,SC21~SC2W,・・・,SCR1~SCRWの各々は、1ビットの参照データを保存する。また、距離演算回路DP11~DP1W,DP21~DP2W,・・・,DPR1~DPRWの各々は、検索データの1ビットと参照データの1ビットとの距離を式(1)に従って演算する。 In this case, the M bit consists of 1 bit, and each of the reference data storage circuits SC 11 to SC 1W , SC 21 to SC 2W ,..., SC R1 to SC RW stores 1-bit reference data. Further, each of the distance calculation circuits DP 11 to DP 1W , DP 21 to DP 2W ,..., DP R1 to DP RW determines the distance between one bit of the search data and one bit of the reference data according to the equation (1). Calculate.
 そして、連想メモリ100は、上述した動作に従って、ハミング距離を用いて検索データに類似するk個の参照データを検索する。 Then, the associative memory 100 searches the k reference data similar to the search data using the Hamming distance according to the above-described operation.
 今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は、上記した実施の形態の説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is shown not by the above description of the embodiments but by the scope of claims for patent, and is intended to include meanings equivalent to the scope of claims for patent and all modifications within the scope.
 この発明は、連想メモリに適用される。 This invention is applied to an associative memory.

Claims (9)

  1.  各々がM×W(Mは1以上の整数、Wは2以上の整数)ビットのビット長を有するR(Rは2以上の整数)個の参照データを保存する参照データ保存回路と、
     前記R個の参照データに対応して設けられ、各々がM×Wビットのビット長を有し、かつ、検索対象である検索データと前記参照データとの距離を表わすR個の距離信号を出力するR個の距離演算回路と、
     前記R個の距離演算回路に対応して設けられ、各々が対応する距離演算回路から各々がMビットのビット長を有するW個の距離信号を受け、その受けたW個の距離信号の和に一致するカウンタ値が得られるときのクロック信号のクロック数をカウントし、前記クロック数をカウントしたタイミングである一致タイミングを示すタイミング信号を出力するR個の距離/クロック数変換回路と、
     前記R個の距離/クロック数変換回路から受けたR個のタイミング信号に基づいて、前記一致タイミングが早い順にk(kは1≦k<Rを満たす整数)個のタイミング信号を検出し、その検出したk個のタイミング信号を前記検索データと前記参照データとの類似度を示すマッチ信号として出力するWinner検出器とを備える連想メモリ。
    A reference data storage circuit for storing R (R is an integer of 2 or more) reference data each having a bit length of M × W (M is an integer of 1 or more, W is an integer of 2 or more) bits;
    R distance signals provided corresponding to the R reference data, each having a bit length of M × W bits, and representing the distance between the search data to be searched and the reference data are output. R distance calculation circuits to perform,
    The R distance arithmetic circuits are provided corresponding to the R distance arithmetic circuits, each receiving W distance signals each having a bit length of M bits from the corresponding distance arithmetic circuits, and summing the received W distance signals. R distance / clock number conversion circuits that count the number of clocks of a clock signal when a matching counter value is obtained and output a timing signal indicating a matching timing that is a timing at which the number of clocks is counted;
    Based on the R timing signals received from the R distance / clock number conversion circuits, k timing signals (k is an integer satisfying 1 ≦ k <R) are detected in order of the matching timing, An associative memory comprising: a Winner detector that outputs the detected k timing signals as a match signal indicating a similarity between the search data and the reference data.
  2.  前記R個の距離/クロック数変換回路の各々は、各々がMビットのビット長を有するW個の距離信号に対応して設けられ、かつ、直列に接続されたW個のカウンタ一致検出回路を含み、
     前記W個のカウンタ一致検出回路は、W=2である場合、
     前記W個の距離信号を一列に配列したときの一方端の距離信号である1番目の距離信号に対応して設けられ、前記1番目の距離信号を受けると、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けた1番目の距離信号に一致するカウンタ値が得られるときのクロック信号の第1のクロック数をカウントし、前記第1のクロック数をカウントしたタイミングを示す第1の一致信号を出力する第1のカウンタ一致検出回路と、
     前記一方端からW番目の距離信号に対応して設けられ、前記第1のカウンタ一致検出回路から前記第1の一致信号を受けると駆動されるとともに前記W番目の距離信号を受け、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けたW番目の距離信号に一致するカウンタ値が得られるときのクロック信号の第2のクロック数をカウントし、前記第2のクロック数をカウントしたタイミングを示す前記タイミング信号を前記Winner検出器へ出力する第2のカウンタ一致検出回路とを含み、
     前記W個のカウンタ一致検出回路は、Wが3以上である場合、
     前記第1のカウンタ一致検出回路と、
     2番目の距離信号からW-1番目の距離信号までのW-2個の距離信号に対応して設けられ、各々が、前記第1のカウンタ一致検出回路またはw-1(wは2≦w≦W-1を満たす整数)番目の距離信号に対応して設けられたカウンタ一致検出回路から前記1番目または前記w番目の距離信号に一致するカウンタ値が得られるときのクロック信号のクロック数をカウントしたタイミングを示す第2の一致信号を受けると駆動されるとともに前記w番目の距離信号を受け、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けたw番目の距離信号に一致するカウンタ値が得られるときのクロック信号の第3のクロック数をカウントし、前記第3のクロック数をカウントしたタイミングを示す第3の一致信号を出力するW-2個の第3のカウンタ一致検出回路と、
     W番目の距離信号に対応して設けられ、W-1番目の距離信号に対応して設けられたカウンタ一致検出回路から前記第3の一致信号を受けると駆動されるとともに前記W番目の距離信号を受け、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けたW番目の距離信号に一致するカウンタ値が得られるときのクロック信号の第4のクロック数をカウントし、前記第4のクロック数をカウントしたタイミングを示す前記タイミング信号を前記Winner検出器へ出力する第4のカウンタ一致検出回路とを含む、請求項1に記載の連想メモリ。
    Each of the R distance / clock number conversion circuits includes W counter coincidence detection circuits provided corresponding to W distance signals each having a bit length of M bits and connected in series. Including
    The W counter coincidence detection circuits, when W = 2,
    Provided in correspondence with the first distance signal which is the distance signal at one end when the W distance signals are arranged in a line, and upon receiving the first distance signal, the counter value is synchronized with the clock signal. When counting in ascending order, the first clock number of the clock signal when the counter value that matches the received first distance signal is obtained is counted, and the timing at which the first clock number is counted is shown. A first counter match detection circuit for outputting a first match signal;
    The counter is provided corresponding to the Wth distance signal from the one end, and is driven when receiving the first coincidence signal from the first counter coincidence detection circuit and receives the Wth distance signal, When counting in ascending order in synchronization with the clock signal, the second clock number of the clock signal when the counter value corresponding to the received Wth distance signal is obtained is counted, and the second clock number is calculated. A second counter coincidence detection circuit that outputs the timing signal indicating the counted timing to the Winner detector;
    The W counter coincidence detection circuits, when W is 3 or more,
    The first counter coincidence detection circuit;
    Provided corresponding to W-2 distance signals from the second distance signal to the W-1th distance signal, each of which is the first counter coincidence detection circuit or w-1 (w is 2 ≦ w). ≦ integer satisfying W−1) The number of clock signals when the counter value corresponding to the first or wth distance signal is obtained from the counter coincidence detection circuit provided corresponding to the first distance signal. When the second coincidence signal indicating the counted timing is received and the wth distance signal is driven and the counter value is counted in ascending order in synchronization with the clock signal, the received wth distance signal is received. Counts the third clock number of the clock signal when a counter value that coincides with is obtained, and outputs a third coincidence signal indicating the timing of counting the third clock number. A number of third counter match detection circuit,
    When the third coincidence signal is received from the counter coincidence detection circuit provided corresponding to the Wth distance signal and corresponding to the W-1th distance signal, the Wth distance signal is driven. When the counter value is counted in ascending order in synchronization with the clock signal, the fourth clock number of the clock signal when the counter value matching the received Wth distance signal is obtained is counted, The content addressable memory according to claim 1, further comprising: a fourth counter coincidence detection circuit that outputs the timing signal indicating the timing at which the fourth clock number is counted to the Winner detector.
  3.  前記第1のカウンタ一致検出回路は、
     Mビットのビット値を昇順にカウントし、そのカウントしたカウンタ値を順次出力する第1のカウンタと、
     前記第1のカウンタから前記カウンタ値を順次受けるとともに前記距離演算回路から前記1番目の距離信号を受け、前記受けたカウンタ値が前記1番目の距離信号に一致するときの前記第1のクロック数をカウントし、前記第1のクロック数が得られると、前記第1の一致信号を出力する第1の一致検出回路とを含み、
     前記第2のカウンタ一致検出回路は、
     Mビットのビット値を昇順にカウントし、そのカウントしたカウンタ値を順次出力する第2のカウンタと、
     前記第2のカウンタから前記カウンタ値を順次受けるとともに前記距離演算回路から前記W番目の距離信号を受け、前記第1のカウンタ一致検出回路から前記第1の一致信号を受けると駆動され、前記受けたカウンタ値が前記W番目の距離信号に一致するときの前記第2のクロック数をカウントし、前記第2のクロック数が得られると、前記タイミング信号を前記Winner検出器へ出力する第2の一致検出回路とを含み、
     前記W-2個の第3のカウンタ一致検出回路の各々は、
     Mビットのビット値を昇順にカウントし、そのカウントしたカウンタ値を順次出力する第3のカウンタと、
     前記第3のカウンタから前記カウンタ値を順次受けるとともに前記距離演算回路から前記w番目の距離信号を受け、前記第2の一致信号を受けると駆動され、前記受けたカウンタ値が前記w番目の距離信号に一致するときの前記第3のクロック数をカウントし、前記第3のクロック数が得られると、前記第3の一致信号を出力する第3の一致検出回路とを含み、
     前記第4のカウンタ一致検出回路は、
     Mビットのビット値を昇順にカウントし、そのカウントしたカウンタ値を順次出力する第4のカウンタと、
     前記第4のカウンタから前記カウンタ値を順次受けるとともに前記距離演算回路から前記W番目の距離信号を受け、前記第3の一致信号を受けると駆動され、前記受けたカウンタ値が前記W番目の距離信号に一致するときの前記第4のクロック数をカウントし、前記第4のクロック数が得られると、前記タイミング信号を前記Winner検出器へ出力する第4の一致検出回路とを含む、請求項2に記載の連想メモリ。
    The first counter match detection circuit includes:
    A first counter that counts M bit values in ascending order and sequentially outputs the counted counter values;
    The first clock number when the counter value is sequentially received from the first counter and the first distance signal is received from the distance calculation circuit, and the received counter value matches the first distance signal. And a first coincidence detection circuit that outputs the first coincidence signal when the first clock number is obtained,
    The second counter coincidence detection circuit includes:
    A second counter that counts the bit values of M bits in ascending order and sequentially outputs the counted counter values;
    The counter value is sequentially received from the second counter, the Wth distance signal is received from the distance calculation circuit, and the first match signal is received from the first counter match detection circuit. The second clock number when the counter value matches the Wth distance signal is counted, and when the second clock number is obtained, the timing signal is output to the Winner detector. A coincidence detection circuit,
    Each of the W-2 third counter coincidence detection circuits includes:
    A third counter that counts the bit values of M bits in ascending order and sequentially outputs the counted counter values;
    The counter value is sequentially received from the third counter, and the w-th distance signal is received from the distance calculation circuit. The second counter signal is driven, and the received counter value is the w-th distance. A third coincidence detection circuit that counts the third clock number when the signal coincides with a signal and outputs the third coincidence signal when the third clock number is obtained;
    The fourth counter coincidence detection circuit includes:
    A fourth counter that counts the bit values of M bits in ascending order and sequentially outputs the counted counter values;
    The counter value is sequentially received from the fourth counter, and the W-th distance signal is received from the distance calculation circuit. The counter value is driven when the third coincidence signal is received, and the received counter value is the W-th distance. 4. A fourth coincidence detection circuit that counts the fourth clock number when it coincides with a signal and outputs the timing signal to the Winner detector when the fourth clock number is obtained. 2. The associative memory according to 2.
  4.  前記Wは、2(iは2以上の整数)からなり、
     前記R個の距離/クロック数変換回路の各々は、W/s(sはW以下である2に等しい。xは正の整数)個の距離信号に対応して設けられ、各々がMビットのビット長を有するW個の距離信号に基づいて、前記タイミング信号を出力するW/s個のカウンタ一致検出回路を含み、
     前記W/s個のカウンタ一致検出回路は、各々が前記W/s個の距離信号からなるs組の距離信号を受けると、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けたs組の距離信号に含まれるW個の距離信号の和に一致するカウンタ値が得られるときの前記クロック数をカウントし、前記クロック数をカウントしたタイミングを示す前記タイミング信号を前記Winner検出器へ出力する、請求項1に記載の連想メモリ。
    W is composed of 2 i (i is an integer of 2 or more),
    Each of the R distance / clock number conversion circuits is provided corresponding to W / s (s is equal to 2 x which is less than or equal to W. x is a positive integer) number of distance signals, each of which is M bits. W / s counter coincidence detection circuits that output the timing signal based on W distance signals having a bit length of
    When each of the W / s counter coincidence detection circuits receives s sets of distance signals each composed of the W / s distance signals, the counter value is counted in ascending order in synchronization with the clock signal. The number of clocks is counted when a counter value corresponding to the sum of W distance signals included in the received s sets of distance signals is obtained, and the timing signal indicating the timing at which the number of clocks is counted is detected by the Winner. The associative memory according to claim 1, wherein the associative memory outputs to a storage device.
  5.  前記W/s個のカウンタ一致検出回路は、前記W/s個の距離信号を受けると、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けたW/s個の距離信号の和に一致するカウンタ値が得られるときのクロック信号の第1のクロック数をカウントし、前記第1のクロック数をカウントしたタイミングを示す第1の一致信号を出力する処理をs-1回繰り返し実行し、前記第1の一致信号を前記s-1回出力し、かつ、s回目に前記W/s個の距離信号を受けると、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けたW/s個の距離信号の和に一致するカウンタ値が得られるときのクロック信号の第2のクロック数をカウントし、前記第2のクロック数をカウントしたタイミングを示す前記タイミング信号を前記Winner検出器へ出力する、請求項4に記載の連想メモリ。 When the W / s counter coincidence detection circuits receive the W / s distance signals, the received W / s distance signals are counted when the counter values are counted in ascending order in synchronization with the clock signal. The process of counting the first clock number of the clock signal when the counter value matching the sum of the two is obtained and outputting the first coincidence signal indicating the timing at which the first clock number is counted is performed s-1 times. When repeatedly executed, outputting the first coincidence signal s-1 times and receiving the W / s distance signals for the sth time, the counter value is counted in ascending order in synchronization with the clock signal. In addition, the second clock number of the clock signal when a counter value matching the sum of the received W / s distance signals is obtained is counted, and the timing indicating the timing when the second clock number is counted is counted. And it outputs a timing signal to the Winner detector, content addressable memory of claim 4.
  6.  前記W/s個のカウンタ一致検出回路は、
     前記W個の距離信号を一列に配列したときの一方端からp(pは1≦p<Wを満たす奇数)番目の距離信号を受けると、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記p番目の距離信号に一致するカウンタ値が得られるときのクロック信号の第3のクロック数をカウントし、前記第3のクロック数をカウントしたタイミングを示す第2の一致信号を出力する第1の一致処理をW/2回繰り返し実行する第1のカウンタ一致検出回路と、
     前記一方端からq(qは1<q≦Wを満たす偶数)番目の距離信号を受けると、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記q番目の距離信号に一致するカウンタ値が得られるときのクロック信号の第4のクロック数をカウントし、前記第4のクロック数をカウントしたタイミングを示す第3の一致信号を出力する第2の一致処理を((W/2)-1)回繰り返し実行し、前記第2の一致信号を前記W/2回受け、かつ、W番目の距離信号を受けると、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記W番目の距離信号に一致するカウンタ値が得られるときのクロック信号の第5のクロック数をカウントし、前記第5のクロック数をカウントしたタイミングを示す前記タイミング信号を前記Winner検出器へ出力する第2のカウンタ一致検出回路とを含む、請求項4に記載の連想メモリ。
    The W / s counter match detection circuits are:
    When receiving the p-th (p is an odd number satisfying 1 ≦ p <W) distance from one end when the W distance signals are arranged in a line, the counter values are counted in ascending order in synchronization with the clock signal. When the counter value matching the p-th distance signal is obtained, the third clock number of the clock signal is counted, and the second coincidence signal indicating the timing when the third clock number is counted is output. A first counter coincidence detection circuit that repeatedly executes the first coincidence process W / 2 times;
    When q (q is an even number satisfying 1 <q ≦ W) from the one end, when the counter value is counted in ascending order in synchronization with the clock signal, it coincides with the qth distance signal. A second coincidence process ((W / 2) is performed, which counts the fourth clock number of the clock signal when the counter value is obtained, and outputs a third coincidence signal indicating the timing at which the fourth clock number is counted. ) -1) Repeated execution, receiving the second coincidence signal W / 2 times, and receiving the Wth distance signal, when the counter value is counted in ascending order in synchronization with the clock signal, The fifth clock number of the clock signal when the counter value matching the W-th distance signal is obtained is counted, and the timing signal indicating the timing at which the fifth clock number is counted is represented by the W signal. And a second counter coincidence detection circuit for outputting to the nner detector, content addressable memory of claim 4.
  7.  前記R個の距離/クロック数変換回路の各々は、
     前記第1のカウンタ一致検出回路から前記第2の一致信号を受けると、その受けた第2の一致信号を前記第2のカウンタ一致検出回路へ出力し、前記第2のカウンタ一致検出回路から前記第3の一致信号を受けると、その受けた第3の一致信号を前記第1のカウンタ一致検出回路へ出力するスイッチング制御回路を更に含み、
     前記第1のカウンタ一致検出回路は、前記スイッチング制御回路から前記第3の一致信号を受ける毎に前記第1の一致処理を1回実行し、
     前記第2のカウンタ一致検出回路は、前記スイッチング制御回路から前記第2の一致信号を受ける毎に前記第2の一致処理を1回実行するとともに、前記第2の一致信号を前記W/2回受けると、前記第5のクロック数をカウントし、前記タイミング信号を前記Winner検出器へ出力する、請求項6に記載の連想メモリ。
    Each of the R distance / clock number conversion circuits includes:
    When the second match signal is received from the first counter match detection circuit, the received second match signal is output to the second counter match detection circuit, and the second counter match detection circuit outputs the second match signal. A switching control circuit for receiving the third coincidence signal and outputting the received third coincidence signal to the first counter coincidence detection circuit;
    The first counter coincidence detection circuit executes the first coincidence process once every time it receives the third coincidence signal from the switching control circuit,
    The second counter coincidence detection circuit executes the second coincidence process once every time it receives the second coincidence signal from the switching control circuit, and outputs the second coincidence signal W / 2 times. 7. The content addressable memory according to claim 6, wherein upon receipt, the fifth clock number is counted and the timing signal is output to the Winner detector.
  8.  前記第1のカウンタ一致検出回路は、
     Mビットのビット値を昇順にカウントし、そのカウントしたカウンタ値を順次出力する第1の出力処理を前記W/2回繰り返し実行する第1のカウンタと、
     前記第1のカウンタから前記カウンタ値を順次受けるとともに前記距離演算回路から前記p番目の距離信号を受け、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けたカウンタ値が前記p番目の距離信号に一致するときの前記第3のクロック数をカウントし、前記第2の一致信号を出力する第2の出力処理を前記W/2回繰り返し実行する第1の一致検出回路とを含み、
     前記第2のカウンタ一致検出回路は、
     Mビットのビット値を昇順にカウントし、そのカウントしたカウンタ値を順次出力する第3の出力処理を前記W/2回繰り返し実行する第2のカウンタと、
     前記第2のカウンタから前記カウンタ値を順次受けるとともに前記距離演算回路から前記q番目の距離信号を受け、カウンタ値をクロック信号に同期して昇順にカウントしたときに、前記受けたカウンタ値が前記q番目の距離信号に一致するときの前記第4のクロック数をカウントし、前記第3の一致信号を出力する第2の出力処理を前記((W/2)-1)回繰り返し実行し、前記第2の一致信号を前記W/2回受けると、前記受けたカウンタ値が前記W番目の距離信号に一致するときの前記第5のクロック数をカウントし、前記タイミング信号を前記Winner検出器へ出力する第2の一致検出回路とを含む、請求項6または請求項7に記載の連想メモリ。
    The first counter match detection circuit includes:
    A first counter that counts M-bit bit values in ascending order and sequentially outputs the counted counter values W / 2 times;
    When the counter value is sequentially received from the first counter and the p-th distance signal is received from the distance calculation circuit, and the counter value is counted in ascending order in synchronization with the clock signal, the received counter value is a first coincidence detection circuit that counts the third clock number when coincident with the p-th distance signal and repeatedly executes the second output process of outputting the second coincidence signal W / 2 times; Including
    The second counter coincidence detection circuit includes:
    A second counter that counts the bit values of M bits in ascending order and repeatedly executes a third output process for sequentially outputting the counted counter values W / 2 times;
    When the counter value is sequentially received from the second counter and the qth distance signal is received from the distance calculation circuit, and the counter value is counted in ascending order in synchronization with the clock signal, the received counter value is counting the number of the fourth clocks when they coincide with the qth distance signal, and repeating the ((W / 2) -1) times of the second output processing for outputting the third coincidence signal, When the second coincidence signal is received W / 2 times, the fifth clock number when the received counter value coincides with the Wth distance signal is counted, and the timing signal is detected by the Winner detector. The content addressable memory of Claim 6 or Claim 7 including the 2nd coincidence detection circuit which outputs to.
  9.  前記第1から第4のカウンタの各々は、Mビットのカウンタ値を昇順に出力するM個の分周器からなり、
     前記Mビットのカウンタ値の最下位ビットから最上位ビットへ向かう方向において第m(mは1≦m≦Mを満たす整数)位のビット値を出力する分周器は、クロック信号を2m-1回に分周した信号を出力する、請求項3または請求項8に記載の連想メモリ。
    Each of the first to fourth counters includes M frequency dividers that output M-bit counter values in ascending order,
    The frequency divider that outputs the m-th bit value (m is an integer satisfying 1 ≦ m ≦ M) in the direction from the least significant bit to the most significant bit of the M-bit counter value outputs the clock signal to 2 m−. The content addressable memory according to claim 3 or 8, wherein a signal divided by one time is output.
PCT/JP2013/060326 2012-08-23 2013-04-04 Associative memory WO2014030383A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2012-183975 2012-08-23
JP2012183975A JP5916563B2 (en) 2012-08-23 2012-08-23 Associative memory

Publications (1)

Publication Number Publication Date
WO2014030383A1 true WO2014030383A1 (en) 2014-02-27

Family

ID=50149703

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2013/060326 WO2014030383A1 (en) 2012-08-23 2013-04-04 Associative memory

Country Status (3)

Country Link
JP (1) JP5916563B2 (en)
TW (1) TWI579851B (en)
WO (1) WO2014030383A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013101729A (en) * 2011-11-07 2013-05-23 Hiroshima Univ Content addressable memory
US10725312B2 (en) 2007-07-26 2020-07-28 Digilens Inc. Laser illumination device
JP7475080B2 (en) 2020-04-01 2024-04-26 義憲 岡島 Fuzzy search circuit

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2948872T3 (en) * 2017-05-16 2023-09-20 Ntt Docomo Inc User terminal and radio communication method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002288985A (en) * 2001-01-19 2002-10-04 Univ Hiroshima Semiconductor associative memory
WO2008105157A1 (en) * 2007-02-27 2008-09-04 Hiroshima University Amplifying circuit and associative memory
WO2011040335A1 (en) * 2009-10-01 2011-04-07 国立大学法人広島大学 Associative memory
JP2013101729A (en) * 2011-11-07 2013-05-23 Hiroshima Univ Content addressable memory

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5023833A (en) * 1987-12-08 1991-06-11 California Institute Of Technology Feed forward neural network for unary associative memory
EP0859366A1 (en) * 1997-02-12 1998-08-19 STMicroelectronics S.r.l. Associative memory device with optimized occupation, particularly for the recognition of words
US6934795B2 (en) * 1999-09-23 2005-08-23 Netlogic Microsystems, Inc. Content addressable memory with programmable word width and programmable priority
EP1227497B1 (en) * 2001-01-19 2006-05-31 President of Hiroshima University Semiconductor associative memory
JP3929471B2 (en) * 2003-02-28 2007-06-13 松下電器産業株式会社 Stochastic pulse generator, difference absolute value calculator, and Manhattan distance calculator using the same
US8195873B2 (en) * 2009-02-06 2012-06-05 Hillel Gazit Ternary content-addressable memory
WO2011102432A1 (en) * 2010-02-18 2011-08-25 Inoue Katsumi Memory having information refinement detection function, information detection method using memory, device including memory, information detection method, method for using memory, and memory address comparison circuit
JP4588114B1 (en) * 2010-02-18 2010-11-24 克己 井上 Memory having information narrowing detection function, method of using the same, and device including the memory.

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002288985A (en) * 2001-01-19 2002-10-04 Univ Hiroshima Semiconductor associative memory
WO2008105157A1 (en) * 2007-02-27 2008-09-04 Hiroshima University Amplifying circuit and associative memory
WO2011040335A1 (en) * 2009-10-01 2011-04-07 国立大学法人広島大学 Associative memory
JP2013101729A (en) * 2011-11-07 2013-05-23 Hiroshima Univ Content addressable memory

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10725312B2 (en) 2007-07-26 2020-07-28 Digilens Inc. Laser illumination device
JP2013101729A (en) * 2011-11-07 2013-05-23 Hiroshima Univ Content addressable memory
JP7475080B2 (en) 2020-04-01 2024-04-26 義憲 岡島 Fuzzy search circuit

Also Published As

Publication number Publication date
TW201409469A (en) 2014-03-01
JP2014041676A (en) 2014-03-06
TWI579851B (en) 2017-04-21
JP5916563B2 (en) 2016-05-11

Similar Documents

Publication Publication Date Title
KR100615580B1 (en) Semiconductor memory device and data input and output method of the same, and memory system comprising the same
US20170364791A1 (en) Arithmetic apparatus for a neural network
US8937828B2 (en) Associative memory
US10896241B2 (en) Information processing device and control method therefor
JP5916563B2 (en) Associative memory
US8862647B2 (en) Semiconductor integrated circuit and exponent calculation method
JP4947395B2 (en) Semiconductor test equipment
JP6327717B2 (en) k-neighbor associative memory
WO2024066561A1 (en) Apparatus and method for searching for free memory and chip
JP6215732B2 (en) Reconfigurable associative memory
JP6085187B2 (en) Associative memory
RU2649296C1 (en) Comparator of binary numbers
JP6389438B2 (en) k-neighbor associative memory
US9176958B2 (en) Method and apparatus for music searching
JPWO2004104819A1 (en) Parallel processing apparatus and parallel processing method
JP2014194619A (en) Buffer circuit and semiconductor integrated circuit
US10430326B2 (en) Precision data access using differential data
JP2013132006A5 (en)
WO2022181507A1 (en) Control device
Yang et al. A 75.6 M base-pairs/s FPGA accelerator for FM-index based paired-end short-read mapping
JP2016157496A (en) K vicinity method association memory which can be reconfigured
RU2580803C1 (en) Device for information search
JP2005260285A (en) Data compression apparatus
CN114239818B (en) Memory computing architecture neural network accelerator based on TCAM and LUT
SU1314386A1 (en) Content-addressable storage

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13831111

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13831111

Country of ref document: EP

Kind code of ref document: A1