Sensing, storing and computing integrated macro-cell circuit, sensing, storing and computing integrated macro-cell system and analog-digital conversion method

By using the tag module and the digital memory and calculation unit to compare analog signals in the sensing memory and calculation integrated macro unit circuit, the area and energy consumption problems of ADC chips in traditional technology are solved, and efficient analog to digital signals are achieved. Convert.

CN119441134AActive Publication Date: 2025-02-14BEIJING PIXELCORE TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411769901.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-02-14
Estimated Expiration
2044-12-04

AI Technical Summary

Technical Problem

When converting analog signals into digital signals, traditional image sensors require special ADC chips or circuits, resulting in increased chip area, increased energy consumption and data processing delays, and pixel-level ADCs require advanced process.

Method used

By using the tag module and the digital memory cell in the sensing memory integrated macro unit circuit, the traversal comparison between the analog signal and the reference analog signal is realized, and a digital signal is generated based on the comparison results, without the need for a dedicated ADC circuit.

Benefits of technology

It realizes parallel conversion of analog domain to digital domain signals without adding special conversion circuits, which improves efficiency and bandwidth, and is suitable for visual signal processing and conversion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441134A_ABST
    Figure CN119441134A_ABST
Patent Text Reader

Abstract

The invention discloses a sensing, storing and computing integrated macro-cell circuit, a sensing, storing and computing integrated macro-cell system and an analog-to-digital conversion method. The method comprises the following steps: a tag module reads an analog signal from an iSC bus; the label module carries out traversal comparison on the read analog signal and a plurality of reference analog signals; obtaining a corresponding digital signal according to a comparison result; the plurality of reference analog signals are data which are gradually increased or decreased along with the function relationship. According to the method, a special ADC (Analog to Digital Converter) circuit is not needed, and the conversion function is realized by utilizing the existing PE circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic circuits and signal processing, and in particular to a sensing-storage-computing integrated macro unit circuit, system and analog-to-digital conversion method. Background Art

[0002] With the development of the industrial Internet, higher requirements are placed on video acquisition and processing technologies. In traditional visual application systems, image sensors collect image information, convert optical signals into electrical signals, and convert them into digital signals after digital-to-analog conversion. The image data is then processed by the image signal processing unit and finally output to the processor in the system through a special video interface. The processor then performs data analysis and makes corresponding controls and operations.

[0003] In applications such as image processing and laser ranging, Figure 1 As shown, the sensing, storage and computing integrated chip realizes efficient and low-power data processing by integrating sensing, storage and computing functions. Among them, in the middle is the processing macro unit (PE) 1 array, which is closely arranged together in the form of an array of PEs, such as a 1024*1024 scale. Because each PE includes a sensing, storage and computing basic unit, all PEs in the PE array can process the data in each unit in parallel at the same time. This method is also often called single instruction multiple data mode, namely SIMD, which is more common in GPUs. Row control modules 5 and column control modules 6 are designed in the horizontal and vertical directions of the PE array respectively. The row control module 5 is used to select rows and perform related control on the PE array. The corresponding column mode control module is used to select columns and perform related control on the PE array, as well as data readout selection. The periphery of the PE array also includes a peripheral digital module 4, an INS bus 41, a peripheral analog module 3, and an interface module 7.

[0004] like Figure 2 As shown, the PE unit includes a sensing unit (SU), an analog signal operator operation unit (AOP), an analog storage unit (AREG Bank), a digital storage unit (DREG bank), a tag module (TAG), and an adjacent PE communication unit (AdjacentIF). The analog storage unit includes several analog signal memories AREG0, AREG1..., and the analog signal memory itself is also an operation unit. Similarly, the digital storage unit includes several digital signal memories DREG0, DREG1..., and the digital signal memory can perform logical operations in addition to storing digital signals. The output of the tag unit is used as a judgment signal to control whether the current PE executes the current SIMD instruction.

[0005] To convert conventional analog signals to digital signals, a special ADC chip or ADC circuit is needed to realize the conversion. For traditional image sensors, from the early single ADC to the column-level ADC, and then to the latest pixel-level ADC design, the chip area and the energy consumption required for conversion will increase, and the pixel-level ADC requires more advanced process technology, such as stacking process. Because of the ADC design size limitation and the ADC frequency characteristic requirements, the traditional data handling process results in high processing delay and high power consumption.

[0006] Especially for the memory and computing chip, the analog memory and computing units and digital memory and computing units in PE face great problems when the signals interact or flow in the analog and digital domains. Either the ADC circuit is designed in PE, but it brings problems of circuit area and power consumption. Or the serial conversion is carried out through a single ADC circuit, which brings efficiency problems, data flow delay and power consumption problems. Summary of the invention

[0007] The present invention proposes a sensing, storage and computing integrated macro unit circuit, system and data processing method, which can realize the conversion function through special modules and PE mode control.

[0008] The present invention provides an analog-to-digital conversion method for a sensing-storage-computing integrated macro unit circuit, comprising the steps of:

[0009] The tag module reads the analog signal from the iSC bus;

[0010] The tag module compares the read analog signal with several reference analog signals;

[0011] Obtaining a corresponding digital signal according to the comparison result;

[0012] The plurality of reference analog signals are data that gradually increase or decrease along a functional relationship.

[0013] Optionally, the reference analog signal gradually increases or decreases with the number of times according to a linear function, exponential function, logarithmic function, power function or trigonometric function relationship.

[0014] Optionally, the analog signal gradually increases or decreases with the number of times according to a linear function, exponential function, logarithmic function, power function or trigonometric function relationship.

[0015] Optionally, the encoding rule of the digital signal is standard binary code, Gray code, Hamming code or Huffman code.

[0016] Optionally, obtaining a corresponding digital signal according to the comparison result further includes the steps of:

[0017] The initialization value of the digital storage unit is 0;

[0018] When the comparison result of the tag module is that the analog signal is less than the reference analog signal, the digital signal stored in the digital storage unit changes a value according to the encoding rule each time the comparison is performed until the analog signal is greater than or equal to the reference analog signal, and the digital storage unit outputs the stored digital signal.

[0019] Optionally, the method further includes the step of: the label module determining whether the current sensing, storage and computing integrated macro unit circuit executes the instruction sent by the INS bus based on the stored identification data.

