WO2023213102A1 - Sampling device, related equipment, and control method - Google Patents

Sampling device, related equipment, and control method Download PDF

Info

Publication number
WO2023213102A1
WO2023213102A1 PCT/CN2023/074732 CN2023074732W WO2023213102A1 WO 2023213102 A1 WO2023213102 A1 WO 2023213102A1 CN 2023074732 W CN2023074732 W CN 2023074732W WO 2023213102 A1 WO2023213102 A1 WO 2023213102A1
Authority
WO
WIPO (PCT)
Prior art keywords
sampling
voltage
voltage supply
electrode
ferroelectric capacitor
Prior art date
Application number
PCT/CN2023/074732
Other languages
French (fr)
Chinese (zh)
Inventor
章文强
冯君校
殷士辉
景蔚亮
王正波
廖恒
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023213102A1 publication Critical patent/WO2023213102A1/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • G01R27/26Measuring inductance or capacitance; Measuring quality factor, e.g. by using the resonance method; Measuring loss factor; Measuring dielectric constants ; Measuring impedance or related variables
    • G01R27/2605Measuring capacitance
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R27/00Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
    • G01R27/02Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
    • G01R27/26Measuring inductance or capacitance; Measuring quality factor, e.g. by using the resonance method; Measuring loss factor; Measuring dielectric constants ; Measuring impedance or related variables
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2851Testing of integrated circuits [IC]
    • G01R31/2855Environmental, reliability or burn-in testing
    • G01R31/2856Internal circuit aspects, e.g. built-in test features; Test chips; Measuring material aspects, e.g. electro migration [EM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/05Digital input using the sampling of an analogue quantity at regular intervals of time, input from a/d converter or output to d/a converter
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/124Sampling or signal conditioning arrangements specially adapted for A/D converters
    • H03M1/1245Details of sampling arrangements or methods

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a sampling device, related equipment and a control method.
  • the current technology has certain limits on chip area. If the chip area remains unchanged, if you want to make the chip have more and stronger functions, you need to pursue integrating more circuits on a chip with a limited area. Or devices, that is to say, the circuits or devices in the chip need to be made smaller and smaller, occupying less area to meet people's demand for chips with more and stronger functions. Therefore, how to provide a sampling device that occupies a smaller area and reduce the chip area overhead of implementing the sampling operation is an issue that needs to be solved urgently.
  • Embodiments of the present application provide a sampling device, related equipment and a control method, which can reduce the cost of chip area for implementing sampling operations.
  • a sampling device which may include a first sampling plane, a first voltage supply circuit, X second voltage supply circuits, a controller and a reading circuit, where the first sampling plane includes X first ferroelectric capacitors; X is an integer greater than 0; wherein, the first electrode of each of the X first ferroelectric capacitors is connected to the first voltage supply circuit;
  • the first voltage supply circuit is used to provide a first voltage to the first electrode of each of the first ferroelectric capacitors; the second electrode of the x-th first ferroelectric capacitor among the X first ferroelectric capacitors Connected to the x-th second voltage supply circuit among the X second voltage supply circuits; x takes 1, 2,...,X, and the x-th second voltage supply circuit is used to provide
  • the second electrode of the first ferroelectric capacitor provides a second voltage;
  • the controller is respectively connected to the first voltage supply circuit and the X second voltage supply circuits; the controller is used to: receive a sampling instruction , the sampling instructions include
  • a sampling device based on a ferroelectric capacitor is provided.
  • the sampling device can reduce the occupation of the chip area by the sampling circuit or the sampling device, so that the chip can have more spare area for integration.
  • Other functional circuits or devices meet people's needs for chips with more and stronger functions.
  • the occurrence process of the event A can be simulated through a ferroelectric capacitor to determine whether multiple different results corresponding to the event A occur, to achieve
  • sampling event A firstly, by adjusting the voltage difference across the ferroelectric capacitor, the probability of flipping the polarization direction of different ferroelectric capacitors corresponds to the probability of different outcomes of event A, so that the polarization direction of the ferroelectric capacitor can be adjusted according to Flip with a certain probability; then read the flipping situation of the polarization direction of the ferroelectric capacitor.
  • a ferroelectric whose polarization direction flips can be determined based on the reading results. capacitor, it is considered that a certain result of event A corresponding to the ferroelectric capacitor occurs, and is used as the sampling result of this sampling.
  • the polarization direction flip probability distribution of each ferroelectric capacitor is consistent with the probability distribution of different outcomes of probabilistic events, and the judgment of the above sampling results
  • the logic also conforms to the development law of actual events. Therefore, the sampling device provided by this application can be used in the actual sampling process.
  • the area of the ferroelectric capacitor is smaller than the area of the register.
  • the sampling device provided by this application also occupies a smaller area of the chip; in addition, this application provides In the sampling device, the upper electrodes or lower electrodes (i.e., the first electrode) of the Reduce the chip area occupied by the sampling device.
  • the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit.
  • the reading circuit in the sampling device can be connected to the upper electrode or the lower electrode of the ferroelectric capacitor, so that the circuit implementation of the sampling device is more flexible, thereby improving the applicability of the sampling device.
  • the first electrode includes an upper electrode or a lower electrode
  • the second electrode includes an upper electrode or a lower electrode
  • the first electrode and the second electrode are different electrodes.
  • the first electrode of the ferroelectric capacitor in the sampling device can be the upper electrode or the lower electrode, and the first electrodes of the multiple ferroelectric capacitors in the sampling plane can be connected to the first voltage supply circuit, that is, That is, the first voltage supply circuit can be shared by the upper electrodes of multiple ferroelectric capacitors or the lower electrodes of multiple ferroelectric capacitors, which makes the implementation of the sampling device more flexible, thus improving the applicability of the sampling device.
  • the first voltage supply circuit includes a first field effect transistor or a first digital-to-analog conversion circuit; and the X second voltage supply circuits include second field effect transistors or second digital-to-analog conversion circuits. conversion circuit.
  • the first voltage supply circuit in the sampling device may be a field effect transistor or a digital-to-analog conversion circuit;
  • the second voltage supply circuit may be a field effect transistor or a digital-to-analog conversion circuit, that is, That is to say, the two sets of voltage supply circuits included in the sampling device can both be field effect transistors or digital-to-analog conversion circuits, or they can be a combination of field effect transistors and digital-to-analog conversion circuits. Since the field effect transistors and digital-to-analog conversion circuits have simple structures and small areas, the sampling device uses them to provide voltages to the upper and lower electrodes at both ends of the ferroelectric capacitor, which can not only further reduce the chip area overhead.
  • the first voltage supply circuit or the X second voltage supply circuits are integrated in the reading circuit.
  • the voltage supply circuit used in the sampling device to provide voltage for the upper electrode or the lower electrode of the ferroelectric capacitor can be integrated in the reading circuit, and part of the structure in the reading circuit is reused, thereby reducing the number of circuits. overhead, further reducing the chip area occupied by the sampling device.
  • the first sampling plane further includes X second ferroelectric capacitors, the first electrode of each first ferroelectric capacitor and the X second ferroelectric capacitors the first electrode of each second ferroelectric capacitor, to
  • the first voltage supply circuit is connected in parallel and shares the first voltage supply circuit.
  • the same sampling plane in the sampling device may include multiple groups (for example, Y group) of ferroelectric capacitors, and the first electrodes (such as the upper electrode) of multiple ferroelectric capacitors in different groups may share the same power supply.
  • voltage circuit i.e., the first voltage supply circuit
  • a voltage supply circuit can provide voltage to the first electrodes of X*Y ferroelectric capacitors in the same sampling plane, which greatly reduces the number of voltage supply circuits. quantity, further reducing the chip area occupied by the sampling device.
  • the first sampling plane further includes X second ferroelectric capacitors, and the second electrode of the xth first ferroelectric capacitor is connected to the The second electrode of the x-th second ferroelectric capacitor in the capacitor is connected in parallel with the x-th second voltage supply circuit, sharing the x-th second voltage supply circuit; x is 1 or 2 ,...,X.
  • the same sampling plane in the sampling device may include multiple groups (for example, Y group) of ferroelectric capacitors, and the second electrodes of multiple ferroelectric capacitors with the same serial number in different groups (when x has the same value).
  • the following electrodes can share the same voltage supply circuit (i.e., the x-th second voltage supply circuit), that is to say, one voltage supply circuit can provide voltage for the second electrodes of Y ferroelectric capacitors in the same sampling plane. , which greatly reduces the number of voltage supply circuits and further reduces the chip area occupied by the sampling device.
  • the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the X third ferroelectric capacitors The first electrode of the electric capacitor and the first electrode of each of the first ferroelectric capacitors are connected in parallel with the first voltage supply circuit and share the first voltage supply circuit.
  • the sampling device includes multiple sampling planes (for example, S sampling planes), and the first electrodes (such as the upper electrodes) of multiple groups of ferroelectric capacitors in different sampling planes can share the same voltage supply circuit (That is, the first voltage supply circuit), that is to say, a voltage supply circuit can provide voltage for the first electrodes of S*Y ferroelectric capacitors in different sampling planes; in addition, if the ferroelectric capacitors in different groups in the same sampling plane When the electric capacitors can also share the voltage supply circuit, then one voltage supply circuit can provide voltage for the first electrodes of S*X*Y ferroelectric capacitors in different sampling planes, which greatly reduces the number of voltage supply circuits. Further reducing the chip area occupied by the sampling device.
  • the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, and the second second sampling plane of the The electrode and the second electrode of the x-th third ferroelectric capacitor among the X third ferroelectric capacitors are connected in parallel with the x-th second voltage supply circuit, sharing the second voltage supply Circuit; x takes 1, 2,...,X.
  • the sampling device includes multiple sampling planes (for example, S sampling planes), and the second electrodes of multiple ferroelectric capacitors with the same serial number (when x has the same value) in different groups in different sampling planes (as follows) electrodes) can share the same voltage supply circuit (i.e., the x-th second voltage supply circuit), that is to say, one voltage supply circuit can provide voltage for the second electrodes of S*Y ferroelectric capacitors in different sampling planes.
  • one of the voltage supply circuits can be S*X*Y ferroelectric capacitors in different sampling planes.
  • the first electrode of the capacitor provides voltage, which greatly reduces the number of voltage supply circuits and further reduces the chip area occupied by the sampling device.
  • the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit in a parallel manner and shares the reading circuit;
  • the first sampling plane also includes X second ferroelectric capacitors, the first electrode or the first electrode of each of the first ferroelectric capacitors and the X second ferroelectric capacitors.
  • the second electrode is connected in parallel with the reading circuit and shares the reading circuit.
  • the same sampling plane in the sampling device may include multiple groups of ferroelectric capacitors, and the first electrodes or second electrodes (such as the upper electrodes) of multiple ferroelectric capacitors in the same group may share the same reading circuit. (i.e. reading circuit), And multiple ferroelectric capacitors in different groups can also share the reading circuit. That is to say, one reading circuit can read the reversal of polarization directions of X*Y ferroelectric capacitors in the same sampling plane. This greatly reduces the number of reading circuits and further reduces the chip area occupied by the sampling device.
  • the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the first ferroelectric capacitors and the The first electrode or the second electrode of each third ferroelectric capacitor among the three ferroelectric capacitors is connected in parallel with the reading circuit and shares the reading circuit.
  • the sampling device may include multiple sampling planes (for example, S sampling planes).
  • Each sampling plane may include one or more groups of ferroelectric capacitors (for example, Y group). Different groups in different sampling planes may
  • the first electrode or the second electrode (such as the upper electrode) of multiple ferroelectric capacitors can share the same reading circuit (i.e., reading circuit).
  • a reading circuit can convert S* in different sampling planes.
  • the flipping conditions of the polarization directions of Y ferroelectric capacitors are read out; and if the ferroelectric capacitors in different groups of the same sampling plane can also share the reading, then a reading circuit can read out the polarization directions of the Y ferroelectric capacitors.
  • the flipping conditions of the polarization directions of S*X*Y ferroelectric capacitors are read out, which greatly reduces the number of reading circuits and further reduces the chip area occupied by the sampling device.
  • the corresponding first The polarization direction of the ferroelectric capacitor flips between the first polarization direction and the second polarization direction; when the voltage difference is less than the preset threshold, the polarization direction of the corresponding first ferroelectric capacitor The polarization direction is flipped between the first polarization direction and the second polarization direction according to the probability value corresponding to the voltage difference.
  • the sampling device includes the reversal of the polarization direction of one or more ferroelectric capacitors, which is related to the voltage difference across the ferroelectric capacitor.
  • the polarization direction of the ferroelectric capacitor will Flip; when the voltage difference fails to reach a certain value, the polarization direction of the ferroelectric capacitor will flip according to the probability value corresponding to the specific value of the voltage difference.
  • a sampling device which may include a first voltage supply circuit, X second voltage supply circuits, a controller and a reading circuit.
  • the sampling device is coupled to the first sampling plane, so The first sampling plane includes X first ferroelectric capacitors; X is an integer greater than 0; wherein the first electrode of each first ferroelectric capacitor in the voltage circuit connection; the first voltage supply circuit is used to provide a first voltage to the first electrode of each of the first ferroelectric capacitors; the x-th first ferroelectric capacitor among the The second electrode of the electric capacitor is connected to the x-th second voltage supply circuit among the X second voltage supply circuits; x is 1, 2,...,X, and the x-th second voltage supply circuit is used for Provide a second voltage to the second electrode of the x-th first ferroelectric capacitor; the controller is connected to the first voltage supply circuit and the X second voltage supply circuit respectively; the control The device is configured to: receive a sampling instruction, the sampling instruction including X probability values; respectively control
  • the reading circuit is used to read the polarization direction of each of the first ferroelectric capacitors; wherein the polarization direction of each of the first ferroelectric capacitors is based on the first voltage and the second The voltage difference flips between the first polarization direction and the second polarization direction.
  • the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit.
  • the first electrode includes an upper electrode or a lower electrode
  • the second electrode includes an upper electrode or a lower electrode
  • the first electrode and the second electrode are different electrodes.
  • the first voltage supply circuit includes a first field effect transistor or a first digital-to-analog conversion circuit; and the X second voltage supply circuits include second field effect transistors or second digital-to-analog conversion circuits. conversion circuit.
  • the first voltage supply circuit or the X second voltage supply circuits are integrated in the reading circuit.
  • the first sampling plane further includes X second ferroelectric capacitors, the first electrode of each first ferroelectric capacitor and the X second ferroelectric capacitors
  • the first electrode of each second ferroelectric capacitor is connected in parallel with the first voltage supply circuit and shares the first voltage supply circuit.
  • the first sampling plane further includes X second ferroelectric capacitors, and the second electrode of the xth first ferroelectric capacitor is connected to the The second electrode of the x-th second ferroelectric capacitor in the capacitor is connected in parallel with the x-th second voltage supply circuit, sharing the x-th second voltage supply circuit; x is 1 or 2 ,...,X.
  • the sampling device is also coupled to a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the X third ferroelectric capacitors The first electrode of the ferroelectric capacitor and the first electrode of each first ferroelectric capacitor are connected in parallel with the first voltage supply circuit and share the first voltage supply circuit.
  • the sampling device is also coupled to a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, and the xth first ferroelectric capacitor has The two electrodes are connected to the x-th second voltage supply circuit in parallel with the second electrode of the x-th third ferroelectric capacitor among the Voltage circuit; x takes 1, 2,...,X.
  • the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit in a parallel manner and shares the reading circuit;
  • the first sampling plane also includes X second ferroelectric capacitors, the first electrode or the first electrode of each of the first ferroelectric capacitors and the X second ferroelectric capacitors.
  • the second electrode is connected in parallel with the reading circuit and shares the reading circuit.
  • the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the first ferroelectric capacitors and the The first electrode or the second electrode of each third ferroelectric capacitor among the three ferroelectric capacitors is connected in parallel with the reading circuit and shares the reading circuit.
  • the polarization direction of the corresponding first ferroelectric capacitor when the voltage difference between the first voltage and the second voltage is greater than or equal to a preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in the first polarization direction. flip between the direction and the second polarization direction; when the voltage difference is less than the preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in the first polarization direction according to the probability value corresponding to the voltage difference. flip between the polarization direction and the second polarization direction.
  • a ferroelectric capacitor array which may include a first sampling plane, the first sampling plane including X first ferroelectric capacitors, the first sampling plane being coupled to a sampling device,
  • the sampling device includes a first voltage supply circuit, X second voltage supply circuits, a controller and a reading circuit; X is an integer greater than 0; wherein each of the X first ferroelectric capacitors
  • the first electrode of the electric capacitor is connected to the first voltage supply circuit;
  • the first voltage supply circuit is used to provide a first voltage to the first electrode of each of the first ferroelectric capacitors;
  • the X The second electrode of the x-th first ferroelectric capacitor among the first ferroelectric capacitors is connected to the x-th second voltage supply circuit among the X second voltage supply circuits;
  • x is 1, 2,...,X,
  • the x-th second voltage supply circuit is used to provide a second voltage to the second electrode of the x-th first ferroelectric capacitor;
  • the controller is respectively connected to the first voltage supply circuit and the
  • the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit.
  • the first electrode includes an upper electrode or a lower electrode
  • the second electrode includes an upper electrode or a lower electrode
  • the first electrode and the second electrode are different electrodes.
  • the first voltage supply circuit includes a first field effect transistor or a first digital-to-analog conversion circuit; and the X second voltage supply circuits include second field effect transistors or second digital-to-analog conversion circuits. conversion circuit.
  • the first voltage supply circuit or the X second voltage supply circuits are integrated in the reading circuit.
  • the first sampling plane further includes X second ferroelectric capacitors, the first electrode of each first ferroelectric capacitor and the X second ferroelectric capacitors
  • the first electrode of each second ferroelectric capacitor is connected in parallel with the first voltage supply circuit and shares the first voltage supply circuit.
  • the first sampling plane further includes X second ferroelectric capacitors, and the second electrode of the xth first ferroelectric capacitor is connected to the The second electrode of the x-th second ferroelectric capacitor in the capacitor is connected in parallel with the x-th second voltage supply circuit, sharing the x-th second voltage supply circuit; x is 1 or 2 ,...,X.
  • the ferroelectric capacitor array further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the X third ferroelectric capacitors The first electrodes of the three ferroelectric capacitors and the first electrodes of each of the first ferroelectric capacitors are connected to the first voltage supply circuit in a parallel manner, and share the first voltage supply circuit.
  • the ferroelectric capacitor array further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, and the xth first ferroelectric capacitor is The second electrode and the second electrode of the x-th third ferroelectric capacitor among the X third ferroelectric capacitors are connected in parallel with the x-th second voltage supply circuit, sharing the second Voltage supply circuit; x takes 1, 2,...,X.
  • the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit in a parallel manner and shares the reading circuit;
  • the first sampling plane also includes X second ferroelectric capacitors, the first electrode or the first electrode of each of the first ferroelectric capacitors and the X second ferroelectric capacitors.
  • the second electrode is connected in parallel with the reading circuit and shares the reading circuit.
  • the ferroelectric capacitor array further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the first ferroelectric capacitors and the The first electrode or the second electrode of each of the third ferroelectric capacitors is connected in parallel with the reading circuit and shares the reading circuit.
  • the polarization direction of the corresponding first ferroelectric capacitor when the voltage difference between the first voltage and the second voltage is greater than or equal to a preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in the first polarization direction. flip between the direction and the second polarization direction; when the voltage difference is less than the preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in the first polarization direction according to the probability value corresponding to the voltage difference. flip between the polarization direction and the second polarization direction.
  • embodiments of the present application provide a control method that is applicable to the sampling device provided in any one of the above first and second aspects and possible implementations in combination with the first and second aspects.
  • the method includes: controlling the first voltage supply circuit and/or the X second voltage supply circuits by the controller to perform a first adjustment on the first voltage and/or the second voltage, and each The polarization direction of the first ferroelectric capacitor is initialized to the first polarization direction; Receive sampling instructions through the controller, the sampling instructions include X probability values; and based on the X probability values, respectively control the first voltage supply circuit and/or the X second voltage supply circuits to The first voltage and or the second voltage are subjected to a second adjustment, and the voltage difference between the first voltage and the second voltage on the x-th first ferroelectric capacitor corresponds to one of the X probability values.
  • the xth probability value of The voltage difference between the first voltage and the second voltage flips from the first polarization direction to the second polarization direction.
  • the polarization direction of the ferroelectric capacitor can be initialized to return it to the initial state (that is, the first polarization direction, or the second polarization direction). ); Because there is generally a mutually exclusive relationship between different results of actual events, after completing the sampling, the reading circuit only needs to read the state of the polarization direction of the ferroelectric capacitor after this sampling to determine the ferroelectric one by one.
  • the polarization direction of the capacitor has flipped (it can be determined one by one in a certain order or randomly), and the polarization direction of the first flipped ferroelectric capacitor can be used as the sampling result; if the last ferroelectric capacitor is determined, If the polarization direction of the previous ferroelectric capacitor has not flipped, it is not necessary to judge whether the polarization direction of the last ferroelectric capacitor has flipped. It can be considered that the polarization direction of the last ferroelectric capacitor has flipped and is regarded as Sampling results.
  • the polarization direction of the ferroelectric capacitor is not initialized before sampling, additional storage devices are needed to record and save the polarization direction state of the ferroelectric capacitor before sampling, and the polarization direction state of the ferroelectric capacitor after this sampling needs to be stored. Only by comparing the polarization direction state of the ferroelectric capacitor with the state before this sampling recorded and saved by the storage device can it be determined whether the polarization direction of the ferroelectric capacitor has flipped; in addition, since the flipping probability of the polarization direction of the ferroelectric capacitor is different from that of the ferroelectric capacitor The current state is also related.
  • the upper electrode voltage of some ferroelectric capacitors is greater than the lower electrode voltage, and that of some ferroelectric capacitors
  • the upper electrode voltage is smaller than the lower electrode voltage, and the circuit complexity is higher, which may require a specific voltage supply circuit to achieve. Therefore, when the sampling device provided by the embodiment of the present application uses the control method provided by the present application to implement the sampling operation, the sampling logic can be simplified, the requirements of the sampling device for the voltage supply circuit can be reduced, and the applicability of the sampling device can be improved.
  • the method further includes: when the first sampling plane also includes X second ferroelectric capacitors, reading each of the second ferroelectric capacitors through the reading circuit. The polarization direction of the capacitor.
  • ferroelectric capacitors of multiple groups for example, Y group
  • one sampling plane can be used to sample a certain probability.
  • Events are sampled Y times at the same time, which can effectively improve sampling efficiency.
  • each of the third ferroelectric capacitors is read through the reading circuit.
  • sampling device when the above-mentioned sampling device is used for sampling, after one sampling is completed through a certain sampling plane, subsequent sampling can be performed through other sampling planes first.
  • Using different sampling planes for sampling can allocate the sampling workload on different sampling planes, so that the number of flips of different ferroelectric capacitors can be balanced, thereby extending the service life of the sampling device and reducing maintenance costs.
  • different sampling planes can also be used for sampling at the same time, which can effectively improve the sampling efficiency.
  • embodiments of the present application provide a semiconductor chip that includes the sampling device provided in any one of the above-mentioned first and second aspects and possible implementations in combination with the first and second aspects.
  • embodiments of the present application provide an electronic device, which includes a sampling device provided in any one of the above-mentioned first and second aspects and possible implementations in combination with the first and second aspects; the The electronic device further includes a main processor coupled to the sampling device, and the main processor is used to send sampling instructions to the sampling device to and receive the sampling results of the sampling device; the electronic device also includes a memory, which is used to save the program instructions and data necessary for the operation of the main processor and the sampling device; the electronic device may also include a communication interface for the Electronic devices communicate with other devices or communication networks.
  • embodiments of the present application provide an electronic device that has the function of implementing any of the control methods of the sampling device in the fourth aspect.
  • This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the present application provides a computer storage medium that stores a computer program.
  • the sampling device can perform the control described in any one of the fourth aspects. Method flow.
  • embodiments of the present application provide a computer program.
  • the computer program includes instructions.
  • the sampling device can execute the control method flow described in any one of the above fourth aspects.
  • the present application provides a chip system, which includes the sampling device provided in any one of the above-mentioned first and second aspects and possible implementations in combination with the first and second aspects.
  • the chip system further includes a processor and a memory, and the memory is used to save necessary or relevant program instructions and data of the sampling device and the processor.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the present application provides a system-on-a-chip SoC chip.
  • the SoC chip includes the sampling device provided in any one of the above-mentioned first and second aspects and possible implementations combined with the first and second aspects, and
  • the sampling device is coupled with a processor, internal memory and external memory, and the internal memory and external memory are used to save necessary or relevant program instructions and data of the sampling device and the processor.
  • the SoC chip can be composed of chips, or can also include chips and other discrete devices.
  • Figure 1a is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Figure 1b is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • Figure 1c is a schematic diagram of the overall structure of a sampling device provided by an embodiment of the present application.
  • Figure 1d is a schematic diagram of the overall structure of another sampling device provided by an embodiment of the present application.
  • Figure 2a is a schematic diagram of a sampling device suitable for two-class probability distribution provided by an embodiment of the present application.
  • Figure 2b is a schematic diagram of a sampling device suitable for multi-class probability distribution provided by an embodiment of the present application.
  • Figure 3a is a schematic three-dimensional structural diagram of a sampling device provided by an embodiment of the present application.
  • Figure 3b is a schematic three-dimensional structural diagram of another sampling device provided by an embodiment of the present application.
  • Figure 3c is a schematic three-dimensional structural diagram of another sampling device provided by an embodiment of the present application.
  • Figure 3d is a schematic three-dimensional structural diagram of another sampling device provided by an embodiment of the present application.
  • Figure 3e is a schematic three-dimensional structural diagram of another sampling device provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of the control method of the sampling device provided by the embodiment of the present application.
  • an embodiment means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in one or more embodiments of the present application.
  • the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
  • Ferroelectric Cap its core technology is ferroelectric crystal material.
  • the working principle of ferroelectric crystals is: when an electric field is added to the ferroelectric crystal material, the central atom in the crystal will move along the direction of the electric field with a certain probability and unify into one direction to reach a stable state (that is, the polarization direction); where, Each free-floating central atom in the crystal has only two stable states. One is the first polarization direction (or the second polarization direction), which can be recorded as "0" in logic, and the other is the second polarization direction ( Or the first polarization direction) can be recorded as "1".
  • the central atom can stay in a stable state for more than 100 years at normal temperature and without an electric field.
  • the ferroelectric capacitor Compared with the pseudo-random number generation circuit and the register circuit mainly used in the sampling circuit in the prior art to implement the sampling operation, the ferroelectric capacitor has a smaller area and smaller volume. Therefore, in the embodiment of the present application, the polarization direction of the ferroelectric capacitor is probabilistically flipped according to the electric field, and the polarization direction of one or more ferroelectric capacitors is flipped with probability by adjusting the voltage at both ends of the ferroelectric capacitor. As the probability corresponding to one or more possible outcomes of a probabilistic event, a sampling circuit or device based on ferroelectric capacitors can be obtained, thereby reducing the cost of chip area.
  • Bayesian Network is a graphical probability network based on probabilistic reasoning, including nodes and directed edges connecting the nodes. Among them, nodes represent random variables, and directed edges between nodes represent the mutual relationships between nodes (generally from parent nodes to their child nodes). Conditional probabilities are used to express the strength of node relationships. Nodes without parent nodes can use prior probabilities. express. Bayesian networks are based on Bayesian formulas and are suitable for expressing and analyzing uncertain and probabilistic events, and can make inferences from incomplete, imprecise or uncertain knowledge or information. However, as the scale of the probability model becomes larger and larger, the dependencies between the various nodes in the model become more complex and cannot be solved directly through the Bayesian formula.
  • the Markov chain Monte Carlo method is generally used to solve the problem.
  • the method requires sampling a large number of conditional probabilities, but the sampling circuit in the existing technology occupies a large chip area.
  • a sampling circuit or sampling device based on ferroelectric capacitor is proposed, which can be applied to the process of using MCMC to sample and solve a large number of conditional probabilities in probability models, and can reduce the chip area required by the sampling circuit or sampling device. occupancy, it should be noted that this application implements
  • the sampling circuit or sampling device provided in the example can also be applied to other machine learning sampling scenarios, and is not specifically limited here.
  • MCMC Markov Chain Monte Carlo
  • MCMC is a random sampling method that is widely used in fields such as machine learning, deep learning, and natural language processing. MCMC is used to do some complex tasks. The approximate solution of operations is the basis for solving many complex models or algorithms.
  • a ferroelectric capacitor-based sampling circuit or sampling device is proposed, which can be applied to the process of using MCMC to sample and solve a large number of conditional probabilities in probability models, and can reduce the impact of the sampling circuit or sampling device on the chip area. occupied.
  • mainstream sampling operations are mostly implemented by using a cumulative probability distribution sampling circuit, which includes a pseudo-random number generation circuit, a cumulative probability distribution function storage table, a search circuit and other sub-circuits.
  • circuits that implement sampling operations include pseudo-random number generation circuits, cumulative probability distribution function storage tables, search circuits and other sub-circuits.
  • the pseudo-random number generation circuit generally uses a linear feedback shift register (Linear Feedback Shift Register). , LFSR) circuit implementation.
  • the number of registers in an LFSR circuit is generally called the number of stages of the LFSR.
  • the sequence of data currently stored in each register in an LFSR circuit is generally called a state.
  • An n-level LFSR circuit has the most Stores 2 n -1 states.
  • a 3-level LFSR circuit includes 3 linear feedback shift registers, which can store up to 3 bits of data at the same time and store up to 2 3 -1, that is, 7 states.
  • the LFSR circuit requires more registers.
  • the LFSR circuit also has a certain periodicity. Since an n-level LFSR circuit can only traverse 2 n -1 states at most, when the LFSR circuit shifts to a certain extent, repeated states may occur.
  • the LFSR circuit In order to ensure sampling The randomness and sampling accuracy also require the LFSR circuit to include a larger number of registers.
  • the cumulative probability distribution function storage table In addition to the pseudo-random number generation circuit, the cumulative probability distribution function storage table generally uses multi-bit registers. It can be seen that both the pseudo-random number generation circuit and the cumulative probability distribution function storage table in the cumulative probability distribution sampling circuit require a large number of registers. As far as the current technology is concerned, the register area is large, which leads to the need for a cumulative probability distribution sampling circuit. It occupies a larger chip area, resulting in a larger overall chip area overhead.
  • a sampling device uses the polarization direction of a ferroelectric capacitor to flip according to a certain probability to implement a sampling operation.
  • the sampling device is used to sample a certain random event (such as event A).
  • event A a certain random event
  • the occurrence process of the event A can be simulated through the ferroelectric capacitor to determine whether various different results corresponding to the event A occur, so as to achieve the purpose of sampling the event A.
  • the voltage across the ferroelectric capacitor can be adjusted to make multiple
  • the probability of flipping the polarization direction of the ferroelectric capacitor is the same as the probability of different possible outcomes of event A.
  • the sampling circuit or sampling device based on the ferroelectric capacitor can reduce the chip area occupied by the sampling circuit unit. That is to say, the cost of chip area is reduced.
  • the sampling circuit or sampling device provided by this application can be used to solve the above technical problems.
  • the structure and applicable scenarios of the sampling device provided by the embodiment of the present application will be exemplified below. It can be understood that the structure and application scenarios of the sampling device described in the embodiments of the present application are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application.
  • FIG. 1a is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the electronic device 01 provided by the present application may include one or more main processors 11 and one or more sampling devices 12. Memory (not shown) may be included.
  • the electronic device may be a Subscriber Unit (Subscriber Unit), a Cellular Phone (Cellular Phone), a Smart Phone (Smart Phone), a Personal Computer (Personal Compute, PC), a Personal Digital Assistant (Personal Digital Assistant, PDA) computer, a tablet computer, Handheld devices (Handset), laptop computers (Laptop Computer), Machine Type Communication (MTC) terminals, smart wearable devices, etc.
  • Subscriber Unit Subscriber Unit
  • Cellular Phone Cellular Phone
  • Smart Phone Smart Phone
  • PC Personal Computer
  • PDA Personal Digital Assistant
  • PDA Personal Digital Assistant
  • tablet computer Handheld devices
  • laptop computers Layer Computer
  • MTC Machine Type Communication
  • the main processor 11 may be a central processing unit (CPU), a graphics processing unit (GPU), or a chip with other functions, and is used for sending sampling instructions, receiving sampling results, and other necessary operations.
  • the main processor 11 can send a sampling instruction to the controller 121 of the sampling device 12 so that the controller 121 can control the first voltage supply circuit 123 based on the relevant information (such as X probability values) in the sampling instruction.
  • the second voltage supply circuit 124 adjusts the provided voltage, and sets the polarization direction flip probability of the multiple ferroelectric capacitors in the first sampling plane to the corresponding probability value in the sampling instruction; finally, the main processor 11 can receive and analyze the read The sampling result read by the circuit 125 for the first sampling plane is obtained.
  • the sampling device 12 includes a controller 121, a first sampling plane 122, a first voltage supply circuit 123, a second voltage supply circuit 124 and a reading circuit 125.
  • the controller 121 is used to receive the sampling instruction sent by the main processor 11, and control the first voltage supply circuit 123 and the second voltage supply circuit 124 to adjust the provided voltage based on the relevant information included in the sampling instruction;
  • the first sampling plane 122 includes one or more ferroelectric capacitors;
  • the first voltage supply circuit 123 and the second voltage supply circuit 124 respectively provide voltages to the first electrode and the second electrode of the one or more ferroelectric capacitors in the first sampling plane 122,
  • the polarization direction of one or more ferroelectric capacitors can be flipped according to the probability value corresponding to the voltage difference between the two ends;
  • the reading circuit 125 is used to read the polarization direction of the one or more ferroelectric capacitors and send it to the host. Processor 11.
  • the memory is used to store the preparation data required by the main processor 11 and the sampling device 12 to perform the sampling task (such as the voltage difference and polarization direction reversal probability value mapping table), the intermediate data generated during the sampling process, and the data after the sampling is completed. Result data.
  • Memory can include one or more local memories (Local Memory), one or more registers (Register), one or more first-level caches (L1 Cache), one or more second-level caches (L2 Cache), and various types of Buffer, etc.
  • the sampling device in the electronic device provided by the present application may not include the first sampling plane. See Figure 1b.
  • Figure 1b is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • the electronic device 02 provided in this application may include one or more main processors 21, one or more sampling devices 22, and one or more first sampling planes 23, and may also include a memory (not shown in the figure).
  • main processors 21, one or more sampling devices 22, and one or more first sampling planes 23 may also include a memory (not shown in the figure).
  • a memory not shown in the figure.
  • Figure 1c is a schematic diagram of the overall structure of a sampling device provided by an embodiment of this application.
  • the sampling device 12 may include a controller 121, a first sampling plane 122, The first voltage supply circuit 123, the second voltage supply circuit 124 and the reading circuit 125.
  • the controller 121 is connected to the first voltage supply circuit 123, the second voltage supply circuit 124 and the reading circuit 125 respectively.
  • the controller 121 is used to receive the data sent by the main processor 11.
  • the first sampling plane 122 includes one or more ferroelectric capacitors
  • the first voltage supply circuit 123 and the second voltage supply circuit 124 are respectively connected to one or more ferroelectric capacitors in the first sampling plane 122
  • the first electrode and the second electrode of the capacitor are connected to provide voltage to them, so that their polarization directions can be flipped according to the probability value corresponding to the voltage difference between the two ends
  • the reading circuit 125 is connected to one or more of the first sampling planes
  • the first electrode or the second electrode of the ferroelectric capacitor is connected.
  • the sampling device provided by the embodiment of the present application may not include the first sampling plane. See Figure 1d.
  • Figure 1d is a schematic diagram of the overall structure of another sampling device provided by the embodiment of the present application.
  • the device 22 may include a controller 221, a first voltage supply circuit 222, a second voltage supply circuit 223, and a reading circuit 224.
  • the functions and connection relationships of each unit in the sampling device 22 may refer to the relevant description of the sampling device 12 above. I won’t go into details here.
  • FIG. 2a is a schematic diagram of a sampling device suitable for two-class probability distribution provided by an embodiment of the present application.
  • the two-class sampling device may include two voltage supply circuits (i.e., a first voltage supply circuit and X
  • the second voltage supply circuit, X is 1), a reading circuit and a sampling plane (the framed part of (a) in Figure 2a), the sampling plane includes a ferroelectric capacitor (i.e.
  • X first ferroelectric capacitors , T is used as a representation of the first voltage supply circuit, and a digital-to-analog conversion circuit is used as a representation of the second voltage supply circuit.
  • the drain of the field effect transistor T is connected to the upper electrode of the ferroelectric capacitor (that is, corresponding to the first electrode), and is connected to the read
  • the digital-to-analog conversion circuit is connected to the lower electrode (corresponding to the second electrode) of the ferroelectric capacitor.
  • the gate of the field effect transistor T is connected to the control line (CL) and the source of the field effect transistor T.
  • the on or off of the field effect transistor T can be controlled by adjusting the voltage on the control line, and the voltage value provided by the field effect transistor T can be adjusted by adjusting the voltage on the bit line side.
  • the storage node (Storage Node, SN) is a logical node assumed for the convenience of understanding. The voltage at this node is the voltage value V SN provided by the field effect transistor T.
  • the word line (World Line, WL) and The lower electrode of the ferroelectric capacitor is connected. When there are multiple ferroelectric capacitors in the sampling device, the specific ferroelectric capacitor can be determined through the bit line and word line.
  • the structure of the ferroelectric capacitor is generally upper electrode-ferroelectric material-lower electrode.
  • the basic principle of the sampling device is that the reversal probability of the polarization direction of the ferroelectric capacitor is affected by the voltage pulse amplitude.
  • Value modulation as shown in (b) of Figure 2a, the probability of the polarization direction flip of the ferroelectric capacitor can be modulated by applying different voltages on both ends of the ferroelectric capacitor. For example, the probability corresponding to the voltage difference Vc is p0, through By adjusting the size of Vc, the probability p0 of the polarization direction flip of the ferroelectric capacitor can be modulated from 0 to 1.
  • an event A corresponds to two different outcomes, established or not (or yes or no, or can or cannot), as shown in (c) in Figure 2a.
  • the probability of being true is p0
  • the probability of not being true is p1.
  • the probability of the polarization direction flip of the capacitor is modulated to p0.
  • the above-mentioned first voltage supply circuit can be a field effect transistor, a digital-to-analog conversion circuit, or other circuits that can provide voltage; the above-mentioned second voltage supply circuit can be a digital-to-analog conversion circuit, or it can be A field effect transistor, or other circuit that can provide voltage, is not specifically limited here.
  • the above-mentioned first electrode of the ferroelectric capacitor may be an upper electrode or a lower electrode
  • the above-mentioned second electrode may be an upper electrode or a lower electrode, as long as the first electrode of the ferroelectric capacitor and the third electrode are The two electrodes only need to be different electrodes, and there is no specific limitation here.
  • the first voltage supply circuit or the second voltage supply circuit can be integrated into the reading circuit, that is to say, the reading circuit can be used for the upper electrode or the lower electrode of the ferroelectric capacitor.
  • Supply voltage after the ferroelectric capacitor flips the polarization direction according to the probability value corresponding to the voltage difference between the two ends, the reading circuit then flips the polarization direction of the ferroelectric capacitor. Read out, further reducing the sampling device’s occupation of the overall chip area.
  • FIG. 2b is a schematic diagram of a sampling device suitable for multi-class probability distribution provided by an embodiment of the present application.
  • the multi-class sampling device may include a field effect transistor T (i.e., a first voltage supply circuit), a A reading circuit, multiple digital-to-analog conversion circuits (i.e., a first ferroelectric capacitor), the controller in the sampling device is connected to the first voltage supply circuit, the second voltage supply circuit and the reading circuit respectively (not shown in the figure).
  • a field effect transistor is used in the figure.
  • the gate of the field effect transistor T is connected to the control line (Control Line, CL), the source of the field effect transistor T is connected to the bit line (Bit Line, BL).
  • the on or off of the field effect transistor T can be controlled by adjusting the voltage on the control line, and can be adjusted by adjusting the voltage on the bit line side. The voltage value that the field effect transistor T can provide.
  • the storage node (Storage Node, SN) is a logical node assumed for the convenience of understanding.
  • the voltage at this node is the voltage value V SN provided by the field effect transistor T.
  • the word line (World Line, WL) is connected to the lower electrode of the ferroelectric capacitor, and the specific ferroelectric capacitor can be determined through the bit line and word line.
  • the basic principle of the sampling device is that the flip probability of the polarization direction of each ferroelectric capacitor is modulated by the voltage pulse amplitude.
  • different iron The probability of flipping the polarization direction of an electric capacitor can be modulated by applying different voltages to both ends of different ferroelectric capacitors.
  • an event A corresponds to multiple different outcomes.
  • event A includes a0, a1, a2,..., aS-1, a total of S different outcomes.
  • the probability of a0 occurring is p0, a1
  • the probability of occurrence is p1
  • the probability of aS-1 occurring is pS-1
  • the probability of flipping the polarization directions of multiple ferroelectric capacitors (C0 to CS-1) is modulated to p0, p1,..., pS-1 respectively;
  • each ferroelectric capacitor can be determined one by one based on the reading results of the reading circuit.
  • the capacitor has flipped (it can be determined one by one in a certain order, or it can be determined one by one randomly), and the polarization direction of the first ferroelectric capacitor that flips is used as the sampling result; if the last ferroelectric capacitor is determined, the previous If there is still no polarization direction flip of the ferroelectric capacitor, it is not necessary to determine whether the polarization direction of the last ferroelectric capacitor has flipped. It can be considered that the polarization direction of the last ferroelectric capacitor has flipped, and it is used as the sampling result.
  • the above-mentioned first voltage supply circuit can be a field effect transistor, a digital-to-analog conversion circuit, or other circuits that can provide voltage
  • the above-mentioned second voltage supply circuit can be a digital-to-analog conversion circuit, or it can be Field effect transistors, or other circuits that can provide voltage
  • different second voltage supply circuits corresponding to different ferroelectric capacitors can provide the same voltage or different voltages, which are not specifically limited here.
  • the first electrode of the ferroelectric capacitor may be an upper electrode or a lower electrode
  • the second electrode may be an upper electrode or a lower electrode, as long as the first electrode and the second electrode of the ferroelectric capacitor are The electrodes only need to be different electrodes, and are not specifically limited here.
  • the above-mentioned first voltage supply circuit or second voltage supply circuit can be integrated into the reading circuit, that is to say, the reading circuit can supply voltage to the upper electrode or the lower electrode of the ferroelectric capacitor.
  • the sampling circuit or sampling device suitable for multi-class probability distribution provided in the embodiment of the present application is also suitable for two-class probability distribution scenarios. It only needs to adjust the voltage across a certain ferroelectric capacitor to make it extremely The probability of flipping the direction corresponds to the probability of binary classification, and other ferroelectric capacitors do not need to participate in sampling.
  • FIG. 3a is a schematic diagram of a three-dimensional structure of a sampling device provided by an embodiment of the present application.
  • the sampling device may include multiple sampling planes (i.e., multiple first sampling planes).
  • each sampling plane includes multiple ferroelectric capacitors (for example, X row * Y column, X and Y are greater than 0), the sampling device includes multiple field effect transistors (ie, multiple first voltage supply circuits), A plurality of digital-to-analog conversion circuits (ie, multiple sets of A reading circuit is connected (not shown in the figure).
  • the field effect transistor T is used as a diagram of the first voltage supply circuit, and a digital-to-analog conversion circuit is used as a diagram of the second voltage supply circuit.
  • the field effect transistor T is used as a diagram of the first voltage supply circuit.
  • the drain of the effect transistor T is connected to the upper electrodes of the ) is connected to the lower electrode (corresponding to the second electrode) of the ferroelectric capacitor, and CL can be perpendicular to BL.
  • first voltage supply circuit and the second voltage supply circuit may be field effect transistors, digital-to-analog conversion circuits, or other circuits that can provide voltage, which will not be described again here.
  • first electrode and the second electrode of the ferroelectric capacitor may be the upper electrode or the lower electrode, as long as the first electrode and the second electrode are different electrodes, which will not be described again here.
  • the sampling device with a three-dimensional structure can make full use of the advantages of the array structure and increase the sampling speed.
  • the second electrodes of different ferroelectric capacitors in rows with the same serial number in different sampling planes of the above-mentioned sampling device with a three-dimensional structure can share a second voltage supply circuit. See Figure 3b.
  • Figure 3b is An embodiment of the present application provides a schematic diagram of the three-dimensional structure of another sampling device, in which, among multiple sampling planes (including the first sampling plane and the second sampling plane), the ferroelectric capacitor in the xth row in a certain plane is connected to another The x-th row of ferroelectric capacitors with the same value in a plane can respectively share a set of digital-to-analog conversion circuits (i.e., the second electrode of the x-th first ferroelectric capacitor and the X-th third ferroelectric capacitor The second electrode of the x-th third ferroelectric capacitor is connected in parallel with the x-th second voltage supply circuit and shares the second voltage supply circuit), and the controller in the sampling device is respectively connected with the The first voltage supply circuit, the second voltage supply circuit and the
  • the first electrodes of ferroelectric capacitors in different columns can share the first voltage supply circuit. See Figure 3c.
  • Figure 3c is a diagram of this invention.
  • the first electrode of a second ferroelectric capacitor is connected in parallel with the first voltage supply circuit).
  • the sampling device by sharing the first voltage supply circuit, the number of components in the device is reduced. Therefore, the sampling device can further reduce the occupation of the chip area.
  • the first voltage supply circuit can also be shared between different sampling planes to provide voltage (i.e., first voltage) for the first electrode of the ferroelectric capacitor in each plane. See Figure 3d.
  • Figure 3d is an embodiment of the present application.
  • a schematic diagram of the three-dimensional structure of another sampling device is provided, in which the first electrodes of multiple ferroelectric capacitors in different sampling planes are connected in parallel to the drain of the field effect transistor T (i.e., the first voltage supply circuit).
  • the control in the sampling device The devices are respectively connected to the first voltage supply circuit, the second voltage supply circuit and the reading circuit (not shown in the figure). Therefore, the sampling device can further reduce the occupation of chip area.
  • the first voltage supply circuit, the second voltage supply circuit and the reading circuit can be shared between different sampling planes. See Figure 3e.
  • Figure 3e is a diagram of the present invention.
  • the application embodiment provides a schematic diagram of a three-dimensional structure of another sampling device, in which multiple ferroelectric capacitors at different sampling planes (including the first sampling plane and the second sampling plane) are connected in parallel to a field effect transistor T (i.e., the first supply On the drain of the voltage circuit), the ferroelectric capacitors in the same row in different sampling planes are connected in parallel to a set of digital-to-analog conversion circuits (i.e., X second voltage supply circuits), and the ferroelectric capacitors in different sampling planes are connected to a reading On the circuit, the controller in the sampling device is connected to the first voltage supply circuit, the second voltage supply circuit and the Read circuit connections (not shown). Therefore, the sampling device can further reduce the occupation of chip area.
  • T the first supply On the drain of the voltage circuit
  • the following uses the scenario of Bayesian network inference calculation as an example to illustrate the control method of the device with a three-dimensional structure in the above sampling device.
  • FIG. 4 is a schematic flow chart of the control method of the sampling device provided by the embodiment of the present application. Taking Bayesian network inference calculation as an example, starting from node 0 (ie, input node) of the Bayesian network until Up to the output node, the following steps S400 to S402 are included:
  • Step S400 Initialize the ferroelectric capacitor.
  • the ferroelectric capacitance C in a certain sampling plane or all sampling planes in the sampling device in Figure 3a can be initialized to an initial state (such as the first polarization direction or the second polarization direction, which can respectively correspond to "0 ” or “1”), for example, initialize the ferroelectric capacitor of the first sampling plane to the initial state “0”.
  • the voltage can be adjusted so that The upper electrode voltage is less than the lower electrode voltage, and the voltage difference meets the flip threshold.
  • the voltage of the digital-to-analog conversion circuit connected to the lower electrode of the ferroelectric capacitor can be set to a constant greater than 0, for example, it can be set to half of the write voltage (Vw /2), to prevent the ferroelectric capacitor from accidentally flipping when the field effect transistor is turned on.
  • the initialization of the ferroelectric capacitor may be performed before the controller of the sampling device receives the sampling instruction from the main processor, or may be performed after receiving the sampling instruction.
  • the sampling instructions can include probability values that different results of each node in the Bayesian network may occur, and the probability values can be expressed based on byte status and byte length. For example, the byte status representing a certain probability value P is 00011101. (29 after converting from binary to decimal), and its byte length is 8 (which can represent 256 states), then the probability value P can be 29/256, which is about 11.33%.
  • Step S401 Adjust the voltage across the ferroelectric capacitor according to the probability value of the n-th node and the sampling result of the parent node.
  • the voltage difference between the upper and lower electrodes of the ferroelectric capacitor is adjusted again, so that the polarization direction flip probability corresponding to the adjusted voltage difference is consistent with the probability value of various results at node 0 of the Bayesian network.
  • the field effect transistor can be turned on by applying a voltage to CL, thereby precharging the logic node SN to Vpre (that is, the voltage that the field effect transistor can provide value), and adjust the voltage value provided by the digital-to-analog conversion circuit connected to the other end of the ferroelectric capacitor of the first sampling plane.
  • the parent node is the previous node of the current node. If the current node is an input node, it has no parent node.
  • the polarization direction flip probability of the ferroelectric capacitor can be determined based on the sampling results of the parent node and the conditional probability between the node and the parent node.
  • Step S402 Read the sampling result of the n-th node.
  • the polarization direction reversal of the ferroelectric capacitor can be read out through the reading circuit, because there is generally a mutually exclusive relationship between different results of actual events. Therefore, based on the reading results of the reading circuit, it can be determined one by one whether each ferroelectric capacitor has flipped (it can be determined one by one in a certain order, or it can be determined one by one randomly), and the polarization of the first ferroelectric capacitor that has flipped can be determined one by one.
  • the direction is used as the sampling result of Bayesian network node 0; if the polarization direction of the previous ferroelectric capacitor has not flipped when the last ferroelectric capacitor is determined, there is no need to determine whether the polarization direction of the last ferroelectric capacitor has occurred. Flip, it can be considered that the polarization direction of the last ferroelectric capacitor has flipped, and is used as the sampling result of Bayesian network node 0. Understandably, the ferroelectric capacitors of all columns in the first sampling plane can participate in the sampling of node 0. When all columns participate in sampling at the same time, it can be considered that node 0 has been sampled Y times. After completing the sampling of node 0, the second sampling plane can be used to sample node 1 of the Bayesian network.
  • the ferroelectric capacitance of the second sampling plane can be initialized to the initial state first (or When initializing the first sample plane, initialize them together), and then adjust the field effect transistor or digital-to-analog conversion circuit according to the conditional probability value of the Bayesian network (that is, when different results occur at node 0, the probability of different results at node 1)
  • the voltage makes the flip probability of the polarization direction of the ferroelectric capacitor equal to the conditional probability value corresponding to node 1.
  • the reading circuit is used to read the sampling result of node 1.
  • the flip probability of the polarization direction of the ferroelectric capacitor is related to the current state of the ferroelectric capacitor. For example, if the current state of the ferroelectric capacitor is "0", the voltage of its upper electrode needs to be set to be greater than that of the lower electrode. Voltage can make the state “0" of the polarization direction flip to the state "1" of the polarization direction with a certain probability; if the current state of the ferroelectric capacitor is "1", the voltage of its upper electrode needs to be set to be smaller than that of the lower electrode Voltage can make the state "1" in the polarization direction flip to the state "0" in the polarization direction with a certain probability.
  • the upper electrode voltage can be set to be smaller than the lower electrode voltage, so that the voltage difference meets the threshold; and if the state "1" is positioned as the initial state, When initializing the ferroelectric capacitor, the upper electrode voltage can be set to be greater than the lower electrode voltage, so that the voltage difference meets the threshold.
  • all the sampling planes in the above-mentioned sampling device can also be sampled sequentially for the nodes in the Bayesian network at the same time, or the same sampling plane can be continuously used for sampling until the polarization direction of the ferroelectric capacitor in the sampling plane is When the number of flips reaches the upper limit, sampling will be performed through other sampling planes, which are not specifically limited here.
  • the number of possible results in different nodes of the Bayesian network can be the same or different.
  • the number of rows of ferroelectric capacitors in the sampling plane will be greater than or equal to the number of possible results in the node, that is, That is, when the ferroelectric capacitors in the same row correspond to different results at different nodes, the number of rows may be greater than the number of results at the nodes, and the extra ferroelectric capacitors do not need to participate in the sampling of the current node.
  • the reading circuit may also only read the reversal of the polarization direction of the ferroelectric capacitor participating in the sampling.
  • the essence of the implementation of the sampling device is to use the characteristics of the polarization direction of one or more ferroelectric capacitors to flip according to a certain probability to simulate the occurrence process of a probabilistic event and determine the event. Whether corresponding multiple different results occur, thereby realizing the sampling operation, which is different from the existing technology scheme that uses a large number of registers to complete the sampling operation.
  • the area of the ferroelectric capacitor is much smaller than that of the register.
  • the sampling circuit or sampling device based on ferroelectric capacitors in the embodiments of the present application can reduce the chip area occupied by the sampling circuit unit, that is, reduce the cost of the chip area.
  • This application also provides a semiconductor chip, which includes the sampling device provided in all the above embodiments of this application. It can be understood that, regarding the functions and functions of each part of the sampling device, reference can be made to the specific implementation manners in the embodiments shown in FIGS. 1 a to 4 above, and will not be described again here.
  • the electronic device also provides an electronic device, which includes the sampling device provided in all the above embodiments of this application. It can be understood that, regarding the functions and functions of each part of the sampling device, reference can be made to each of the above-mentioned Figures 1a to 4. The specific implementation manner in the embodiment will not be described again here.
  • the electronic device may also include a communication interface for the electronic device to communicate with other devices or communication networks.
  • This application also provides an electronic device, which has the function of implementing any of the above control methods of the sampling device.
  • This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • the present application provides a computer storage medium.
  • the computer storage medium stores a computer program.
  • the sampling device can execute the above control method process.
  • the present application provides a computer program.
  • the computer program includes instructions.
  • the sampling device can execute the above control method process.
  • the chip system further includes a processor and a memory, and the memory is used to save necessary or relevant program instructions and data of the sampling device and the processor.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the SoC chip includes the sampling device provided by any of the above implementations, a processor coupled to the sampling device, an internal memory, and an external memory.
  • the SoC chip can be composed of chips, or can also include chips and other discrete devices.
  • connection relationships involved in this embodiment refer to electrical connections, which may not only be directly connected through wires, but may also be coupled through other electrical methods.
  • each embodiment is described with its own emphasis.
  • parts that are not described in detail in a certain embodiment please refer to the relevant descriptions of other embodiments.
  • the above embodiments are only used to illustrate the technical solution of the present invention, but not to limit it.
  • the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the foregoing.
  • the technical solutions described in each embodiment may be modified, or some of the technical features may be equivalently replaced; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Semiconductor Memories (AREA)

Abstract

A sampling device (12), related equipment, and a control method. The sampling device comprises a first sampling plane (122), a first voltage supply circuit (123), X second voltage supply circuits (124), a controller (121), and a reading circuit (125). By means of the property that the polarization direction of each ferroelectric capacitor is reversed according to a certain probability, the probability distribution of a probability event is simulated and a sample of the probability distribution is obtained, so as to implement a sampling operation. Specifically, by adjusting the voltages at two ends of the ferroelectric capacitor, the reversal probability of the polarization direction of the ferroelectric capacitor is the same as the probability of a different outcome that may occur in the probability event, so that whether the different outcome that may occur in the probability event occurs can be determined according to read polarization direction reversal of the ferroelectric capacitor, so as to complete sampling of the probability event. Overhead of the chip area for implementing a sampling operation can be reduced.

Description

一种采样装置、相关设备和控制方法Sampling device, related equipment and control method
本申请要求于2022年05月05日提交中国专利局、申请号为202210480895.8、申请名称为“一种采样装置、相关设备和控制方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on May 5, 2022, with the application number 202210480895.8 and the application title "A sampling device, related equipment and control method", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种采样装置、相关设备和控制方法。The present application relates to the field of electronic technology, and in particular, to a sampling device, related equipment and a control method.
背景技术Background technique
概率计算在图像分割、医疗诊断等重要的领域内有着广泛的应用,例如贝叶斯网络模型。但是在大规模的概率模型中,节点与节点之间的依赖关系非常复杂,无法通过贝叶斯公式进行直接求解,一般会采用马尔科夫链蒙特卡洛(Markov Chain Monte Carlo,MCMC)的方法进行求解。而在采用MCMC方法求解概率模型的过程中,需要对概率模型中大量的条件概率分布进行采样操作,对于用于计算的硬件而言,例如中央处理器(Center Processing Unit,CPU)或者图形处理器(Graphic Processing Unit,GPU),目前用于实现采样操作的采样电路需要在CPU或GPU芯片上占用较大的面积。Probabilistic calculations are widely used in important fields such as image segmentation and medical diagnosis, such as Bayesian network models. However, in large-scale probabilistic models, the dependencies between nodes are very complex and cannot be directly solved by Bayesian formula. Generally, the Markov Chain Monte Carlo (MCMC) method is used. Solve. In the process of solving the probability model using the MCMC method, a large number of conditional probability distributions in the probability model need to be sampled. For the hardware used for calculation, such as a central processing unit (Center Processing Unit, CPU) or a graphics processor (Graphic Processing Unit, GPU). Currently, the sampling circuit used to implement sampling operations requires a large area on the CPU or GPU chip.
然而,目前工艺对于芯片面积是有一定限度要求的,在芯片面积不变的情况下,要想使得芯片具有更多、更强的功能,就需要追求在面积有限的芯片上集成更多的电路或者器件,也即是说,芯片中的电路或器件需要做得越来越小,占用更少的面积才能满足人们对于芯片具有更多、更强功能的需求。因此,如何提供一种占用面积较小的采样装置,减少实现采样操作对于芯片面积的开销,是亟待解决的问题。However, the current technology has certain limits on chip area. If the chip area remains unchanged, if you want to make the chip have more and stronger functions, you need to pursue integrating more circuits on a chip with a limited area. Or devices, that is to say, the circuits or devices in the chip need to be made smaller and smaller, occupying less area to meet people's demand for chips with more and stronger functions. Therefore, how to provide a sampling device that occupies a smaller area and reduce the chip area overhead of implementing the sampling operation is an issue that needs to be solved urgently.
发明内容Contents of the invention
本申请实施例提供一种采样装置、相关设备和控制方法,能够减少实现采样操作对于芯片面积的开销。Embodiments of the present application provide a sampling device, related equipment and a control method, which can reduce the cost of chip area for implementing sampling operations.
第一方面,本申请实施例提供了一种采样装置,可包括第一采样平面、第一供压电路、X个第二供压电路、控制器和读取电路,所述第一采样平面包括X个第一铁电电容;X为大于0的整数;其中,所述X个第一铁电电容中每个第一铁电电容的第一电极与所述第一供压电路连接;所述第一供压电路用于为每个所述第一铁电电容的所述第一电极提供第一电压;所述X个第一铁电电容中第x个第一铁电电容的第二电极与所述X个第二供压电路中第x个第二供压电路连接;x取1、2、……、X,所述第x个第二供压电路用于为所述第x个第一铁电电容的所述第二电极提供第二电压;所述控制器分别与所述第一供压电路和所述X个第二供压电路连接;所述控制器用于:接收采样指令,所述采样指令包括X个概率值;基于所述X个概率值分别控制所述第一供压电路和/或所述X个第二供压电路调整所述第一电压和/或所述第二电压;所述第x个第一铁电电容上的所述第一电压和所述第二电压的电压差对应所述X个概率值中的第x个概率值;所述读取电路用于读取每个所述第一铁电电容的极化方向;其中,每个所述第一铁电电容的极化方向基于所述第一电压和所述第二电压的电压差在第一极化方向和第二极化方向之间进行翻转。 In a first aspect, embodiments of the present application provide a sampling device, which may include a first sampling plane, a first voltage supply circuit, X second voltage supply circuits, a controller and a reading circuit, where the first sampling plane includes X first ferroelectric capacitors; X is an integer greater than 0; wherein, the first electrode of each of the X first ferroelectric capacitors is connected to the first voltage supply circuit; The first voltage supply circuit is used to provide a first voltage to the first electrode of each of the first ferroelectric capacitors; the second electrode of the x-th first ferroelectric capacitor among the X first ferroelectric capacitors Connected to the x-th second voltage supply circuit among the X second voltage supply circuits; x takes 1, 2,...,X, and the x-th second voltage supply circuit is used to provide The second electrode of the first ferroelectric capacitor provides a second voltage; the controller is respectively connected to the first voltage supply circuit and the X second voltage supply circuits; the controller is used to: receive a sampling instruction , the sampling instructions include X probability values; based on the X probability values, the first voltage supply circuit and/or the X second voltage supply circuits are respectively controlled to adjust the first voltage and/or the a second voltage; the voltage difference between the first voltage and the second voltage on the xth first ferroelectric capacitor corresponds to the xth probability value among the X probability values; the reading circuit for reading the polarization direction of each first ferroelectric capacitor; wherein the polarization direction of each first ferroelectric capacitor is based on the voltage difference between the first voltage and the second voltage. Flip between the first polarization direction and the second polarization direction.
本申请实施例中,提供一种基于铁电电容的采样装置,当该采样装置用于实现采样操作时,能够减少采样电路或采样装置对于芯片面积的占用,使得芯片能有更多富余面积集成其它功能的电路或装置,满足人们对于芯片具有更多、更强功能的需求。具体地,例如在利用该采样装置针对某一随机事件(如事件A)进行采样时,可通过铁电电容模拟该事件A的发生过程,确定该事件A对应的多种不同结果是否发生,达到对事件A采样的目的,首先可以通过调整铁电电容两端的电压差,将不同铁电电容的极化方向翻转概率与事件A不同结果发生的概率对应,使得铁电电容的极化方向可以按照一定概率翻转;然后再读取铁电电容极化方向的翻转情况,因为实际事件的不同结果之间一般是存在互斥关系,因此可以基于读取结果确定出一个极化方向发生翻转的铁电电容,认为该铁电电容对应的事件A的某一结果发生了,并作为本次采样的采样结果。综上,本申请提供的基于铁电电容的采样装置在用于实际采样过程中,各个铁电电容的极化方向翻转概率分布与概率事件不同结果的概率分布一致,且针对上述采样结果的判断逻辑也符合实际事件的发展规律,因此,本申请提供的采样装置可用于实际采样过程。就目前工艺而言,铁电电容的面积要小于寄存器的面积,因此,区别于利用较多寄存器实现采样操作的方案,本申请提供的采样装置占用芯片的面积也较小;此外,本申请提供的采样装置中,采样平面中X个铁电电容的上电极或下电极(即第一电极)可以共用一个供压电路(即第一供压电路),减少了供压电路的数量,从而进一步减少该采样装置对于芯片面积的占用。In the embodiment of the present application, a sampling device based on a ferroelectric capacitor is provided. When the sampling device is used to implement a sampling operation, it can reduce the occupation of the chip area by the sampling circuit or the sampling device, so that the chip can have more spare area for integration. Other functional circuits or devices meet people's needs for chips with more and stronger functions. Specifically, for example, when using the sampling device to sample a certain random event (such as event A), the occurrence process of the event A can be simulated through a ferroelectric capacitor to determine whether multiple different results corresponding to the event A occur, to achieve For the purpose of sampling event A, firstly, by adjusting the voltage difference across the ferroelectric capacitor, the probability of flipping the polarization direction of different ferroelectric capacitors corresponds to the probability of different outcomes of event A, so that the polarization direction of the ferroelectric capacitor can be adjusted according to Flip with a certain probability; then read the flipping situation of the polarization direction of the ferroelectric capacitor. Because there is generally a mutually exclusive relationship between different results of actual events, a ferroelectric whose polarization direction flips can be determined based on the reading results. capacitor, it is considered that a certain result of event A corresponding to the ferroelectric capacitor occurs, and is used as the sampling result of this sampling. In summary, when the ferroelectric capacitor-based sampling device provided by this application is used in the actual sampling process, the polarization direction flip probability distribution of each ferroelectric capacitor is consistent with the probability distribution of different outcomes of probabilistic events, and the judgment of the above sampling results The logic also conforms to the development law of actual events. Therefore, the sampling device provided by this application can be used in the actual sampling process. As far as the current technology is concerned, the area of the ferroelectric capacitor is smaller than the area of the register. Therefore, unlike the solution that uses more registers to implement the sampling operation, the sampling device provided by this application also occupies a smaller area of the chip; in addition, this application provides In the sampling device, the upper electrodes or lower electrodes (i.e., the first electrode) of the Reduce the chip area occupied by the sampling device.
在一种可能的实现方式中,每个所述第一铁电电容的所述第一电极或所述第二电极与所述读取电路连接。In a possible implementation, the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit.
本申请实施例中,采样装置中的读取电路可以与铁电电容的上电极或者下电极连接,使得采样装置的电路实现更具有灵活性,从而提高采样装置的适用性。In the embodiment of the present application, the reading circuit in the sampling device can be connected to the upper electrode or the lower electrode of the ferroelectric capacitor, so that the circuit implementation of the sampling device is more flexible, thereby improving the applicability of the sampling device.
在一种可能的实现方式中,所述第一电极包括上电极或下电极,所述第二电极包括上电极或下电极,所述第一电极与所述第二电极为不同电极。In a possible implementation, the first electrode includes an upper electrode or a lower electrode, the second electrode includes an upper electrode or a lower electrode, and the first electrode and the second electrode are different electrodes.
本申请实施例中,采样装置中铁电电容的第一电极可以是上电极,也可以是下电极,采样平面中多个铁电电容的第一电极可以与第一供压电路连接,也即是说,共用第一供压电路的可以是多个铁电电容的上电极,也可以是多个铁电电容的下电极,使得采样装置的实现更具有灵活性,从而提高采样装置的适用性。In the embodiment of the present application, the first electrode of the ferroelectric capacitor in the sampling device can be the upper electrode or the lower electrode, and the first electrodes of the multiple ferroelectric capacitors in the sampling plane can be connected to the first voltage supply circuit, that is, That is, the first voltage supply circuit can be shared by the upper electrodes of multiple ferroelectric capacitors or the lower electrodes of multiple ferroelectric capacitors, which makes the implementation of the sampling device more flexible, thus improving the applicability of the sampling device.
在一种可能的实现方式中,所述第一供压电路包括第一场效应管或第一数模转换电路;所述X个第二供压电路包括第二场效应管或第二数模转换电路。In a possible implementation, the first voltage supply circuit includes a first field effect transistor or a first digital-to-analog conversion circuit; and the X second voltage supply circuits include second field effect transistors or second digital-to-analog conversion circuits. conversion circuit.
本申请实施例中,采样装置中的第一供压电路可以是场效应管,也可以是数模转换电路;第二供压电路可以是场效应管,也可以是数模转换电路,也即是说,采样装置包括的两组供压电路可以都是场效应管或者数模转换电路,也可以场效应管和数模转换电路的组合。由于场效应管和数模转换电路的结构简单,面积较小,采样装置利用它们为铁电电容两端的上电极和下电极提供电压,不仅能够进一步减少芯片面积的开销。In the embodiment of the present application, the first voltage supply circuit in the sampling device may be a field effect transistor or a digital-to-analog conversion circuit; the second voltage supply circuit may be a field effect transistor or a digital-to-analog conversion circuit, that is, That is to say, the two sets of voltage supply circuits included in the sampling device can both be field effect transistors or digital-to-analog conversion circuits, or they can be a combination of field effect transistors and digital-to-analog conversion circuits. Since the field effect transistors and digital-to-analog conversion circuits have simple structures and small areas, the sampling device uses them to provide voltages to the upper and lower electrodes at both ends of the ferroelectric capacitor, which can not only further reduce the chip area overhead.
在一种可能的实现方式中,所述第一供压电路或所述X个第二供压电路集成于所述读取电路中。In a possible implementation, the first voltage supply circuit or the X second voltage supply circuits are integrated in the reading circuit.
本申请实施例中,采样装置中用于为铁电电容的上电极或下电极提供电压的供压电路,可以集成在读取电路中,复用读取电路中的部分结构,从而可以减少电路开销,进一步减少采样装置对于芯片面积的占用。In the embodiment of the present application, the voltage supply circuit used in the sampling device to provide voltage for the upper electrode or the lower electrode of the ferroelectric capacitor can be integrated in the reading circuit, and part of the structure in the reading circuit is reused, thereby reducing the number of circuits. overhead, further reducing the chip area occupied by the sampling device.
在一种可能的实现方式中,所述第一采样平面还包括X个第二铁电电容,每个所述第一铁电电容的所述第一电极和所述X个第二铁电电容中每个第二铁电电容的所述第一电极,以 并联方式与所述第一供压电路连接,共用所述第一供压电路。In a possible implementation, the first sampling plane further includes X second ferroelectric capacitors, the first electrode of each first ferroelectric capacitor and the X second ferroelectric capacitors the first electrode of each second ferroelectric capacitor, to The first voltage supply circuit is connected in parallel and shares the first voltage supply circuit.
本申请实施例中,采样装置中同一个采样平面内,可以包括多组(例如Y组)铁电电容,不同组中的多个铁电电容的第一电极(如上电极)可以共用同一个供压电路(即第一供压电路),也即是说,一个供压电路可以为同一采样平面中的X*Y个铁电电容的第一电极提供电压,这极大地减少了供压电路的数量,进一步减少采样装置对于芯片面积的占用。In the embodiment of the present application, the same sampling plane in the sampling device may include multiple groups (for example, Y group) of ferroelectric capacitors, and the first electrodes (such as the upper electrode) of multiple ferroelectric capacitors in different groups may share the same power supply. voltage circuit (i.e., the first voltage supply circuit), that is to say, a voltage supply circuit can provide voltage to the first electrodes of X*Y ferroelectric capacitors in the same sampling plane, which greatly reduces the number of voltage supply circuits. quantity, further reducing the chip area occupied by the sampling device.
在一种可能的实现方式中,所述第一采样平面还包括X个第二铁电电容,所述第x个第一铁电电容的所述第二电极与所述X个第二铁电电容中第x个第二铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第x个第二供压电路;x取1、2、……、X。In a possible implementation, the first sampling plane further includes X second ferroelectric capacitors, and the second electrode of the xth first ferroelectric capacitor is connected to the The second electrode of the x-th second ferroelectric capacitor in the capacitor is connected in parallel with the x-th second voltage supply circuit, sharing the x-th second voltage supply circuit; x is 1 or 2 ,...,X.
本申请实施例中,采样装置中同一个采样平面内,可以包括多组(例如Y组)铁电电容,不同组中序号相同(x取值相同时)的多个铁电电容的第二电极(如下电极)可以共用同一个供压电路(即第x个第二供压电路),也即是说,一个供压电路可以为同一采样平面中的Y个铁电电容的第二电极提供电压,这极大地减少了供压电路的数量,进一步减少采样装置对于芯片面积的占用。In the embodiment of the present application, the same sampling plane in the sampling device may include multiple groups (for example, Y group) of ferroelectric capacitors, and the second electrodes of multiple ferroelectric capacitors with the same serial number in different groups (when x has the same value). (the following electrodes) can share the same voltage supply circuit (i.e., the x-th second voltage supply circuit), that is to say, one voltage supply circuit can provide voltage for the second electrodes of Y ferroelectric capacitors in the same sampling plane. , which greatly reduces the number of voltage supply circuits and further reduces the chip area occupied by the sampling device.
在一种可能的实现方式中,所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,所述X个第三铁电电容中每个第三铁电电容的所述第一电极与每个所述第一铁电电容的所述第一电极,以并联方式与所述第一供压电路连接,共用所述第一供压电路。In a possible implementation, the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the X third ferroelectric capacitors The first electrode of the electric capacitor and the first electrode of each of the first ferroelectric capacitors are connected in parallel with the first voltage supply circuit and share the first voltage supply circuit.
本申请实施例中,采样装置中包括多个采样平面(例如S个采样平面),不同采样平面中的多个组的铁电电容的第一电极(如上电极)可以共用同一个供压电路(即第一供压电路),也即是说,一个供压电路可以为不同采样平面中的S*Y个铁电电容的第一电极提供电压;此外,若同一采样平面的不同组中的铁电电容也可以共用该供压电路时,则一个供压电路可以为不同采样平面中的S*X*Y个铁电电容的第一电极提供电压,这极大地减少了供压电路的数量,进一步减少采样装置对于芯片面积的占用。In the embodiment of the present application, the sampling device includes multiple sampling planes (for example, S sampling planes), and the first electrodes (such as the upper electrodes) of multiple groups of ferroelectric capacitors in different sampling planes can share the same voltage supply circuit ( That is, the first voltage supply circuit), that is to say, a voltage supply circuit can provide voltage for the first electrodes of S*Y ferroelectric capacitors in different sampling planes; in addition, if the ferroelectric capacitors in different groups in the same sampling plane When the electric capacitors can also share the voltage supply circuit, then one voltage supply circuit can provide voltage for the first electrodes of S*X*Y ferroelectric capacitors in different sampling planes, which greatly reduces the number of voltage supply circuits. Further reducing the chip area occupied by the sampling device.
在一种可能的实现方式中,所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,所述第x个第一铁电电容的所述第二电极与所述X个第三铁电电容中第x个第三铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第二供压电路;x取1、2、……、X。In a possible implementation, the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, and the second second sampling plane of the The electrode and the second electrode of the x-th third ferroelectric capacitor among the X third ferroelectric capacitors are connected in parallel with the x-th second voltage supply circuit, sharing the second voltage supply Circuit; x takes 1, 2,...,X.
本申请实施例中,采样装置中包括多个采样平面(例如S个采样平面),不同采样平面内不同组中序号相同(x取值相同时)的多个铁电电容的第二电极(如下电极)可以共用同一个供压电路(即第x个第二供压电路),也即是说,一个供压电路可以为不同采样平面中的S*Y个铁电电容的第二电极提供电压,当同一采样平面中序号相同的多个组的铁电电容的第一电极也可以共用该供压电路时,则一个该供压电路可以为不同采样平面中的S*X*Y个铁电电容的第一电极提供电压,这极大地减少了供压电路的数量,进一步减少采样装置对于芯片面积的占用。In the embodiment of the present application, the sampling device includes multiple sampling planes (for example, S sampling planes), and the second electrodes of multiple ferroelectric capacitors with the same serial number (when x has the same value) in different groups in different sampling planes (as follows) electrodes) can share the same voltage supply circuit (i.e., the x-th second voltage supply circuit), that is to say, one voltage supply circuit can provide voltage for the second electrodes of S*Y ferroelectric capacitors in different sampling planes. , when the first electrodes of multiple groups of ferroelectric capacitors with the same serial number in the same sampling plane can also share the voltage supply circuit, then one of the voltage supply circuits can be S*X*Y ferroelectric capacitors in different sampling planes. The first electrode of the capacitor provides voltage, which greatly reduces the number of voltage supply circuits and further reduces the chip area occupied by the sampling device.
在一种可能的实现方式中,每个所述第一铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路;所述第一采样平面还包括X个第二铁电电容,每个所述第一铁电电容和所述X个第二铁电电容中每个第二铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路。In a possible implementation, the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit in a parallel manner and shares the reading circuit; The first sampling plane also includes X second ferroelectric capacitors, the first electrode or the first electrode of each of the first ferroelectric capacitors and the X second ferroelectric capacitors. The second electrode is connected in parallel with the reading circuit and shares the reading circuit.
本申请实施例中,采样装置中同一个采样平面内可以包括多组铁电电容,同一组中的多个铁电电容的第一电极或者第二电极(如上电极)可以共用同一个读取电路(即读取电路), 且不同组中的多个铁电电容也可以共用该读取电路,也即是说,一个读取电路可以将同一采样平面中的X*Y个铁电电容的极化方向的翻转情况读取出来,这极大地减少了读取电路的数量,进一步减少采样装置对于芯片面积的占用。In the embodiment of the present application, the same sampling plane in the sampling device may include multiple groups of ferroelectric capacitors, and the first electrodes or second electrodes (such as the upper electrodes) of multiple ferroelectric capacitors in the same group may share the same reading circuit. (i.e. reading circuit), And multiple ferroelectric capacitors in different groups can also share the reading circuit. That is to say, one reading circuit can read the reversal of polarization directions of X*Y ferroelectric capacitors in the same sampling plane. This greatly reduces the number of reading circuits and further reduces the chip area occupied by the sampling device.
在一种可能的实现方式中,所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,每个所述第一铁电电容和所述X个第三铁电电容中每个第三铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路。In a possible implementation, the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the first ferroelectric capacitors and the The first electrode or the second electrode of each third ferroelectric capacitor among the three ferroelectric capacitors is connected in parallel with the reading circuit and shares the reading circuit.
本申请实施例中,采样装置中可以包括多个采样平面(例如S个采样平面),每个采样平面可以包括一组或多组铁电电容(例如Y组),不同采样平面中不同组内的多个铁电电容的第一电极或者第二电极(如上电极)可以共用同一个读取电路(即读取电路),也即是说,一个读取电路可以将不同采样平面中的S*Y个铁电电容的极化方向的翻转情况读取出来;并且,若同一采样平面的不同组中的铁电电容也可以共用该读取时,则一个读取电路可以将不同采样平面中的S*X*Y个铁电电容的极化方向的翻转情况读取出来,这极大地减少了读取电路的数量,进一步减少采样装置对于芯片面积的占用。In the embodiment of the present application, the sampling device may include multiple sampling planes (for example, S sampling planes). Each sampling plane may include one or more groups of ferroelectric capacitors (for example, Y group). Different groups in different sampling planes may The first electrode or the second electrode (such as the upper electrode) of multiple ferroelectric capacitors can share the same reading circuit (i.e., reading circuit). In other words, a reading circuit can convert S* in different sampling planes. The flipping conditions of the polarization directions of Y ferroelectric capacitors are read out; and if the ferroelectric capacitors in different groups of the same sampling plane can also share the reading, then a reading circuit can read out the polarization directions of the Y ferroelectric capacitors. The flipping conditions of the polarization directions of S*X*Y ferroelectric capacitors are read out, which greatly reduces the number of reading circuits and further reduces the chip area occupied by the sampling device.
在一种可能的实现方式中,当所述第一电极的所述第一电压和所述第二电极的所述第二电压之间的电压差大于或等于预设阈值时,对应的第一铁电电容的极化方向在所述第一极化方向和所述第二极化方向之间进行翻转;当所述电压差小于所述预设阈值时,对应的第一铁电电容的极化方向按照所述电压差对应的概率值在第一极化方向和第二极化方向之间进行翻转。In a possible implementation, when the voltage difference between the first voltage of the first electrode and the second voltage of the second electrode is greater than or equal to a preset threshold, the corresponding first The polarization direction of the ferroelectric capacitor flips between the first polarization direction and the second polarization direction; when the voltage difference is less than the preset threshold, the polarization direction of the corresponding first ferroelectric capacitor The polarization direction is flipped between the first polarization direction and the second polarization direction according to the probability value corresponding to the voltage difference.
本申请实施例中,采样装置包括一个或多个铁电电容的极化方向的翻转,与铁电电容两端的电压差有关,当电压差到达一定数值时,铁电电容的极化方向将会翻转;当电压差未能到达一定数值时,铁电电容的极化方向将会按照电压差具体数值对应的概率值进行翻转。In the embodiment of the present application, the sampling device includes the reversal of the polarization direction of one or more ferroelectric capacitors, which is related to the voltage difference across the ferroelectric capacitor. When the voltage difference reaches a certain value, the polarization direction of the ferroelectric capacitor will Flip; when the voltage difference fails to reach a certain value, the polarization direction of the ferroelectric capacitor will flip according to the probability value corresponding to the specific value of the voltage difference.
第二方面,本申请实施例提供了一种采样装置,可包括第一供压电路、X个第二供压电路、控制器和读取电路,所述采样装置与第一采样平面耦合,所述第一采样平面包括X个第一铁电电容;X为大于0的整数;其中,所述X个第一铁电电容中每个第一铁电电容的第一电极与所述第一供压电路连接;所述第一供压电路用于为每个所述第一铁电电容的所述第一电极提供第一电压;所述X个第一铁电电容中第x个第一铁电电容的第二电极与所述X个第二供压电路中第x个第二供压电路连接;x取1、2、……、X,所述第x个第二供压电路用于为所述第x个第一铁电电容的所述第二电极提供第二电压;所述控制器分别与所述第一供压电路和所述X个第二供压电路连接;所述控制器用于:接收采样指令,所述采样指令包括X个概率值;基于所述X个概率值分别控制所述第一供压电路和/或所述X个第二供压电路调整所述第一电压和/或所述第二电压;所述第x个第一铁电电容上的所述第一电压和所述第二电压的电压差对应所述X个概率值中的第x个概率值;所述读取电路用于读取每个所述第一铁电电容的极化方向;其中,每个所述第一铁电电容的极化方向基于所述第一电压和所述第二电压的电压差在第一极化方向和第二极化方向之间进行翻转。In the second aspect, embodiments of the present application provide a sampling device, which may include a first voltage supply circuit, X second voltage supply circuits, a controller and a reading circuit. The sampling device is coupled to the first sampling plane, so The first sampling plane includes X first ferroelectric capacitors; X is an integer greater than 0; wherein the first electrode of each first ferroelectric capacitor in the voltage circuit connection; the first voltage supply circuit is used to provide a first voltage to the first electrode of each of the first ferroelectric capacitors; the x-th first ferroelectric capacitor among the The second electrode of the electric capacitor is connected to the x-th second voltage supply circuit among the X second voltage supply circuits; x is 1, 2,...,X, and the x-th second voltage supply circuit is used for Provide a second voltage to the second electrode of the x-th first ferroelectric capacitor; the controller is connected to the first voltage supply circuit and the X second voltage supply circuit respectively; the control The device is configured to: receive a sampling instruction, the sampling instruction including X probability values; respectively control the first voltage supply circuit and/or the X second voltage supply circuits to adjust the first voltage supply circuit based on the X probability values. voltage and/or the second voltage; the voltage difference between the first voltage and the second voltage on the x-th first ferroelectric capacitor corresponds to the x-th probability value among the X probability values ; The reading circuit is used to read the polarization direction of each of the first ferroelectric capacitors; wherein the polarization direction of each of the first ferroelectric capacitors is based on the first voltage and the second The voltage difference flips between the first polarization direction and the second polarization direction.
在一种可能的实现方式中,每个所述第一铁电电容的所述第一电极或所述第二电极与所述读取电路连接。In a possible implementation, the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit.
在一种可能的实现方式中,所述第一电极包括上电极或下电极,所述第二电极包括上电极或下电极,所述第一电极与所述第二电极为不同电极。In a possible implementation, the first electrode includes an upper electrode or a lower electrode, the second electrode includes an upper electrode or a lower electrode, and the first electrode and the second electrode are different electrodes.
在一种可能的实现方式中,所述第一供压电路包括第一场效应管或第一数模转换电路;所述X个第二供压电路包括第二场效应管或第二数模转换电路。 In a possible implementation, the first voltage supply circuit includes a first field effect transistor or a first digital-to-analog conversion circuit; and the X second voltage supply circuits include second field effect transistors or second digital-to-analog conversion circuits. conversion circuit.
在一种可能的实现方式中,所述第一供压电路或所述X个第二供压电路集成于所述读取电路中。In a possible implementation, the first voltage supply circuit or the X second voltage supply circuits are integrated in the reading circuit.
在一种可能的实现方式中,所述第一采样平面还包括X个第二铁电电容,每个所述第一铁电电容的所述第一电极和所述X个第二铁电电容中每个第二铁电电容的所述第一电极,以并联方式与所述第一供压电路连接,共用所述第一供压电路。In a possible implementation, the first sampling plane further includes X second ferroelectric capacitors, the first electrode of each first ferroelectric capacitor and the X second ferroelectric capacitors The first electrode of each second ferroelectric capacitor is connected in parallel with the first voltage supply circuit and shares the first voltage supply circuit.
在一种可能的实现方式中,所述第一采样平面还包括X个第二铁电电容,所述第x个第一铁电电容的所述第二电极与所述X个第二铁电电容中第x个第二铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第x个第二供压电路;x取1、2、……、X。In a possible implementation, the first sampling plane further includes X second ferroelectric capacitors, and the second electrode of the xth first ferroelectric capacitor is connected to the The second electrode of the x-th second ferroelectric capacitor in the capacitor is connected in parallel with the x-th second voltage supply circuit, sharing the x-th second voltage supply circuit; x is 1 or 2 ,...,X.
在一种可能的实现方式中,所述采样装置还与第二采样平面耦合,所述第二采样平面包括X个第三铁电电容,所述X个第三铁电电容中每个第三铁电电容的所述第一电极与每个所述第一铁电电容的所述第一电极,以并联方式与所述第一供压电路连接,共用所述第一供压电路。In a possible implementation, the sampling device is also coupled to a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the X third ferroelectric capacitors The first electrode of the ferroelectric capacitor and the first electrode of each first ferroelectric capacitor are connected in parallel with the first voltage supply circuit and share the first voltage supply circuit.
在一种可能的实现方式中,所述采样装置还与第二采样平面耦合,所述第二采样平面包括X个第三铁电电容,所述第x个第一铁电电容的所述第二电极与所述X个第三铁电电容中第x个第三铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第二供压电路;x取1、2、……、X。In a possible implementation, the sampling device is also coupled to a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, and the xth first ferroelectric capacitor has The two electrodes are connected to the x-th second voltage supply circuit in parallel with the second electrode of the x-th third ferroelectric capacitor among the Voltage circuit; x takes 1, 2,...,X.
在一种可能的实现方式中,每个所述第一铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路;所述第一采样平面还包括X个第二铁电电容,每个所述第一铁电电容和所述X个第二铁电电容中每个第二铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路。In a possible implementation, the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit in a parallel manner and shares the reading circuit; The first sampling plane also includes X second ferroelectric capacitors, the first electrode or the first electrode of each of the first ferroelectric capacitors and the X second ferroelectric capacitors. The second electrode is connected in parallel with the reading circuit and shares the reading circuit.
在一种可能的实现方式中,所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,每个所述第一铁电电容和所述X个第三铁电电容中每个第三铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路。In a possible implementation, the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the first ferroelectric capacitors and the The first electrode or the second electrode of each third ferroelectric capacitor among the three ferroelectric capacitors is connected in parallel with the reading circuit and shares the reading circuit.
在一种可能的实现方式中,当所述第一电压和所述第二电压的电压差大于或等于预设阈值时,对应的第一铁电电容的极化方向在所述第一极化方向和所述第二极化方向之间进行翻转;当所述电压差小于所述预设阈值时,对应的第一铁电电容的极化方向按照所述电压差对应的概率值在第一极化方向和第二极化方向之间进行翻转。In a possible implementation, when the voltage difference between the first voltage and the second voltage is greater than or equal to a preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in the first polarization direction. flip between the direction and the second polarization direction; when the voltage difference is less than the preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in the first polarization direction according to the probability value corresponding to the voltage difference. flip between the polarization direction and the second polarization direction.
第三方面,本申请实施例提供了一种铁电电容阵列,可包括第一采样平面,所述第一采样平面包括X个第一铁电电容,所述第一采样平面与采样装置耦合,所述采样装置包括第一供压电路、X个第二供压电路、控制器和读取电路;X为大于0的整数;其中,所述X个第一铁电电容中每个第一铁电电容的第一电极与所述第一供压电路连接;所述第一供压电路用于为每个所述第一铁电电容的所述第一电极提供第一电压;所述X个第一铁电电容中第x个第一铁电电容的第二电极与所述X个第二供压电路中第x个第二供压电路连接;x取1、2、……、X,所述第x个第二供压电路用于为所述第x个第一铁电电容的所述第二电极提供第二电压;所述控制器分别与所述第一供压电路和所述X个第二供压电路连接;所述控制器用于:接收采样指令,所述采样指令包括X个概率值;基于所述X个概率值分别控制所述第一供压电路和/或所述X个第二供压电路调整所述第一电压和/或所述第二电压;所述第x个第一铁电电容上的所述第一电压和所述第二电压的电压差对应所述X个概率值中的第x个概率值;所述读取电路用于读取每个所述第一铁电电容的极化方向;其中,每个所述第一铁电电容的极化 方向基于所述第一电压和所述第二电压的电压差在第一极化方向和第二极化方向之间进行翻转。In a third aspect, embodiments of the present application provide a ferroelectric capacitor array, which may include a first sampling plane, the first sampling plane including X first ferroelectric capacitors, the first sampling plane being coupled to a sampling device, The sampling device includes a first voltage supply circuit, X second voltage supply circuits, a controller and a reading circuit; X is an integer greater than 0; wherein each of the X first ferroelectric capacitors The first electrode of the electric capacitor is connected to the first voltage supply circuit; the first voltage supply circuit is used to provide a first voltage to the first electrode of each of the first ferroelectric capacitors; the X The second electrode of the x-th first ferroelectric capacitor among the first ferroelectric capacitors is connected to the x-th second voltage supply circuit among the X second voltage supply circuits; x is 1, 2,...,X, The x-th second voltage supply circuit is used to provide a second voltage to the second electrode of the x-th first ferroelectric capacitor; the controller is respectively connected to the first voltage supply circuit and the X second voltage supply circuits are connected; the controller is configured to: receive sampling instructions, the sampling instructions include X probability values; respectively control the first voltage supply circuit and/or the X second voltage supply circuits adjust the first voltage and/or the second voltage; the voltage difference between the first voltage and the second voltage on the xth first ferroelectric capacitor corresponds to The x-th probability value among the X probability values; the reading circuit is used to read the polarization direction of each first ferroelectric capacitor; wherein, the polarization direction of each first ferroelectric capacitor The direction is flipped between a first polarization direction and a second polarization direction based on a voltage difference between the first voltage and the second voltage.
在一种可能的实现方式中,每个所述第一铁电电容的所述第一电极或所述第二电极与所述读取电路连接。In a possible implementation, the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit.
在一种可能的实现方式中,所述第一电极包括上电极或下电极,所述第二电极包括上电极或下电极,所述第一电极与所述第二电极为不同电极。In a possible implementation, the first electrode includes an upper electrode or a lower electrode, the second electrode includes an upper electrode or a lower electrode, and the first electrode and the second electrode are different electrodes.
在一种可能的实现方式中,所述第一供压电路包括第一场效应管或第一数模转换电路;所述X个第二供压电路包括第二场效应管或第二数模转换电路。In a possible implementation, the first voltage supply circuit includes a first field effect transistor or a first digital-to-analog conversion circuit; and the X second voltage supply circuits include second field effect transistors or second digital-to-analog conversion circuits. conversion circuit.
在一种可能的实现方式中,所述第一供压电路或所述X个第二供压电路集成于所述读取电路中。In a possible implementation, the first voltage supply circuit or the X second voltage supply circuits are integrated in the reading circuit.
在一种可能的实现方式中,所述第一采样平面还包括X个第二铁电电容,每个所述第一铁电电容的所述第一电极和所述X个第二铁电电容中每个第二铁电电容的所述第一电极,以并联方式与所述第一供压电路连接,共用所述第一供压电路。In a possible implementation, the first sampling plane further includes X second ferroelectric capacitors, the first electrode of each first ferroelectric capacitor and the X second ferroelectric capacitors The first electrode of each second ferroelectric capacitor is connected in parallel with the first voltage supply circuit and shares the first voltage supply circuit.
在一种可能的实现方式中,所述第一采样平面还包括X个第二铁电电容,所述第x个第一铁电电容的所述第二电极与所述X个第二铁电电容中第x个第二铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第x个第二供压电路;x取1、2、……、X。In a possible implementation, the first sampling plane further includes X second ferroelectric capacitors, and the second electrode of the xth first ferroelectric capacitor is connected to the The second electrode of the x-th second ferroelectric capacitor in the capacitor is connected in parallel with the x-th second voltage supply circuit, sharing the x-th second voltage supply circuit; x is 1 or 2 ,...,X.
在一种可能的实现方式中,所述铁电电容阵列还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,所述X个第三铁电电容中每个第三铁电电容的所述第一电极与每个所述第一铁电电容的所述第一电极,以并联方式与所述第一供压电路连接,共用所述第一供压电路。In a possible implementation, the ferroelectric capacitor array further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the X third ferroelectric capacitors The first electrodes of the three ferroelectric capacitors and the first electrodes of each of the first ferroelectric capacitors are connected to the first voltage supply circuit in a parallel manner, and share the first voltage supply circuit.
在一种可能的实现方式中,所述铁电电容阵列还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,所述第x个第一铁电电容的所述第二电极与所述X个第三铁电电容中第x个第三铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第二供压电路;x取1、2、……、X。In a possible implementation, the ferroelectric capacitor array further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, and the xth first ferroelectric capacitor is The second electrode and the second electrode of the x-th third ferroelectric capacitor among the X third ferroelectric capacitors are connected in parallel with the x-th second voltage supply circuit, sharing the second Voltage supply circuit; x takes 1, 2,...,X.
在一种可能的实现方式中,每个所述第一铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路;所述第一采样平面还包括X个第二铁电电容,每个所述第一铁电电容和所述X个第二铁电电容中每个第二铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路。In a possible implementation, the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit in a parallel manner and shares the reading circuit; The first sampling plane also includes X second ferroelectric capacitors, the first electrode or the first electrode of each of the first ferroelectric capacitors and the X second ferroelectric capacitors. The second electrode is connected in parallel with the reading circuit and shares the reading circuit.
在一种可能的实现方式中,所述铁电电容阵列还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,每个所述第一铁电电容和所述X个第三铁电电容中每个第三铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路。In a possible implementation, the ferroelectric capacitor array further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the first ferroelectric capacitors and the The first electrode or the second electrode of each of the third ferroelectric capacitors is connected in parallel with the reading circuit and shares the reading circuit.
在一种可能的实现方式中,当所述第一电压和所述第二电压的电压差大于或等于预设阈值时,对应的第一铁电电容的极化方向在所述第一极化方向和所述第二极化方向之间进行翻转;当所述电压差小于所述预设阈值时,对应的第一铁电电容的极化方向按照所述电压差对应的概率值在第一极化方向和第二极化方向之间进行翻转。In a possible implementation, when the voltage difference between the first voltage and the second voltage is greater than or equal to a preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in the first polarization direction. flip between the direction and the second polarization direction; when the voltage difference is less than the preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in the first polarization direction according to the probability value corresponding to the voltage difference. flip between the polarization direction and the second polarization direction.
第四方面,本申请实施例提供了一种控制方法,该方法适用于上述第一方面和第二方面以及结合第一方面和第二方面可能的实现方式中任一种提供的采样装置。该方法包括:通过所述控制器控制所述第一供压电路和/或所述X个第二供压电路对所述第一电压和/或所述第二电压进行第一调整,将每个所述第一铁电电容的极化方向初始化为所述第一极化方向;通 过所述控制器接收采样指令,所述采样指令包括X个概率值;并基于所述X个概率值分别控制所述第一供压电路和/或所述X个第二供压电路对所述第一电压和或所述第二电压进行第二调整,所述第x个第一铁电电容上的所述第一电压和所述第二电压的电压差对应所述X个概率值中的第x个概率值;通过所述读取电路读取铁电电容每个所述第一铁电电容的极化方向;其中,每个所述第一铁电电容的极化方向基于所述第一电压和所述第二电压的电压差从所述第一极化方向翻转到所述第二极化方向。In a fourth aspect, embodiments of the present application provide a control method that is applicable to the sampling device provided in any one of the above first and second aspects and possible implementations in combination with the first and second aspects. The method includes: controlling the first voltage supply circuit and/or the X second voltage supply circuits by the controller to perform a first adjustment on the first voltage and/or the second voltage, and each The polarization direction of the first ferroelectric capacitor is initialized to the first polarization direction; Receive sampling instructions through the controller, the sampling instructions include X probability values; and based on the X probability values, respectively control the first voltage supply circuit and/or the X second voltage supply circuits to The first voltage and or the second voltage are subjected to a second adjustment, and the voltage difference between the first voltage and the second voltage on the x-th first ferroelectric capacitor corresponds to one of the X probability values. The xth probability value of The voltage difference between the first voltage and the second voltage flips from the first polarization direction to the second polarization direction.
本申请实施例中,在利用上述采样装置进行采样之前,可以先对铁电电容的极化方向进行初始化,使其回到初始状态(即第一极化方向,也可以是第二极化方向);因为实际事件的不同结果之间一般是存在互斥关系的,在完成采样后,读取电路只需读取本次采样后铁电电容的极化方向的状态,即可逐一确定铁电电容的极化方向是否发生翻转(可以按照一定顺序逐一确定,也可以随机逐一确定),并可以将第一个发生翻转的铁电电容的极化方向作为采样结果;若确定到最后一个铁电电容时,前面仍无铁电电容的极化方向发生翻转,则可以不用判断最后一个铁电电容的极化方向是否发生翻转,可认为最后一个铁电电容的极化方向发生了翻转,并作为采样结果。若在采样之前不进行铁电电容极化方向的初始化,则需要额外的存储器件,对本次采样前铁电电容的极化方向状态进行记录保存,并需要将本次采样结束后铁电电容的极化方向状态与存储器件记录保存的本次采样前的状态进行对比,才能确定出铁电电容的极化方向是否发生翻转;此外,由于铁电电容极化方向的翻转概率与铁电电容当前处于的状态也有关,若不进行初始化,则在实际采样调整铁电电容两端电压的过程中,可能会出现有的铁电电容的上电极电压大于下电极电压,而有的铁电电容的上电极电压小于下电极电压,电路复杂度较高,可能需要特定的供压电路才能实现。因此,当本申请实施例提供的采样装置使用本申请提供的控制方法实现采样操作时,可以简化采样逻辑,降低采样装置对于供压电路的要求,提高采样装置的适用性。In the embodiment of the present application, before using the above-mentioned sampling device for sampling, the polarization direction of the ferroelectric capacitor can be initialized to return it to the initial state (that is, the first polarization direction, or the second polarization direction). ); Because there is generally a mutually exclusive relationship between different results of actual events, after completing the sampling, the reading circuit only needs to read the state of the polarization direction of the ferroelectric capacitor after this sampling to determine the ferroelectric one by one. Whether the polarization direction of the capacitor has flipped (it can be determined one by one in a certain order or randomly), and the polarization direction of the first flipped ferroelectric capacitor can be used as the sampling result; if the last ferroelectric capacitor is determined, If the polarization direction of the previous ferroelectric capacitor has not flipped, it is not necessary to judge whether the polarization direction of the last ferroelectric capacitor has flipped. It can be considered that the polarization direction of the last ferroelectric capacitor has flipped and is regarded as Sampling results. If the polarization direction of the ferroelectric capacitor is not initialized before sampling, additional storage devices are needed to record and save the polarization direction state of the ferroelectric capacitor before sampling, and the polarization direction state of the ferroelectric capacitor after this sampling needs to be stored. Only by comparing the polarization direction state of the ferroelectric capacitor with the state before this sampling recorded and saved by the storage device can it be determined whether the polarization direction of the ferroelectric capacitor has flipped; in addition, since the flipping probability of the polarization direction of the ferroelectric capacitor is different from that of the ferroelectric capacitor The current state is also related. If initialization is not performed, during the actual process of sampling and adjusting the voltage across the ferroelectric capacitor, it may appear that the upper electrode voltage of some ferroelectric capacitors is greater than the lower electrode voltage, and that of some ferroelectric capacitors The upper electrode voltage is smaller than the lower electrode voltage, and the circuit complexity is higher, which may require a specific voltage supply circuit to achieve. Therefore, when the sampling device provided by the embodiment of the present application uses the control method provided by the present application to implement the sampling operation, the sampling logic can be simplified, the requirements of the sampling device for the voltage supply circuit can be reduced, and the applicability of the sampling device can be improved.
在一中可能的实现方式中,所述方法,还包括:当所述第一采样平面还包括X个第二铁电电容时,通过所述读取电路读取每个所述第二铁电电容的极化方向。In a possible implementation, the method further includes: when the first sampling plane also includes X second ferroelectric capacitors, reading each of the second ferroelectric capacitors through the reading circuit. The polarization direction of the capacitor.
本申请实施例中,利用上述采样装置进行采样时,可以同时利用同一采样平面中多个组(例如Y组)的铁电电容进行采样,也即是说,可以利用一个采样平面对某一概率事件同时采样Y次,能够有效提高采样效率。In the embodiment of the present application, when the above-mentioned sampling device is used for sampling, ferroelectric capacitors of multiple groups (for example, Y group) in the same sampling plane can be used for sampling at the same time. That is to say, one sampling plane can be used to sample a certain probability. Events are sampled Y times at the same time, which can effectively improve sampling efficiency.
在一中可能的实现方式中,当所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容时,通过所述读取电路读取每个所述第三铁电电容的极化方向。In a possible implementation, when the sampling device further includes a second sampling plane, and the second sampling plane includes X third ferroelectric capacitors, each of the third ferroelectric capacitors is read through the reading circuit. Three polarization directions of ferroelectric capacitors.
本申请实施例中,利用上述采样装置进行采样时,在通过某一采样平面完成一次采样后,后续的采样可以先通过其它采样平面进行,考虑到铁电电容的极化方向的翻转次数有限,利用不同采样平面进行采样,可以将采样的工作负载分摊在不同采样平面上,使得不同铁电电容的翻转次数可以均衡,以此延长采样装置的使用寿命,降低维护成本。当然,也可以同时利用不同采样平面同时进行采样,能够有效提高采样效率。In the embodiment of the present application, when the above-mentioned sampling device is used for sampling, after one sampling is completed through a certain sampling plane, subsequent sampling can be performed through other sampling planes first. Considering that the number of flips of the polarization direction of the ferroelectric capacitor is limited, Using different sampling planes for sampling can allocate the sampling workload on different sampling planes, so that the number of flips of different ferroelectric capacitors can be balanced, thereby extending the service life of the sampling device and reducing maintenance costs. Of course, different sampling planes can also be used for sampling at the same time, which can effectively improve the sampling efficiency.
第五方面,本申请实施例提供了一种半导体芯片,该半导体芯片包括上述第一方面和第二方面以及结合第一方面和第二方面可能的实现方式中任一种提供的采样装置。In a fifth aspect, embodiments of the present application provide a semiconductor chip that includes the sampling device provided in any one of the above-mentioned first and second aspects and possible implementations in combination with the first and second aspects.
第六方面,本申请实施例提供了一种电子设备,该电子设备包括上述第一方面和第二方面以及结合第一方面和第二方面可能的实现方式中任一种提供的采样装置;该电子设备还包括主处理器,该主处理器与该采样装置耦合,该主处理器用于向该采样装置发送采样指令以 及接收该采样装置的采样结果;该电子设备还包括存储器,该存储器用于保存该主处理器和该采样装置运行时必要的程序指令和数据;该电子设备还可以包括通信接口,用于该电子设备与其他设备或通信网络通信。In a sixth aspect, embodiments of the present application provide an electronic device, which includes a sampling device provided in any one of the above-mentioned first and second aspects and possible implementations in combination with the first and second aspects; the The electronic device further includes a main processor coupled to the sampling device, and the main processor is used to send sampling instructions to the sampling device to and receive the sampling results of the sampling device; the electronic device also includes a memory, which is used to save the program instructions and data necessary for the operation of the main processor and the sampling device; the electronic device may also include a communication interface for the Electronic devices communicate with other devices or communication networks.
第七方面,本申请实施例提供了一种电子设备,该电子设备具有实现上述第四方面中任意一种采样装置的控制方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a seventh aspect, embodiments of the present application provide an electronic device that has the function of implementing any of the control methods of the sampling device in the fourth aspect. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第八方面,本申请提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,该计算机程序被采样装置执行时,使得该采样装置可以执行上述第四方面中任意一项所述的控制方法流程。In an eighth aspect, the present application provides a computer storage medium that stores a computer program. When the computer program is executed by a sampling device, the sampling device can perform the control described in any one of the fourth aspects. Method flow.
第九方面,本申请实施例提供了一种计算机程序,该计算机程序包括指令,当该计算机程序被上述第一方面和第二方面以及结合第一方面和第二方面可能的实现方式中任一种提供的采样装置执行时,使得该采样装置可以执行上述第四方面中任意一项所述的控制方法流程。In a ninth aspect, embodiments of the present application provide a computer program. The computer program includes instructions. When the computer program is implemented by any of the above-mentioned first and second aspects and possible implementation methods combining the first and second aspects, When the provided sampling device is executed, the sampling device can execute the control method flow described in any one of the above fourth aspects.
第十方面,本申请提供了一种芯片系统,该芯片系统包括上述第一方面和第二方面以及结合第一方面和第二方面可能的实现方式中任一种提供的采样装置。在一种可能的设计中,所述芯片系统还包括处理器和存储器,所述存储器,用于保存所述采样装置和所述处理器的必要或相关的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其它分立器件。In a tenth aspect, the present application provides a chip system, which includes the sampling device provided in any one of the above-mentioned first and second aspects and possible implementations in combination with the first and second aspects. In a possible design, the chip system further includes a processor and a memory, and the memory is used to save necessary or relevant program instructions and data of the sampling device and the processor. The chip system may be composed of chips, or may include chips and other discrete devices.
第十一方面,本申请提供一种片上系统SoC芯片,该SoC芯片包括上述第一方面和第二方面以及结合第一方面和第二方面可能的实现方式中任一种提供的采样装置、与所述采样装置耦合的处理器、内部存储器和外部存储器,所述内部存储器和外部存储器,用于保存所述采样装置和所述处理器的必要或相关的程序指令和数据。该SoC芯片,可以由芯片构成,也可以包含芯片和其他分立器件。In an eleventh aspect, the present application provides a system-on-a-chip SoC chip. The SoC chip includes the sampling device provided in any one of the above-mentioned first and second aspects and possible implementations combined with the first and second aspects, and The sampling device is coupled with a processor, internal memory and external memory, and the internal memory and external memory are used to save necessary or relevant program instructions and data of the sampling device and the processor. The SoC chip can be composed of chips, or can also include chips and other discrete devices.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application or the background technology, the drawings required to be used in the embodiments or the background technology of the present application will be described below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1a是本申请实施例提供的一种电子设备的结构示意图。Figure 1a is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图1b是本申请实施例提供的另一种电子设备的结构示意图。Figure 1b is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
图1c是本申请实施例提供的一种采样装置的整体结构示意图。Figure 1c is a schematic diagram of the overall structure of a sampling device provided by an embodiment of the present application.
图1d是本申请实施例提供的另一种采样装置的整体结构示意图。Figure 1d is a schematic diagram of the overall structure of another sampling device provided by an embodiment of the present application.
图2a是本申请实施例提供的一种适用于二分类概率分布的采样装置的示意图。Figure 2a is a schematic diagram of a sampling device suitable for two-class probability distribution provided by an embodiment of the present application.
图2b是本申请实施例提供的一种适用于多分类概率分布的采样装置的示意图。Figure 2b is a schematic diagram of a sampling device suitable for multi-class probability distribution provided by an embodiment of the present application.
图3a是本申请实施例提供的一种采样装置的三维结构示意图。 Figure 3a is a schematic three-dimensional structural diagram of a sampling device provided by an embodiment of the present application.
图3b是本申请实施例提供的另一种采样装置的三维结构示意图。Figure 3b is a schematic three-dimensional structural diagram of another sampling device provided by an embodiment of the present application.
图3c是本申请实施例提供的另一种采样装置的三维结构示意图。Figure 3c is a schematic three-dimensional structural diagram of another sampling device provided by an embodiment of the present application.
图3d是本申请实施例提供的另一种采样装置的三维结构示意图。Figure 3d is a schematic three-dimensional structural diagram of another sampling device provided by an embodiment of the present application.
图3e是本申请实施例提供的另一种采样装置的三维结构示意图。Figure 3e is a schematic three-dimensional structural diagram of another sampling device provided by an embodiment of the present application.
图4是本申请实施例提供的采样装置的控制方法的流程示意图。Figure 4 is a schematic flowchart of the control method of the sampling device provided by the embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例进行描述。The embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms “first”, “second”, “third” and “fourth” in the description, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific sequence. . Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to such processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的一个或多个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in one or more embodiments of the present application. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
首先,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。First, some terms used in this application are explained to facilitate understanding by those skilled in the art.
(1)铁电电容(Ferroelectric Cap,FeC),其核心技术是铁电晶体材料。铁电晶体的工作原理是:当在铁电晶体材料上加入电场时,晶体中的中心原子会按照一定概率沿着电场方向运动,统一成一个方向达到稳定状态(即极化方向);其中,晶体中的每个自由浮动的中心原子只有2个稳定状态,一个是第一极化方向(或第二极化方向)可以记为逻辑中的“0”,另一个是第二极化方向(或第一极化方向)可以记为“1”,中心原子能在常温、没有电场的情况下,能够停留在稳定状态达100年以上。相比于现有技术中采样电路主要采用的伪随机数发生电路以及寄存器电路实现采样操作的方案,铁电电容面积更小、体积也更小。因此,本申请实施例中,利用铁电电容的极化方向根据电场进行概率性翻转的特性,通过调整铁电电容两端的电压,将一个或多个铁电电容的极化方向翻转概率,表示为概率事件可能出现的一种或多种结果所对应的概率,从而可以得到基于铁电电容的采样电路或采样装置,以此减少对于芯片面积的开销。(1) Ferroelectric Cap (FeC), its core technology is ferroelectric crystal material. The working principle of ferroelectric crystals is: when an electric field is added to the ferroelectric crystal material, the central atom in the crystal will move along the direction of the electric field with a certain probability and unify into one direction to reach a stable state (that is, the polarization direction); where, Each free-floating central atom in the crystal has only two stable states. One is the first polarization direction (or the second polarization direction), which can be recorded as "0" in logic, and the other is the second polarization direction ( Or the first polarization direction) can be recorded as "1". The central atom can stay in a stable state for more than 100 years at normal temperature and without an electric field. Compared with the pseudo-random number generation circuit and the register circuit mainly used in the sampling circuit in the prior art to implement the sampling operation, the ferroelectric capacitor has a smaller area and smaller volume. Therefore, in the embodiment of the present application, the polarization direction of the ferroelectric capacitor is probabilistically flipped according to the electric field, and the polarization direction of one or more ferroelectric capacitors is flipped with probability by adjusting the voltage at both ends of the ferroelectric capacitor. As the probability corresponding to one or more possible outcomes of a probabilistic event, a sampling circuit or device based on ferroelectric capacitors can be obtained, thereby reducing the cost of chip area.
(2)贝叶斯网络(Bayesian Network),是一种基于概率推理的图形化概率网络,包括节点以及连接节点的有向边。其中,节点代表随机变量,节点间的有向边代表了节点间的互相关系(一般由父节点指向其子节点),用条件概率表达节点关系的强度,没有父节点的节点可以用先验概率进行表达。贝叶斯网络以贝叶斯公式作为基础,适用于表达和分析不确定性和概率性的事件,可以从不完全、不精确或不确定的知识或信息中做出推理。但是,随着概率模型的规模越来越大,模型中的各个节点之间的依赖关系愈加复杂,无法通过贝叶斯公式直接求解,一般使用的是马尔科夫链蒙特卡洛方法求解,该方法需要对大量的条件概率进行采样,但现有技术中的采样电路占用较大的芯片面积。而本申请实施例中,提出一种基于铁电电容的采样电路或采样装置,可适用于利用MCMC对概率模型中大量的条件概率进行采样求解的过程,能够减少采样电路或采样装置对于芯片面积的占用,需要说明的是,本申请实施 例提供的采样电路或采样装置,也可以应用于其它机器学习的采样场景中,在此不做具体限定。(2) Bayesian Network is a graphical probability network based on probabilistic reasoning, including nodes and directed edges connecting the nodes. Among them, nodes represent random variables, and directed edges between nodes represent the mutual relationships between nodes (generally from parent nodes to their child nodes). Conditional probabilities are used to express the strength of node relationships. Nodes without parent nodes can use prior probabilities. express. Bayesian networks are based on Bayesian formulas and are suitable for expressing and analyzing uncertain and probabilistic events, and can make inferences from incomplete, imprecise or uncertain knowledge or information. However, as the scale of the probability model becomes larger and larger, the dependencies between the various nodes in the model become more complex and cannot be solved directly through the Bayesian formula. The Markov chain Monte Carlo method is generally used to solve the problem. The method requires sampling a large number of conditional probabilities, but the sampling circuit in the existing technology occupies a large chip area. In the embodiment of the present application, a sampling circuit or sampling device based on ferroelectric capacitor is proposed, which can be applied to the process of using MCMC to sample and solve a large number of conditional probabilities in probability models, and can reduce the chip area required by the sampling circuit or sampling device. occupancy, it should be noted that this application implements The sampling circuit or sampling device provided in the example can also be applied to other machine learning sampling scenarios, and is not specifically limited here.
(3)马尔科夫链蒙特卡洛(Markov Chain Monte Carlo,MCMC),是一种随机采样方法,在机器学习、深度学习以及自然语言处理等领域都有广泛的应用,利用MCMC来做一些复杂运算的近似求解是很多复杂模型或者算法求解的基础。本申请实施例中,提出一种基于铁电电容的采样电路或采样装置,可适用于利用MCMC对概率模型中大量的条件概率进行采样求解的过程,能够减少采样电路或采样装置对于芯片面积的占用。(3) Markov Chain Monte Carlo (MCMC) is a random sampling method that is widely used in fields such as machine learning, deep learning, and natural language processing. MCMC is used to do some complex tasks. The approximate solution of operations is the basis for solving many complex models or algorithms. In the embodiment of the present application, a ferroelectric capacitor-based sampling circuit or sampling device is proposed, which can be applied to the process of using MCMC to sample and solve a large number of conditional probabilities in probability models, and can reduce the impact of the sampling circuit or sampling device on the chip area. occupied.
首先,分析并提出本申请所具体要解决的技术问题。在现有技术中,主流的采样操作多是通过采用累积概率分布采样电路实现,该电路包括伪随机数发生电路、累积概率分布函数存储表、查找电路等子电路。First, analyze and propose the specific technical problems to be solved by this application. In the existing technology, mainstream sampling operations are mostly implemented by using a cumulative probability distribution sampling circuit, which includes a pseudo-random number generation circuit, a cumulative probability distribution function storage table, a search circuit and other sub-circuits.
上述基于累积概率分布采样电路实现采样操作的方案,存在以下缺点:The above-mentioned scheme of implementing sampling operation based on cumulative probability distribution sampling circuit has the following shortcomings:
电路整体占用芯片的面积较大。现有技术中,实现采样操作的电路包括伪随机数发生电路、累积概率分布函数存储表、查找电路等子电路,其中,伪随机数发生电路一般是采用线性反馈移位寄存器(Linear Feedback Shift Register,LFSR)电路实现,LFSR电路中的寄存器个数一般称为LFSR的级数,一个LFSR电路中各个寄存器中当前存储的数据所组成的序列一般被称为一个状态,一个n级的LFSR电路最多存储2n-1种状态,在LFSR电路输出一位,由反馈函数补充一位后(通常是最右端(末端)的数字输出,然后整体LFSR电路的数据向右移动一位),LFSR电路就移动到了下一个状态。例如,一个3级的LFSR电路包括3个线性反馈移位寄存器,最多同时存放3位的数据,最多存储23-1,即7种状态。当采样操作需要产生的随机数越多时,LFSR电路需要的寄存器数量也会越多。此外,LFSR电路也具有一定周期性,由于一个n级LFSR电路最多只能遍历2n-1种状态,因此,当LFSR电路移位到一定程度时,就可能会出现重复的状态,为保证采样的随机性以及采样精度,也要求LFSR电路包括较多寄存器数量。除了伪随机数发生电路之外,累积概率分布函数存储表一般也是采用多bit的寄存器。可见,累积概率分布采样电路中的伪随机数发生电路和累积概率分布函数存储表均需要较多数量的寄存器,而就目前工艺而言,寄存器面积较大,这就导致累积概率分布采样电路需要占用较大的芯片面积,造成整体芯片面积的开销较大。The overall circuit occupies a large area of the chip. In the existing technology, circuits that implement sampling operations include pseudo-random number generation circuits, cumulative probability distribution function storage tables, search circuits and other sub-circuits. Among them, the pseudo-random number generation circuit generally uses a linear feedback shift register (Linear Feedback Shift Register). , LFSR) circuit implementation. The number of registers in an LFSR circuit is generally called the number of stages of the LFSR. The sequence of data currently stored in each register in an LFSR circuit is generally called a state. An n-level LFSR circuit has the most Stores 2 n -1 states. After the LFSR circuit outputs one bit and the feedback function adds one bit (usually the rightmost (end) digital output, and then the data of the overall LFSR circuit moves one bit to the right), the LFSR circuit becomes Moved to the next state. For example, a 3-level LFSR circuit includes 3 linear feedback shift registers, which can store up to 3 bits of data at the same time and store up to 2 3 -1, that is, 7 states. When the sampling operation needs to generate more random numbers, the LFSR circuit requires more registers. In addition, the LFSR circuit also has a certain periodicity. Since an n-level LFSR circuit can only traverse 2 n -1 states at most, when the LFSR circuit shifts to a certain extent, repeated states may occur. In order to ensure sampling The randomness and sampling accuracy also require the LFSR circuit to include a larger number of registers. In addition to the pseudo-random number generation circuit, the cumulative probability distribution function storage table generally uses multi-bit registers. It can be seen that both the pseudo-random number generation circuit and the cumulative probability distribution function storage table in the cumulative probability distribution sampling circuit require a large number of registers. As far as the current technology is concerned, the register area is large, which leads to the need for a cumulative probability distribution sampling circuit. It occupies a larger chip area, resulting in a larger overall chip area overhead.
为了解决现有技术中采用累积概率分布采样电路实现采样操作的方案存在的占用较大的芯片面积,造成整体芯片面积的开销较大的问题,本申请综合考虑现有技术存在的缺点,要解决的技术问题包括如下方面:In order to solve the problem in the prior art that the cumulative probability distribution sampling circuit is used to implement the sampling operation, which occupies a large chip area and causes a large overhead in the overall chip area, this application comprehensively considers the shortcomings of the prior art and wants to solve the problem. Technical issues include the following:
设计占用较少芯片面积的采样电路或采样装置。本申请实施例中,提出一种利用铁电电容的极化方向按照一定概率翻转的特性实现采样操作的采样装置,具体地,在利用该采样装置针对某一随机事件(如事件A)进行采样时,可通过铁电电容模拟该事件A的发生过程,确定该事件A对应的多种不同结果是否发生,达到对事件A采样的目的,首先可以通过调整铁电电容两端的电压,使得多个铁电电容的极化方向的翻转概率,分别与事件A可能出现的不同结果的概率相同,从而可以根据读取到的铁电电容的极化方向翻转情况,确定事件A可能出现的不同结果是否发生,以此达到采样的目的。就目前工艺而言,铁电电容的面积相比于寄存器要小上不少,本申请实施例提供的基于铁电电容的采样电路或采样装置,可以减小采样电路单元对于芯片面积的占用,也即是降低对于芯片面积的开销。Design sampling circuits or sampling devices that occupy less chip area. In the embodiment of the present application, a sampling device is proposed that uses the polarization direction of a ferroelectric capacitor to flip according to a certain probability to implement a sampling operation. Specifically, the sampling device is used to sample a certain random event (such as event A). When, the occurrence process of the event A can be simulated through the ferroelectric capacitor to determine whether various different results corresponding to the event A occur, so as to achieve the purpose of sampling the event A. First, the voltage across the ferroelectric capacitor can be adjusted to make multiple The probability of flipping the polarization direction of the ferroelectric capacitor is the same as the probability of different possible outcomes of event A. Therefore, based on the read flip of the polarization direction of the ferroelectric capacitor, it can be determined whether the different possible outcomes of event A are occurs to achieve the purpose of sampling. As far as the current technology is concerned, the area of the ferroelectric capacitor is much smaller than that of the register. The sampling circuit or sampling device based on the ferroelectric capacitor provided in the embodiment of the present application can reduce the chip area occupied by the sampling circuit unit. That is to say, the cost of chip area is reduced.
综上所述,现有技术中利用累积概率分布采样电路进行采样的方案会占用较大的芯片面 积,难以满足人们对于芯片具有更多、更强功能的需求。因此,本申请提供的采样电路或采样装置可用于解决上述技术问题。To sum up, in the existing technology, the scheme of using the cumulative probability distribution sampling circuit for sampling will occupy a large chip area. It is difficult to meet people's demand for chips with more and stronger functions. Therefore, the sampling circuit or sampling device provided by this application can be used to solve the above technical problems.
为更好地理解本申请实施例提供的采样装置,下面将对本申请实施例提供的采样装置的结构以及可应用场景进行示例性说明。可理解的,本申请实施例描述的采样装置的结构和应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定。In order to better understand the sampling device provided by the embodiment of the present application, the structure and applicable scenarios of the sampling device provided by the embodiment of the present application will be exemplified below. It can be understood that the structure and application scenarios of the sampling device described in the embodiments of the present application are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application.
可参见图1a,图1a是本申请实施例提供的一种电子设备的结构示意图,本申请提供的电子设备01中可以包括一个或多个主处理器11和一个或多个采样装置12,还可以包括存储器(图中未示出)。电子设备可以是用户单元(Subscriber Unit)、蜂窝电话(Cellular Phone)、智能电话(Smart Phone)、个人电脑(Personal Compute,PC)、个人数字助理(Personal Digital Assistant,PDA)电脑、平板型电脑、手持设备(Handset)、膝上型电脑(Laptop Computer)、机器类型通信(Machine Type Communication,MTC)终端、智能穿戴设备等。Referring to Figure 1a, Figure 1a is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 01 provided by the present application may include one or more main processors 11 and one or more sampling devices 12. Memory (not shown) may be included. The electronic device may be a Subscriber Unit (Subscriber Unit), a Cellular Phone (Cellular Phone), a Smart Phone (Smart Phone), a Personal Computer (Personal Compute, PC), a Personal Digital Assistant (Personal Digital Assistant, PDA) computer, a tablet computer, Handheld devices (Handset), laptop computers (Laptop Computer), Machine Type Communication (MTC) terminals, smart wearable devices, etc.
其中,主处理器11,可以是中央处理器(CPU),也可以是图形处理器(GPU),或者是具备其它功能的芯片,用于发送采样指令、接收采样结果以及其它必要运算。在本申请实施例中,主处理器11可以向采样装置12的控制器121发送采样指令,使得控制器121能够基于采样指令中的相关信息(如X个概率值)控制第一供压电路123和第二供压电路124调整所提供的电压,将第一采样平面中多个铁电电容的极化方向翻转概率设置为采样指令中对应的概率值;最后主处理器11可以接收并分析读取电路125对于第一采样平面的读取到的采样结果。The main processor 11 may be a central processing unit (CPU), a graphics processing unit (GPU), or a chip with other functions, and is used for sending sampling instructions, receiving sampling results, and other necessary operations. In the embodiment of the present application, the main processor 11 can send a sampling instruction to the controller 121 of the sampling device 12 so that the controller 121 can control the first voltage supply circuit 123 based on the relevant information (such as X probability values) in the sampling instruction. and the second voltage supply circuit 124 adjusts the provided voltage, and sets the polarization direction flip probability of the multiple ferroelectric capacitors in the first sampling plane to the corresponding probability value in the sampling instruction; finally, the main processor 11 can receive and analyze the read The sampling result read by the circuit 125 for the first sampling plane is obtained.
采样装置12,包括控制器121、第一采样平面122、第一供压电路123、第二供压电路124以及读取电路125。其中,控制器121用于接收主处理器11发送的采样指令,并基于采样指令中包括的相关信息控制第一供压电路123和第二供压电路124调整所提供的电压;第一采样平面122包括一个或多个铁电电容;第一供压电路123和第二供压电路124分别为第一采样平面122中的一个或多个铁电电容的第一电极和第二电极提供电压,使得一个或多个铁电电容的极化方向可以按照两端的电压差对应的概率值进行翻转;读取电路125用于读取该一个或多个铁电电容的极化方向,并发送给主处理器11。The sampling device 12 includes a controller 121, a first sampling plane 122, a first voltage supply circuit 123, a second voltage supply circuit 124 and a reading circuit 125. Among them, the controller 121 is used to receive the sampling instruction sent by the main processor 11, and control the first voltage supply circuit 123 and the second voltage supply circuit 124 to adjust the provided voltage based on the relevant information included in the sampling instruction; the first sampling plane 122 includes one or more ferroelectric capacitors; the first voltage supply circuit 123 and the second voltage supply circuit 124 respectively provide voltages to the first electrode and the second electrode of the one or more ferroelectric capacitors in the first sampling plane 122, The polarization direction of one or more ferroelectric capacitors can be flipped according to the probability value corresponding to the voltage difference between the two ends; the reading circuit 125 is used to read the polarization direction of the one or more ferroelectric capacitors and send it to the host. Processor 11.
存储器,用于存储主处理器11和采样装置12执行采样任务所需要的准备数据(如电压差与极化方向翻转概率值映射表),和采样过程中产生的中间数据,以及采样完成后的结果数据。存储器可以包括一个或多个局部存储器(Local Memory)、一个或多个寄存器(Register)、一个或多个一级缓存(L1 Cache)、一个或多个二级缓存(L2 Cache),以及各类缓冲区(buffer)等。The memory is used to store the preparation data required by the main processor 11 and the sampling device 12 to perform the sampling task (such as the voltage difference and polarization direction reversal probability value mapping table), the intermediate data generated during the sampling process, and the data after the sampling is completed. Result data. Memory can include one or more local memories (Local Memory), one or more registers (Register), one or more first-level caches (L1 Cache), one or more second-level caches (L2 Cache), and various types of Buffer, etc.
在一种可能的实现方式中,本申请提供的电子设备中的采样装置可以不包括第一采样平面,可参见图1b,图1b是本申请实施例提供的另一种电子设备的结构示意图,本申请提供的电子设备02中可以包括一个或多个主处理器21、一个或多个采样装置22以及一个或多个第一采样平面23,还可以包括存储器(图中未示出)。其中,电子设备02中各个单元的功能以及连接关系可以参考上述电子设备01的相关描述,在此不再赘述。In a possible implementation, the sampling device in the electronic device provided by the present application may not include the first sampling plane. See Figure 1b. Figure 1b is a schematic structural diagram of another electronic device provided by an embodiment of the present application. The electronic device 02 provided in this application may include one or more main processors 21, one or more sampling devices 22, and one or more first sampling planes 23, and may also include a memory (not shown in the figure). For the functions and connection relationships of each unit in the electronic device 02 , reference can be made to the relevant description of the electronic device 01 , and will not be described again here.
至于本申请提供的采样装置的具体结构如何,可参见图1c,图1c是本申请实施例提供的一种采样装置的整体结构示意图,采样装置12可以包括控制器121、第一采样平面122、第一供压电路123、第二供压电路124以及读取电路125。其中,控制器121分别与第一供压电路123、第二供压电路124以及读取电路125连接,控制器121用于接收主处理器11发送的 采样指令,并基于采样指令中包括的相关信息控制第一供压电路123和第二供压电路124调整所提供的电压,以及在控制读取电路125读取第一采样平面中一个或多个铁电电容的极化方向;第一采样平面122包括一个或多个铁电电容,第一供压电路123和第二供压电路124分别与第一采样平面122中的一个或多个铁电电容的第一电极和第二电极连接,为它们提供电压,使得它们的极化方向可以按照两端的电压差对应的概率值进行翻转;读取电路125与第一采样平面中的一个或多个铁电电容的第一电极或第二电极连接。As for the specific structure of the sampling device provided by this application, please refer to Figure 1c. Figure 1c is a schematic diagram of the overall structure of a sampling device provided by an embodiment of this application. The sampling device 12 may include a controller 121, a first sampling plane 122, The first voltage supply circuit 123, the second voltage supply circuit 124 and the reading circuit 125. Among them, the controller 121 is connected to the first voltage supply circuit 123, the second voltage supply circuit 124 and the reading circuit 125 respectively. The controller 121 is used to receive the data sent by the main processor 11. sampling instructions, and based on the relevant information included in the sampling instructions, control the first voltage supply circuit 123 and the second voltage supply circuit 124 to adjust the provided voltage, and control the reading circuit 125 to read one or more of the first sampling planes The polarization direction of the ferroelectric capacitor; the first sampling plane 122 includes one or more ferroelectric capacitors, the first voltage supply circuit 123 and the second voltage supply circuit 124 are respectively connected to one or more ferroelectric capacitors in the first sampling plane 122 The first electrode and the second electrode of the capacitor are connected to provide voltage to them, so that their polarization directions can be flipped according to the probability value corresponding to the voltage difference between the two ends; the reading circuit 125 is connected to one or more of the first sampling planes The first electrode or the second electrode of the ferroelectric capacitor is connected.
在一种可能的实现方式中,本申请实施例提供的采样装置可以不包括第一采样平面,可参见图1d,图1d是本申请实施例提供的另一种采样装置的整体结构示意图,采样装置22可以包括控制器221、第一供压电路222、第二供压电路223以及读取电路224,其中,采样装置22中各个单元的功能以及连接关系可以参考上述采样装置12的相关描述,在此不再赘述。In a possible implementation manner, the sampling device provided by the embodiment of the present application may not include the first sampling plane. See Figure 1d. Figure 1d is a schematic diagram of the overall structure of another sampling device provided by the embodiment of the present application. The device 22 may include a controller 221, a first voltage supply circuit 222, a second voltage supply circuit 223, and a reading circuit 224. The functions and connection relationships of each unit in the sampling device 22 may refer to the relevant description of the sampling device 12 above. I won’t go into details here.
为方便理解本申请实施例提供的采样装置的结构以及实现采样操作的原理,以下首先以适用于二分类概率分布的采样电路或采样装置为例,进一步进行示例性说明。可参见图2a,图2a是本申请实施例提供的一种适用于二分类概率分布的采样装置的示意图,该二分类采样装置可以包括两个供压电路(即第一供压电路和X个第二供压电路,X取1)、一个读取电路以及一个采样平面(如图2a中(a)的框选部分),采样平面中包括一个铁电电容(即X个第一铁电电容,X取1),采样装置中的控制器分别与第一供压电路、第二供压电路以及读取电路连接(图中未示出),为更好地理解,图中用场效应管T作为第一供压电路的示意,用数模转换电路作为第二供压电路的示意,场效应管T的漏极与铁电电容的上电极(即对应第一电极)连接,并与读取电路相连,数模转换电路与铁电电容的下电极(即对应第二电极)连接,其中,场效应管T的栅极与控制线(Control Line,CL)、场效应管T的源极与位线(Bit Line,BL)连接,通过调节控制线上的电压可以控制场效应管T的导通或关断,通过调整位线侧的电压可以调整场效应管T所能提供的电压值,存储节点(Storage Node,SN)是为方便理解而假设出的逻辑上的节点,该节点处的电压即为场效应管T所提供的电压值VSN,字线(World Line,WL)与铁电电容的下电极连接,当采样装置中存在多个铁电电容时,可通过位线与字线确定具体的铁电电容。图2a中(a)所示的装置中,铁电电容的结构一般为上电极-铁电材料-下电极,该采样装置的基本原理为铁电电容的极化方向的翻转概率受电压脉冲幅值调制,如图2a中(b)所示,铁电电容的极化方向翻转的概率,可通过在铁电电容两端施加不同的电压进行调制,比如电压差Vc对应的概率为p0,通过调整Vc的大小,能够实现对铁电电容的极化方向翻转的概率p0从0至1的调制。例如,一个事件A对应两种不同结果,成立与不成立(或者是与否、或者能与不能),如图2a中(c)所示,成立的概率为p0,不成立的概率为p1,将铁电电容的极化方向翻转的概率调制到p0,当读取电路读取铁电电容的极化方向翻转情况时,若发现其极化方向发生了翻转,则可以认为当次采样中该事件A成立,否则不成立。可理解地,上述第一供压电路可以是场效应管,也可以是数模转换电路,或者可以是其它可提供电压的电路;上述第二供压电路可以是数模转换电路,也可以是场效应管,或者可以是其它可提供电压的电路,在此不做具体限定。还需要说明的是,铁电电容的上述第一电极可以是上电极,也可以是下电极,上述第二电极可以是上电极,也可以是下电极,只要铁电电容的第一电极和第二电极为不同电极即可,在此不做具体限定。In order to facilitate understanding of the structure of the sampling device and the principle of implementing the sampling operation provided by the embodiments of the present application, the following first takes a sampling circuit or sampling device suitable for two-class probability distribution as an example for further illustrative explanation. Referring to Figure 2a, Figure 2a is a schematic diagram of a sampling device suitable for two-class probability distribution provided by an embodiment of the present application. The two-class sampling device may include two voltage supply circuits (i.e., a first voltage supply circuit and X The second voltage supply circuit, X is 1), a reading circuit and a sampling plane (the framed part of (a) in Figure 2a), the sampling plane includes a ferroelectric capacitor (i.e. X first ferroelectric capacitors , T is used as a representation of the first voltage supply circuit, and a digital-to-analog conversion circuit is used as a representation of the second voltage supply circuit. The drain of the field effect transistor T is connected to the upper electrode of the ferroelectric capacitor (that is, corresponding to the first electrode), and is connected to the read The digital-to-analog conversion circuit is connected to the lower electrode (corresponding to the second electrode) of the ferroelectric capacitor. Among them, the gate of the field effect transistor T is connected to the control line (CL) and the source of the field effect transistor T. Connected to the Bit Line (BL), the on or off of the field effect transistor T can be controlled by adjusting the voltage on the control line, and the voltage value provided by the field effect transistor T can be adjusted by adjusting the voltage on the bit line side. , the storage node (Storage Node, SN) is a logical node assumed for the convenience of understanding. The voltage at this node is the voltage value V SN provided by the field effect transistor T. The word line (World Line, WL) and The lower electrode of the ferroelectric capacitor is connected. When there are multiple ferroelectric capacitors in the sampling device, the specific ferroelectric capacitor can be determined through the bit line and word line. In the device shown in (a) in Figure 2a, the structure of the ferroelectric capacitor is generally upper electrode-ferroelectric material-lower electrode. The basic principle of the sampling device is that the reversal probability of the polarization direction of the ferroelectric capacitor is affected by the voltage pulse amplitude. Value modulation, as shown in (b) of Figure 2a, the probability of the polarization direction flip of the ferroelectric capacitor can be modulated by applying different voltages on both ends of the ferroelectric capacitor. For example, the probability corresponding to the voltage difference Vc is p0, through By adjusting the size of Vc, the probability p0 of the polarization direction flip of the ferroelectric capacitor can be modulated from 0 to 1. For example, an event A corresponds to two different outcomes, established or not (or yes or no, or can or cannot), as shown in (c) in Figure 2a. The probability of being true is p0, and the probability of not being true is p1. The probability of the polarization direction flip of the capacitor is modulated to p0. When the reading circuit reads the polarization direction flip of the ferroelectric capacitor, if it is found that the polarization direction has flipped, it can be considered that the event A in the current sampling is established, otherwise it is not established. It can be understood that the above-mentioned first voltage supply circuit can be a field effect transistor, a digital-to-analog conversion circuit, or other circuits that can provide voltage; the above-mentioned second voltage supply circuit can be a digital-to-analog conversion circuit, or it can be A field effect transistor, or other circuit that can provide voltage, is not specifically limited here. It should also be noted that the above-mentioned first electrode of the ferroelectric capacitor may be an upper electrode or a lower electrode, and the above-mentioned second electrode may be an upper electrode or a lower electrode, as long as the first electrode of the ferroelectric capacitor and the third electrode are The two electrodes only need to be different electrodes, and there is no specific limitation here.
在一种可能的实现方式中,第一供压电路或第二供压电路可以集成于读取电路中,也即是说,可以由该读取电路为铁电电容的上电极或者下电极进行供压,在铁电电容按照两端电压差对应的概率值进行极化方向的翻转后,再由该读取电路将铁电电容的极化方向翻转情况 读取出来,进一步减少采样装置对于整体芯片面积的占用。In a possible implementation, the first voltage supply circuit or the second voltage supply circuit can be integrated into the reading circuit, that is to say, the reading circuit can be used for the upper electrode or the lower electrode of the ferroelectric capacitor. Supply voltage, after the ferroelectric capacitor flips the polarization direction according to the probability value corresponding to the voltage difference between the two ends, the reading circuit then flips the polarization direction of the ferroelectric capacitor. Read out, further reducing the sampling device’s occupation of the overall chip area.
然后,再以适用于多分类概率分布的采样电路或采样装置为例,进一步进行示例性说明。可参见图2b,图2b是本申请实施例提供的一种适用于多分类概率分布的采样装置的示意图,该多分类采样装置可以包括一个场效应管T(即第一供压电路)、一个读取电路、多个数模转换电路(即X个第二供压电路)以及一个采样平面(如图2b中(a)的框选部分),采样平面中包括多个铁电电容(即X个第一铁电电容),采样装置中的控制器分别与第一供压电路、第二供压电路以及读取电路连接(图中未示出),为方便理解,图中用场效应管T作为第一供压电路的示意,用X个数模转换电路作为X个第二供压电路的示意,场效应管T的漏极与多个铁电电容的上电极(即对应第一电极)连接,并与读取电路相连,多个数模转换电路与多个铁电电容的下电极(即对应第二电极)连接,其中,场效应管T的栅极与控制线(Control Line,CL)、场效应管T的源极与位线(Bit Line,BL)连接,通过调节控制线上的电压可以控制场效应管T的导通或关断,通过调整位线侧的电压可以调整场效应管T所能提供的电压值,存储节点(Storage Node,SN)是为方便理解而假设出的逻辑上的节点,该节点处的电压即为场效应管T所提供的电压值VSN,字线(World Line,WL)与铁电电容的下电极连接,可通过位线与字线确定具体的铁电电容。图2b中(a)所示的装置中,该采样装置的基本原理为每个铁电电容的极化方向的翻转概率受电压脉冲幅值调制,如图2b中(b)所示,不同铁电电容极化方向翻转的概率,可通过在不同铁电电容两端施加不同的电压进行调制,此过程可参考二分类概率分布场景,在此不再赘述。例如,一个事件A对应多种不同结果,例如事件A包括a0、a1、a2、…、aS-1共S种不同结果,如图2b中(c)所示,a0发生的概率为p0,a1发生的概率为p1,aS-1发生的概率为pS-1,将多个铁电电容(C0至CS-1)的极化方向翻转的概率分别调制到p0、p1、…、pS-1;在利用读取电路读取铁电电容的极化方向翻转情况后,因为实际事件的不同结果之间一般是存在互斥关系的,因此可以基于读取电路的读取结果,逐一确定每个铁电电容是否发生翻转(可以按照一定顺序逐一确定,也可以随机逐一确定),并将第一个发生翻转的铁电电容的极化方向作为采样结果;若确定到最后一个铁电电容时,前面仍无铁电电容的极化方向发生翻转,则可以不用判断最后一个铁电电容的极化方向是否发生翻转,可认为最后一个铁电电容的极化方向发生了翻转,并作为采样结果。例如,若首先发现某一个铁电电容(如C1)的极化方向发生了翻转,则可以认为当次采样中该事件A的结果a1发生了;若C1的极化方向没有翻转,则可以判断C2的极化方向是否翻转,若C2的极化方向发生翻转,则认为本次采样中事件A的结果为a2;若前S-2个铁电电容的极化方向都没有发生翻转,则认为本次采样中事件A的结果为aS-1。可理解地,上述第一供压电路可以是场效应管,也可以是数模转换电路,或者可以是其它可提供电压的电路;上述第二供压电路可以是数模转换电路,也可以是场效应管,或者可以是其它可提供电压的电路,并且不同铁电电容对应的不同第二供压电路,可以提供相同的电压,也可以提供不同的电压,在此不做具体限定。需要说明的是,铁电电容的上述第一电极可以是上电极,也可以是下电极,上述第二电极可以是上电极,也可以是下电极,只要铁电电容的第一电极和第二电极为不同电极即可,在此不做具体限定。还需要说明的是,上述第一供压电路或第二供压电路可以集成于读取电路中,也即是说,可以由该读取电路为铁电电容的上电极或者下电极进行供压。还需要说明的是,本申请实施例中提供的适用于多分类概率分布的采样电路或采样装置,也适用于二分类概率分布场景,只需调整某一铁电电容两端的电压,使得其极化方向翻转的概率与二分类的概率对应,而其它铁电电容不参与采样即可。Then, a sampling circuit or a sampling device suitable for multi-class probability distribution is taken as an example for further illustrative explanation. Please refer to Figure 2b. Figure 2b is a schematic diagram of a sampling device suitable for multi-class probability distribution provided by an embodiment of the present application. The multi-class sampling device may include a field effect transistor T (i.e., a first voltage supply circuit), a A reading circuit, multiple digital-to-analog conversion circuits (i.e., a first ferroelectric capacitor), the controller in the sampling device is connected to the first voltage supply circuit, the second voltage supply circuit and the reading circuit respectively (not shown in the figure). For the convenience of understanding, a field effect transistor is used in the figure. T is used as a representation of the first voltage supply circuit, and X digital-to-analog conversion circuits are used as a representation of ) is connected to the reading circuit, and multiple digital-to-analog conversion circuits are connected to the lower electrodes (corresponding to the second electrodes) of multiple ferroelectric capacitors. Among them, the gate of the field effect transistor T is connected to the control line (Control Line, CL), the source of the field effect transistor T is connected to the bit line (Bit Line, BL). The on or off of the field effect transistor T can be controlled by adjusting the voltage on the control line, and can be adjusted by adjusting the voltage on the bit line side. The voltage value that the field effect transistor T can provide. The storage node (Storage Node, SN) is a logical node assumed for the convenience of understanding. The voltage at this node is the voltage value V SN provided by the field effect transistor T. , the word line (World Line, WL) is connected to the lower electrode of the ferroelectric capacitor, and the specific ferroelectric capacitor can be determined through the bit line and word line. In the device shown in (a) in Figure 2b, the basic principle of the sampling device is that the flip probability of the polarization direction of each ferroelectric capacitor is modulated by the voltage pulse amplitude. As shown in (b) in Figure 2b, different iron The probability of flipping the polarization direction of an electric capacitor can be modulated by applying different voltages to both ends of different ferroelectric capacitors. This process can be referred to the two-class probability distribution scenario, which will not be described again here. For example, an event A corresponds to multiple different outcomes. For example, event A includes a0, a1, a2,..., aS-1, a total of S different outcomes. As shown in (c) in Figure 2b, the probability of a0 occurring is p0, a1 The probability of occurrence is p1, the probability of aS-1 occurring is pS-1, and the probability of flipping the polarization directions of multiple ferroelectric capacitors (C0 to CS-1) is modulated to p0, p1,..., pS-1 respectively; After using the reading circuit to read the polarization direction reversal of the ferroelectric capacitor, because there is generally a mutually exclusive relationship between different results of actual events, each ferroelectric capacitor can be determined one by one based on the reading results of the reading circuit. Whether the capacitor has flipped (it can be determined one by one in a certain order, or it can be determined one by one randomly), and the polarization direction of the first ferroelectric capacitor that flips is used as the sampling result; if the last ferroelectric capacitor is determined, the previous If there is still no polarization direction flip of the ferroelectric capacitor, it is not necessary to determine whether the polarization direction of the last ferroelectric capacitor has flipped. It can be considered that the polarization direction of the last ferroelectric capacitor has flipped, and it is used as the sampling result. For example, if it is first discovered that the polarization direction of a certain ferroelectric capacitor (such as C1) has flipped, it can be considered that the result a1 of event A occurred in the current sampling; if the polarization direction of C1 has not flipped, it can be judged that Whether the polarization direction of C2 is reversed. If the polarization direction of C2 is reversed, it is considered that the result of event A in this sampling is a2; if the polarization directions of the first S-2 ferroelectric capacitors are not reversed, it is considered that The result of event A in this sampling is aS-1. It can be understood that the above-mentioned first voltage supply circuit can be a field effect transistor, a digital-to-analog conversion circuit, or other circuits that can provide voltage; the above-mentioned second voltage supply circuit can be a digital-to-analog conversion circuit, or it can be Field effect transistors, or other circuits that can provide voltage, and different second voltage supply circuits corresponding to different ferroelectric capacitors can provide the same voltage or different voltages, which are not specifically limited here. It should be noted that the first electrode of the ferroelectric capacitor may be an upper electrode or a lower electrode, and the second electrode may be an upper electrode or a lower electrode, as long as the first electrode and the second electrode of the ferroelectric capacitor are The electrodes only need to be different electrodes, and are not specifically limited here. It should also be noted that the above-mentioned first voltage supply circuit or second voltage supply circuit can be integrated into the reading circuit, that is to say, the reading circuit can supply voltage to the upper electrode or the lower electrode of the ferroelectric capacitor. . It should also be noted that the sampling circuit or sampling device suitable for multi-class probability distribution provided in the embodiment of the present application is also suitable for two-class probability distribution scenarios. It only needs to adjust the voltage across a certain ferroelectric capacitor to make it extremely The probability of flipping the direction corresponds to the probability of binary classification, and other ferroelectric capacitors do not need to participate in sampling.
本申请还提供了一种基于铁电电容阵列的、具有三维结构的采样装置,可以把多个适用 于多分类概率分布的采样电路组成三维阵列,请参见图3a,图3a是本申请实施例提供的一种采样装置的三维结构示意图,该采样装置可以包括多个采样平面(即多个第一采样平面),每个采样平面中包括多个铁电电容(例如X行*Y列,X和Y大于0),该采样装置包括多个场效应管(即多个第一供压电路)、多个数模转换电路(即多组X个第二供压电路)、多个读取电路,采样装置中的控制器分别与多个第一供压电路、多个第二供压电路以及多个读取电路连接(图中未示出),为更好地理解,图中用场效应管T作为第一供压电路的示意,用数模转换电路作为第二供压电路的示意,场效应管T的漏极与同一采样平面内相同列中的X个铁电电容的上电极(即对应第一电极)连接,并与读取电路相连,数模转换电路(即第二供压电路)与铁电电容的下电极(即对应第二电极)连接,CL可以与BL垂直。可理解地,上述第一供压电路和第二供压电路可以是场效应管,也可以是数模转换电路,或者可以是其它可提供电压的电路,在此不再赘述。还需要说明的是,上述铁电电容的第一电极和第二电极可以是上电极,也可以是下电极,只要第一电极和第二电极为不同电极即可,在此不再赘述。该具有三维结构的采样装置,可以充分利用阵列结构的优势,提高采样的速度。This application also provides a sampling device with a three-dimensional structure based on a ferroelectric capacitor array, which can combine multiple applicable Sampling circuits based on multi-class probability distributions form a three-dimensional array. Please refer to Figure 3a. Figure 3a is a schematic diagram of a three-dimensional structure of a sampling device provided by an embodiment of the present application. The sampling device may include multiple sampling planes (i.e., multiple first sampling planes). sampling plane), each sampling plane includes multiple ferroelectric capacitors (for example, X row * Y column, X and Y are greater than 0), the sampling device includes multiple field effect transistors (ie, multiple first voltage supply circuits), A plurality of digital-to-analog conversion circuits (ie, multiple sets of A reading circuit is connected (not shown in the figure). For better understanding, the field effect transistor T is used as a diagram of the first voltage supply circuit, and a digital-to-analog conversion circuit is used as a diagram of the second voltage supply circuit. The field effect transistor T is used as a diagram of the first voltage supply circuit. The drain of the effect transistor T is connected to the upper electrodes of the ) is connected to the lower electrode (corresponding to the second electrode) of the ferroelectric capacitor, and CL can be perpendicular to BL. It is understandable that the above-mentioned first voltage supply circuit and the second voltage supply circuit may be field effect transistors, digital-to-analog conversion circuits, or other circuits that can provide voltage, which will not be described again here. It should also be noted that the first electrode and the second electrode of the ferroelectric capacitor may be the upper electrode or the lower electrode, as long as the first electrode and the second electrode are different electrodes, which will not be described again here. The sampling device with a three-dimensional structure can make full use of the advantages of the array structure and increase the sampling speed.
在一种可能的实现方式中,上述具有三维结构的采样装置的不同采样平面中序号相同的行的不同铁电电容的第二电极可以共用第二供压电路,可参见图3b,图3b是本申请实施例提供的另一种采样装置的三维结构示意图,其中,多个采样平面(包括第一采样平面和第二采样平面)中,某一平面内的第x行内铁电电容,与另一平面内取值相同的第x行铁电电容可以分别共用一组数模转换电路(即所述第x个第一铁电电容的所述第二电极与所述X个第三铁电电容中第x个第三铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第二供压电路),采样装置中的控制器分别与第一供压电路、第二供压电路以及读取电路连接(图中未示出)。在该采样装置的结构中,通过共用第二供压电路,减少装置中的元件数量,因此,该采样装置能够进一步减少对于芯片面积的占用。In a possible implementation, the second electrodes of different ferroelectric capacitors in rows with the same serial number in different sampling planes of the above-mentioned sampling device with a three-dimensional structure can share a second voltage supply circuit. See Figure 3b. Figure 3b is An embodiment of the present application provides a schematic diagram of the three-dimensional structure of another sampling device, in which, among multiple sampling planes (including the first sampling plane and the second sampling plane), the ferroelectric capacitor in the xth row in a certain plane is connected to another The x-th row of ferroelectric capacitors with the same value in a plane can respectively share a set of digital-to-analog conversion circuits (i.e., the second electrode of the x-th first ferroelectric capacitor and the X-th third ferroelectric capacitor The second electrode of the x-th third ferroelectric capacitor is connected in parallel with the x-th second voltage supply circuit and shares the second voltage supply circuit), and the controller in the sampling device is respectively connected with the The first voltage supply circuit, the second voltage supply circuit and the reading circuit are connected (not shown in the figure). In the structure of the sampling device, by sharing the second voltage supply circuit, the number of components in the device is reduced. Therefore, the sampling device can further reduce the occupation of the chip area.
在一种可能的实现方式中,上述具有三维结构的采样装置的某一采样平面中,不同列的铁电电容的第一电极可以共用第一供压电路,可参见图3c,图3c是本申请实施例提供的另一种采样装置的三维结构示意图,其中,多个采样平面(包括第一采样平面和第二采样平面)中,某一平面内的不同列(例如Y列)内的X*Y个铁电电容可以并联连接第一供压电路,从而共用第一供压电路(每个所述第一铁电电容的所述第一电极和所述X个第二铁电电容中每个第二铁电电容的所述第一电极,以并联方式与所述第一供压电路连接)。在该采样装置的结构中,通过共用第一供压电路,减少装置中的元件数量,因此,该采样装置能够进一步减少对于芯片面积的占用。可选地,不同采样平面之间也可以共用第一供压电路为各自平面内的铁电电容的第一电极提供电压(即第一电压),可参见图3d,图3d是本申请实施例提供的另一种采样装置的三维结构示意图,其中,不同采样平面的多个铁电电容的第一电极并联在场效应管T(即第一供压电路)的漏极上,采样装置中的控制器分别与第一供压电路、第二供压电路以及读取电路连接(图中未示出)。因此,该采样装置能够更进一步减少对于芯片面积的占用。In a possible implementation, in a certain sampling plane of the above-mentioned sampling device with a three-dimensional structure, the first electrodes of ferroelectric capacitors in different columns can share the first voltage supply circuit. See Figure 3c. Figure 3c is a diagram of this invention. A schematic diagram of the three-dimensional structure of another sampling device provided by the embodiment of the application, in which, among multiple sampling planes (including the first sampling plane and the second sampling plane), the *Y ferroelectric capacitors may be connected in parallel to the first voltage supply circuit, thereby sharing the first voltage supply circuit (the first electrode of each first ferroelectric capacitor and each of the X second ferroelectric capacitors). The first electrode of a second ferroelectric capacitor is connected in parallel with the first voltage supply circuit). In the structure of the sampling device, by sharing the first voltage supply circuit, the number of components in the device is reduced. Therefore, the sampling device can further reduce the occupation of the chip area. Optionally, the first voltage supply circuit can also be shared between different sampling planes to provide voltage (i.e., first voltage) for the first electrode of the ferroelectric capacitor in each plane. See Figure 3d. Figure 3d is an embodiment of the present application. A schematic diagram of the three-dimensional structure of another sampling device is provided, in which the first electrodes of multiple ferroelectric capacitors in different sampling planes are connected in parallel to the drain of the field effect transistor T (i.e., the first voltage supply circuit). The control in the sampling device The devices are respectively connected to the first voltage supply circuit, the second voltage supply circuit and the reading circuit (not shown in the figure). Therefore, the sampling device can further reduce the occupation of chip area.
在一种可能的实现方式中,上述具有三维结构的采样装置中,不同采样平面之间可以共用第一供压电路、第二供压电路以及读取电路,可参见图3e,图3e是本申请实施例提供的另一种采样装置的三维结构示意图,其中,不同采样平面(包括第一采样平面和第二采样平面)的多个铁电电容并联在一个场效应管T(即第一供压电路)的漏极上,不同采样平面中相同行的铁电电容并联在一组数模转换电路(即X个第二供压电路)上,不同采样平面中的铁电电容连接在一个读取电路上,采样装置中的控制器分别与第一供压电路、第二供压电路以及 读取电路连接(图中未示出)。因此,该采样装置能够更进一步减少对于芯片面积的占用。In a possible implementation, in the above-mentioned sampling device with a three-dimensional structure, the first voltage supply circuit, the second voltage supply circuit and the reading circuit can be shared between different sampling planes. See Figure 3e. Figure 3e is a diagram of the present invention. The application embodiment provides a schematic diagram of a three-dimensional structure of another sampling device, in which multiple ferroelectric capacitors at different sampling planes (including the first sampling plane and the second sampling plane) are connected in parallel to a field effect transistor T (i.e., the first supply On the drain of the voltage circuit), the ferroelectric capacitors in the same row in different sampling planes are connected in parallel to a set of digital-to-analog conversion circuits (i.e., X second voltage supply circuits), and the ferroelectric capacitors in different sampling planes are connected to a reading On the circuit, the controller in the sampling device is connected to the first voltage supply circuit, the second voltage supply circuit and the Read circuit connections (not shown). Therefore, the sampling device can further reduce the occupation of chip area.
以下将以贝叶斯网络推理计算的场景作为示例,对上述采样装置中的具有三维结构的装置的控制方法进行示例性说明。The following uses the scenario of Bayesian network inference calculation as an example to illustrate the control method of the device with a three-dimensional structure in the above sampling device.
可参见图4,图4是本申请实施例提供的采样装置的控制方法的流程示意图,其中,以贝叶斯网络推理计算作为示例,从贝叶斯网络的节点0(即输入节点)开始直到输出节点为止,包括以下步骤S400至步骤S402:Referring to Figure 4, Figure 4 is a schematic flow chart of the control method of the sampling device provided by the embodiment of the present application. Taking Bayesian network inference calculation as an example, starting from node 0 (ie, input node) of the Bayesian network until Up to the output node, the following steps S400 to S402 are included:
步骤S400:初始化铁电电容。Step S400: Initialize the ferroelectric capacitor.
具体地,可以将上述图3a中的采样装置中某一采样平面或全部采样平面中的铁电电容C初始化至初始状态(如第一极化方向或第二极化方向,可分别对应“0”或“1”),例如将第一个采样平面的铁电电容初始化至初始状态“0”,可选地,可以先确定铁电电容当前所处的状态(“0”或“1”),然后结合铁电电容概率性翻转极化方向的特性,调整铁电电容上下电极的电压差,从而完成初始化,例如,当将铁电电容的“0”状态作为初始状态时,可以调整电压使得上电极电压小于下电极电压,且电压差满足翻转阈值。Specifically, the ferroelectric capacitance C in a certain sampling plane or all sampling planes in the sampling device in Figure 3a can be initialized to an initial state (such as the first polarization direction or the second polarization direction, which can respectively correspond to "0 ” or “1”), for example, initialize the ferroelectric capacitor of the first sampling plane to the initial state “0”. Alternatively, you can first determine the current state of the ferroelectric capacitor (“0” or “1”) , and then combine the characteristics of the ferroelectric capacitor to probabilistically flip the polarization direction, and adjust the voltage difference between the upper and lower electrodes of the ferroelectric capacitor to complete the initialization. For example, when the "0" state of the ferroelectric capacitor is used as the initial state, the voltage can be adjusted so that The upper electrode voltage is less than the lower electrode voltage, and the voltage difference meets the flip threshold.
可选地,在初始化铁电电容的状态之后,可以先将上述铁电电容的下电极所连接的数模转换电路的电压设置为大于0的常数,例如,可以设置为写电压的一半(Vw/2),以此防止在打开场效应管时,铁电电容出现误翻转的情况。Optionally, after initializing the state of the ferroelectric capacitor, the voltage of the digital-to-analog conversion circuit connected to the lower electrode of the ferroelectric capacitor can be set to a constant greater than 0, for example, it can be set to half of the write voltage (Vw /2), to prevent the ferroelectric capacitor from accidentally flipping when the field effect transistor is turned on.
可选地,初始化铁电电容可以在采样装置的控制器接收到主处理器的采样指令之前进行,也可以在接收到采样指令之后进行。其中,采样指令可以包括贝叶斯网络中各个节点的不同结果可能发生的概率值,而概率值可以基于字节状态和字节长度表示,例如,表示某个概率值P的字节状态为00011101(二进制转十进制后为29),其字节长度为8(即可表示256种状态),则该概率值P可以为29/256,约为11.33%。Optionally, the initialization of the ferroelectric capacitor may be performed before the controller of the sampling device receives the sampling instruction from the main processor, or may be performed after receiving the sampling instruction. Among them, the sampling instructions can include probability values that different results of each node in the Bayesian network may occur, and the probability values can be expressed based on byte status and byte length. For example, the byte status representing a certain probability value P is 00011101. (29 after converting from binary to decimal), and its byte length is 8 (which can represent 256 states), then the probability value P can be 29/256, which is about 11.33%.
步骤S401:根据第n节点的概率值和父节点的采样结果,调整铁电电容两端的电压。Step S401: Adjust the voltage across the ferroelectric capacitor according to the probability value of the n-th node and the sampling result of the parent node.
具体地,在完成初始化后,再一次调整铁电电容的上下电极电压差,使得调整后的电压差对应的极化方向翻转概率,与贝叶斯网络的节点0的各类结果发生的概率值相等,可选地,假设铁电电容的上电极连接场效应管,可以通过向CL施加电压,使得场效应管导通,从而将逻辑节点SN预充至Vpre(即场效应管可以提供的电压值),并调整第一个采样平面的铁电电容另一端连接的数模转换电路提供的电压值。其中,在贝叶斯网络中,父节点为当前节点的前一节点,若当前节点为输入节点,则其没有父节点。对于非输入节点的采样,铁电电容的极化方向翻转概率可以根据父节点的采样结果以及该节点与父节点的条件概率确定得到。Specifically, after the initialization is completed, the voltage difference between the upper and lower electrodes of the ferroelectric capacitor is adjusted again, so that the polarization direction flip probability corresponding to the adjusted voltage difference is consistent with the probability value of various results at node 0 of the Bayesian network. Equally, optionally, assuming that the upper electrode of the ferroelectric capacitor is connected to the field effect transistor, the field effect transistor can be turned on by applying a voltage to CL, thereby precharging the logic node SN to Vpre (that is, the voltage that the field effect transistor can provide value), and adjust the voltage value provided by the digital-to-analog conversion circuit connected to the other end of the ferroelectric capacitor of the first sampling plane. Among them, in Bayesian network, the parent node is the previous node of the current node. If the current node is an input node, it has no parent node. For the sampling of non-input nodes, the polarization direction flip probability of the ferroelectric capacitor can be determined based on the sampling results of the parent node and the conditional probability between the node and the parent node.
步骤S402:读取第n节点的采样结果。Step S402: Read the sampling result of the n-th node.
具体地,在对铁电电容的两端施加电压之后,可以通过读取电路将铁电电容的极化方向翻转情况读取出来,因为实际事件的不同结果之间一般是存在互斥关系的,因此可以基于读取电路的读取结果,逐一确定每个铁电电容是否发生翻转(可以按照一定顺序逐一确定,也可以随机逐一确定),并将第一个发生翻转的铁电电容的极化方向作为贝叶斯网络节点0的采样结果;若确定到最后一个铁电电容时,前面仍无铁电电容的极化方向发生翻转,则可以不用判断最后一个铁电电容的极化方向是否发生翻转,可认为最后一个铁电电容的极化方向发生了翻转,并作为贝叶斯网络节点0的采样结果。可理解地,第一个采样平面中所有列的铁电电容均可以参与节点0的采样,当所有列同时参与采样时,可以认为对节点0采样了Y次。在完成节点0的采样之后,可以再利用第二个采样平面对贝叶斯网络的节点1进行采样,可选地,可以首先将第二个采样平面的铁电电容初始化至初始状态(也可在初始化第一个采样 平面时,一起初始化),然后再进行根据贝叶斯网络的条件概率值(即节点0的发生不同结果的情况下,节点1的不同结果的发生概率)调整场效应管或者数模转换电路的电压,使得铁电电容极化方向的翻转概率,与节点1对应的条件概率值相等,最后利用读取电路读取节点1的采样结果。可理解地,贝叶斯网络中的后续节点也进行初始化初始状态、调整电压差以及读取翻转情况的过程,直至完成对输出节点的采样,最后输出最终结果,从而确定输出节点与输入节点的关系。Specifically, after applying voltage to both ends of the ferroelectric capacitor, the polarization direction reversal of the ferroelectric capacitor can be read out through the reading circuit, because there is generally a mutually exclusive relationship between different results of actual events. Therefore, based on the reading results of the reading circuit, it can be determined one by one whether each ferroelectric capacitor has flipped (it can be determined one by one in a certain order, or it can be determined one by one randomly), and the polarization of the first ferroelectric capacitor that has flipped can be determined one by one. The direction is used as the sampling result of Bayesian network node 0; if the polarization direction of the previous ferroelectric capacitor has not flipped when the last ferroelectric capacitor is determined, there is no need to determine whether the polarization direction of the last ferroelectric capacitor has occurred. Flip, it can be considered that the polarization direction of the last ferroelectric capacitor has flipped, and is used as the sampling result of Bayesian network node 0. Understandably, the ferroelectric capacitors of all columns in the first sampling plane can participate in the sampling of node 0. When all columns participate in sampling at the same time, it can be considered that node 0 has been sampled Y times. After completing the sampling of node 0, the second sampling plane can be used to sample node 1 of the Bayesian network. Optionally, the ferroelectric capacitance of the second sampling plane can be initialized to the initial state first (or When initializing the first sample plane, initialize them together), and then adjust the field effect transistor or digital-to-analog conversion circuit according to the conditional probability value of the Bayesian network (that is, when different results occur at node 0, the probability of different results at node 1) The voltage makes the flip probability of the polarization direction of the ferroelectric capacitor equal to the conditional probability value corresponding to node 1. Finally, the reading circuit is used to read the sampling result of node 1. Understandably, subsequent nodes in the Bayesian network also undergo the process of initializing the initial state, adjusting the voltage difference, and reading the flip situation, until the sampling of the output node is completed, and finally the final result is output, thereby determining the relationship between the output node and the input node. relation.
需要说明的是,铁电电容极化方向的翻转概率与铁电电容当前处于的状态相关,例如,若铁电电容当前状态为“0”,则需要将其上电极的电压设置为大于下电极电压,才能使得极化方向的状态“0”按照一定概率翻转到极化方向的状态“1”;若铁电电容当前状态为“1”,则需要将其上电极的电压设置为小于下电极电压,才能使得极化方向的状态“1”按照一定概率翻转到极化方向的状态“0”。因此,若将状态“0”定位初始状态,在对铁电电容进行初始化操作时,可以设置上电极电压小于下电极电压,并使得电压差满足阈值;而若将状态“1”定位初始状态,在对铁电电容进行初始化操作时,可以设置上电极电压大于下电极电压,并使得电压差满足阈值。It should be noted that the flip probability of the polarization direction of the ferroelectric capacitor is related to the current state of the ferroelectric capacitor. For example, if the current state of the ferroelectric capacitor is "0", the voltage of its upper electrode needs to be set to be greater than that of the lower electrode. Voltage can make the state "0" of the polarization direction flip to the state "1" of the polarization direction with a certain probability; if the current state of the ferroelectric capacitor is "1", the voltage of its upper electrode needs to be set to be smaller than that of the lower electrode Voltage can make the state "1" in the polarization direction flip to the state "0" in the polarization direction with a certain probability. Therefore, if the state "0" is positioned as the initial state, when initializing the ferroelectric capacitor, the upper electrode voltage can be set to be smaller than the lower electrode voltage, so that the voltage difference meets the threshold; and if the state "1" is positioned as the initial state, When initializing the ferroelectric capacitor, the upper electrode voltage can be set to be greater than the lower electrode voltage, so that the voltage difference meets the threshold.
还需要说明的是,在上述以贝叶斯网络推理计算作为示例的场景中,考虑到铁电电容的极化方向的翻转次数有限,利用不同采样平面对贝叶斯网络的不同节点进行采样,可以将负载分摊在不同采样平面上,使得不同铁电电容的翻转次数可以均衡,以此延长采样装置的使用寿命,降低维护成本。可理解地,上述采样装置中的所有采样平面也可以同时针对贝叶斯网络中的节点依次进行采样,或者也可以连续使用同一采样平面进行采样,直到该采样平面中的铁电电容极化方向的翻转次数达到上限时,再通过其它采样平面进行采样,在此不做具体限定。除此之外,贝叶斯网络的不同节点可能出现的结果数量可以相同,也可以不同,一般而言,采样平面中铁电电容的行数会大于或等于节点可能出现的结果数量,也即是说,当同一行的铁电电容对应不同节点的不同结果时,可能会出现行数大于节点的结果数量,而多出的铁电电容可以不参与当前节点的采样。可选地,在获取贝叶斯网络的概率值时,可以确定出需要用到一列中多少行的铁电电容,从而可以通过关断其它行铁电电容一端的电压,使其不参与采样,读取电路在进行读取时,也可以仅对读取参与采样的铁电电容的极化方向的翻转情况。It should also be noted that in the above scenario using Bayesian network inference calculation as an example, considering that the number of flips of the polarization direction of the ferroelectric capacitor is limited, different sampling planes are used to sample different nodes of the Bayesian network. The load can be shared on different sampling planes so that the number of flips of different ferroelectric capacitors can be balanced, thereby extending the service life of the sampling device and reducing maintenance costs. Understandably, all the sampling planes in the above-mentioned sampling device can also be sampled sequentially for the nodes in the Bayesian network at the same time, or the same sampling plane can be continuously used for sampling until the polarization direction of the ferroelectric capacitor in the sampling plane is When the number of flips reaches the upper limit, sampling will be performed through other sampling planes, which are not specifically limited here. In addition, the number of possible results in different nodes of the Bayesian network can be the same or different. Generally speaking, the number of rows of ferroelectric capacitors in the sampling plane will be greater than or equal to the number of possible results in the node, that is, That is, when the ferroelectric capacitors in the same row correspond to different results at different nodes, the number of rows may be greater than the number of results at the nodes, and the extra ferroelectric capacitors do not need to participate in the sampling of the current node. Optionally, when obtaining the probability value of the Bayesian network, you can determine how many rows of ferroelectric capacitors in a column need to be used, so that you can turn off the voltage at one end of the ferroelectric capacitors in other rows so that they do not participate in sampling. When reading, the reading circuit may also only read the reversal of the polarization direction of the ferroelectric capacitor participating in the sampling.
可理解地,在通过上述采样装置实现采样操作时,由于采样装置的实现本质是利用一个或多个铁电电容的极化方向按照一定概率翻转的特性,模拟概率事件的发生过程,确定该事件对应的多种不同结果是否发生,从而实现采样操作,区别于现有技术中利用大量寄存器完成采样操作的方案,就目前工艺而言,铁电电容的面积相比于寄存器要小上不少,本申请实施例基于铁电电容的采样电路或采样装置,可以减小采样电路单元对于芯片面积的占用,也即是降低对于芯片面积的开销。Understandably, when the sampling operation is implemented through the above-mentioned sampling device, the essence of the implementation of the sampling device is to use the characteristics of the polarization direction of one or more ferroelectric capacitors to flip according to a certain probability to simulate the occurrence process of a probabilistic event and determine the event. Whether corresponding multiple different results occur, thereby realizing the sampling operation, which is different from the existing technology scheme that uses a large number of registers to complete the sampling operation. As far as the current technology is concerned, the area of the ferroelectric capacitor is much smaller than that of the register. The sampling circuit or sampling device based on ferroelectric capacitors in the embodiments of the present application can reduce the chip area occupied by the sampling circuit unit, that is, reduce the cost of the chip area.
本申请还提供一种半导体芯片,该芯片包括本申请以上所有实施例中所提供的采样装置。可理解的是,关于采样装置中各部分的功能以及作用可对应参考上述图1a至图4中的各实施例中的具体实现方式,这里不再赘述。This application also provides a semiconductor chip, which includes the sampling device provided in all the above embodiments of this application. It can be understood that, regarding the functions and functions of each part of the sampling device, reference can be made to the specific implementation manners in the embodiments shown in FIGS. 1 a to 4 above, and will not be described again here.
本申请还提供一种电子设备,该电子设备包括本申请以上所有实施例中所提供的采样装置。可理解的是,关于采样装置中各部分的功能以及作用可对应参考上述图1a至图4中的各 实施例中的具体实现方式,这里不再赘述。可选地,该电子设备还可以包括通信接口,用于该电子设备与其他设备或通信网络通信。This application also provides an electronic device, which includes the sampling device provided in all the above embodiments of this application. It can be understood that, regarding the functions and functions of each part of the sampling device, reference can be made to each of the above-mentioned Figures 1a to 4. The specific implementation manner in the embodiment will not be described again here. Optionally, the electronic device may also include a communication interface for the electronic device to communicate with other devices or communication networks.
本申请还提供了一种电子设备,该电子设备具有实现上述任意一种采样装置的控制方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。This application also provides an electronic device, which has the function of implementing any of the above control methods of the sampling device. This function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
本申请提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,该计算机程序被采样装置执行时,使得该采样装置可以执行上述控制方法流程。The present application provides a computer storage medium. The computer storage medium stores a computer program. When the computer program is executed by a sampling device, the sampling device can execute the above control method process.
本申请提供了一种计算机程序,该计算机程序包括指令,当该计算机程序被采样装置执行时,使得该采样装置可以执行上述控制方法流程。The present application provides a computer program. The computer program includes instructions. When the computer program is executed by a sampling device, the sampling device can execute the above control method process.
本申请提供了一种芯片系统,该芯片系统包括上述任意一种采样装置。在一种可能的设计中,所述芯片系统还包括处理器和存储器,所述存储器,用于保存所述采样装置和所述处理器的必要或相关的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其它分立器件。This application provides a chip system, which includes any of the above sampling devices. In a possible design, the chip system further includes a processor and a memory, and the memory is used to save necessary or relevant program instructions and data of the sampling device and the processor. The chip system may be composed of chips, or may include chips and other discrete devices.
本申请提供一种片上系统SoC芯片,该SoC芯片包括上述任意一种实现方式所提供的采样装置、与所述采样装置耦合的处理器、内部存储器和外部存储器。该SoC芯片,可以由芯片构成,也可以包含芯片和其他分立器件。This application provides a system-on-chip SoC chip. The SoC chip includes the sampling device provided by any of the above implementations, a processor coupled to the sampling device, an internal memory, and an external memory. The SoC chip can be composed of chips, or can also include chips and other discrete devices.
需要说明的是,本实施例中涉及的连接关系,如串联或并联等,是指电性连接,其不仅可以是直接通过导线连接,也可以是通过其他电性作用的方式相耦合。It should be noted that the connection relationships involved in this embodiment, such as series connection or parallel connection, refer to electrical connections, which may not only be directly connected through wires, but may also be coupled through other electrical methods.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 In the above embodiments, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. As mentioned above, the above embodiments are only used to illustrate the technical solution of the present invention, but not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the foregoing. The technical solutions described in each embodiment may be modified, or some of the technical features may be equivalently replaced; however, these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.

Claims (18)

  1. 一种采样装置,其特征在于,所述采样装置包括第一采样平面、第一供压电路、X个第二供压电路、控制器和读取电路,所述第一采样平面包括X个第一铁电电容;X为大于0的整数;A sampling device, characterized in that the sampling device includes a first sampling plane, a first voltage supply circuit, X second voltage supply circuits, a controller and a reading circuit, and the first sampling plane includes X second voltage supply circuits. A ferroelectric capacitor; X is an integer greater than 0;
    其中,所述X个第一铁电电容中每个第一铁电电容的第一电极与所述第一供压电路连接;所述第一供压电路用于为每个所述第一铁电电容的所述第一电极提供第一电压;Wherein, the first electrode of each first ferroelectric capacitor among the X first ferroelectric capacitors is connected to the first voltage supply circuit; the first voltage supply circuit is used to the first electrode of the capacitor provides a first voltage;
    所述X个第一铁电电容中第x个第一铁电电容的第二电极与所述X个第二供压电路中第x个第二供压电路连接;x取1、2、……、X,所述第x个第二供压电路用于为所述第x个第一铁电电容的所述第二电极提供第二电压;The second electrode of the x-th first ferroelectric capacitor among the X first ferroelectric capacitors is connected to the x-th second voltage supply circuit among the X second voltage supply circuits; x is 1, 2,... ..., X, the x-th second voltage supply circuit is used to provide a second voltage to the second electrode of the x-th first ferroelectric capacitor;
    所述控制器分别与所述第一供压电路和所述X个第二供压电路连接;所述控制器用于:接收采样指令,所述采样指令包括X个概率值;基于所述X个概率值分别控制所述第一供压电路和/或所述X个第二供压电路调整所述第一电压和/或所述第二电压;所述第x个第一铁电电容上的所述第一电压和所述第二电压的电压差对应所述X个概率值中的第x个概率值;The controller is connected to the first voltage supply circuit and the X second voltage supply circuits respectively; the controller is used to: receive a sampling instruction, the sampling instruction includes X probability values; based on the X The probability value controls the first voltage supply circuit and/or the X second voltage supply circuits to adjust the first voltage and/or the second voltage respectively; the x-th first ferroelectric capacitor has The voltage difference between the first voltage and the second voltage corresponds to the x-th probability value among the X probability values;
    所述读取电路用于读取每个所述第一铁电电容的极化方向;其中,每个所述第一铁电电容的极化方向基于所述第一电压和所述第二电压的电压差在第一极化方向和第二极化方向之间进行翻转。The reading circuit is used to read the polarization direction of each of the first ferroelectric capacitors; wherein the polarization direction of each of the first ferroelectric capacitors is based on the first voltage and the second voltage. The voltage difference flips between the first polarization direction and the second polarization direction.
  2. 如权利要求1所述的装置,其特征在于,每个所述第一铁电电容的所述第一电极或所述第二电极与所述读取电路连接。The device of claim 1, wherein the first electrode or the second electrode of each first ferroelectric capacitor is connected to the reading circuit.
  3. 如权利要求1-2中任一项所述的装置,其特征在于,所述第一电极包括上电极或下电极,所述第二电极包括上电极或下电极,所述第一电极与所述第二电极为不同电极。The device according to any one of claims 1-2, wherein the first electrode includes an upper electrode or a lower electrode, the second electrode includes an upper electrode or a lower electrode, and the first electrode is connected to the upper electrode or the lower electrode. The second electrode is a different electrode.
  4. 如权利要求1-3中任一项所述的装置,其特征在于,所述第一供压电路包括第一场效应管或第一数模转换电路;所述X个第二供压电路包括第二场效应管或第二数模转换电路。The device according to any one of claims 1 to 3, characterized in that the first voltage supply circuit includes a first field effect transistor or a first digital-to-analog conversion circuit; and the X second voltage supply circuits include The second field effect transistor or the second digital-to-analog conversion circuit.
  5. 如权利要求1-4中任一项所述的装置,其特征在于,所述第一供压电路或所述X个第二供压电路集成于所述读取电路中。The device according to any one of claims 1 to 4, characterized in that the first voltage supply circuit or the X second voltage supply circuits are integrated in the reading circuit.
  6. 如权利要求1-5中任一项所述的装置,其特征在于,所述第一采样平面还包括X个第二铁电电容,每个所述第一铁电电容的所述第一电极和所述X个第二铁电电容中每个第二铁电电容的所述第一电极,以并联方式与所述第一供压电路连接,共用所述第一供压电路。The device according to any one of claims 1 to 5, wherein the first sampling plane further includes X second ferroelectric capacitors, and the first electrode of each first ferroelectric capacitor The first electrode of each second ferroelectric capacitor in the X second ferroelectric capacitors is connected in parallel with the first voltage supply circuit and shares the first voltage supply circuit.
  7. 如权利要求1-6中任一项所述的装置,其特征在于,所述第一采样平面还包括X个第二铁电电容,所述第x个第一铁电电容的所述第二电极与所述X个第二铁电电容中第x个第二铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第x个第二供压电路;x取1、2、……、X。The device according to any one of claims 1 to 6, wherein the first sampling plane further includes X second ferroelectric capacitors, and the second second ferroelectric capacitor of the The electrode and the second electrode of the x-th second ferroelectric capacitor among the X second ferroelectric capacitors are connected in parallel with the x-th second voltage supply circuit, sharing the x-th second ferroelectric capacitor. Two voltage supply circuits; x takes 1, 2,...,X.
  8. 如权利要求1-7中任一项所述的装置,其特征在于,所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,所述X个第三铁电电容中每个第三铁电电容的所 述第一电极与每个所述第一铁电电容的所述第一电极,以并联方式与所述第一供压电路连接,共用所述第一供压电路。The device according to any one of claims 1 to 7, wherein the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, and the X third ferroelectric capacitors Each of the third ferroelectric capacitors in the three ferroelectric capacitors The first electrode and the first electrode of each first ferroelectric capacitor are connected in parallel to the first voltage supply circuit and share the first voltage supply circuit.
  9. 如权利要求1-8中任一项所述的装置,其特征在于,所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,所述第x个第一铁电电容的所述第二电极与所述X个第三铁电电容中第x个第三铁电电容的所述第二电极,以并联方式与所述第x个第二供压电路连接,共用所述第二供压电路;x取1、2、……、X。The device according to any one of claims 1 to 8, wherein the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, and the xth The second electrode of the first ferroelectric capacitor and the second electrode of the x-th third ferroelectric capacitor among the X third ferroelectric capacitors are connected in parallel with the x-th second voltage supply The circuit connection shares the second voltage supply circuit; x is 1, 2,...,X.
  10. 如权利要求1-9中任一项所述的装置,其特征在于,每个所述第一铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路;所述第一采样平面还包括X个第二铁电电容,每个所述第一铁电电容和所述X个第二铁电电容中每个第二铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路。The device according to any one of claims 1 to 9, wherein the first electrode or the second electrode of each first ferroelectric capacitor is connected in parallel with the reading circuit. connection, sharing the reading circuit; the first sampling plane also includes X second ferroelectric capacitors, each of the first ferroelectric capacitors and each of the X second ferroelectric capacitors. The first electrode or the second electrode of the capacitor is connected in parallel with the reading circuit and shares the reading circuit.
  11. 如权利要求1-10中任一项所述的装置,其特征在于,所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容,每个所述第一铁电电容和所述X个第三铁电电容中每个第三铁电电容的所述第一电极或所述第二电极,以并联方式与所述读取电路连接,共用所述读取电路。The device according to any one of claims 1 to 10, wherein the sampling device further includes a second sampling plane, the second sampling plane includes X third ferroelectric capacitors, each of the third A ferroelectric capacitor and the first electrode or the second electrode of each third ferroelectric capacitor in the X third ferroelectric capacitors are connected in parallel with the reading circuit, sharing the reading circuit Take the circuit.
  12. 如权利要求1-11中任一项所述的装置,其特征在于,当所述第一电压和所述第二电压的电压差大于或等于预设阈值时,对应的第一铁电电容的极化方向在所述第一极化方向和所述第二极化方向之间进行翻转;当所述电压差小于所述预设阈值时,对应的第一铁电电容的极化方向按照所述电压差对应的概率值在第一极化方向和第二极化方向之间进行翻转。The device according to any one of claims 1 to 11, characterized in that when the voltage difference between the first voltage and the second voltage is greater than or equal to a preset threshold, the corresponding first ferroelectric capacitor The polarization direction flips between the first polarization direction and the second polarization direction; when the voltage difference is less than the preset threshold, the polarization direction of the corresponding first ferroelectric capacitor is in accordance with the The probability value corresponding to the voltage difference is flipped between the first polarization direction and the second polarization direction.
  13. 一种采样装置,其特征在于,所述采样装置包括第一供压电路、X个第二供压电路、控制器和读取电路,所述采样装置与第一采样平面耦合,所述第一采样平面包括X个第一铁电电容;X为大于0的整数;A sampling device, characterized in that the sampling device includes a first voltage supply circuit, X second voltage supply circuits, a controller and a reading circuit, the sampling device is coupled to a first sampling plane, the first The sampling plane includes X first ferroelectric capacitors; X is an integer greater than 0;
    其中,所述X个第一铁电电容中每个第一铁电电容的第一电极与所述第一供压电路连接;所述第一供压电路用于为每个所述第一铁电电容的所述第一电极提供第一电压;Wherein, the first electrode of each first ferroelectric capacitor among the X first ferroelectric capacitors is connected to the first voltage supply circuit; the first voltage supply circuit is used to the first electrode of the capacitor provides a first voltage;
    所述X个第一铁电电容中第x个第一铁电电容的第二电极与所述X个第二供压电路中第x个第二供压电路连接;x取1、2、……、X,所述第x个第二供压电路用于为所述第x个第一铁电电容的所述第二电极提供第二电压;The second electrode of the x-th first ferroelectric capacitor among the X first ferroelectric capacitors is connected to the x-th second voltage supply circuit among the X second voltage supply circuits; x is 1, 2,... ..., X, the x-th second voltage supply circuit is used to provide a second voltage to the second electrode of the x-th first ferroelectric capacitor;
    所述控制器分别与所述第一供压电路和所述X个第二供压电路连接;所述控制器用于:接收采样指令,所述采样指令包括X个概率值;基于所述X个概率值分别控制所述第一供压电路和/或所述X个第二供压电路调整所述第一电压和/或所述第二电压;所述第x个第一铁电电容上的所述第一电压和所述第二电压的电压差对应所述X个概率值中的第x个概率值;The controller is connected to the first voltage supply circuit and the X second voltage supply circuits respectively; the controller is used to: receive a sampling instruction, the sampling instruction includes X probability values; based on the X The probability value controls the first voltage supply circuit and/or the X second voltage supply circuits to adjust the first voltage and/or the second voltage respectively; the x-th first ferroelectric capacitor has The voltage difference between the first voltage and the second voltage corresponds to the x-th probability value among the X probability values;
    所述读取电路用于读取每个所述第一铁电电容的极化方向;其中,每个所述第一铁电电容的极化方向基于所述第一电压和所述第二电压的电压差在第一极化方向和第二极化方向之间进行翻转。The reading circuit is used to read the polarization direction of each of the first ferroelectric capacitors; wherein the polarization direction of each of the first ferroelectric capacitors is based on the first voltage and the second voltage. The voltage difference flips between the first polarization direction and the second polarization direction.
  14. 一种铁电电容阵列,其特征在于,所述铁电电容阵列包括第一采样平面,所述第一采 样平面包括X个第一铁电电容,所述第一采样平面与采样装置耦合,所述采样装置包括第一供压电路、X个第二供压电路、控制器和读取电路;X为大于0的整数;A ferroelectric capacitor array, characterized in that the ferroelectric capacitor array includes a first sampling plane, and the first sampling plane The sample plane includes X first ferroelectric capacitors, and the first sampling plane is coupled to a sampling device. The sampling device includes a first voltage supply circuit, an integer greater than 0;
    其中,所述X个第一铁电电容中每个第一铁电电容的第一电极与所述第一供压电路连接;所述第一供压电路用于为每个所述第一铁电电容的所述第一电极提供第一电压;Wherein, the first electrode of each first ferroelectric capacitor among the X first ferroelectric capacitors is connected to the first voltage supply circuit; the first voltage supply circuit is used to the first electrode of the capacitor provides a first voltage;
    所述X个第一铁电电容中第x个第一铁电电容的第二电极与所述X个第二供压电路中第x个第二供压电路连接;x取1、2、……、X,所述第x个第二供压电路用于为所述第x个第一铁电电容的所述第二电极提供第二电压;The second electrode of the x-th first ferroelectric capacitor among the X first ferroelectric capacitors is connected to the x-th second voltage supply circuit among the X second voltage supply circuits; x is 1, 2,... ..., X, the x-th second voltage supply circuit is used to provide a second voltage to the second electrode of the x-th first ferroelectric capacitor;
    所述控制器分别与所述第一供压电路和所述X个第二供压电路连接;所述控制器用于:接收采样指令,所述采样指令包括X个概率值;基于所述X个概率值分别控制所述第一供压电路和/或所述X个第二供压电路调整所述第一电压和/或所述第二电压;所述第x个第一铁电电容上的所述第一电压和所述第二电压的电压差对应所述X个概率值中的第x个概率值;The controller is connected to the first voltage supply circuit and the X second voltage supply circuits respectively; the controller is used to: receive a sampling instruction, the sampling instruction includes X probability values; based on the X The probability value controls the first voltage supply circuit and/or the X second voltage supply circuits to adjust the first voltage and/or the second voltage respectively; the x-th first ferroelectric capacitor has The voltage difference between the first voltage and the second voltage corresponds to the x-th probability value among the X probability values;
    所述读取电路用于读取每个所述第一铁电电容的极化方向;其中,每个所述第一铁电电容的极化方向基于所述第一电压和所述第二电压的电压差在第一极化方向和第二极化方向之间进行翻转。The reading circuit is used to read the polarization direction of each of the first ferroelectric capacitors; wherein the polarization direction of each of the first ferroelectric capacitors is based on the first voltage and the second voltage. The voltage difference flips between the first polarization direction and the second polarization direction.
  15. 一种采样装置的控制方法,其特征在于,所述方法适用于如权利要求1-13中任一项所述的采样装置,所述方法包括:A control method for a sampling device, characterized in that the method is applicable to the sampling device according to any one of claims 1 to 13, and the method includes:
    通过所述控制器控制所述第一供压电路和/或所述X个第二供压电路对所述第一电压和/或所述第二电压进行第一调整,将每个所述第一铁电电容的极化方向初始化为所述第一极化方向;The controller controls the first voltage supply circuit and/or the X second voltage supply circuits to perform a first adjustment on the first voltage and/or the second voltage. The polarization direction of a ferroelectric capacitor is initialized to the first polarization direction;
    通过所述控制器接收采样指令,所述采样指令包括X个概率值;并基于所述X个概率值分别控制所述第一供压电路和/或所述X个第二供压电路对所述第一电压和或所述第二电压进行第二调整,所述第x个第一铁电电容上的所述第一电压和所述第二电压的电压差对应所述X个概率值中的第x个概率值;The controller receives a sampling instruction, the sampling instruction includes X probability values; and based on the X probability values, the first voltage supply circuit and/or the X second voltage supply circuits are respectively controlled to The first voltage and or the second voltage are subjected to a second adjustment, and the voltage difference between the first voltage and the second voltage on the x-th first ferroelectric capacitor corresponds to one of the X probability values. The xth probability value of ;
    通过所述读取电路读取铁电电容每个所述第一铁电电容的极化方向;其中,每个所述第一铁电电容的极化方向基于所述第一电压和所述第二电压的电压差从所述第一极化方向翻转到所述第二极化方向。The polarization direction of each first ferroelectric capacitor of the ferroelectric capacitor is read by the reading circuit; wherein the polarization direction of each first ferroelectric capacitor is based on the first voltage and the first ferroelectric capacitor. The voltage difference between the two voltages flips from the first polarization direction to the second polarization direction.
  16. 如权利要求15所述的方法,其特征在于,所述方法,还包括:The method of claim 15, further comprising:
    当所述第一采样平面还包括X个第二铁电电容时,通过所述读取电路读取每个所述第二铁电电容的极化方向。When the first sampling plane further includes X second ferroelectric capacitors, the polarization direction of each second ferroelectric capacitor is read through the reading circuit.
  17. 如权利要求15-16中任一项所述的方法,其特征在于,所述方法,还包括:The method according to any one of claims 15-16, characterized in that the method further includes:
    当所述采样装置还包括第二采样平面,所述第二采样平面包括X个第三铁电电容时,通过所述读取电路读取每个所述第三铁电电容的极化方向。When the sampling device further includes a second sampling plane, and the second sampling plane includes X third ferroelectric capacitors, the polarization direction of each of the third ferroelectric capacitors is read through the reading circuit.
  18. 一种电子设备,其特征在于,包括如权利要求1-13中任一项所述的采样装置,所述电子设备还包括主处理器,所述主处理器与所述采样装置耦合,所述主处理器用于向所述采样装置发送采样指令以及接收所述采样装置的采样结果;所述电子设备还包括存储器,所述存储器用于保存所述主处理器和所述采样装置运行时必要的程序指令和数据。 An electronic device, characterized in that it includes the sampling device according to any one of claims 1-13, the electronic device further includes a main processor, the main processor is coupled to the sampling device, the The main processor is used to send sampling instructions to the sampling device and receive sampling results from the sampling device; the electronic device also includes a memory, and the memory is used to save necessary information when the main processor and the sampling device are running. Program instructions and data.
PCT/CN2023/074732 2022-05-05 2023-02-07 Sampling device, related equipment, and control method WO2023213102A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210480895.8A CN117054750A (en) 2022-05-05 2022-05-05 Sampling device, related equipment and control method
CN202210480895.8 2022-05-05

Publications (1)

Publication Number Publication Date
WO2023213102A1 true WO2023213102A1 (en) 2023-11-09

Family

ID=88646186

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/074732 WO2023213102A1 (en) 2022-05-05 2023-02-07 Sampling device, related equipment, and control method

Country Status (2)

Country Link
CN (1) CN117054750A (en)
WO (1) WO2023213102A1 (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4176402A (en) * 1978-05-24 1979-11-27 Sperry Rand Corporation Apparatus for simultaneously measuring a plurality of digital events employing a random number table
JPH075203A (en) * 1993-02-22 1995-01-10 Hewlett Packard Co <Hp> Simulated random-repetition sampling of signal
US6114861A (en) * 1997-03-14 2000-09-05 Matsushita Electronics Corporation Apparatus for and method of evaluating the polarization characteristic of a ferroelectric capacitor
JP2004056083A (en) * 2002-05-28 2004-02-19 Fujitsu Ltd Designing method and evaluating method of ferroelectric capacitor
JP2007271363A (en) * 2006-03-30 2007-10-18 Fujitsu Ltd Ferroelectric substance characteristic measuring instrument
US20100299115A1 (en) * 2009-05-21 2010-11-25 Texas Instruments Incorporated Modeling of Ferroelectric Capacitors to Include Local Statistical Variations of Ferroelectric Properties
US20110198725A1 (en) * 2008-10-27 2011-08-18 Nxp B.V. Generating and exploiting an asymmetric capacitance hysteresis of ferroelectric mim capacitors
US20180322912A1 (en) * 2017-05-03 2018-11-08 Globalfoundries Inc. Non-volatile transistor element including a buried ferroelectric material based storage mechanism
US20200059252A1 (en) * 2018-08-17 2020-02-20 Micron Technology, Inc. Enhanced bit flipping scheme
US20200357453A1 (en) * 2019-05-09 2020-11-12 Namlab Ggmbh Ferroelectric memory and logic cell and operation method
US20220044719A1 (en) * 2021-10-22 2022-02-10 Hai Li Probabilistic in-memory computing
CN114174786A (en) * 2019-05-15 2022-03-11 Tdk电子股份有限公司 Ferroelectric sensor
CN114342075A (en) * 2019-09-26 2022-04-12 华为技术有限公司 Memory, memory array and data reading and writing method of memory

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4176402A (en) * 1978-05-24 1979-11-27 Sperry Rand Corporation Apparatus for simultaneously measuring a plurality of digital events employing a random number table
JPH075203A (en) * 1993-02-22 1995-01-10 Hewlett Packard Co <Hp> Simulated random-repetition sampling of signal
US6114861A (en) * 1997-03-14 2000-09-05 Matsushita Electronics Corporation Apparatus for and method of evaluating the polarization characteristic of a ferroelectric capacitor
JP2004056083A (en) * 2002-05-28 2004-02-19 Fujitsu Ltd Designing method and evaluating method of ferroelectric capacitor
JP2007271363A (en) * 2006-03-30 2007-10-18 Fujitsu Ltd Ferroelectric substance characteristic measuring instrument
US20110198725A1 (en) * 2008-10-27 2011-08-18 Nxp B.V. Generating and exploiting an asymmetric capacitance hysteresis of ferroelectric mim capacitors
US20100299115A1 (en) * 2009-05-21 2010-11-25 Texas Instruments Incorporated Modeling of Ferroelectric Capacitors to Include Local Statistical Variations of Ferroelectric Properties
US20180322912A1 (en) * 2017-05-03 2018-11-08 Globalfoundries Inc. Non-volatile transistor element including a buried ferroelectric material based storage mechanism
US20200059252A1 (en) * 2018-08-17 2020-02-20 Micron Technology, Inc. Enhanced bit flipping scheme
US20200357453A1 (en) * 2019-05-09 2020-11-12 Namlab Ggmbh Ferroelectric memory and logic cell and operation method
CN114174786A (en) * 2019-05-15 2022-03-11 Tdk电子股份有限公司 Ferroelectric sensor
CN114342075A (en) * 2019-09-26 2022-04-12 华为技术有限公司 Memory, memory array and data reading and writing method of memory
US20220044719A1 (en) * 2021-10-22 2022-02-10 Hai Li Probabilistic in-memory computing

Also Published As

Publication number Publication date
CN117054750A (en) 2023-11-14

Similar Documents

Publication Publication Date Title
CN109634557B (en) Multiplier based on 1T1R memory and operation method
US10643126B2 (en) Systems, methods and devices for data quantization
CN110176260A (en) Support the storage component part and its operating method of jump calculating mode
US11874897B2 (en) Integrated circuit device with deep learning accelerator and random access memory
CN110674462B (en) Matrix operation device, method, processor and computer readable storage medium
TW202125517A (en) Energy efficient memory array with optimized burst read and write data access, and scheme for reading and writing data from/to rearranged memory subarray where unused metadata is stored in a sparsity map
WO2022132539A1 (en) Memory configuration to support deep learning accelerator in an integrated circuit device
WO2023213102A1 (en) Sampling device, related equipment, and control method
WO2022031447A1 (en) Intelligent low power modes for deep learning accelerator and random access memory
CN110085270B (en) Storage operation circuit module and processor
CN114723031B (en) Computing device
KR101934517B1 (en) Memory controller, method thereof, and system having the memory controller
CN112002365B (en) Parallel logic operation method based on multi-bit nonvolatile memory and full adder
CN116415100A (en) Service processing method, device, processor and computing equipment
CN113407258A (en) Self-adaptive resource allocation layout and wiring method and system of storage and computation integrated architecture
TW202131630A (en) Multi-bit flip flop circuit and method
US11741043B2 (en) Multi-core processing and memory arrangement
US20220406392A1 (en) Techniques for analog multibit data representation for in-memory computing
TWI793676B (en) Padding architecture applied to neural network
US12032959B2 (en) Non-volatile memory die with latch-based multiply-accumulate components
TWI822145B (en) Storage circuit, chip, data processing method, and electronic device
CN116843006A (en) Dot product calculation hardware device, method, chip and calculation equipment
TWI836774B (en) Memory interface circuit and operation method thereof
US20230418600A1 (en) Non-volatile memory die with latch-based multiply-accumulate components
US8982618B2 (en) Nonvolatile memory device and related method of operation

Legal Events

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

Ref document number: 23799092

Country of ref document: EP

Kind code of ref document: A1