Latched Gray Code for TOF Applications
By using the Gray-coded time reference latch and updating histogram in the ToF ranging system, the problem of balancing time resolution and power consumption of TDC in the ToF ranging system is solved, achieving higher ranging accuracy and power saving. .
Patent Information
- Application Number
- CN202110334409.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-03-30
- Filing Date
- 2021-03-29
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-03-29
AI Technical Summary
In time-of-flight (ToF) ranging systems, the time resolution and power consumption of existing time-to-digital converters (TDCs) are difficult to balance, and error code latching problems are prone to occur.
Using the Gray coded time base, by providing the Gray coded time base to TDC and latching it when an event occurs, it is used to update the ToF histogram, realize the generation and storage of timestamps, reduce the number of clock edge updates, improve the resolution and Prevent error code latching.
It improves the temporal resolution and power savings of ToF systems, reduces routing congestion, enhances ranging accuracy, and enables higher sampling rates and lower power consumption through asynchronous updating of histograms.
Smart Images

Figure CN113472356B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates generally to electronic systems and methods and, in certain embodiments, to a latched Gray code for time-of-flight (ToF) applications. Background Art
[0002] TDC provides a digital representation of the time associated with an event. For example, TDC can be used to measure the time between a first event and a second event.
[0003] The implementation of TDC can use a counter. The counter starts when a first event occurs and stops when a second event occurs. The resulting count of the counter is a representation of the time between the first event and the second event. The time can be calculated by using the resulting count and the frequency of the clock received by the counter. In this type of TDC implementation, a higher clock frequency generally results in a higher time resolution.
[0004] For example, in a range-finding system that uses time-of-flight (ToF) technology to determine distance, a TDC can be used. For example, in a ToF system, a pulse of light is emitted, for example, using a vertical cavity surface emitting laser (VCSEL), and is reflected from an object back to a photon sensor, such as a single photon avalanche diode (SPAD). The time required for the light to propagate to the object and reflect back to the single photon sensor can be used to determine the distance between the object and the device based on the known speed of light. In such a ToF system, a TDC can be used to generate a digital representation of the time between the emission of a pulse of light and the reception of the reflected pulse by the photon sensor. Summary of the invention
[0005] According to one embodiment, a method includes providing a Gray coded time reference to a TDC; receiving an event from an event signal; latching the Gray coded time reference into a memory when the event signal is received; and updating a ToF histogram based on the latched Gray coded time reference.
[0006] According to one embodiment, a circuit includes: a first input configured to receive an event; a second input configured to receive a Gray-coded time reference; a first register configured to latch the Gray-coded time reference when the event is received; and a histogram generation circuit configured to update a bin register of a histogram storage device, the bin register having an address based on the contents of the first register.
[0007] According to one embodiment, a ToF system includes: an illumination source configured to emit light pulses, a SPAD array, a plurality of TDCs coupled to the SPAD array, and a plurality of histogram generation circuits. Each of the plurality of histogram generation circuits is coupled to a corresponding TDC in the plurality of TDCs. Each TDC includes: a first input coupled to a corresponding SPAD of the SPAD array, a second input configured to receive a Gray-coded time reference, and a first register configured to latch the Gray-coded time reference when the corresponding SPAD is activated. Each of the plurality of histogram generation circuits is configured to update a corresponding bin register of a corresponding histogram storage device, the corresponding bin register having an address based on the content of the corresponding first register. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] For a more complete understanding of the present invention and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which:
[0009] Figure 1 A ToF imaging system according to an embodiment of the present invention is shown;
[0010] Figure 2 and Figure 3 It shows an embodiment according to the present invention, Figure 1 TDC and Figure 1 The corresponding histogram generation circuit to Figure 1 Schematic diagram of possible implementation of coupling of SPAD array;
[0011] Figure 4 A timing diagram is shown according to one embodiment of the present invention, which illustrates Figure 1 The base address and Figure 2 or Figure 3 The input and output signals of the TDC;
[0012] Figure 5 An embodiment of the present invention is shown. Figure 2 or Figure 3 Possible implementation of histogram generation circuit;
[0013] Figure 6 A block diagram of an embodiment of the present invention is shown, which illustrates Figure 5 An aspect of the generation and addressing of a histogram generated by a histogram generation circuit;
[0014] Figure 7 A conventional implementation of a 4-bit binary to Gray converter is shown;
[0015] Figure 8A flow chart illustrating an embodiment method for generating, storing and reading a ToF histogram using a Gray-coded time reference according to an embodiment of the present invention is shown;
[0016] Fig. 9 A schematic diagram of a circuit for temporarily storing a latched Gray code according to an embodiment of the present invention is shown;
[0017] Fig.10 It shows that it can be Fig. 9 Schematic diagram of a differential latch used in a register;
[0018] Figures 11 to 13 A schematic diagram of a circuit for temporarily storing a latched Gray code according to an embodiment of the present invention is shown;
[0019] Fig.14 A schematic diagram of a readout circuit according to an embodiment of the present invention is shown;
[0020] Fig.15 A flow chart illustrating an embodiment method for asynchronously generating a ToF histogram using a Gray-coded time reference according to an embodiment of the present invention; and
[0021] Fig.16 A schematic diagram of a circuit for asynchronously generating a ToF histogram using a Gray-coded time reference according to an embodiment of the present invention is shown.
[0022] Corresponding numerals and symbols in the different figures generally refer to corresponding parts unless otherwise indicated.The figures are drawn to clearly illustrate the relevant aspects of the preferred embodiments and are not necessarily drawn to scale. DETAILED DESCRIPTION
[0023] The manufacture and use of the disclosed embodiments will be discussed in detail below. However, it should be understood that the present invention provides many applicable inventive concepts that can be implemented in a variety of specific environments. The specific embodiments discussed only illustrate specific ways to manufacture and use the present invention and do not limit the scope of the present invention.
[0024] The following description illustrates various specific details to provide a deep understanding of several example embodiments according to the description. Embodiments may be obtained without one or more specific details or using other methods, components, materials, etc. In other cases, known structures, materials, or operations are not shown or described in detail to avoid confusing different aspects of the embodiments. Reference to "one embodiment" in this description indicates that a specific configuration, structure, or feature described relative to the embodiment is included in at least one embodiment. Therefore, phrases such as "in one embodiment" that may appear at different points in this description do not necessarily refer to the same embodiment precisely. In addition, in one or more embodiments, specific forms, structures, or features may be combined in any appropriate manner.
[0025] Embodiments of the present invention will be described in a specific context, Gray-coded reference addresses are used for the generation of timestamps, and for the generation and addressing of corresponding histograms for ToF applications, such as proximity sensors, light detection and ranging (LIDAR), depth analysis, autofocus of cameras, etc. Embodiments may also be used in applications that measure the time between events and / or utilize timestamps of events. Some embodiments may use time reference addresses that are not Gray-coded, such as binary-coded time reference addresses, etc.
[0026] In one embodiment of the invention, a periodically updated Gray-coded time reference (address) is propagated across an array of SPADs, where each SPAD in the array is associated with a corresponding TDC. When a SPAD is activated (e.g., by reflecting a light pulse), the corresponding TDC latches the Gray-coded address, and uses this latched code to generate a timestamp indicating the time when the corresponding SPAD was activated. In some embodiments, the latched Gray-coded address is directly associated with a bin of a histogram. The bin is then incremented to reflect that the SPAD was activated at the time associated with the timestamp.
[0027] In some embodiments, using a Gray coded address as a time reference for the TDC advantageously results in power savings because only a single bit is updated for each time step, thereby minimizing the number of clock edges of the time reference. Additional advantages of some embodiments include improved routing congestion and increased resolution, for example, without increasing power consumption when compared to conventional solutions.
[0028] In some embodiments, using a Gray-coded time base advantageously prevents latching of erroneous codes. For example, a transition between 0001 and 0010 may be erroneously sampled as 0011. However, since only 1 bit is changed at a time, this erroneous sample (which is 0011) can be corrected to 0010.
[0029] Figure 1 A ToF imaging system 100 according to one embodiment of the present invention is shown. The ToF imaging system 100 includes an illumination source 106, a SPAD array 104, a TDC 102, a histogram circuit 118, a processor 110, and a timing generation circuit 108. In some embodiments, the TDC 102 and the histogram circuit 118 are distributed inside the SPAD array 104. In other embodiments, the TDC 102 and the histogram circuit 118 are arranged adjacent to the SPAD array 104. In some embodiments, the histogram circuit 118 is implemented inside the processor 110.
[0030] During normal operation, for example, at times controlled by the timing generator circuit 108, the illumination source 106 transmits radiation pulses 112 (e.g., optical signals or optical pulses) toward the object 116. The reflected radiation pulses 114 are sensed by the SPAD array 104. The (one or more) TDCs 102 generate a digital representation of the time between the emission of the radiation pulse 112 and the reception of the reflected radiation pulse 114, and the (one or more) histogram generation circuits 118 generate a ToF histogram based on the output of the (one or more) TDCs 102. The processor 110 then processes the histogram, for example, to determine the distance to the object 116.
[0031] A ToF histogram is a histogram in which its bins correspond to different times than the emission of a radiation pulse (e.g., 112). Typically, lower bins (e.g., decimal bins 1 and 2, or equivalent binary bins 00 and 01) correspond to shorter times (and therefore closer targets), while higher bins (e.g., decimal bins 9 and 10, or equivalent binary bins 1001 and 1010) correspond to longer times (and therefore farther targets).
[0032] As will be explained later, the TDC(s) 102 use a Gray-coded time reference CLK address To generate a timestamp indicating ToF. Gray coded time base CLK address is the reference address that changes periodically according to the Gray code (i.e., each time the reference address CLK address When the time step is incremented, the reference address CLK address In some embodiments, the Gray-coded time base CLK is used during the portion of the transmission when the TDC is able to latch the event. address Only a single bit changes.
[0033] As will be explained later (e.g., in Figure 6 ), it is possible to convert from a Gray-coded histogram to a binary histogram.
[0034] The illumination source 106 may be implemented in any manner known in the art. For example, the illumination source 106 may be implemented as a VCSEL. Other implementations are also possible.
[0035] Processor 110 may be implemented as a general purpose digital signal processor (DSP), processor, or controller including, for example, combinatorial circuitry coupled to a memory. Processor 110 may also be implemented as a custom application specific integrated circuit (ASIC). Other implementations are also possible.
[0036] SPAD array 104 includes an array of SPADs arranged in rows and columns and may be implemented in any manner known in the art. In some embodiments, each SPAD of SPAD array 104 is coupled to a corresponding TDC in (one or more) TDCs 102. In some embodiments, multiple SPADs share the same TDC via, for example, an OR tree. For example, Figure 2 and Figure 3 A schematic diagram of a possible implementation of coupling of a TDC 102 and corresponding histogram generation circuit 118 to a SPAD array 104 is shown in accordance with an embodiment of the present invention.
[0037] like Figure 2 As shown in , in some embodiments, each TDC 102 may be coupled to a single SPAD 202 via a buffer 204. Figure 3 As shown in FIG. , in some embodiments, each TDC 102 may be coupled to a plurality of SPADs 302 via an OR tree 304 .
[0038] Buffer 204 and OR tree 304 may be implemented in any manner known in the art.
[0039] The TDC 102 is configured to receive a Gray-coded address as a time reference and to activate the input In 102 When (for example, when In 102 When the timer changes from low to high, it generates a timestamp Out 102 and may be implemented in other ways, for example, using combinatorial logic in a manner known in the art.
[0040] Figure 4 A timing diagram 400 is shown according to one embodiment of the present invention, which illustrates the reference address CLK address 、Input of TDC 102 102 and the output Out of TDC 102 102 .
[0041] like Figure 4 As shown in addressUpdated periodically by changing a single bit during each time step. Reference address CLK address Each code indicates that the signal S illum The duration of a pulse (which is a signal from the illumination source 106 to generate the light pulse 112) begins.
[0042] When input 102 When asserted (e.g., transitioning from low to high), the reference address CLK address Enter In time 102 The code at the output is latched into the output Out 102 middle.
[0043] In some embodiments, since the reference address CLK address The SPAD event is locally latched inside the TDC when it occurs, so it can be read out at a later time, thereby advantageously making the routing not ToF time critical. Therefore, in some embodiments, the routing can be advantageously optimized, for example to reduce area, without affecting ToF performance.
[0044] Figure 5 A possible implementation of the histogram generation circuit 118 according to one embodiment of the present invention is shown. The histogram circuit 118 includes a histogram storage device 518, an accumulator circuit 514, and a controller 516. The histogram storage device 518 includes a memory storage device for each bin of the histogram. For example, in some embodiments, the histogram storage device 518 includes a register for each bin of the histogram.
[0045] During normal operation, TDC 102 generates a timestamp Out 102 , which indicates the emission of the optical pulse 112 and the input In 102 The duration between activations is contained in the output Out 102 The code in is used to address the corresponding bin of the histogram in the histogram storage device 518 to update the bin count, for example, by performing a read, update, or write-back operation through the controller 516. For example, in some embodiments, the controller 516 reads the histogram storage device 518 and outputs Out 102 The corresponding bin (e.g., with an output equal to Out 102 The read content is incremented by 1 using adder 520 of accumulator circuit 514, and the accumulated data is written back to the output Out. 102 The corresponding histogram is stored in the bin of the storage device 518.
[0046] Controller 516 may be implemented as a controller or processor including, for example, combinatorial circuitry coupled to a memory.Other implementations are possible.
[0047] The histogram storage device 518 can be implemented using, for example, volatile or non-volatile memory. For example, in some embodiments, the histogram storage device 518 can be implemented by a group of registers, each of which includes multiple flip-flops. In some embodiments, the storage device 518 can be implemented by a static random access memory (SRAM), a latch-based memory (latch unit), a synchronous digital counter, and / or a ripple counter (e.g., made of a D flip-flop). Other implementations are also possible.
[0048] The accumulator 514 may be implemented in any manner known in the art.
[0049] Figure 6 A block diagram 600 is shown illustrating one aspect of the generation and addressing of a histogram generated by the histogram generation circuit 118 in accordance with one embodiment of the present invention.
[0050] During normal operation, the address controller 602 generates a binary reference address CLK, for example by sequentially incrementing the address for each time step. address_bin Sequence 620 shows the binary reference address CLK address_bin The possible sequence of addresses.
[0051] The binary to Gray converter 604 receives each address and converts it to Gray code. Sequence 622 shows the Gray reference address CLK address A sequence of addresses that corresponds to the binary reference address CLK address_bin Sequence 620.
[0052] Gray coded reference address CLK address is propagated to each TDC 102 associated with the SPAD array 104. In some embodiments, such as in embodiments where the TDCs are distributed within the SPAD array 104, the Gray reference address CLK address 104. In other embodiments, such as those in which TDC 102 is located in a physical location adjacent to SPAD array 104, Gray reference address CLK address Propagates outside the SPAD array 104 .
[0053] For example, regarding Figure 4 and Figure 5 As described, using the Gray-coded reference address CLK addressTo generate a corresponding histogram, and store it in the corresponding histogram storage device 518 (in Figure 6 are collectively referred to as memory 606).
[0054] Once the histograms are stored in the memory 606, the processor 110 reads the counts of each bin of each histogram. For example, for each histogram, the processor 110 generates an address Addr bin The binary to Gray converter 608 converts the received binary address Addr bin , and reads the data corresponding to the Addr from the histogram storage device 518 bin 1 and 10. In this manner, although the bins are stored according to Gray-coded addresses, the processor 110 receives the bin counts sequentially (in binary sequence). Even though the histogram storage device 518 can store the histogram as a Gray-coded histogram, the processor 110 effectively receives a binary-coded histogram from the histogram storage device 518.
[0055] The address controller 602 may be implemented in any manner known in the art. For example, in some embodiments, the address controller 602 may be implemented as a digital counter.
[0056] Memory 606 (e.g., RAM) is a type of (e.g., volatile or non-volatile) memory that is aggregated for each of the histogram storage devices 518 associated with the SPAD array 104. In some embodiments, memory 606 may be physically distributed across the SPAD array 104. In other embodiments, memory 606 may be implemented in a physical location adjacent to the SPAD array 104, for example.
[0057] Binary to Gray converters 604 and 608 may be implemented in any manner known in the art. For example, Figure 7 A conventional implementation of a 4-bit binary to Gray converter is shown. In some embodiments, the binary to Gray converter 602 may be implemented internally to the address controller 602. In some embodiments, the binary to Gray converter 608 may be implemented internally to the processor 110.
[0058] Figure 8 FIG. 1 is a flow chart of an exemplary method for generating, storing and reading a ToF histogram using a Gray-coded time reference according to an exemplary embodiment of the present invention. Figure 8 As shown in , steps 806 , 808 , 810 , 812 , 814 , 816 , 818 , 820 , 822 , and 824 may be performed by each TDC and the corresponding histogram generation circuit.
[0059] During step 802, a light pulse 112 is emitted by the illumination source 106 (thereby marking the start of a transmission cycle), and the TDC(s) 102 and corresponding histogram generation circuit(s) 118 begin an integration process (in which activations of the SPADs are counted, e.g., for ToF determination).
[0060] During step 804, the Gray-coded time reference CLK is distributed across the TDC(s) associated with the SPAD array 104. address When SPAD activation is detected (during step 806), the Gray-coded time base CLK address The Gray code present at the time of activation is determined by the corresponding TDC (e.g. Figure 4 ) is latched (during step 808) and stored in a temporary memory (e.g., a temporary register) during step 810.
[0061] If it is determined during step 812 that it is not yet time to read the latched code (ie, if more SPAD events can be captured in the current transmit cycle), step 806 is performed next.
[0062] The determination of the readout time (during step 812) may be based on a predetermined pulse repetition time (PRT) (ie, based on a fixed time between emissions of light pulses 112). Thus, more than one SPAD activation may be captured in each emission of light pulses 112.
[0063] In some embodiments, the determination of the readout time (during step 812) may be asynchronous (e.g., when a predetermined number (such as 1 or 2) of SPAD activations are detected, then step 812 outputs "yes"). Therefore, in some embodiments, step 806 may be performed after 804, and step 812 need not be performed.
[0064] If it is determined during step 812 that it is time to read the latched code, then for each latched Gray code, the latched Gray code is read during step 814 (e.g., from temporary storage), after the Gray code is mapped to a bin address (e.g., a register address corresponding to the corresponding bin) during step 816, the contents of the bin register corresponding to the latched Gray code (the bin count) are read during step 818, the bin count is incremented, for example, by 1 during step 820, and the bin register is written back with the incremented count during step 822. As shown, steps 818, 820, and 822 are read, accumulated, and written back operations to the bin register (of the histogram storage device 518).
[0065] In some embodiments, the Gray code is directly mapped to the bin register address (i.e., the Gray code is the bin register address). In such embodiments, step 816 may be omitted. In embodiments where the Gray code is not directly mapped to the bin register address, a lookup table (LUT) may be used to perform the mapping. If a LUT is used, it may be implemented in any manner known in the art.
[0066] During step 824, it is determined whether the integration is complete. If the integration is not complete, a new light pulse 112 is emitted and step 804 is performed. If the integration is complete, then as described, for example, with respect to Figure 6 As described, reading out the content of the histogram storage device 518 is performed, for example, by the processor 110, and / or processing the histogram, for example for ToF determination.
[0067] Fig. 9 A schematic diagram of a circuit 900 for temporarily storing a latched Gray code (eg, during step 810 ) is shown in accordance with one embodiment of the present invention. The circuit 900 may be implemented within the TDC 102 , partially within the TDC 102 , or external to the TDC 102 .
[0068] As shown, circuit 900 is capable of storing 2 Gray coded addresses per transmit cycle. It should be understood that circuit 900 can be modified so that a different number of Gray coded addresses can be stored per transmit cycle, such as 1, 3, 4, or more.
[0069] During normal operation, e.g. Figure 4 As shown in steps 806, 806 and 810, upon activating input In 102 is included in the reference address CLK address The Gray-coded address in is latched into register 902, and the contents of register 902 are latched into register 904 (eg, in a shift register fashion).
[0070] Once it is determined that it is time to read the latched code (e.g., in step 812), the read circuit (such as in Fig.14 ) reads the contents of registers 902 and 904 (e.g., during step 814). After the contents of registers 902 and 904 are read, the contents of registers 902 and 904 may be reset before the next transmit cycle.
[0071] Registers 902 and 904 may be implemented in any manner known in the art. For example, in some embodiments, registers 902 (and 904) may be implemented using multiple latches and / or flip-flops. For example, in some embodiments, registers 902 (and 904) may be implemented using multiple single-ended or differential latches. In other embodiments, registers 902 and 904 include multiple flip-flops, such as D flip-flops, each of which includes a flip-flop such as Fig.10 The latch 1000 is a differential latch, where In 102 andIn 102 B formation and Fig. 9 The single-ended signal In shown in 102 The corresponding differential signal, CLK address and CLK address B form Fig. 9 The single-ended signal CLK shown in address In some embodiments, and for example, Fig.10 As shown in , an inverter can optionally be used to generate the input In 102 B.
[0072] like Fig. 9 As shown in , a single-ended implementation is also possible.
[0073] In some embodiments, using Fig.10 The differential latch shown in FIG. 1 is used to latch the Gray coded address, which advantageously helps to further reduce power consumption and / or increase the sampling rate.
[0074] In some embodiments, a flag may be used to signal that the temporary storage (e.g., registers 902 and 904) is full so that no more SPAD activations are latched. Fig.11 A schematic diagram of a circuit 1100 for temporarily storing a latched Gray code according to one embodiment of the present invention is shown.
[0075] Circuit 1100 operates in a similar manner to circuit 900. However, circuit 1100 uses flip-flops 1102 and 1104, respectively, to generate corresponding flags (FLAG MEM1 and FLAG MEM2 ) to indicate that the corresponding registers (902 and 904) have been latched. In some embodiments, once FLAG MEM2 When asserted (logical "1"), registers 902 and 904 may no longer be updated during the current transmit cycle (e.g., by preventing the clock inputs of registers 902 and 904 from toggling, e.g., by gating the clock inputs of registers 902, 904, 1102, and 1104 using AND gate 1106). The contents of flip-flops 1102 and 1104 may be reset (e.g., back to logical "0") prior to the next transmit cycle.
[0076] In some embodiments, a flag such as FLAG is used. MEM1 and FLAG MEM2 The flag can advantageously allow only the flag flip-flops (1102 and 1104) to be reset at the end of the transmit cycle, rather than resetting registers 902 and 904, which can reduce current consumption during the reset of the flip-flops.
[0077] In some embodiments, the input of flip-flop 1102 may be clocked (e.g., instead of being hard-coded to "logic 1", it may be based on a Fig.11 The dashed line in the figure shows the CLK address ). By using CLK address By gating the flip-flop 1102, some embodiments may allow for prevention of undesired code latching during portions of time (eg, such as during times when the corresponding SPAD is not fully enabled).
[0078] In some embodiments, additional intermediate storage devices may be used, such as Fig.12 As shown in Fig.12 As shown in FIG. 1 , circuit 1200 operates in a similar manner to circuit 900. However, circuit 1200 includes additional registers 1202 and 1204 that register the input signal S transfer When activated, registers 1202 and 1204 can latch the contents of registers 902 and 904, respectively. For example, when step 812 outputs "yes", signal S transfer In some embodiments, the use of intermediate memory (registers 1202 and 1204 ) advantageously allows circuit 1200 to continue capturing SPAD activations while executing steps 814 , 816 , 818 , 820 , and 822 .
[0079] It should be understood that circuits 1100 and 1200 may be combined, such as Fig.13 as shown in .
[0080] Fig.14 FIG. 1 is a schematic diagram of a readout circuit 1400 according to an embodiment of the present invention. Fig.14 As shown in , a multiplexer (MUX) 1402 is coupled to the outputs of registers 902 and 904.
[0081] During normal operation, controller 516 iterates (e.g., using signal LatchedCodeSelect) through each of the temporary registers (e.g., 902 and 904) to read their respective contents (e.g., during step 814). Controller 516 may then perform steps 816, 818, 820, 822, and 824.
[0082] In some embodiments, the SPADs of the SPAD array 104 are aligned with the Gray-coded timing reference CLK address is active before propagating across TDC 102. To address this situation, some embodiments set the reference address CLK address One bit (e.g., the MSB) of is dedicated to enabling write operations of TDC 102 (e.g., to enable latching of registers 902 and 904). In other embodiments, bin 0 (associated with Gray-coded reference address 0) is dedicated to initialization and is held until Gray-coded reference CLK address In yet another embodiment, the first X digits of the sequence of Gray-coded reference addresses are considered contaminated and are therefore skipped. In some embodiments, X may be a number greater than or equal to 1 and less than or equal to 32. A different number of skip bins may also be used.
[0083] Fig.15 A flow chart of an embodiment method 1500 for asynchronously generating a ToF histogram using a Gray-coded time reference according to one embodiment of the invention is shown. Steps 802, 804, 806, 808, 8-14, 816, 818, 820, and 822 may be performed in a similar manner as described with respect to method 800.
[0084] like Fig.15 As shown in FIG. 8 , after integration begins (in step 802) and the Gray-coded time reference is propagated across the TDCs (in step 804), for each TDC, when a SPAD event is detected (in step 806), the Gray-coded time reference is latched (in step 808) in, for example, register 902, and the following processes are performed asynchronously: reading the latched Gray code (814), mapping the Gray code to a bin address (step 816), and reading, accumulating, and writing back the bin counts (in steps 818, 820, and 822, respectively). During the time of performing steps 808, 814, 816, 818, 820, and 822, any new SPAD events that may occur can be ignored.
[0085] The method 1500 may be repeated for a plurality of emitted light pulses. Once the integration is complete (step not shown), the histogram generated by the method 1500 may be read or processed, for example, by the processor 110.
[0086] Fig.16 A schematic diagram of a circuit 1600 for asynchronously generating a ToF histogram using a Gray-coded time reference according to an embodiment of the present invention is shown. The operation of the circuit 1600 may be understood, for example, in terms of the method 1500 .
[0087] During normal operation, the In 102 When (for example, when In 102 When the reference address CLK changes from low to high, a SPAD event is detected (in step 806). address In 102 The code having when is asserted is latched into register 902 (in step 808). Then, controller 516 asynchronously determines that a SPAD event has occurred (e.g., by sensing input In 102 , by detecting a change in register 902, or in any other manner), and reading the latched code from register 902 (in step 814), mapping the Gray code to a bin address (in step 816), and performing read, accumulate, and write back operations on the corresponding bin address of the histogram storage device 518 (in steps 818, 820, and 822, respectively).
[0088] Example embodiments of the invention are summarized here. Other embodiments may also be understood from the entire specification and claims submitted herein.
[0089] Example 1. A method comprising: providing a Gray-coded time reference to a time-to-digital converter (TDC); receiving an event from an event signal; latching the Gray-coded time reference into a memory when the event signal is received; and updating a time-of-flight (ToF) histogram based on the latched Gray-coded time reference.
[0090] Example 2. The method of example 1, wherein providing the Gray coded time reference comprises propagating the Gray coded time reference across a single photon avalanche diode (SPAD) array.
[0091] Example 3. The method of one of Examples 1 or 2, further comprising generating the Gray coded time reference by converting a binary coded time reference to the Gray coded time reference using a binary to Gray code converter.
[0092] Example 4. The method of any one of Examples 1 to 3, wherein receiving the event signal comprises receiving a single photon avalanche diode (SPAD) activation signal from a SPAD coupled to an input of the TDC.
[0093] Example 5. The method of any of Examples 1 to 4, wherein the SPAD is coupled to the input of the TDC via an OR tree.
[0094] Example 6. The method of any one of Examples 1 to 5, wherein the memory comprises a register.
[0095] Example 7. The method of any one of Examples 1 to 6, wherein the register comprises a plurality of differential latches.
[0096] Example 8. A method according to one of Examples 1 to 7, wherein updating the ToF histogram includes: reading a bin count from a bin register of a histogram storage device, wherein the bin register corresponds to a time reference of the latched Gray code; incrementing the bin count by 1; and writing the incremented bin count to the bin register.
[0097] Example 9. The method of any one of Examples 1 to 8, wherein the address of the bin register is a time reference of the latched Gray code.
[0098] Example 10. The method according to one of Examples 1 to 9 further includes reading the ToF histogram by: generating a sequence of binary-coded addresses; converting the sequence of binary-coded addresses into a sequence of Gray-coded addresses; and sequentially reading registers of a histogram storage device based on the sequence of Gray-coded addresses, wherein the histogram storage device stores the ToF histogram.
[0099] Example 11. The method of any one of Examples 1 to 10, wherein receiving the event comprises detecting a transition of the event signal from a logic 0 to a logic 1.
[0100] Example 12. The method of any of Examples 1 to 11, further comprising enabling the TDC based on bits of the Gray-coded time reference.
[0101] Example 13. The method of any one of Examples 1 to 12, wherein updating the ToF histogram comprises: asynchronously updating the ToF histogram upon receiving the event.
[0102] Example 14. A circuit comprising: a first input configured to receive an event; a second input configured to receive a Gray-coded time reference; a first register configured to latch the Gray-coded time reference upon receiving the event; and a histogram generation circuit configured to update a bin register of a histogram storage device, the bin register having an address based on the contents of the first register.
[0103] Example 15. The circuit of Example 14, further comprising a single photon avalanche diode (SPAD) coupled to the first input.
[0104] Example 16. The circuit of one of Examples 14 or 15, further comprising an OR tree coupled between the SPAD and the first input.
[0105] Example 17. The circuit of any one of Examples 14 to 16, wherein the histogram generation circuit is configured to update the bin register by: reading a bin count from the bin register; incrementing the bin count; and writing to the bin register with the incremented bin count.
[0106] Example 18. The circuit of one of Examples 14 to 17, wherein the first register comprises a plurality of flip-flops, wherein each flip-flop of the plurality of flip-flops comprises a differential latch.
[0107] Example 19. The circuit of any one of Examples 14 to 18, further comprising a second register configured to latch the content of the first register upon receiving the event.
[0108] Example 20. The circuit of one of Examples 14 to 19 further includes: a first trigger configured to latch a first value when the event is received; and a second trigger having an input coupled to the output of the first trigger so that when a second event is received at the first input, the first trigger and the second trigger have latched contents equal to the first value.
[0109] Example 21. The circuit of one of Examples 14 to 20, further comprising: an address controller configured to generate a binary-coded time reference; and a binary-to-Gray converter configured to generate the Gray-coded time reference based on the binary-coded time reference.
[0110] Example 22. The circuit of one of Examples 14 to 21, wherein the histogram generation circuit is configured to asynchronously update the bin register of the histogram storage device when the first input receives the event.
[0111] Example 23. A time-of-flight (ToF) system comprising: an illumination source configured to emit light pulses; a single photon avalanche diode (SPAD) array; a plurality of time-to-digital converters (TDCs) coupled to the SPAD array; and a plurality of histogram generation circuits, wherein each of the plurality of histogram generation circuits is coupled to a corresponding TDC in the plurality of TDCs, wherein each TDC comprises: a first input coupled to a corresponding SPAD of the SPAD array, a second input configured to receive a Gray-coded time reference, and a first register configured to: latch the Gray-coded time reference when the corresponding SPAD is activated, and wherein each of the plurality of histogram generation circuits is configured to: update a corresponding bin register of a corresponding histogram storage device, the corresponding bin register having an address based on the contents of the corresponding first register.
[0112] Example 24. The ToF system of Example 23, wherein each histogram generation circuit is configured to asynchronously update the corresponding bin register when the corresponding SPAD is activated.
[0113] Although the present invention has been described with reference to illustrative embodiments, this description is not intended to be interpreted in a limiting sense. Various modifications and combinations of the illustrative embodiments and other embodiments of the present invention will be apparent to those skilled in the art by reference to the specification. Therefore, it is intended that the appended claims cover any such modifications or embodiments.
Claims
1. A method for generating a ToF histogram in a time-of-flight (ToF) imaging system, comprising: Provides a Gray-coded time reference to the time-to-digital converter TDC; receiving, by the TDC, a single photon avalanche diode (SPAD) activation event from an event signal; Upon receiving the event signal, the TDC latches the Gray-coded time reference into a memory; as well as A bin register of a histogram storage device storing the ToF histogram is updated, the bin register having an address based on a time reference of the latched Gray code.
2. The method of claim 1 , wherein providing the Gray-coded time reference comprises: The Gray-coded time reference is propagated across an array of single-photon avalanche diodes (SPADs).
3. The method according to claim 1, further comprising: The Gray coded time reference is generated by converting a binary coded time reference to the Gray coded time reference using a binary to Gray code converter.
4. The method of claim 1 , wherein receiving the event signal comprises: A single photon avalanche diode (SPAD) activation signal is received from a SPAD coupled to an input of the TDC. The method of claim 4 , wherein the SPAD is coupled to the input of the TDC via an OR tree. The method of claim 1 , wherein the memory comprises a register. The method of claim 6 , wherein the register comprises a plurality of differential latches.
8. The method of claim 1 , wherein updating the ToF histogram comprises: reading a bin count from a bin register of a histogram storage device, wherein the bin register corresponds to the latched time reference of the Gray code; Increment the bin count by 1; as well as The incremented bin count is written to the bin register.
9. The method of claim 8, wherein the address of the bin register is a time reference of the latched Gray code.
10. The method according to claim 1, further comprising: The ToF histogram is read as follows: generating a sequence of binary-encoded addresses; converting the sequence of binary-coded addresses into a sequence of Gray-coded addresses; as well as Based on the sequence of the Gray-coded addresses, registers of a histogram storage device are sequentially read, wherein the histogram storage device stores the ToF histogram.
11. The method of claim 1 , wherein receiving the event comprises: A transition of the event signal from logic 0 to logic 1 is detected.
12. The method according to claim 1, further comprising: The TDC is enabled based on bits of the Gray-coded time reference.
13. The method of claim 1 , wherein updating the ToF histogram comprises: Upon receipt of the event, the ToF histogram is updated asynchronously.
14. A circuit for generating a ToF histogram of a time-of-flight (ToF) imaging system, comprising: A first input configured to receive a single photon avalanche diode (SPAD) activation event; a second input configured to receive a Gray-coded time reference; a first register configured to latch the Gray coded time reference upon receipt of the event; as well as The histogram generation circuit is configured to update a bin register of the histogram storage device, the bin register having an address based on the content of the first register.
15. The circuit of claim 14, further comprising a single photon avalanche diode (SPAD) coupled to the first input.
16. The circuit of claim 15, further comprising an OR tree coupled between the SPAD and the first input.
17. The circuit of claim 14 , wherein the histogram generation circuit is configured to update the bin register by: Read the bin count from the bin register; Incrementing the bin count; and The bin register is written with the incremented bin count.
18. The circuit of claim 14, wherein the first register comprises a plurality of flip-flops, wherein each flip-flop of the plurality of flip-flops comprises a differential latch.
19. The circuit of claim 14, further comprising a second register configured to latch the content of the first register upon receipt of the event.
20. The circuit of claim 19, further comprising: a first flip-flop configured to latch a first value upon receipt of the event; as well as A second flip-flop has an input coupled to the output of the first flip-flop such that upon receipt of a second event at the first input, the first flip-flop and the second flip-flop have latched contents equal to the first value.
21. The circuit of claim 14, further comprising: an address controller configured to generate a binary-coded time base; as well as A binary to Gray converter is configured to generate the Gray coded time reference based on the binary coded time reference.
22. The circuit of claim 14, wherein the histogram generation circuit is configured to asynchronously update the bin register of the histogram storage device when the first input receives the event.
23. A time-of-flight (ToF) system, comprising: an illumination source configured to emit light pulses; Single-photon avalanche diode (SPAD) arrays; a plurality of time-to-digital converters (TDCs) coupled to the SPAD array; as well as a plurality of histogram generation circuits, wherein each histogram generation circuit of the plurality of histogram generation circuits is coupled to a corresponding TDC of the plurality of TDCs, wherein each TDC comprises: a first input coupled to a corresponding SPAD in the SPAD array, a second input configured to receive a Gray-coded time reference, and a first register configured to latch a time reference of the Gray code upon activation of the corresponding SPAD, and wherein each of the plurality of histogram generation circuits is configured to update a corresponding bin register of a corresponding histogram storage device, the corresponding bin register having an address based on the contents of the corresponding first register. 24 . The ToF system of claim 23 , wherein each histogram generation circuit is configured to asynchronously update the corresponding bin register upon activation of the corresponding SPAD.
Citation Information
Patent Citations
Histogram readout method and circuit for determining time of flight of photon
CN110073244A
Photon sensor apparatus
CN110312945A
LIDAR System Comprising Large Area Micro-Channel Plate Focal Plane Array
US20120170029A1
Time to digital converter and applications thereof
US20150041625A1
Accurate photo detector measurements for lidar
US20190056497A1