[0020] Optionally, the step is also included: in the digital-to-analog conversion mode, the label module is composed of a comparator circuit and a latch circuit, the comparator circuit is used to compare the analog signal with a number of reference analog signals, and the latch is used to store the comparison result, when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current INS instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current INS instruction.

[0021] Optionally, in the non-digital-to-analog conversion mode, the comparator also compares the identification data and the input reference signal, and then stores the output result of the comparator in a subsequent latch; when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current INS instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current INS instruction.

[0022] Optionally, the digital signal is a 3-bit binary signal.

[0023] Optionally, the step is also included: a DAC unit outside the sensing-storage-computing integrated macro unit circuit sends a reference analog signal.

[0024] The present invention also provides a sensing-storage-computing integrated macro unit circuit, comprising:

[0025] iSC bus is used to connect various modules and transmit perception signals and operation signals between modules;

[0026] INS bus, used to connect various modules;

[0027] A digital storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes digital signals;

[0028] An analog storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes analog signals;

[0029] The tag module is used to read the analog signal from the iSC bus; compare the read analog signal with several reference analog signals;

[0030] An output module, used for obtaining a digital signal according to the comparison result;

[0031] The first control module is used to provide reference analog signals to the tag module, wherein the reference analog signals are data that gradually increase or decrease along a functional relationship.

[0032] Optionally, the reference analog signal gradually increases or decreases with the number of times according to a linear function, exponential function, logarithmic function, power function or trigonometric function relationship.

[0033] Optionally, the encoding module is used to correspond the reference analog signal and the digital signal according to a certain encoding rule, and the encoding rule of the digital signal is standard binary code, Gray code, Hamming code or Huffman code.

[0034] Optionally, it further includes: a second control module, configured to initialize the digital storage unit to 0;

[0035] When the comparison result of the tag module is that the analog signal is less than the reference analog signal, the digital signal stored in the digital storage unit changes a value according to the encoding rule each time the comparison is performed until the analog signal is greater than or equal to the reference analog signal.

[0036] Optionally, the sensing unit, analog storage and computing unit, digital storage and computing unit, iSC bus, INS bus and tag module are integrated on the same chip.

[0037] Optionally, the label module determines whether the current sensing-storage-computing-in-one macro unit circuit executes instructions sent by the INS bus based on the stored identification data.

[0038] Optional: In the digital-to-analog conversion mode, the label module is composed of a comparator circuit and a latch circuit. The comparator circuit is used to compare the analog signal with several reference analog signals, and the latch is used to store the comparison result. When the comparison result stored in the label module is a first value, the corresponding processing unit executes the current INS instruction. When the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current INS instruction.

[0039] Optional: In the non-digital-to-analog conversion mode, the comparator also compares the identification data and the input reference signal, and then stores the output result of the comparator in the subsequent latch; when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current INS instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current INS instruction.

[0040] Optionally, the analog storage and computing unit includes multiple analog signal memories, which also serve as analog computing units. By connecting the multiple analog storage and computing units to the same iSC bus for read and write operations, analog signals can be directly added, subtracted, multiplied, and divided in the analog signal memories.

[0041] Optionally, the digital storage and computing unit includes a plurality of digital signal memories, and the digital signal memories have both storage and logical operation capabilities.

[0042] Optionally, a DREG BANK is provided in the digital storage and computing unit, and the DREG BANK includes multiple digital signal memories, and a digital read bus iSC RD DBUS and a digital write bus iSC WR DBUS, and the digital signal memory is a digital register DREG; multiple digital registers DREG are connected in parallel between the digital read bus iSC RD DBUS and the digital write bus iSC WR DBUS, wherein the input end IN of the digital register DREG is connected to the digital write bus iSC WR DBUS, and the output end OUT of the digital register DREG is connected to the digital read bus iSC RD DBUS, and a multiplexer MUX is also connected between the digital read bus iSC RDDBUS and the digital write bus iSC WR DBUS, and the digital read bus iSC RDDBUS of the digital register DREG is also connected to the iSC bus through a switch.

[0043] Optionally, the digital signal memory is implemented using 3T DRAM, or 6T DRAM, or SRAM.

[0044] Optionally, the digital signal memory is implemented using Flash, which further includes: multiple FLASH memories, and a read-write control circuit, a digital read bus iSC RD DBUS and a multiplexer MUX, wherein the input end IN of the FLASH memory is connected to the read-write control circuit, the output end of the FLASH is connected in parallel to the digital read bus iSC RD DBUS, and a multiplexer MUX is connected between the digital read bus iSC RD DBUS and the read-write control circuit.

[0045] The present invention also provides a sensing, storage and computing integrated macro unit system, comprising:

[0046] Multiple sensing, storage and computing integrated macro-unit circuits are arranged in an array structure, where:

[0047] The sensing, storage and computing integrated macro unit circuit includes:

[0048] iSC bus is used to connect various modules and transmit perception signals and operation signals between modules;

[0049] INS bus, used to connect various modules;

[0050] A digital storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes digital signals;

[0051] An analog storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes analog signals;

[0052] The tag module is used to read the analog signal from the iSC bus; compare the read analog signal with several reference analog signals;

[0053] An output module, used for obtaining a digital signal according to the comparison result;

[0054] The first control module is used to provide reference analog signals to the tag module. The reference analog signals are data that gradually increase or decrease with a functional relationship. The external DAC unit serves as the first control module.

[0055] Optionally, the sensing, storage and computing integrated macro unit circuit array is located on the same chip.

[0056] The external DAC is located on-chip or off-chip.

[0057] The present invention utilizes existing PE resources and realizes the principle of ADC through a control method, thereby realizing a parallel method of converting analog domain to digital domain signals, which is in line with the characteristics of the SIMD system chip of sensing, storage and computing, and realizes ADC conversion for the entire PE array at the same time, allowing barrier-free conversion of analog domain signals and digital domain signals.

[0058] The present invention utilizes existing components in PE, such as comparators, to convert analog signals such as Pixel signals and AREG current signals into digital signals, which are stored in DREG in PE. This method realizes a parallel analog domain to digital domain signal conversion method without adding special conversion circuits. This method does not require a dedicated ADC circuit, but utilizes the existing circuits of PE to realize the conversion function. This parallel conversion is equivalent to pixel-level or PE-level signal conversion, has high efficiency and high bandwidth, and is very suitable for visual signal processing and conversion. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0060] Figure 1 It is a schematic diagram of the architecture of a sensing, storage and computing integrated macro unit system;

[0061] Figure 2 It is a schematic diagram of the architecture of a sensing, storage and computing integrated macro unit circuit;

[0062] Figure 3 It is a schematic diagram of the DREG architecture of a sensing, storage and computing integrated macro unit circuit;

[0063] Figure 4 It is a schematic diagram of an SRAM circuit of a sensing, storage and computing integrated macro unit circuit;

[0064] Figure 5 It is a TAG circuit schematic diagram of a sensing, storage and computing integrated macro unit circuit;

[0065] Figure 6 It is a schematic diagram of an analog-to-digital conversion method of a sensing-storage-computing integrated macro unit circuit according to an embodiment of the present application;

[0066] Figure 7 This is a flow chart of an analog-to-digital conversion method of a sensing-storage-computing-in-one macro unit circuit according to an embodiment of the present application;

[0067] Figure 8 It is a schematic diagram of an analog-to-digital conversion method of a sensing-storage-computing integrated macro unit circuit according to another embodiment of the present application;

[0068] Fig. 9 It is a coding schematic diagram of an analog-to-digital conversion method of a sensing-storage-computing integrated macro unit circuit according to an embodiment of the present application;

[0069] Fig.10 It is a coding schematic diagram of the analog-to-digital conversion method of the sensing-storage-computing integrated macro unit circuit of another embodiment of the present application. DETAILED DESCRIPTION

[0070] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more explicit definition of the protection scope of the present invention. Obviously, the embodiments described in the present invention are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0071] In this application, the use of "or" means "and / or" unless otherwise stated. Furthermore, the use of the term "comprising" and other forms such as "including" and "comprising" are not limiting. In addition, unless specifically stated otherwise, terms such as "element" or "component" encompass both elements and components comprising one unit and elements and components comprising more than one unit.

[0072] The present invention provides a sensing-storage-computing integrated macro unit system, comprising a plurality of the sensing-storage-computing integrated macro unit circuits described above, wherein the plurality of sensing-storage-computing integrated macro unit circuits are arranged in an array structure;

[0073] The sensing, storage and computing integrated macro unit circuit includes:

[0074] iSC bus is used to connect various modules and transmit perception signals and operation signals between modules;

[0075] INS bus, used to connect various modules;

[0076] A digital storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes digital signals;

[0077] An analog storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes analog signals;

[0078] The tag module is used to read the analog signal from the iSC bus; compare the read analog signal with several reference analog signals;

[0079] An output module, used for obtaining a digital signal according to the comparison result;

[0080] The first control module is used to provide reference analog signals to the tag module. The reference analog signals are data that gradually increase or decrease with a functional relationship. The external DAC unit serves as the first control module.

[0081] In one embodiment, it further includes: a DAC unit arranged outside the array structure, and the external DAC unit serves as a first control module.

[0082] In one embodiment, the sensing, storage and computing integrated macro unit circuit array is located on the same chip, and the external DAC is located inside or outside the chip.

[0083] like Figure 1 As shown, in this embodiment, the sensing-storage-computing integrated macro unit system is specifically designed in a pixel-level sensing-storage-computing integrated chip, with a processing macro unit (PE) array in the middle, which is closely arranged together in the form of an array by PE1, for example, a scale of 1024*1024. The internal structure of PE is described in detail with reference to the specific sensing-storage-computing integrated macro unit circuit and the embodiments of the sensing-storage-computing integrated macro unit circuit later. Here, only the overall architecture of the sensing-storage integrated macro unit system is described.

[0084] Because each PE includes a basic sensing, storage and computing unit, all PEs in the PE array can process the data in each unit in parallel at the same time. This method is also often called single instruction multiple data mode, namely SIMD, which is more common in GPUs. Row control modules and column control modules are designed in the horizontal and vertical directions of the PE array respectively. The row control module is used to perform row selection and related control on the PE array, and the corresponding column mode control module is used to perform column selection and related control on the PE array, as well as data readout selection. Therefore, in addition to the PE array, the sensing and storage integrated circuit system also includes an analog-to-digital conversion unit (ADC) 2, a peripheral analog module 3, a peripheral digital module 4, a row control module 5, a column control module 6, an interface module 7, etc., and an INS bus 41 arranged on the periphery of the PE array.

[0085] In one embodiment, the sensing-storage-computing integrated macro unit system includes a plurality of sensing-storage-computing integrated macro unit circuits arranged in an array structure, and specifically may be a sensing-storage-computing integrated macro unit circuit of a distance measurement sensor, such as Figure 2 As shown, the PE unit includes a sensing unit SU, an analog signal operator operation unit AOP, an analog storage unit AREG bank, a digital storage unit DREGbank, a tag module TAG, an adjacent PE communication unit adjacent IF, an iSC bus, and an INS bus. The above units and modules are connected to the iSC bus and the INS bus. The iSC bus is used to transmit sensing signals and operation signals, and the sensing unit and the storage unit are both connected to the iSC bus; the INS bus is used to transmit instructions. The tag module is used to read the analog signal from the iSC bus; traverse and compare the read analog signal with a plurality of reference analog signals, and output the comparison result; the output module is used to output a digital signal according to the comparison result and the reference analog signal; the first control module is used to provide a reference analog signal to the tag module, and the plurality of reference analog signals are data that gradually increase or decrease with a functional relationship.

[0086] In one embodiment, the reference analog signal gradually increases or decreases with the number of times according to a linear function, an exponential function, a logarithmic function, a power function or a trigonometric function relationship.

[0087] In one embodiment, the encoding module is used to correspond the reference analog signal and the digital signal according to a certain encoding rule, and the encoding rule of the digital signal is standard binary code, Gray code, Hamming code or Huffman code.

[0088] In one embodiment, outputting a corresponding digital signal according to the comparison result and the reference analog signal further comprises the steps of:

[0089] The initialization value of the digital storage unit is 0;

[0090] When the comparison result of the tag module is that the analog signal is less than the reference analog signal, the digital signal stored in the digital storage unit changes a value according to the encoding rule each time the comparison is performed until the analog signal is greater than or equal to the reference analog signal, and the digital storage unit outputs the stored digital signal.

[0091] In one embodiment, the sensing unit, analog storage and computing unit, digital storage and computing unit, iSC bus, INS bus and tag module are integrated on the same chip.

[0092] In one embodiment, the analog storage and computing unit includes multiple analog signal memories, which also serve as analog computing units. By connecting the multiple analog storage and computing units to the same iSC bus for read and write operations, analog signals can be directly added, subtracted, multiplied, and divided in the analog signal memories.

[0093] In one embodiment, the digital storage and computing unit includes a plurality of digital signal memories, and the digital signal memories have both storage and logic operation capabilities.

[0094] In one embodiment, a DREG BANK is provided in the digital storage and computing unit, and the DREG BANK includes multiple digital signal memories, a digital read bus iSC RD data bus and a digital write bus iSC WR data bus, and the digital signal memory is a digital register DREG; multiple digital registers DREG are connected in parallel between the digital read bus iSC RD data bus and the digital write bus iSC WR data bus, wherein the input end IN of the digital register DREG is connected to the iSCWR data bus, and the output end OUT of the digital register DREG is connected to the iSC RD data bus, and a multiplexer MUX is also connected between the digital read bus iSCRD data bus and the digital write bus iSC WR data bus, and the digital read bus iSC RD data bus of the digital register DREG is also connected to the iSC bus through a switch.

[0095] In one embodiment, the digital signal memory is implemented using 3T DRAM, or 6T DRAM, or SRAM.

[0096] In one embodiment, the digital signal memory is implemented using Flash, which further includes: multiple FLASH memories, a read-write control circuit, a read data iSC RD data bus and a multiplexer MUX, wherein the input end IN of the FLASH memory is connected to the read-write control circuit, the output end of the FLASH is connected in parallel to the iSC RD data bus, and a multiplexer MUX is connected between the iSC RD data bus and the read-write control circuit.

[0097] In one embodiment, it also includes: identification data is stored in the label module, and whether the current sensing, storage and computing integrated macro unit circuit executes the instruction sent by the INS bus is determined based on the stored identification data.

[0098] In one embodiment, during operation, one or more digital register DREG signals read out from the digital read bus iSC RD data bus are written back to the digital write bus iSC WR data bus through the multiplexer MUX and then written into the corresponding one or more digital registers DREG to implement the operation.

[0099] In one embodiment, each label module corresponds to a processing unit, which is used to determine whether the current processing unit PE executes the current INS instruction based on the comparison result stored in the label module, that is, the identification data; when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current INS instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current INS instruction.

[0100] In one embodiment, the analog storage and calculation unit includes a number of analog signal memories AREG0, AREG1..., and the analog signal memory itself is also an operation unit. The signal can be added, subtracted, multiplied and divided through the analog memory. For example, 5 registers can be designed to meet basic calculation requirements. Similarly, the digital storage and calculation unit is provided with a DREG BANK, and the DREG BANK includes a plurality of digital signal memories, and the digital signal memory is a digital register DREG; a dedicated digital read bus iSC RD bus and a digital write bus iSC WR bus are designed in the DREGBANK, and multiple DREG read control signals RD are opened to the read bus at the same time, so as to realize the line and operation of storing digital signals. The digital read bus can pass the signal to the iSC bus through the selection tube for further operation. A multiplexer MUX is designed between the two buses to write the read signal of the read bus back to the write bus and then write it to the corresponding DREG. The written back signal can be the same as the original signal and can also be selected to be inverted and written back. This is the role of the multiplexer MUX, refer to Figure 3, multiple digital registers DREG0, DREG1, ... are connected in parallel between the digital read bus iSC RD DBUS and the digital write bus iSC WR DBUS. In addition to storing digital signals, the digital signal memory can also perform logical operations. Among them, the input terminal IN of the digital register DREG is connected to the iSC WRDBUS, the output terminal OUT of the digital register DREG is connected to the digital read bus iSC RD DBUS, and a multiplexer MUX is also connected between the digital read bus iSCRD DBUS and the digital write bus iSC WR DBUS. The digital read bus iSCRD DBUS of the digital register DREG is also connected to the iSC bus through a switch.

[0101] The digital signal memory is implemented by 3T DRAM, or 6T DRAM, or SRAM. 6T SRAM is used as the circuit for digital signal storage DREG in PE. Compared with the previous DRAM, the storage is more stable, but the unit size of DREG will be increased. Data is written through the MWR tube, WR is valid, IN inputs a valid signal, and the write operation is completed. Correspondingly, data is read out through the MRD tube, RD is valid, OUT outputs a valid signal, and the read operation is completed. In this embodiment, the specific RAM reference Figure 4 .

[0102] In one embodiment, in addition to performing conventional operations through analog registers, the analog signal operator operation unit AOP can independently design efficient special operators to implement special operations, such as square operations, log operations, square root operations, etc., according to the particularity of the application scenario.

[0103] During operation, one or more digital register DREG signals read out by the digital read bus iSC RD DBUS are written back to the digital write bus iSC WR DBUS through the multiplexer MUX and then written into the corresponding one or more digital registers DREG to implement the operation.

[0104] In one embodiment, the tag module determines whether the current sensing-storage-computing-in-one macro unit circuit executes the instruction sent by the INS bus based on the stored identification data.

[0105] In one embodiment, reference Figure 5 The tag unit includes a comparator for reading an analog signal from the iSC bus; traversing and comparing the read analog signal with a number of reference analog signals, and outputting a digital signal according to the comparison result.

[0106] In one embodiment, the output of the tag module is used as a judgment signal or an enable signal to control whether the current PE executes the global SIMD instruction. For a PE designed with a TAG module, when the TAG output state is "invalid", the current PE does not execute the current instruction. On the contrary, when the TAG output state is "valid", the current PE executes the current instruction. The signal affecting the TAG tag module comes from the operation process of the analog register, such as signal overflow after operation, and the numerical judgment of the digital signal "0" and "1", as well as other operation results. The TAG tag module is designed to consist of a comparator circuit and a latch circuit. The comparator circuit is used to compare the signal on the iSC bus with the reference input signal, and then the output result of the comparator is stored in the latch behind. The TAG tag module controls the PE internal perception unit, analog storage unit, digital storage unit, and adjacent PE communication module, and controls the read and write operations or working states of the above unit circuits through the enable circuit. The control range of the TAG tag module is only the current PE. The chip restores the TAG to its initial state through the global TAG reset signal.

[0107] In this embodiment, in the digital-to-analog conversion mode, the comparator circuit of the label module is used to compare the analog signal with a number of reference analog signals, and the latch is used to store the comparison result. When the comparison result stored in the label module is a first value, the corresponding processing unit executes the current instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current instruction.

[0108] In the non-digital-to-analog conversion mode, the comparator also compares the identification data and the input reference signal, and then stores the output result of the comparator in the subsequent latch; when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current instruction.

[0109] The PE also designs the communication interface between adjacent PEs. Figure 2 The adjacent PE communication unit (Adjacent IF) can provide the current PE with information about the eight PEs surrounding the current PE. The above module units are connected together through a specially designed sense-storage-computing bus iSC bus. The analog signal can be a voltage or a current signal. In addition to the iSC bus, a global instruction bus INS bus is also designed in the PE to perform overall operation control on each functional module in the PE. Because the INS bus of each PE is controlled by the same global signal, storage-computing integration (SIMD) is achieved in this way.

[0110] In one embodiment, the original signal may come from the SU unit, or be written into the PE from outside the chip, such as the IO access in the figure, or the signal of the adjacent PE, which is transmitted to the PE bus through the adjacent IF. The SU, IO or adjacent IF transmits the sensing signal to the analog register AREG BANK or the AOP unit through the iSC bus. The AREG can be stored and calculated. The specific implementation method is described in detail below. The analog signal is converted into a digital signal and then stored in the DREGBANK, which can be digitally calculated and stored. The calculation result can be stored in the AREG or DREG of the PE, and then output to the outside of the chip through the iSC bus or other buses and transmission lines to realize a certain type of application function.

[0111] In one embodiment, it further includes: a DAC unit arranged outside the array structure, and the external DAC unit serves as a first control module.

[0112] In one embodiment, the sensing, storage and computing integrated macro unit circuit array is located on the same chip, and the external DAC is located inside or outside the chip.

[0113] In one embodiment, the sensing, storage and computing integrated macro unit circuit also includes: a second control module, which is used to initialize the digital storage and computing unit to 0; when the comparison result of the label module is that the analog signal is less than the reference analog signal, the digital signal stored in the digital storage and computing unit changes a value according to the encoding rule for each comparison until the analog signal is greater than or equal to the reference analog signal, and the digital storage and computing unit obtains a digital signal.

[0114] The following is further explained in conjunction with the sensing, storage and computing integrated macro unit circuit and its analog-to-digital conversion method.

[0115] refer to Figure 6 In this embodiment, the analog-to-digital conversion method of the sensing-storage-computing integrated macro unit circuit includes the following steps:

[0116] The tag module reads the analog signal from the iSC bus;

[0117] The tag module compares the read analog signal with several reference analog signals;

[0118] Obtaining a corresponding digital signal according to the comparison result;

[0119] The plurality of reference analog signals are data that gradually increase or decrease along a functional relationship.

[0120] Among them, several reference analog signals are data that gradually increase or decrease along with a functional relationship.

[0121] In one embodiment, the reference analog signal gradually increases or decreases with the number according to a linear function, an exponential function, a logarithmic function, a power function or a trigonometric function relationship.

[0122] In one embodiment, the encoding rule of the digital signal is standard binary code, Gray code, Hamming code or Huffman code.

[0123] The present invention realizes the conversion from PE analog domain to digital domain, that is, converting the analog signal in PE into the corresponding digital signal. The following example converts the analog signal of AREG in PE, such as the current signal, into 3-bit precision. In actual use, 5-bit precision or even higher 8-bit digital signal can be used and stored in the digital memory DREG.

[0124] In this embodiment, the original signal can come from the SU unit, or be written into the PE outside the chip, or it can come from the analog register AREG BANK, or the AOP unit, and then sent to the iSC bus. The TAG unit receives the analog signal from the iSC bus, and thus can obtain the converted digital signal according to the size of the AREG analog current signal and the size of the voltage input at the negative input terminal, and then store it in the DREG BANK, and digital operations and storage can be performed. The operation result can be stored in the DREG of the PE, and then output to the outside of the chip through the iSC bus to realize a certain type of application function. In the analog-to-digital conversion step, the analog storage unit sends the analog signal to the iSC bus.

[0125] All the above data transmission and signal collection require INS command control. The INS bus connects the components in each PE. The INS can come from the system outside the chip, or it can be issued by the MCU module inside the chip, or the chip itself generates an INS for specific applications. The label module determines whether the current sensing, storage and computing macro unit circuit executes the instruction sent by the INS bus based on the stored identification data.

[0126] Specifically, in this embodiment, the storage current range of AREG is -8uA to 8uA, and the voltage output to the iSC bus will also change accordingly, from 0.2V to 0.9V.

[0127] Specifically, the output of the tag module is used as a judgment signal or an enable signal to control whether the current PE executes the global SIMD instruction. For a PE with a TAG module, when the TAG output status is "invalid", the current PE does not execute the current instruction. On the contrary, when the TAG output status is "valid", the current PE executes the current instruction. The signal that affects the TAG tag module comes from the operation process of the analog register, such as signal overflow after operation, digital signal "0" and "1" value judgment, and other operation results. The TAG tag module is designed by a comparator circuit such as Figure 5 As shown in the figure, the comparator circuit is used to compare the signal on the iSC bus with the reference input signal, and then the output result of the comparator is stored in the latch behind. TAG controls the internal sensing unit, analog storage unit, digital storage unit, and adjacent PE communication module of the PE, and controls the read and write operation or working status of the above unit circuits through the enabling circuit. The control range of the TAG tag module is only the current PE. The chip restores the TAG to its initial state through the global TAG reset signal.

[0128] In one embodiment, the step is further included: the tag module determines whether the current sensing-storage-computing-in-one macro unit circuit executes the instruction sent by the INS bus based on the stored identification data.

[0129] In one embodiment, the steps are further included: in the digital-to-analog conversion mode, the comparator circuit is used to compare the analog signal with a plurality of reference analog signals, the latch is used to store the comparison result, when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current instruction.

[0130] In one embodiment, the steps are further included: in a non-digital-to-analog conversion mode, the comparator also compares the identification data and the input reference signal, and then stores the output result of the comparator in a subsequent latch; when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current instruction.

[0131] The specific D / A conversion mode and non-D / A conversion mode can be selected by connecting a multi-way selection switch at the reference signal input terminal of the comparator, for example, selecting to input the reference analog signal in the D / A conversion mode, and selecting to input the comparison reference signal with the identification data in the non-D / A conversion mode. In addition, a multi-way selection switch can be set at the positive input terminal of the comparator to select to read the analog signal from the iSC bus in the corresponding mode.

[0132] Because the main circuit of the TAG module is the comparator circuit, the characteristics of the TAG comparator are used to realize the ADC function in the PE, that is, to realize the mutual conversion of analog domain signals in the PE to digital domain signals. Specifically, the iSC bus is connected to the positive end of the comparator in the TAG. The negative end of the comparator in the TAG inputs the reference analog signal.

[0133] Specifically, the AREG or SU can send an analog signal to the iSC bus. The TAG includes a comparator circuit inside to compare the magnitude of the analog signal obtained from the iSC and the reference analog signal. Figure 5As shown, the gate input voltage signal A of the MOS tube M171, the gate input voltage signal B of the MOS tube M172, and the drain of the MOS tube M172 are used as the output terminal. The comparator circuit is used to compare the sizes of the two signals. When A is smaller than B, the output of TAG will become 0, or the output terminal of the analog register AREG is input to the B terminal, and the reference analog signal voltage is input to the A terminal to determine whether the value of AREG exceeds the given reference analog signal voltage. If it exceeds, it becomes 0, and if it is lower than the threshold, it becomes 1.

[0134] For example, in this embodiment, the DAC unit outside the PE array is connected to the negative end of the comparator in the TAG to provide a reference analog signal. Figure 8 and Fig. 9 The DAC module on the chip can be used to generate a ramp step voltage and output it to the negative end of the comparator. The output range is equivalent to the signal range stored in AREG. The change of the ramp step output voltage is related to the quantization accuracy. For example, 3-bit quantization accuracy requires 8 step voltage values. This correspondence is a linear relationship. The size of the code is linearly related to the quantized voltage.

[0135] In this embodiment, the coding rule of the digital signal is a standard binary code, and in other embodiments, it can also be based on Gray code, Hamming code or Huffman code, etc., all of which are within the scope of protection of the present invention. The reference analog signal gradually increases or decreases with the number of times according to a linear function, exponential function, logarithmic function, power function or trigonometric function relationship. In another embodiment of this invention, another nonlinear quantization method is used to adjust the output characteristics of the DAC to make it nonlinear output, such as a LOG curve, and corresponding to a linear digital code, which can achieve a quantization conversion method with a higher dynamic range, especially data conversion for optical imaging.

[0136] In one embodiment, if Figure 7 As shown in the figure, the control process is controlled by instructions. The chip performs operations according to the instructions, and the entire PE array operates in SIMD mode. The specific operation process and steps of converting analog signals into digital signals are as follows:

[0137] S10: The TAG unit is reset and the TAG value becomes "0".

[0138] S20: DREGs is initialized to 0, and DREG1, DREG2, and DREG3 are stored as initial values, such as 000.

[0139] S30: The TAG unit compares the analog signal with the reference analog signal.

[0140] The TAG unit receives an analog signal from the iSC bus, and the external DAC provides an analog reference signal, such as 0.2V, to the TAG unit.

[0141] S40: assign a TAG value according to the comparison result; if the TAG unit comparison analog signal is smaller than the reference analog signal, TAG=0, and execute step S50.

[0142] Otherwise, TAG=1, and execute step S60.

[0143] S50: DREGs changes a value according to the coding rules, for example, adds 1, and the corresponding values ​​of the three bits DREG1, DREG2, and DREG3 change, and the external DAC provides an analog reference signal to the TAG unit that increases by a fixed value, for example, 0.1v, and the reference analog signal increases to 0.3v, and returns to execute step S30.

[0144] S60: DREGs are locked and a digital-to-analog conversion is completed.

[0145] Therefore, in steps S30 and S40, the loop is continued until one digital-to-analog conversion is completed.

[0146] The specific corresponding relationships are as follows:

[0147] If the analog signal is less than 0.2V, DREGs is set to 000;

[0148] When the analog signal is between 0.2V and 0.3V, DREG is set to 001;

[0149] When the analog signal is between 0.3V-0.3V, DREG is set to 010;

[0150] When the analog signal is between 0.4V and 0.5V, DREG is set to 011;

[0151] When the analog signal is between 0.5V and 0.6V, DREG is set to 100;

[0152] When the analog signal is between 0.6V and 0.7V, DREG is set to 101;

[0153] When the analog signal is between 0.7V and 0.8V, DREG is set to 110;

[0154] When the analog signal is between 0.8V and 0.9V, DREG is set to 111;

[0155] The counter function is realized by controlling multiple DREGs through global instructions. For example, 3-bit precision conversion requires 3 DREGs, DREG0 / DREG1 / DREG2. Let DREG0 / DREG1 / DREG2 change from "000" to "111". At the same time, each time the value changes, the negative input of the comparator corresponds to the voltage. When the voltage of the negative input of the comparator is equivalent to or greater than the iSC bus voltage, the comparator output in TAG changes from 0 to 1, and the TAG value becomes 1. At this time, the current PE will not respond to the global instruction, and the value in DREG0 / DREG1 / DREG2 will not be output. The current value is locked and no longer changes with INS control. The value at this time corresponds to the size of the analog signal. DREG locks the current value and no longer responds to the global DREG operation, that is, a digital-to-analog conversion is completed.

[0156] In another embodiment, as shown in the figure, the reference analog signal may be gradually increased with the number of times according to a logarithmic function relationship.

[0157] In another embodiment, reference Fig.10 , the encoding rule of digital signals is to use Gray code. Gray code can improve quantization efficiency, because the change between natural number sequences involves multiple bits changing at the same time, which requires multiple instructions to achieve the corresponding value change. If Gray code is used, only one bit needs to change between each number, that is, only one instruction is needed to achieve the change of the corresponding value sequence. Figure 3 The bit sequence and 4-bit value sequence change.

[0158] The specific corresponding relationships are as follows:

[0159] If the analog signal is less than 0.2V, DREG is set to 000;

[0160] When the analog signal is between 0.2V and 0.3V, DREG is set to 001;

[0161] When the analog signal is between 0.3V-0.3V, DREG is set to 011;

[0162] When the analog signal is between 0.4V and 0.5V, DREG is set to 010;

[0163] When the analog signal is between 0.5V and 0.6V, DREG is set to 110;

[0164] When the analog signal is between 0.6V and 0.7V, DREG is set to 111;

[0165] When the analog signal is between 0.7V and 0.8V, DREG is set to 101;

[0166] When the analog signal is between 0.8V and 0.9V, DREG is set to 100.

[0167] In another embodiment, 4-bit encoding may be used, that is, the accuracy of DREG is 4 bits.

[0168] The specific corresponding relationships are as follows:

[0169] If the analog signal is less than 0.2V, DREG is set to 0000;

[0170] When the analog signal is between 0.2V and 0.25V, DREG is set to 0001;

[0171] When the analog signal is between 0.25V and 0.3V, DREG is set to 0011;

[0172] When the analog signal is between 0.3V and 0.35V, DREG is set to 0010;

[0173] When the analog signal is between 0.35V and 0.4V, DREG is set to 0110;

[0174] When the analog signal is between 0.4V and 0.45V, DREG is set to 0111;

[0175] When the analog signal is between 0.45V and 0.5V, DREG is set to 0101;

[0176] When the analog signal is between 0.5V and 0.55V, DREG is set to 0100;

[0177] When the analog signal is between 0.55V and 0.6V, DREG is set to 1100;

[0178] When the analog signal is between 0.6V and 0.65V, DREG is set to 1101;

[0179] When the analog signal is between 0.65V and 0.7V, DREG is set to 1111;

[0180] When the analog signal is between 0.7V and 0.75V, DREG is set to 1010;

[0181] When the analog signal is between 0.75V and 0.8V, DREG is set to 1011;

[0182] When the analog signal is between 0.8V and 0.85V, DREG is set to 1001;

[0183] The analog signal is between 0.85V-0.9V, and DREG is set to 1000.

[0184] To convert conventional analog signals to digital signals, a special ADC chip or ADC circuit is needed to realize the conversion. For traditional image sensors, the early single ADC has developed to column-level ADC, and then to the latest pixel-level ADC design, but this requires advanced process requirements. Because of the ADC design size limitation and ADC frequency characteristic requirements, the traditional data handling process results in high processing delay and high power consumption.

[0185] Especially for the sensing storage chip, there are analog signal operation and storage units and digital signal operation and storage units in the PE. When the signal interacts or flows in the analog domain and the digital domain, it faces great problems. Either the ADC circuit is designed in the PE, but it brings problems of circuit area and power consumption. Or a single ADC circuit is used for serial conversion, which brings efficiency problems, data flow delay, and power consumption problems.

[0186] The present invention utilizes the quantized digital signal and stores it in DREGs, which can be used for digital domain calculations or as the final calculation result. The present invention provides a method for parallelizing analog domain to digital domain signal conversion in PE. This method does not require a dedicated ADC circuit, but uses the existing circuit of PE to realize the conversion function. This parallel conversion is equivalent to pixel-level or PE-level signal conversion, with high efficiency and high bandwidth, and is very suitable for visual signal processing and conversion. Output to the digital system of the chip post-stage, such as MCU.

[0187] By utilizing existing components in PE, such as comparators, analog signals such as Pixel signals and AREG current signals are converted into digital signals and stored in DREG in PE. This method realizes parallel analog domain to digital domain signal conversion without adding special conversion circuits. This method does not require a dedicated ADC circuit and utilizes the existing circuits of PE to realize the conversion function. This parallel conversion is equivalent to pixel-level signal conversion, with high efficiency and high bandwidth, and is very suitable for visual signal processing and conversion.

[0188] In line with the SIMD execution mode of the memory computing chip, this conversion method only circulates in the PE and does not need to be transmitted outside the PE. This reduces the flow of data and greatly reduces the delay and power consumption caused by data transportation.

[0189] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0190] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner.

[0191] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0192] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or through other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a machine (e.g., computer) readable form.

[0193] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0194] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0195] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0196] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. An analog-to-digital conversion method for a sensing-storage-computing integrated macro unit circuit, characterized in that: Includes steps: The tag module reads the analog signal from the iSC bus; The tag module compares the read analog signal with several reference analog signals; According to the comparison result, a corresponding digital signal is obtained; The plurality of reference analog signals are data that gradually increase or decrease along a functional relationship.

2. The analog-to-digital conversion method of the sensing-storage-computing-in-one macro-unit circuit according to claim 1, characterized in that: The reference analog signal gradually increases or decreases with the number according to a linear function, exponential function, logarithmic function, power function or trigonometric function relationship.

3. The analog-to-digital conversion method of the sensing-storage-computing-in-one macro-unit circuit according to claim 1, characterized in that: The encoding rules of digital signals are standard binary code, Gray code, Hamming code or Huffman code.

4. The analog-to-digital conversion method of the sensing-storage-computing-in-one macro-unit circuit according to claim 3, characterized in that: Obtaining the corresponding digital signal according to the comparison result also includes the steps of: The initialization value of the digital storage unit is 0; When the comparison result of the tag module is that the analog signal is less than the reference analog signal, the digital signal stored in the digital storage unit changes a value according to the encoding rules each time the comparison is performed until the analog signal is greater than or equal to the reference analog signal. The tag state changes and the digital signal in the digital storage unit is locked at the same time.

5. The analog-to-digital conversion method of the sensing-storage-computing-in-one macro-unit circuit according to claim 1, characterized in that: It also includes the step of: the label module determines whether the current sensing, storage and computing integrated macro unit circuit executes the instruction sent by the INS bus based on the stored identification data.

6. The analog-to-digital conversion method of the sensing-storage-computing-in-one macro-unit circuit according to claim 5, characterized in that: It also includes the following steps: the label module is composed of a comparator circuit and a latch circuit; in the digital-to-analog conversion mode, the comparator circuit is used to compare the analog signal with a plurality of reference analog signals; the latch is used to store the comparison result; when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current instruction; and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current instruction.

7. The analog-to-digital conversion method of the sensing-storage-computing-in-one macro-unit circuit according to claim 6, characterized in that: In the non-digital-to-analog conversion mode, the comparator also compares the identification data and the input reference signal, and then stores the output result of the comparator in the subsequent latch; when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current instruction.

8. The analog-to-digital conversion method of the sensing-storage-computing-in-one macro-unit circuit according to claim 4, characterized in that: The digital signal is a 3-bit binary signal.

9. The analog-to-digital conversion method of the sensing-storage-computing-in-one macro-unit circuit according to claim 1, characterized in that: It also includes the step of: a DAC unit outside the sensing-storage-computing integrated macro unit circuit sends a reference analog signal.

10. A sensing-storage-computing integrated macro unit circuit, characterized in that: include: iSC bus is used to connect various modules and transmit sensing signals and operation signals between modules; INS bus is used to connect various modules; A digital storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes digital signals; An analog storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes analog signals; The tag module is used to read the analog signal from the iSC bus; compare the read analog signal with several reference analog signals; An output module, used for obtaining a digital signal according to the comparison result; The first control module is used to provide reference analog signals to the tag module, wherein the reference analog signals are data that gradually increase or decrease along a functional relationship.

11. The sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: The reference analog signal gradually increases or decreases with the number of times according to a linear function, exponential function, logarithmic function, power function or trigonometric function relationship.

12. The sensing-storage-computing-in-one macro unit circuit according to claim 10, characterized in that: The encoding module is used to correspond the reference analog signal and the digital signal according to a certain encoding rule. The encoding rule of the digital signal is standard binary code, Gray code, Hamming code or Huffman code.

13. The sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: Also includes: The second control module is used to initialize the value of the digital storage unit to 0; when the comparison result of the label module is that the analog signal is less than the reference analog signal, the digital signal stored in the digital storage unit changes a value according to the encoding rule each time the comparison is performed until the analog signal is greater than or equal to the reference analog signal.

14. The sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: The analog storage and calculation unit, the digital storage and calculation unit, the iSC bus, the INS bus and the tag module are integrated on the same chip.

15. The sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: The tag module determines whether the current sensing-storage-computing-in-one macro unit circuit executes the instruction sent by the INS bus based on the stored identification data.

16. The sensing-storage-computing-in-one macro-unit circuit according to claim 15, characterized in that: The label module is composed of a comparator circuit and a latch circuit. In the digital-to-analog conversion mode, the comparator circuit is used to compare the analog signal with several reference analog signals, and the latch is used to store the comparison result. When the comparison result stored in the label module is a first value, the corresponding processing unit executes the current INS instruction. When the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current INS instruction.

17. The sensing-storage-computing-in-one macro-unit circuit according to claim 16, characterized in that: In the non-digital-to-analog conversion mode, the comparator also compares the identification data and the input reference signal, and then stores the output result of the comparator in the subsequent latch; when the comparison result stored in the label module is a first value, the corresponding processing unit executes the current INS instruction, and when the comparison result stored in the label module is a second value, the corresponding processing unit does not execute the current INS instruction.

18. A sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: The analog storage and calculation unit includes multiple analog signal memories, which also serve as analog calculation units. By connecting the multiple analog storage and calculation units to the same iSC bus for read and write operations, analog signals can be directly added, subtracted, multiplied, and divided in the analog signal memories.

19. The sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: The digital storage and calculation unit includes a plurality of digital signal memories, and the digital signal memories have both storage and logic operation capabilities.

20. The sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: The digital storage and calculation unit is provided with a DREG BANK, the DREG BANK includes a plurality of digital signal memories, a digital read bus iSCRDDBUS and a digital write bus iSC WR DBUS, the digital signal memory is a digital register DREG; A plurality of digital registers DREG are connected in parallel between the digital read bus iSC RD DBUS and the digital write bus iSC WR DBUS, wherein the input terminal IN of the digital register DREG is connected to the iSC WR DBUS, and the output terminal OUT of the digital register DREG is connected to the data read bus iSC RD DBUS. A multiplexer MUX is also connected between the digital read bus iSC RD DBUS and the digital write bus iSC WR DBUS, and the digital read bus iSC RDDBUS of the digital register DREG is also connected to the iSC bus through a switch.

21. The sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: The digital signal memory is implemented by 3T DRAM, or 6T DRAM, or SRAM.

22. The sensing-storage-computing-in-one macro-unit circuit according to claim 10, characterized in that: The digital signal memory is implemented using Flash, and further includes: multiple FLASH memories, a read-write control circuit, a digital read bus iSC RDDBUS and a multiplexer MUX, wherein the input end IN of the FLASH memory is connected to the read-write control circuit, the output end of the FLASH is connected in parallel to the digital read bus iSC RD DBUS, and a multiplexer MUX is connected between the digital read bus iSC RD DBUS and the read-write control circuit.

23. A sensing-storage-computing integrated macro-unit system comprising the sensing-storage-computing integrated macro-unit circuit according to any one of claims 10 to 22, characterized in that: include: Multiple sensing, storage and computing integrated macro-unit circuits are arranged in an array structure, where: The sensing, storage and computing integrated macro unit circuit includes: iSC bus is used to connect various modules and transmit sensing signals and operation signals between modules; INS bus is used to connect various modules; A digital storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes digital signals; An analog storage and calculation unit, used for simultaneously performing data storage and data calculation, wherein the data includes analog signals; The tag module is used to read the analog signal from the iSC bus; compare the read analog signal with several reference analog signals; An output module, used for obtaining a digital signal according to the comparison result; A first control module, used for providing reference analog signals to the tag module, wherein the reference analog signals are data that gradually increase or decrease with a functional relationship; An external DAC unit is also included, which serves as a first control module.

24. The sensing-storage-computing-in-one macro unit system according to claim 23, characterized in that: The sensing, storage and computing macro-unit circuit array is located on the same chip. The external DAC is located on-chip or off-chip.

Citation Information

Patent Citations

  • A / d converter, solid-state imaging device and camera system

    CN101867374A

  • Sensing, storing and calculating integrated circuit, system and method

    CN116821047A

  • Storage and calculation integrated chip and operation method thereof

    CN116821048A

  • Sensing, storing and computing integrated macro-cell circuit, sensing, storing and computing integrated macro-cell system and data processing method

    CN116881193A

  • Digital to analog converter array

    US20030043133A1

Cited By

  • High-density single-fingered eDRAM memory-computing integrated macro with bit-level sparse perception and kernel-level weight update

    CN122090903A