WO2021093346A1 - Chip synchronization method and related apparatus - Google Patents

Chip synchronization method and related apparatus Download PDF

Info

Publication number
WO2021093346A1
WO2021093346A1 PCT/CN2020/100392 CN2020100392W WO2021093346A1 WO 2021093346 A1 WO2021093346 A1 WO 2021093346A1 CN 2020100392 W CN2020100392 W CN 2020100392W WO 2021093346 A1 WO2021093346 A1 WO 2021093346A1
Authority
WO
WIPO (PCT)
Prior art keywords
chip
mode
synchronization signal
edge
working mode
Prior art date
Application number
PCT/CN2020/100392
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 WO2021093346A1 publication Critical patent/WO2021093346A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter

Definitions

  • This application relates to the field of computer technology, and in particular to a method for synchronizing chips and related devices.
  • multiple chips are required to perform synchronous work.
  • multiple cascaded chips are often required to achieve laser detection and Ranging.
  • the embodiment of the application provides a chip synchronization method and related device.
  • the master chip adds a rising edge or a falling edge to the synchronization signal sent to the slave chip to trigger the slave chip to enter the working mode, and the master chip waits for a certain period of time. Then enter the working mode to ensure that the master chip and the slave chip can enter the working mode at the same time.
  • only one chip pin is needed to send a synchronization signal, and multiple chips can enter the same working mode synchronously. Reduce the complexity of chip design and layout.
  • the first aspect of the embodiments of the present application provides a method for synchronizing chips.
  • the method includes: in a scenario where multiple chips need to work synchronously, the first chip may continuously send a synchronization signal to the second chip through the connection line between the chip pins.
  • the first chip may be a master chip
  • the second chip may be a slave chip
  • the synchronization signal is a rectangular wave signal
  • the first chip may be in the synchronization signal
  • a rising edge or a falling edge is added to the synchronizing signal so that the second chip can enter the preset operating mode according to the rising or falling edge in the synchronization signal, and the first chip enters the preset operating mode after waiting for the first offset time, In order to realize that the first chip and the second chip enter the same working mode synchronously.
  • the master chip adds a rising edge or a falling edge to the synchronization signal sent to the slave chip to trigger the slave chip to enter the working mode, and the master chip waits for a certain period of time before entering the working mode, ensuring that the master chip and the The slave chip can enter the working mode at the same time point, and in this solution, only one chip pin is needed to send the synchronization signal, so that multiple chips can enter the same working mode synchronously, which reduces the complexity of chip design and layout. degree.
  • the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the preset operation
  • the mode includes: the first chip adds a rising edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the first working mode; the first chip adds a falling edge to the synchronization signal, and is waiting for the first
  • the first chip enters the second working mode, where the preset working mode includes the first working mode and the second working mode; that is, the rising edge has a corresponding relationship with the first working mode, and the falling edge is The second working mode has a corresponding relationship.
  • the first chip can determine the working mode entered according to the type of the added signal edge or realize the switching of the working mode by changing the added signal edge.
  • the master chip adds a rising edge or a falling edge to the synchronization signal sent to the slave chip to trigger the slave chip to enter different working modes or realize the switching of the working mode, and the synchronization between multiple chips is realized through a single synchronization signal. Switching the working mode reduces the complexity of chip design and layout.
  • the first chip when the number of times that the first chip adds rising edges to the synchronization signal reaches a preset value, the first chip stops entering The first working mode, that is, after the first chip enters the first working mode for a preset number of times, the first chip no longer enters the first working mode; or, the number of times that the first chip adds a falling edge to the synchronization signal reaches.
  • the first chip stops entering the second working mode that is, after the number of times the first chip enters the second working mode reaches the preset value, the first chip no longer enters the second working mode.
  • the chip after the number of times the chip enters a certain working mode reaches a preset value, the chip no longer enters the working mode, thereby saving the resource cost of the chip and improving the flexibility of the solution.
  • the first chip adds the rising signal to the synchronization signal. Edge or falling edge, and after waiting for the first offset time, the first chip enters the preset working mode, including: the first chip adds the first signal edge to the synchronization signal, and after waiting for the first offset time, the The first chip enters the laser detection and ranging mode; the first chip adds the second signal edge to the synchronization signal, and after waiting for the first offset time, the first chip switches from the laser detection and ranging mode to the calibration mode ,
  • the preset working mode includes laser detection and ranging mode and calibration and calibration mode; wherein, the first signal edge may be a rising edge and the second signal edge may be a falling edge, or the first signal edge may be a falling edge and the first signal edge may be a falling edge.
  • the second signal is a rising edge.
  • the master chip determines the working mode entered according to the type of the signal edge added to the synchronization signal, which can realize that the master chip and the slave chip enter the laser detection and ranging mode at the same time, and switch from the laser detection and ranging mode.
  • the flexibility of the scheme is improved.
  • the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the preset operation
  • the mode includes: if the first signal edge added by the first chip to the synchronization signal is a rising edge, then after the first chip adds the rising edge to the synchronization signal, the first chip waits for the first offset time, Enter the calibration calibration mode, and when the first chip adds a falling edge to the synchronization signal, the first chip will switch from the calibration calibration mode to the laser detection and ranging mode after waiting for the second offset time; if the first chip is in synchronization The first signal edge added to the signal is the falling edge, then after the first chip adds the falling edge to the synchronization signal, the first chip enters the calibration mode after waiting for the first offset time, and when the first chip After adding the falling edge to the synchronization signal, the first chip switches from the calibration calibration mode to the laser detection and
  • the first chip determines the corresponding relationship between the signal edge and the working mode according to the type of the first signal edge added to the synchronization signal; the first signal edge added to the synchronization signal is the rising edge In this case, it is determined that there is a corresponding relationship between the rising edge and the calibration mode, and the falling edge has a corresponding relationship with the laser detection and ranging mode; when the first signal edge added to the synchronization signal is a falling edge Next, it is determined that there is a corresponding relationship between the falling edge and the calibration mode, and the rising edge has a corresponding relationship with the laser detection and ranging mode.
  • the master chip determines the corresponding relationship between the signal edge and the working mode according to the type of the first signal edge added to the synchronization signal, which can ensure that under different circumstances, the master chip and the first one that enters the slave chip
  • the working mode is a preset working mode, which improves the flexibility of the scheme.
  • the second aspect of the embodiments of the present application provides a chip synchronization method, which includes: in a scenario where multiple chips need to work synchronously, the second chip can continuously receive the synchronization signal sent by the first chip.
  • the first chip can It is the master chip
  • the second chip can be a slave chip
  • the synchronization signal is a rectangular wave signal
  • the second chip waits for the second offset time , The second chip enters the preset working mode, so that the first chip and the second chip enter the same working mode synchronously.
  • the slave chip enters the working mode according to the rising edge or the falling edge of the synchronization signal sent by the master chip, and the slave chip enters the working mode after waiting for a certain period of time, ensuring that the master chip and the slave chip can Enter the working mode at the same time point, and in this solution, only one chip pin is needed to send a synchronization signal, so that multiple chips can enter the same working mode synchronously, which reduces the complexity of chip design and layout.
  • the second chip when a rising or falling edge occurs in the synchronization signal received by the second chip, the second chip waits for the second offset time, and then the second chip waits for the second offset time.
  • the second chip enters the preset working mode, including: when a rising edge appears in the synchronization signal received by the second chip, the second chip enters the first working mode after waiting for the second offset time; when the second chip receives After the falling edge appears in the synchronization signal, the second chip enters the second operating mode after waiting for the second offset time.
  • the preset operating mode includes the first operating mode and the second operating mode; that is, the rising edge and the second operating mode
  • the first operating mode has a corresponding relationship
  • the falling edge has a corresponding relationship with the second operating mode.
  • the second chip can determine the entered operating mode or switch the operating mode according to the type of the signal edge in the synchronization signal.
  • the slave chip can determine the working mode it enters or realize the switching of the working mode according to the type of the signal edge in the synchronization signal.
  • a single synchronization signal realizes the synchronous switching of the working mode among multiple chips, which reduces the chip design and layout. The complexity of the time.
  • the second chip when the number of occurrences of rising edges in the synchronization signal received by the second chip reaches a preset value, the second chip Stop entering the first working mode, that is, after the second chip enters the first working mode for a preset number of times, the second chip no longer enters the first working mode; or, the falling edge of the synchronization signal received by the second chip
  • the second chip stops entering the second working mode, that is, after the number of times the second chip enters the second working mode reaches the preset value, the second chip no longer enters the second working mode.
  • the chip after the number of times the chip enters a certain working mode reaches a preset value, the chip no longer enters the working mode, thereby saving the resource cost of the chip and improving the flexibility of the solution.
  • the second chip when a rising or falling edge occurs in the synchronization signal received by the second chip, the second chip waits for the second offset time, and then the second chip waits for the second offset time.
  • the second chip enters the preset working mode, which specifically includes: when the first signal edge appears in the synchronization signal received by the second chip, the second chip enters the laser detection and ranging mode after waiting for the second offset time; and After the second signal edge appears in the synchronization signal received by the second chip, the second chip switches from the laser detection and ranging mode to the calibration mode after waiting for the second offset time.
  • the preset working mode includes Laser detection and ranging mode and calibration mode; wherein, the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
  • the master chip determines the working mode entered according to the type of the signal edge added to the synchronization signal, which can realize that the master chip and the slave chip enter the laser detection and ranging mode at the same time, and switch from the laser detection and ranging mode.
  • the flexibility of the scheme is improved.
  • the second chip after a rising edge or a falling edge appears in the synchronization signal received by the second chip, the second chip waits for the second offset time, the first The second chip enters the preset working mode, including: if the first signal edge appearing in the synchronization signal received by the second chip is a rising edge, then after the rising edge appears in the synchronization signal received by the second chip, the second chip After waiting for the second offset time, enter the calibration calibration mode, and after a falling edge appears in the synchronization signal received by the second chip, the second chip switches from the calibration calibration mode to the laser detection after waiting for the second offset time And ranging mode; if the first signal edge that appears in the synchronization signal received by the second chip is a falling edge, then after the falling edge appears in the synchronization signal received by the second chip, the second chip is waiting for the second offset After the shift time, enter the calibration calibration mode, and when a rising edge appears in the synchronization signal received by the second chip, the second
  • the preset working mode includes calibration mode and laser detection and ranging mode. That is to say, the second chip determines the corresponding relationship between the signal edge and the working mode according to the type of the first signal edge in the received synchronization signal; in the case where the first signal edge in the synchronization signal is a rising edge Under the condition that the rising edge and the calibration mode have a corresponding relationship, and the falling edge has a corresponding relationship with the laser detection and ranging mode; when the first signal edge in the synchronization signal is a falling edge, then It is determined that the falling edge has a corresponding relationship with the calibration mode, and the rising edge has a corresponding relationship with the laser detection and ranging mode.
  • the slave chip determines the corresponding relationship between the signal edge and the working mode according to the type of the first signal edge in the received synchronization signal, which can ensure that the master chip and the slave chip enter the first signal edge under different conditions.
  • a working mode is a preset working mode, which improves the flexibility of the scheme.
  • the third aspect of the embodiments of the present application provides a chip, including: a sending unit, configured to continuously send a synchronization signal to the second chip, the synchronization signal is a rectangular wave signal; and a processing unit, configured to add a rising edge or a falling edge to the synchronization signal And after waiting for the first offset time, it enters the preset working mode.
  • the processing unit is further configured to add a rising edge to the synchronization signal, and enter the first working mode after waiting for the first offset time; processing The unit is also used to add a falling edge to the synchronization signal, and after waiting for the first offset time, enter the second working mode, wherein the preset working mode includes the first working mode and the second working mode.
  • the processing unit is further configured to stop entering the first aspect when the number of rising edges added to the synchronization signal reaches a preset value.
  • a working mode; or, the processing unit is further configured to stop entering the second working mode when the number of times of adding falling edges to the synchronization signal reaches a preset value.
  • the processing unit is further configured to add the first signal edge to the synchronization signal, and after waiting for the first offset time, enter the laser detection and ranging Mode; the processing unit is also used to add a second signal edge to the synchronization signal, and after waiting for the first offset time, switch from the laser detection and ranging mode to the calibration calibration mode, the preset working mode includes laser detection and ranging Mode and calibration mode; wherein, the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
  • the processing unit if the first signal edge added by the processing unit to the synchronization signal is a rising edge, the processing unit enters calibration after waiting for the first offset time Calibration mode, and when the processing unit adds a falling edge to the synchronization signal, the processing unit switches from the calibration calibration mode to the laser detection and ranging mode after waiting for the first offset time; if the processing unit adds the first offset in the synchronization signal One signal edge is a falling edge. After the processing unit waits for the first offset time, it enters the calibration calibration mode, and when the processing unit adds the falling edge to the synchronization signal, the processing unit waits for the first offset time and then starts the calibration.
  • the calibration mode is switched to laser detection and ranging mode; among them, the preset working mode includes calibration calibration mode and laser detection and ranging mode.
  • a fourth aspect of the embodiments of the present application provides a chip, including: a receiving unit, configured to continuously receive a synchronization signal sent by a first chip, the synchronization signal is a rectangular wave signal; a processing unit, used when the synchronization signal received by the receiving unit After the rising edge or the falling edge occurs, after waiting for the second offset time, the preset working mode is entered.
  • the processing unit is further configured to enter the first after waiting for the second offset time.
  • the processing unit is further configured to enter the second working mode after waiting for the second offset time, wherein the preset working mode includes the first working mode and the second working mode .
  • the processing unit when the number of occurrences of rising edges in the synchronization signal received by the receiving unit reaches a preset value, the processing unit also uses Stop entering the first working mode;
  • the processing unit stops entering the second working mode.
  • the processing unit after the first signal edge appears in the synchronization signal received by the receiving unit, the processing unit enters the laser detection and detection after waiting for the second offset time. Ranging mode; when the second signal edge appears in the synchronization signal received by the receiving unit, the processing unit switches from laser detection and ranging mode to calibration mode after waiting for the second offset time.
  • the preset working mode includes laser Detection and ranging mode and calibration calibration mode; wherein the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
  • the processing unit waits for the second offset time, Enter the calibration calibration mode, and when there is a falling edge in the synchronization signal received by the receiving unit, the processing unit will switch from the calibration calibration mode to the laser detection and ranging mode after waiting for the second offset time; if the receiving unit receives the signal The first signal edge that appears in the synchronization signal is the falling edge. After the processing unit waits for the second offset time, it enters the calibration calibration mode, and when the rising edge appears in the synchronization signal received by the receiving unit, the processing unit is waiting for the first signal edge. 2. After the offset time, switch from the calibration calibration mode to the laser detection and ranging mode; among them, the preset working mode includes the calibration calibration mode and the laser detection and ranging mode.
  • the fifth aspect of the embodiments of the present application provides a chip including a processor and a memory, and the processor is coupled with the memory, and is configured to read and execute instructions stored in the memory to implement the steps in the first aspect.
  • the sixth aspect of the embodiments of the present application provides a chip including a processor and a memory, and the processor is coupled with the memory, and is configured to read and execute instructions stored in the memory to implement the steps in the second aspect.
  • a seventh aspect of the embodiments of the present application provides a chip system, which is characterized in that it includes the chip in the third aspect and the chip in the fourth aspect.
  • the embodiment of the application provides a chip synchronization method and related device.
  • the master chip adds a rising edge or a falling edge to the synchronization signal sent to the slave chip to trigger the slave chip to enter the working mode, and the master chip waits for a certain period of time. Then enter the working mode to ensure that the master chip and the slave chip can enter the working mode at the same time.
  • only one chip pin is needed to send a synchronization signal, and multiple chips can enter the same working mode synchronously. Reduce the complexity of chip design and layout.
  • FIG. 1 is a schematic diagram of an application scenario of a chip synchronization method provided by an embodiment of the application
  • FIG. 2 is a schematic flowchart of a chip synchronization method provided by an embodiment of the application
  • FIG. 3 is a schematic diagram of a timing sequence of a synchronization signal provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of a working mode switching provided by an embodiment of the application.
  • FIG. 5 is another schematic diagram of a work mode switching provided by an embodiment of the application.
  • FIG. 6 is another schematic diagram of a working mode switching provided by an embodiment of the application.
  • FIG. 7 is another schematic diagram of a work mode switching provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of a circuit structure of a second chip provided by an embodiment of the application.
  • FIG. 9 is a schematic structural diagram of a first chip provided by an embodiment of the application.
  • FIG. 10 is a schematic structural diagram of a second chip provided by an embodiment of the application.
  • the naming or numbering of steps appearing in this application does not mean that the steps in the method flow must be executed in the time/logical sequence indicated by the naming or numbering.
  • the named or numbered process steps can be implemented according to the The technical purpose changes the execution order, as long as the same or similar technical effects can be achieved.
  • the division of modules presented in this application is a logical division. In actual applications, there may be other divisions. For example, multiple modules can be combined or integrated in another system, or some features can be ignored
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, and the indirect coupling or communication connection between the modules may be electrical or other similar forms. There are no restrictions in the application.
  • modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed to multiple circuit modules, and some or all of them may be selected according to actual needs. Module to achieve the purpose of this application program.
  • multiple chips are usually required to perform synchronous work to ensure processing performance; for example, in a laser detection and ranging (light detection and ranging, LIDAR) signal processing system, multiple chips are often required to work simultaneously To achieve laser detection and ranging.
  • LIDAR light detection and ranging
  • the embodiment of the present application provides a simpler synchronization method.
  • triggering the corresponding operating mode according to different trigger signals in the synchronization signal only one chip pin is needed to send the synchronization signal, and multiple synchronization signals can be realized.
  • Each chip enters a certain working mode synchronously to achieve the purpose of multiple chips working synchronously, which simplifies the design and implementation of a multi-chip cascade system.
  • FIG. 1 is a schematic diagram of an application scenario of the chip synchronization method provided by an embodiment of the application.
  • the application scenario may specifically include a master chip and one or more slave chips (the master chip, slave chip 1 and slave chip 2 in Fig. 1), where the master chip and one or more slave chips Chip connection.
  • the master chip When working synchronously, the master chip generates a synchronization signal and continuously sends the synchronization signal to one or more slave chips connected to it.
  • the master chip adds a rising or falling edge to the synchronization signal and waits for the first offset time. , Enter the preset working mode; the slave chip continues to receive the synchronization signal, after a rising or falling edge appears in the received synchronization signal, wait for the second offset time to enter the working mode, so as to achieve synchronization between the master and slave chips.
  • FIG. 2 is a schematic flowchart of a chip synchronization method provided by an embodiment of the application; as shown in FIG. 2, a chip synchronization method provided by an embodiment of the application includes:
  • the first chip continuously sends a synchronization signal to the second chip, and the synchronization signal is a rectangular wave signal;
  • the first chip may specifically be the master chip in the multi-chip system
  • the second chip may specifically be the slave chip in the multi-chip system, wherein the pins of the first chip and the pins of the second chip are connected through Wire connection to realize the connection between the first chip and the second chip.
  • the first chip After the first chip generates the synchronization signal, the first chip can continuously send the synchronization signal to the second chip through the connection line between the pins.
  • the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for the first offset time, the first chip enters a preset operating mode;
  • the first chip when the first chip and the second chip need to work synchronously, the first chip can add a rising edge or a falling edge to the synchronization signal continuously sent to the second chip to trigger the second chip to enter synchronously with it.
  • Preset working mode Considering that there is a transmission delay between the first chip and the second chip, that is, there is a certain delay from the first chip to the second chip sending the synchronization signal to the second chip receiving the second chip, the first chip can be After adding the rising edge or the falling edge to the synchronization signal, wait for the first offset time, and then enter the preset working mode to ensure that the first chip and the second chip can enter the preset working mode synchronously.
  • the time required for the first chip to send the synchronization signal to the second chip is the inherent delay between the first chip and the second chip, and the inherent delay is specifically determined by the inherent characteristics of the chip device and the connection line itself. Therefore, in practical applications, the inherent delay can be obtained by calibrating between chips.
  • the second chip continuously receives the synchronization signal sent by the first chip, and the synchronization signal is a rectangular wave signal;
  • the second chip After a rising edge or a falling edge occurs in the synchronization signal received by the second chip, the second chip enters a preset operating mode after waiting for the second offset time.
  • the second chip can continue to detect the synchronization signal. After the second chip detects the rising or falling edge in the synchronization signal, the second chip can wait for the first After the second offset time, it enters the preset working mode, so that it can enter the preset working mode at the same time as the first chip.
  • the first offset time and the second offset time are two different times, and the first offset time is the sum of the second offset time and the inherent delay, that is, In other words, the waiting time of the first chip is the sum of the waiting time of the second chip and the inherent delay. In this way, it can be ensured that after waiting for the first offset time, the first chip can enter the preset working mode synchronously with the second chip waiting for the second offset time.
  • the first offset time can be set to 10
  • the second offset time can be set to 8.
  • the first chip may start timing after adding a rising edge or a falling edge to the synchronization signal, and enter the preset working mode when the timer counts 10 (that is, after waiting for the first offset time);
  • the second chip can start timing after detecting the rising or falling edge of the synchronization signal, and enter the preset working mode when the timer counts to 8 (that is, after waiting for the second offset time).
  • the time point when the timer in the first chip counts to 10 is exactly the same time point when the timer in the second chip counts to 8. This ensures that the first chip and the second chip can be at the same time. Enter the preset working mode at a time point, that is, the synchronization between the first chip and the second chip is realized.
  • the first offset time and the second offset time are not fixed. In actual applications, they can be determined or adjusted according to the inherent delay between chips.
  • the first chip when the first chip sends a synchronization signal to multiple second chips to achieve synchronization of multiple chips, it may also be based on the relationship between the first chip and each different second chip.
  • the inherent delay determines the first offset time that the first chip waits and the second offset time that each second chip waits. For example, assuming that the first chip sends synchronization signals to two second chips at the same time, the inherent delay between the first chip and the first second chip is 2, and the inherent delay between the first chip and the second second chip is 2.
  • the delay is 5, then you can set the first offset time corresponding to the first chip to 10, the second offset time corresponding to the first second chip to 8, and the second offset time corresponding to the second second chip to The offset time is 5.
  • the timer in the first chip counts to 10
  • the timer in the second second chip counts to 5
  • the point is exactly the same point in time, ensuring that both the first chip and the two second chips can enter the preset working mode at the same point in time, that is, the synchronization between the first chip and the second chip is realized.
  • the first offset time and the second offset time may be specifically quantified by the number of counts of a timer inside the chip, and the first offset time and the second offset time may also be one.
  • the specific time value for example, N nanoseconds, where N is a positive number.
  • the quantization of the first offset time and the second offset time can be determined according to the configuration of the first chip and the second chip itself The method is not specifically limited here.
  • the first offset time may specifically be the inherent delay between the first chip and the second chip, and the second offset time is 0; that is, the first chip
  • the waiting time is the inherent delay between the first chip and the second chip, and the second chip can directly enter the preset working mode after detecting a rising edge or a falling edge in the synchronization signal without waiting. In this way, it can also be ensured that the first chip can enter the preset working mode synchronously with the second chip after waiting for the first offset time.
  • the first offset time is the inherent delay between the first chip and the second chip and the second offset time is 0, which is specifically applicable to a chip system with only one first chip and one second chip , Or a chip system with the same inherent delay between the first chip and all second chips.
  • the preset working mode may include a first working mode and a second working mode.
  • the first chip may add a rising edge to the synchronization signal and wait for the first offset time before entering the first working mode; the second chip may include a rising edge in the received synchronization signal and wait for the second After the offset time, enter the first working mode.
  • the first chip may specifically add a falling edge to the synchronization signal and wait for the first offset time before entering the second working mode; the second chip may have a falling edge in the received synchronization signal and wait After the second offset time, enter the second working mode.
  • the first chip and the second chip can determine the working mode they enter according to whether the signal edge in the synchronization signal is a rising edge or a falling edge.
  • the first chip can add a falling edge to the synchronization signal, and after waiting for the first offset time, switch from the first working mode to the second working mode; similarly, After the first chip has entered the second working mode, the first chip may add a rising edge to the synchronization signal, and after waiting for the first offset time, switch from the second working mode to the first working mode.
  • the second chip after the second chip has entered the first working mode, the second chip can have a falling edge in the synchronization signal, and after waiting for the second offset time, switch from the first working mode to The second working mode; after the second chip has entered the second working mode, the first chip can have a rising edge in the synchronization signal, and after waiting for the second offset time, switch from the second working mode to the first working mode.
  • the first chip and the second chip decide to enter the first working mode according to the rising edge in the synchronization signal, and decide to enter the second working mode according to the falling edge in the synchronization signal.
  • the first chip and the second chip may also decide to enter the first working mode according to the falling edge in the synchronization signal, and decide to enter the second working mode according to the rising edge in the synchronization signal.
  • the preset working modes include laser detection and ranging mode and calibration mode, such as the first
  • the working mode can be the laser detection and ranging mode in the LIDAR signal processing system.
  • the first working mode can be the calibration mode in the LIDAR signal processing system.
  • the first working mode can also be the LIDAR signal processing system.
  • the second working mode is the laser detection and ranging mode in the LIDAR signal processing system, which is not specifically limited here.
  • the laser detection and ranging mode is the normal working mode in the LIDAR signal processing system, which is mainly used to realize the laser detection and ranging; and the calibration mode is used to eliminate the first chip and the second chip in the LIDAR signal processing system.
  • the calibration calibration mode usually includes calibration and calibration processes. Calibration means acquiring correction parameters, and calibration means calibrating the system according to the acquired correction parameters. Since the LIDAR signal processing system is a complex measurement system integrating light, machine, electricity, calculation and control, there will inevitably be measurement errors in the measurement process, and this measurement error will vary with the working environment and time. Changes have drifted. Therefore, in the working process of the LIDAR signal processing system, it is often necessary to periodically calibrate and calibrate.
  • the first chip and the second chip can selectively enter the laser detection and ranging mode or the calibration mode according to the rising edge or the falling edge of the synchronization signal, so as to realize the synchronization of multiple chips. To a certain working mode, ensure the synchronization between the chips.
  • the rising edge can be used to trigger the laser detection and ranging mode and the falling edge can be used to trigger the calibration calibration mode, or the falling edge can be used to trigger the laser detection and ranging mode and the rising edge can be used to trigger Calibration calibration mode.
  • the first chip and the second chip can enter the laser detection and ranging mode, switch from the laser detection and ranging mode to the calibration calibration mode, or switch from the calibration calibration mode according to the type of the signal edge in the synchronization signal To laser detection and ranging mode.
  • the first chip when laser detection and ranging is required, the first chip adds a rising edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the laser detection and ranging mode; similarly, the second After the chip has a rising edge in the received synchronization signal, after waiting for the second offset time, it enters the laser detection and ranging mode synchronously with the first chip; when the inter-chip calibration is required, the first chip is in the laser detection and ranging mode.
  • a falling edge is added to the synchronization signal, and after waiting for the first offset time, the first chip switches from the laser detection and ranging mode to the calibration calibration mode; the second chip displays the falling edge in the received synchronization signal, and then After waiting for the second offset time, switch from the laser detection and ranging mode to the calibration mode in synchronization with the first chip.
  • the duration of the first working mode and the second working mode may be determined according to a preset configuration. For example, after configuring the chip to enter the first working mode for M seconds and entering the second working mode for N seconds, the first chip adds a rising edge to the synchronization signal and waits for the first offset time to enter the first working mode After that, the first chip can start timing by the timer. When the timer counts up to M1 seconds, the first chip adds a falling edge to the synchronization signal, and switches from the first working mode to the first after waiting for the first offset time.
  • the first chip can start timing by the timer, and the timer counts to N1 seconds
  • the first chip adds a rising edge to the synchronization signal, and switches from the second operating mode to the first operating mode after waiting for the first offset time, where N1 is the difference between N and the first offset time.
  • the first chip and the second chip can switch between the first working mode and the second working mode cyclically.
  • the rising edge or the falling edge appearing in the synchronization signal can be used as the trigger signal and the enable signal of a certain working mode at the same time, that is, in the second chip After detecting the rising edge or the falling edge in the synchronization signal, the corresponding working mode is triggered, and the working mode remains in the working mode until the second chip detects the next signal edge. For example, after the second chip detects the rising edge in the synchronization signal, the second chip triggers the first operating mode and remains in the first operating mode until the second chip detects the falling edge in the synchronization signal.
  • the second chip turns off the first working mode, triggers the second working mode and remains in the second working mode until the second chip detects the next rising edge in the synchronization signal, and so on, you can pass different
  • the signal edge is used to realize the triggering, enabling and shutting off of different working modes.
  • the rising or falling edge that appears in the synchronization signal can be used as a certain The trigger signal of the working mode, and the level state of the synchronization signal immediately following the rising edge or the falling edge can be used as the enable signal of the corresponding working mode.
  • the rising edge is used as the trigger signal of the first working mode
  • the high-level state can be used as the enable signal of the first working mode
  • the low-level state can be used as the turn-off signal of the first working mode.
  • the trigger of the first working mode is controlled, and the enabling of the first working mode is controlled by the high-level state, and the turning off of the first working mode is controlled by the low-level state.
  • the second chip receives the synchronization signal, when a rising edge appears in the synchronization signal, the second chip enters the first working mode, and controls the use of the first working mode through the high-level state following the rising edge.
  • the moment when the rising edge occurs is the start moment of the first working mode, and the duration of the high level state is the duration of the first working mode;
  • the second chip enters the second In the working mode, the enabling of the second working mode and the turning off of the first working mode are controlled through the low level state immediately following the falling edge, so as to realize the triggering, enabling and turning off of multiple working modes.
  • the pins occupied by the first chip and the second chip for synchronization can be effectively reduced, so that the communication between the first chip and the second chip
  • the connection is simpler; and in this embodiment, the two working modes are automatically switched according to the level state of the synchronization signal, and there is no need to configure the working mode through software configuration or other configuration to realize the switching of the working mode, which simplifies the coupling relationship between chips.
  • the signal edge and level state in the synchronization signal are respectively used as the starting time and enable of the working mode, so that this inter-chip synchronization method has a strong anti-burr interference ability and ensures The stability of the system.
  • a glitch is a kind of noise interference signal that is often encountered in digital logic logic circuits. It is a short-term pulse signal generated due to interference in a normal signal. This short-term pulse signal has a rising edge or a falling edge. There is also a level state, which is easy to trigger the misoperation of the chip, so it usually needs to be filtered out.
  • this embodiment uses a combination of signal edge and level status to synchronize, and the level status used to enable each operating mode is usually very long, so you can check the continuity of the level status Whether the time meets the requirements, to filter out some glitch signals that are much shorter than the normal level duration, so that the synchronization between the chips can have a strong anti-burr interference ability.
  • FIG. 3 is a schematic diagram of a timing sequence of a synchronization signal provided in an embodiment of the application.
  • the first signal curve represents the synchronization signal generated by the first chip
  • the second signal curve represents the rising edge detected by the second chip in the received synchronization signal
  • the third The signal curve shows the start signal of the first working mode
  • the fourth signal curve shows the enable of the first working mode
  • the fifth signal curve shows that the second chip detects in the received synchronization signal
  • the sixth signal curve represents the start signal of the second working mode
  • the seventh signal curve represents the enable of the second working mode
  • S1 represents the first chip and the second chip
  • S1 represents the first chip and the second chip The inherent delay between the first signal curve and the second signal curve can be seen.
  • the rising edge detected by the second chip in the received synchronization signal is the same as the rising edge added by the first chip in the synchronization signal.
  • the difference between the time interval S1, the time interval S1 is the inherent delay between the two chips;
  • S2 represents the first offset time;
  • FIG. 4 is a schematic diagram of a working mode switching provided by an embodiment of the application.
  • the rising edge in the synchronization signal is used to trigger the laser detection and ranging mode of the chip, and the high level state in the synchronization signal is used as the enable of the laser detection and ranging mode.
  • the falling edge in the signal is used to trigger the calibration and calibration mode of the chip, and the low level state in the synchronization signal is used as the enablement of the calibration and calibration mode.
  • the rising edge represents the starting time of the laser detection and ranging mode
  • the falling edge represents the starting time of the calibration mode
  • the high-level state and low-level state of the synchronization signal It is used as the enable of laser detection and ranging mode and calibration mode respectively, that is, during the duration of high level, the first chip and the second chip both enter the laser detection and ranging mode, and during the duration of low level , The first chip and the second chip enter the calibration mode.
  • the laser detection and ranging mode can be triggered and enabled, and during the period when the laser detection and ranging mode is turned off (that is, the period between two detection ranging Time gap) to achieve simultaneous calibration and calibration of multiple chips.
  • calibration and calibration between multiple chips can also be performed periodically, without the need to perform multiple calibrations during each laser detection and ranging mode off period. Calibration and calibration between chips. For example, when the falling edge is used as the signal edge to trigger the second chip to enter the calibration mode, after the second chip turns off the calibration mode, the second chip continuously detects the number of occurrences of the falling edge in the synchronization signal, and the occurrence of the falling edge When the number of times reaches the first threshold, the second chip triggers the calibration mode again.
  • the second chip when the rising edge is used as the signal edge to trigger the second chip to enter the calibration mode, after the second chip turns off the calibration mode, the second chip continues to detect the number of occurrences of rising edges in the synchronization signal. When the number of occurrences reaches the first threshold, the second chip triggers the calibration calibration mode again.
  • the first threshold may be determined or adjusted according to actual applications, for example, it may be an integer such as 1 or 2. The specific value of the first threshold is not limited here.
  • FIG. 5 is another schematic diagram of a working mode switching provided by an embodiment of the application.
  • the first chip and the second chip enter the calibration calibration mode after the calibration calibration mode is turned off, and only when the subsequent second falling edge is detected. That is to say, during the duration of the high level, the first chip and the second chip both enter the laser detection and ranging mode; while during the duration of the low level, the first chip and the second chip are periodic To enter the calibration calibration mode.
  • the first chip and the second chip do not need to calibrate and calibrate between chips every time after laser detection and ranging are performed. Instead, calibration and calibration are performed periodically, and the measurement error changes little. In the case of, it can not only control the measurement error between the chips, but also save the resource overhead of the chips.
  • the calibration and calibration are performed only once or N times (where N is a positive integer greater than 1 ); That is, after the first chip and the second chip are powered on or reset, when the number of triggers of the calibration calibration mode reaches the second threshold, the calibration calibration mode will no longer be triggered until the next power-on or reset , Then trigger the calibration calibration mode, that is, do not trigger the calibration calibration mode periodically.
  • the second threshold value may be a positive integer greater than or equal to 1, and the specific value of the second threshold value may be determined or adjusted according to actual application conditions, which is not limited here.
  • the chip power-on refers to the chip's power-on startup; and the chip reset refers to the restoration of the chip to the initial default state and restarts work, the previous working state of the chip will be cleared.
  • the chip will be in the reset state by default. Only after power on and the reset state is withdrawn, the chip will start to work, that is, the chip triggers the corresponding working mode; therefore, in this embodiment, the chip can After each reset state is evacuated, the calibration calibration mode is triggered once or N times, and the calibration calibration mode is no longer triggered until the next reset state is evacuated.
  • FIG. 6, is another schematic diagram of a working mode switching provided by an embodiment of the application. As shown in Fig. 6, after powering on and starting to work, both the first chip and the second chip only trigger the calibration calibration mode once, and no longer trigger the calibration calibration mode.
  • the type of the first signal edge in the synchronization signal can be used to determine whether to pass the rising edge.
  • Trigger calibration calibration mode or by falling edge trigger calibration calibration mode that is, when the first signal edge in the synchronization signal is a rising edge, the rising edge is determined to trigger the chip to enter the calibration calibration mode, the first trigger signal in the synchronization signal When it is a falling edge, determine that the falling edge is used to trigger the chip to enter the calibration mode.
  • the first chip and the second chip enter the calibration mode first, and then the second signal is added to the synchronization signal in the first chip After the edge, the first chip switches from the calibration and calibration mode to the laser detection and ranging mode.
  • the second chip switches from the calibration and calibration mode to the laser In the detection and ranging mode, the calibration and calibration between the first chip and the second chip are performed before laser detection and ranging, so as to ensure the first laser detection after the chip is powered on or reset And ranging can obtain results with less error.
  • FIG. 7 is another schematic diagram of a working mode switching provided by an embodiment of the application.
  • the initial level state of the synchronization signal 1 is a low level state (that is, the initial state is 0)
  • the first edge of the synchronization signal 1 is a rising edge.
  • the signal edge used to trigger the first chip and the second chip to enter the laser detection and ranging mode is a falling edge
  • the initial level state of the synchronization signal 2 is In the high-level state (that is, the initial state is 1)
  • the first edge of the synchronization signal 2 is the falling edge.
  • the signal edge used to trigger the first chip and the second chip to enter the calibration mode is the falling edge.
  • the signal edge that triggers the first chip and the second chip to enter the laser detection and ranging mode is the rising edge.
  • the signal that triggers the laser detection and ranging mode can also be determined according to the first signal edge in the synchronization signal, that is, when the first signal edge in the synchronization signal is a rising edge, the rising edge is used to determine When triggering the laser detection and ranging mode, when the first signal edge in the synchronization signal is the falling edge, the falling edge is determined to trigger the laser detection and ranging mode. In other words, regardless of whether the first signal edge in the synchronization signal is a rising edge or a falling edge, the second chip enters the laser detection and ranging mode first, and then enters the calibration mode.
  • the first signal edge is used to trigger the laser detection and ranging mode or the calibration calibration mode; for example, in scenarios with high timeliness requirements, it can be determined The first signal edge is used to trigger the laser detection and ranging mode to quickly obtain the measurement results; in scenarios with high accuracy requirements, the first signal edge can be determined to be used to trigger the calibration mode to obtain the error Smaller measurement result.
  • FIG. 8 is a schematic diagram of a circuit structure of a second chip provided by an embodiment of the application.
  • the second chip includes a programmable delay unit, a rising edge detection circuit, a falling edge detection circuit, a first working mode logic circuit, a second working mode logic circuit, and a data selector (multiplexer, MUX) ;
  • the input end of the programmable delay unit is used to receive the synchronization signal, and its output end is respectively connected with the input end of the rising edge detection circuit and the input end of the falling edge detection circuit, and the programmable delay unit is used for the first
  • the delayed synchronization signal is sent to the rising edge detection circuit and the falling edge detection circuit
  • the output end of the rising edge detection circuit is connected to the first working mode circuit for detecting the delay time
  • the rising edge in the synchronization signal of the falling edge and after detecting the rising edge, sends a signal to the first working mode circuit to trigger the first working mode circuit to work;
  • the output terminal of the falling edge detection circuit and the second working mode circuit are used for Detect the falling edge in the delayed
  • the programmable delay unit delays the synchronization signal according to the preset time length to obtain the delayed synchronization signal; then, the rising edge detection circuit performs the delayed synchronization
  • the signal undergoes rising edge detection, and after the rising edge is detected, a trigger signal is sent to the first working mode logic circuit to trigger the first working mode circuit to work; and the delayed synchronization signal is also used as the first working mode logic circuit
  • the logic circuit of the first working mode is in the working state only when the delayed synchronization signal is at a high level, otherwise the first working mode circuit is turned off; similarly, the falling edge detection circuit is After detecting the falling edge, send a trigger signal to the second working mode logic circuit to trigger the second working mode circuit to work; and the delayed synchronization signal is inverted by the inverter After that, it is also used as the enablement of the second working mode logic circuit.
  • the second working mode logic circuit Only when the inverted synchronization signal is in the high level state, the second working mode logic circuit is in the working state, otherwise the second working mode circuit is turned off; That is to say, through the above circuit structure, the corresponding operating mode can be triggered by the rising edge or the falling edge in the synchronization signal, and the corresponding operating mode can be enabled with the level state in the synchronization signal.
  • the delayed synchronization signal is also used as a reference signal for the MUX selection output.
  • the MUX selects and outputs the output result of the logic circuit of the first working mode; the synchronization after the delay When the signal is in a low level state, the MUX selects and outputs the output result of the logic circuit of the second working mode.
  • the programmable delay unit may not be provided in the second chip, or the delay time of the programmable delay unit is set to 0, that is, the second chip does not delay the synchronization signal.
  • the second chip may no longer delay the synchronization signal, but directly receives the synchronization signal and detects the synchronization signal.
  • a first chip 90 provided by an embodiment of the present application includes: a sending unit 901, configured to continuously send a synchronization signal to the second chip, the synchronization signal being a rectangular wave signal; and a processing unit 902, configured to A rising edge or a falling edge is added to the synchronization signal, and after waiting for the first offset time, it enters the preset working mode.
  • the processing unit 902 is also used to add a rising edge to the synchronization signal, and after waiting for the first offset time, enter the first working mode; the processing unit is also used to add a falling edge to the synchronization signal, and After waiting for the first offset time, enter the second working mode, where the preset working mode includes the first working mode and the second working mode.
  • the processing unit 902 is further configured to stop entering the first working mode when the number of times of adding rising edges to the synchronization signal reaches a preset value; or, the processing unit 902 is further configured to add falling edges to the synchronization signal When the number of times reaches the preset value, stop entering the second working mode.
  • the processing unit 902 is further configured to enter the first working mode after waiting for the first offset time, and when the processing unit 902 is at After the falling edge is added to the synchronization signal, the processing unit 902 enters the second working mode after waiting for the second offset time; if the first signal edge added by the processing unit 902 to the synchronization signal is a falling edge, the processing unit 902 also uses After waiting for the first offset time, enter the first operating mode, and when the processing unit 902 adds a falling edge to the synchronization signal, the processing unit 902 enters the second operating mode after waiting for the second offset time; wherein, The preset working mode includes a first working mode and a second working mode.
  • a second chip 100 provided by an embodiment of the present application includes: a receiving unit 1001, configured to continuously receive a synchronization signal sent by the first chip, the synchronization signal being a rectangular wave signal; and a processing unit 1002, configured to After a rising edge or a falling edge occurs in the synchronization signal received by the receiving unit 1001, it enters the preset working mode after waiting for the second offset time.
  • the processing unit 1002 is further configured to enter the first working mode after waiting for the second offset time;
  • the processing unit 1002 is further configured to enter the second working mode after waiting for the second offset time, wherein the preset working mode includes the first working mode and the second working mode. Operating mode.
  • the processing unit 1002 is further configured to stop entering the first working mode
  • the processing unit 1002 stops entering the second working mode.
  • the processing unit 1002 is further configured to enter the first working mode after waiting for the second offset time, and when the receiving unit 1001 After a falling edge appears in the synchronization signal received by 1001, the processing unit 1002 is also used to enter the second working mode after waiting for the second offset time; if the first signal edge appears in the synchronization signal received by the receiving unit 1001 For the falling edge, the processing unit 1002 enters the first working mode after waiting for the second offset time, and when a rising edge appears in the synchronization signal received by the receiving unit 1001, the processing unit 1002 is also used to wait for the second offset After time, enter the second working mode; wherein, the preset working mode includes the first working mode and the second working mode.
  • the embodiment of the present application also provides a chip system, the chip system includes the first chip and the second chip in the embodiment corresponding to FIG. 2, the first chip is connected to the second chip, and is used to perform the implementation corresponding to FIG. 2
  • the synchronization method of the chip in the example is also provided.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Radar Systems And Details Thereof (AREA)
  • Laser Beam Printer (AREA)

Abstract

A chip synchronization method and a related apparatus, for use in reducing the complexity of chip design and layout. The method comprises: a first chip continuously sends a synchronization signal to a second chip (201); the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for a first offset time (S2), enters a preset working mode (202); the second chip continuously receives the synchronization signal sent by the first chip (203), and after the received synchronization signal has a rising or falling edge, after waiting for a second offset time (S3), the second chip enters a preset working mode (204). According to the method, only one chip pin needs to be occupied to send a synchronization signal, so that multiple chips can enter the same working mode synchronously, thereby effectively reducing the complexity of chip design and layout.

Description

一种芯片的同步方法及相关装置Chip synchronization method and related device
本申请要求于2019年11月15日提交中国专利局、申请号为201911124104.2、发明名称为“一种芯片的同步方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on November 15, 2019, the application number is 201911124104.2, and the invention title is "A chip synchronization method and related device", the entire content of which is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种芯片的同步方法及相关装置。This application relates to the field of computer technology, and in particular to a method for synchronizing chips and related devices.
背景技术Background technique
目前,在很多场合下都需要多个芯片来进行同步工作,例如,在激光探测及测距(light detection and ranging LIDAR)信号处理系统中,往往需要多个级联工作的芯片来实现激光探测及测距。At present, in many occasions, multiple chips are required to perform synchronous work. For example, in a laser detection and ranging (light detection and ranging (LIDAR) signal processing system, multiple cascaded chips are often required to achieve laser detection and Ranging.
然而,目前的芯片间同步技术较为复杂,需要占用过多的芯片管脚和逻辑资源来实现多个芯片同步进入某一个工作模式,增加了芯片设计和布局的难度。However, the current inter-chip synchronization technology is relatively complicated, and requires too many chip pins and logic resources to implement multiple chips to enter a certain working mode synchronously, which increases the difficulty of chip design and layout.
发明内容Summary of the invention
本申请实施例提供了一种芯片的同步方法及相关装置,由主芯片在向从芯片发送的同步信号中加入上升沿或下降沿来触发从芯片进入工作模式,并且主芯片在等待一定时间后再进入工作模式,确保了主芯片和从芯片能够在同一个时间点进入工作模式,本方案中仅仅需要占用一个芯片管脚来发送同步信号,即可实现多个芯片同步进入同一个工作模式,降低了芯片设计和布局时的复杂度。The embodiment of the application provides a chip synchronization method and related device. The master chip adds a rising edge or a falling edge to the synchronization signal sent to the slave chip to trigger the slave chip to enter the working mode, and the master chip waits for a certain period of time. Then enter the working mode to ensure that the master chip and the slave chip can enter the working mode at the same time. In this solution, only one chip pin is needed to send a synchronization signal, and multiple chips can enter the same working mode synchronously. Reduce the complexity of chip design and layout.
本申请实施例第一方面提供了一种芯片的同步方法,该方法包括:在需要多芯片同步工作的场景下,第一芯片可以通过芯片管脚间的连接线持续向第二芯片发送同步信号,具体地,该第一芯片可以是主芯片,该第二芯片可以是从芯片,该同步信号为矩形波信号;在第一芯片持续发送同步信号的过程中,该第一芯片可以在同步信号中加入上升沿或下降沿,以使得第二芯片可以根据同步信号中的上升沿或下降沿进入预设工作模式,并且,第一芯片在等待第一偏移时间后,进入预设工作模式,以实现第一芯片和第二芯片同步进入同一个工作模式。The first aspect of the embodiments of the present application provides a method for synchronizing chips. The method includes: in a scenario where multiple chips need to work synchronously, the first chip may continuously send a synchronization signal to the second chip through the connection line between the chip pins. Specifically, the first chip may be a master chip, the second chip may be a slave chip, and the synchronization signal is a rectangular wave signal; while the first chip continues to send the synchronization signal, the first chip may be in the synchronization signal A rising edge or a falling edge is added to the synchronizing signal so that the second chip can enter the preset operating mode according to the rising or falling edge in the synchronization signal, and the first chip enters the preset operating mode after waiting for the first offset time, In order to realize that the first chip and the second chip enter the same working mode synchronously.
本申请实施例中,由主芯片在向从芯片发送的同步信号中加入上升沿或下降沿来触发从芯片进入工作模式,并且主芯片在等待一定时间后再进入工作模式,确保了主芯片和从芯片能够在同一个时间点进入工作模式,且本方案中仅仅需要占用一个芯片管脚来发送同步信号,即可实现多个芯片同步进入同一个工作模式,降低了芯片设计和布局时的复杂度。In the embodiment of the present application, the master chip adds a rising edge or a falling edge to the synchronization signal sent to the slave chip to trigger the slave chip to enter the working mode, and the master chip waits for a certain period of time before entering the working mode, ensuring that the master chip and the The slave chip can enter the working mode at the same time point, and in this solution, only one chip pin is needed to send the synchronization signal, so that multiple chips can enter the same working mode synchronously, which reduces the complexity of chip design and layout. degree.
结合上述第一方面,在第一方面第一种可能的实现方式中,第一芯片在同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,第一芯片进入预设工作模式,包括:第一芯片在同步信号中加入上升沿,并在等待第一偏移时间后,第一芯片进入第一工作模式;第一芯片在同步信号中加入下降沿,并在等待第一偏移时间后,第一芯片进入第二工作模 式,其中,预设工作模式包括第一工作模式和第二工作模式;也就是说,上升沿与第一工作模式具有对应关系,且下降沿与第二工作模式具有对应关系,第一芯片可以根据加入的信号沿的类型决定所进入的工作模式或者通过改变加入的信号沿来实现工作模式的切换。With reference to the above first aspect, in the first possible implementation of the first aspect, the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the preset operation The mode includes: the first chip adds a rising edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the first working mode; the first chip adds a falling edge to the synchronization signal, and is waiting for the first After the offset time, the first chip enters the second working mode, where the preset working mode includes the first working mode and the second working mode; that is, the rising edge has a corresponding relationship with the first working mode, and the falling edge is The second working mode has a corresponding relationship. The first chip can determine the working mode entered according to the type of the added signal edge or realize the switching of the working mode by changing the added signal edge.
本申请实施例中,由主芯片在向从芯片发送的同步信号中加入上升沿或下降沿来触发从芯片进入不同的工作模式或者实现工作模式的切换,通过单个同步信号实现了多芯片间同步切换工作模式,降低了芯片设计和布局时的复杂度。In the embodiment of the application, the master chip adds a rising edge or a falling edge to the synchronization signal sent to the slave chip to trigger the slave chip to enter different working modes or realize the switching of the working mode, and the synchronization between multiple chips is realized through a single synchronization signal. Switching the working mode reduces the complexity of chip design and layout.
结合上述第一方面第一种可能的实现方式,在第一方面第二种可能的实现方式中,在第一芯片在同步信号中加入上升沿的次数达到预置数值时,第一芯片停止进入第一工作模式,即第一芯片在进入第一工作模式的次数达到预置数值之后,第一芯片不再进入第一工作模式;或者,在第一芯片在同步信号中加入下降沿的次数达到预置数值时,第一芯片停止进入第二工作模式,即第一芯片在进入第二工作模式的次数达到预置数值之后,第一芯片不再进入第二工作模式。In combination with the first possible implementation of the first aspect, in the second possible implementation of the first aspect, when the number of times that the first chip adds rising edges to the synchronization signal reaches a preset value, the first chip stops entering The first working mode, that is, after the first chip enters the first working mode for a preset number of times, the first chip no longer enters the first working mode; or, the number of times that the first chip adds a falling edge to the synchronization signal reaches When the value is preset, the first chip stops entering the second working mode, that is, after the number of times the first chip enters the second working mode reaches the preset value, the first chip no longer enters the second working mode.
本申请实施例中,在芯片进入某一个工作模式的次数达到预置数值之后,该芯片不再进入该工作模式,从而节省芯片的资源开销,提高了方案的灵活性。In the embodiment of the present application, after the number of times the chip enters a certain working mode reaches a preset value, the chip no longer enters the working mode, thereby saving the resource cost of the chip and improving the flexibility of the solution.
结合上述第一方面,在第一方面第三种可能的实现方式中,在第一芯片和第二芯片为激光探测及测距系统中的芯片的情况下,第一芯片在同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,第一芯片进入预设工作模式,包括:第一芯片在同步信号中加入第一信号沿,并在等待第一偏移时间之后,该第一芯片进入激光探测及测距模式;第一芯片在同步信号中加入第二信号沿,并在等待第一偏移时间之后,该第一芯片从激光探测及测距模式切换到标定校准模式,该预设工作模式包括激光探测及测距模式和标定校准模式;其中,该第一信号沿可以为上升沿且第二信号沿为下降沿,或者,该第一信号沿为下降沿且第二信号为上升沿。In combination with the above-mentioned first aspect, in the third possible implementation of the first aspect, in the case that the first chip and the second chip are chips in the laser detection and ranging system, the first chip adds the rising signal to the synchronization signal. Edge or falling edge, and after waiting for the first offset time, the first chip enters the preset working mode, including: the first chip adds the first signal edge to the synchronization signal, and after waiting for the first offset time, the The first chip enters the laser detection and ranging mode; the first chip adds the second signal edge to the synchronization signal, and after waiting for the first offset time, the first chip switches from the laser detection and ranging mode to the calibration mode , The preset working mode includes laser detection and ranging mode and calibration and calibration mode; wherein, the first signal edge may be a rising edge and the second signal edge may be a falling edge, or the first signal edge may be a falling edge and the first signal edge may be a falling edge. The second signal is a rising edge.
本申请实施例中,主芯片根据加入同步信号中信号沿的类型来确定所进入的工作模式,可以实现主芯片和从芯片同时进入激光探测及测距模式,以及从激光探测及测距模式切换到标定校准模式,提高了方案的灵活性。In the embodiment of the present application, the master chip determines the working mode entered according to the type of the signal edge added to the synchronization signal, which can realize that the master chip and the slave chip enter the laser detection and ranging mode at the same time, and switch from the laser detection and ranging mode. To the calibration calibration mode, the flexibility of the scheme is improved.
结合上述第一方面,在第一方面第四种可能的实现方式中,第一芯片在同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,第一芯片进入预设工作模式,包括:如果第一芯片在同步信号中加入的第一个信号沿为上升沿,那么第一芯片在往同步信号中加入上升沿之后,该第一芯片在等待第一偏移时间后,进入标定校准模式,并且当第一芯片在同步信号中加入下降沿后,第一芯片在等待第二偏移时间后,从标定校准模式切换到激光探测及测距模式;如果第一芯片在同步信号中加入的第一个信号沿为下降沿,那么第一芯片在往同步信号中加入下降沿之后,该第一芯片在等待第一偏移时间后,进入标定校准模式,并且当第一芯片在同步信号中加入下降沿后,第一芯片在等待第二偏移时间后,从标定校准模式切换到激光探测及测距模式;其中,预设工作模式包括标定校准模式和激光探测及测距模式。也就是说,第一芯片根据加入到同步信号中的第一个信号沿的类型来确定信号沿与工作模式之间的对应关系;在加入到同步信号中的第一个信号沿为上升沿的情况下,则确定上升沿与标定校准模式之间具有对应关系,以及下降沿与激光探测及测距模式 之间具有对应关系;在加入到同步信号中的第一个信号沿为下降沿的情况下,则确定下降沿与标定校准模式之间具有对应关系,以及上升沿与激光探测及测距模式之间具有对应关系。In combination with the above-mentioned first aspect, in the fourth possible implementation of the first aspect, the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the preset operation The mode includes: if the first signal edge added by the first chip to the synchronization signal is a rising edge, then after the first chip adds the rising edge to the synchronization signal, the first chip waits for the first offset time, Enter the calibration calibration mode, and when the first chip adds a falling edge to the synchronization signal, the first chip will switch from the calibration calibration mode to the laser detection and ranging mode after waiting for the second offset time; if the first chip is in synchronization The first signal edge added to the signal is the falling edge, then after the first chip adds the falling edge to the synchronization signal, the first chip enters the calibration mode after waiting for the first offset time, and when the first chip After adding the falling edge to the synchronization signal, the first chip switches from the calibration calibration mode to the laser detection and ranging mode after waiting for the second offset time; the preset working modes include calibration calibration mode and laser detection and ranging mode mode. That is to say, the first chip determines the corresponding relationship between the signal edge and the working mode according to the type of the first signal edge added to the synchronization signal; the first signal edge added to the synchronization signal is the rising edge In this case, it is determined that there is a corresponding relationship between the rising edge and the calibration mode, and the falling edge has a corresponding relationship with the laser detection and ranging mode; when the first signal edge added to the synchronization signal is a falling edge Next, it is determined that there is a corresponding relationship between the falling edge and the calibration mode, and the rising edge has a corresponding relationship with the laser detection and ranging mode.
本申请实施例中,主芯片根据加入同步信号中第一个信号沿的类型来确定信号沿与工作模式之间的对应关系,可以保证在不同情况下,主芯片和从芯片进入的第一个工作模式是预设的工作模式,提高了方案的灵活性。In the embodiment of this application, the master chip determines the corresponding relationship between the signal edge and the working mode according to the type of the first signal edge added to the synchronization signal, which can ensure that under different circumstances, the master chip and the first one that enters the slave chip The working mode is a preset working mode, which improves the flexibility of the scheme.
本申请实施例第二方面提供了一种芯片的同步方法,包括:在需要多芯片同步工作的场景下,第二芯片可以持续接收第一芯片发送的同步信号,具体地,该第一芯片可以是主芯片,该第二芯片可以是从芯片,该同步信号为矩形波信号;当第二芯片接收到的同步信号中出现上升沿或下降沿后,第二芯片在等待第二偏移时间后,第二芯片进入预设工作模式,以实现第一芯片和第二芯片同步进入同一个工作模式。The second aspect of the embodiments of the present application provides a chip synchronization method, which includes: in a scenario where multiple chips need to work synchronously, the second chip can continuously receive the synchronization signal sent by the first chip. Specifically, the first chip can It is the master chip, the second chip can be a slave chip, and the synchronization signal is a rectangular wave signal; when a rising or falling edge occurs in the synchronization signal received by the second chip, the second chip waits for the second offset time , The second chip enters the preset working mode, so that the first chip and the second chip enter the same working mode synchronously.
本申请实施例中,由从芯片根据主芯片发送的同步信号中的上升沿或下降沿来进入工作模式,并且从芯片在等待一定时间后再进入工作模式,确保了主芯片和从芯片能够在同一个时间点进入工作模式,且本方案中仅仅需要占用一个芯片管脚来发送同步信号,即可实现多个芯片同步进入同一个工作模式,降低了芯片设计和布局时的复杂度。In the embodiment of this application, the slave chip enters the working mode according to the rising edge or the falling edge of the synchronization signal sent by the master chip, and the slave chip enters the working mode after waiting for a certain period of time, ensuring that the master chip and the slave chip can Enter the working mode at the same time point, and in this solution, only one chip pin is needed to send a synchronization signal, so that multiple chips can enter the same working mode synchronously, which reduces the complexity of chip design and layout.
结合上述第二方面,在第二方面第一种可能的实现方式中,当第二芯片接收到的同步信号中出现上升沿或下降沿后,第二芯片在等待第二偏移时间后,第二芯片进入预设工作模式,包括:当第二芯片接收到的同步信号中出现上升沿后,第二芯片在等待第二偏移时间后,进入第一工作模式;当第二芯片接收到的同步信号中出现下降沿后,第二芯片在等待第二偏移时间后,进入第二工作模式,其中,预设工作模式包括第一工作模式和第二工作模式;也就是说,上升沿与第一工作模式具有对应关系,且下降沿与第二工作模式具有对应关系,第二芯片可以根据同步信号中信号沿的类型决定所进入的工作模式或者实现工作模式的切换。In combination with the above second aspect, in the first possible implementation manner of the second aspect, when a rising or falling edge occurs in the synchronization signal received by the second chip, the second chip waits for the second offset time, and then the second chip waits for the second offset time. The second chip enters the preset working mode, including: when a rising edge appears in the synchronization signal received by the second chip, the second chip enters the first working mode after waiting for the second offset time; when the second chip receives After the falling edge appears in the synchronization signal, the second chip enters the second operating mode after waiting for the second offset time. The preset operating mode includes the first operating mode and the second operating mode; that is, the rising edge and the second operating mode The first operating mode has a corresponding relationship, and the falling edge has a corresponding relationship with the second operating mode. The second chip can determine the entered operating mode or switch the operating mode according to the type of the signal edge in the synchronization signal.
本申请实施例中,从芯片可以根据同步信号中信号沿的类型决定所进入的工作模式或者实现工作模式的切换,通过单个同步信号实现了多芯片间同步切换工作模式,降低了芯片设计和布局时的复杂度。In the embodiment of the present application, the slave chip can determine the working mode it enters or realize the switching of the working mode according to the type of the signal edge in the synchronization signal. A single synchronization signal realizes the synchronous switching of the working mode among multiple chips, which reduces the chip design and layout. The complexity of the time.
结合上述第二方面第一种可能的实现方式,在第二方面第二种可能的实现方式中,在第二芯片接收到的同步信号中上升沿的出现次数达到预置数值时,第二芯片停止进入第一工作模式,即第二芯片在进入第一工作模式的次数达到预置数值之后,第二芯片不再进入第一工作模式;或者,在第二芯片接收到的同步信号中下降沿的出现次数达到预置数值时,第二芯片停止进入第二工作模式,即第二芯片在进入第二工作模式的次数达到预置数值之后,第二芯片不再进入第二工作模式。In combination with the above-mentioned first possible implementation of the second aspect, in the second possible implementation of the second aspect, when the number of occurrences of rising edges in the synchronization signal received by the second chip reaches a preset value, the second chip Stop entering the first working mode, that is, after the second chip enters the first working mode for a preset number of times, the second chip no longer enters the first working mode; or, the falling edge of the synchronization signal received by the second chip When the number of occurrences reaches the preset value, the second chip stops entering the second working mode, that is, after the number of times the second chip enters the second working mode reaches the preset value, the second chip no longer enters the second working mode.
本申请实施例中,在芯片进入某一个工作模式的次数达到预置数值之后,该芯片不再进入该工作模式,从而节省芯片的资源开销,提高了方案的灵活性。In the embodiment of the present application, after the number of times the chip enters a certain working mode reaches a preset value, the chip no longer enters the working mode, thereby saving the resource cost of the chip and improving the flexibility of the solution.
结合上述第二方面,在第二方面第三种可能的实现方式中,当第二芯片接收到的同步信号中出现上升沿或下降沿后,第二芯片在等待第二偏移时间后,第二芯片进入预设工作模式,具体包括:当第二芯片接收到的同步信号中出现第一信号沿后,该第二芯片在等待 第二偏移时间后,进入激光探测及测距模式;并且,当第二芯片接收到的同步信号中出现第二信号沿后,该第二芯片在等待第二偏移时间后,从激光探测及测距模式切换到标定校准模式,该预设工作模式包括激光探测及测距模式和标定校准模式;其中,第一信号沿为上升沿且第二信号沿为下降沿,或者,第一信号沿为下降沿且第二信号沿为上升沿。In combination with the second aspect described above, in the third possible implementation manner of the second aspect, when a rising or falling edge occurs in the synchronization signal received by the second chip, the second chip waits for the second offset time, and then the second chip waits for the second offset time. The second chip enters the preset working mode, which specifically includes: when the first signal edge appears in the synchronization signal received by the second chip, the second chip enters the laser detection and ranging mode after waiting for the second offset time; and After the second signal edge appears in the synchronization signal received by the second chip, the second chip switches from the laser detection and ranging mode to the calibration mode after waiting for the second offset time. The preset working mode includes Laser detection and ranging mode and calibration mode; wherein, the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
本申请实施例中,主芯片根据加入同步信号中信号沿的类型来确定所进入的工作模式,可以实现主芯片和从芯片同时进入激光探测及测距模式,以及从激光探测及测距模式切换到标定校准模式,提高了方案的灵活性。In the embodiment of the present application, the master chip determines the working mode entered according to the type of the signal edge added to the synchronization signal, which can realize that the master chip and the slave chip enter the laser detection and ranging mode at the same time, and switch from the laser detection and ranging mode. To the calibration calibration mode, the flexibility of the scheme is improved.
结合上述第二方面,在第二方面第四种可能的实现方式中,当第二芯片接收到的同步信号中出现上升沿或下降沿后,第二芯片在等待第二偏移时间后,第二芯片进入预设工作模式,包括:如果第二芯片接收到的同步信号中出现的第一个信号沿为上升沿,那么在第二芯片接收到的同步信号中出现上升沿之后,第二芯片在等待第二偏移时间后,进入标定校准模式,并且当第二芯片接收到的同步信号中出现下降沿后,第二芯片在等待第二偏移时间后,从标定校准模式切换到激光探测及测距模式;如果第二芯片接收到的同步信号中出现的第一个信号沿为下降沿,那么在第二芯片接收到的同步信号中出现下降沿之后,第二芯片在等待第二偏移时间后,进入标定校准模式,并且当第二芯片接收到的同步信号中出现上升沿后,第二芯片在等待第二偏移时间后,从标定校准模式切换到激光探测及测距模式激光探测及测距模式;其中,预设工作模式包括标定校准模式和激光探测及测距模式。也就是说,第二芯片根据接收到的同步信号中的第一个信号沿的类型来确定信号沿与工作模式之间的对应关系;在同步信号中的第一个信号沿为上升沿的情况下,则确定上升沿与标定校准模式之间具有对应关系,以及下降沿与激光探测及测距模式之间具有对应关系;在同步信号中的第一个信号沿为下降沿的情况下,则确定下降沿与标定校准模式之间具有对应关系,以及上升沿与激光探测及测距模式之间具有对应关系。In combination with the above second aspect, in the fourth possible implementation manner of the second aspect, after a rising edge or a falling edge appears in the synchronization signal received by the second chip, the second chip waits for the second offset time, the first The second chip enters the preset working mode, including: if the first signal edge appearing in the synchronization signal received by the second chip is a rising edge, then after the rising edge appears in the synchronization signal received by the second chip, the second chip After waiting for the second offset time, enter the calibration calibration mode, and after a falling edge appears in the synchronization signal received by the second chip, the second chip switches from the calibration calibration mode to the laser detection after waiting for the second offset time And ranging mode; if the first signal edge that appears in the synchronization signal received by the second chip is a falling edge, then after the falling edge appears in the synchronization signal received by the second chip, the second chip is waiting for the second offset After the shift time, enter the calibration calibration mode, and when a rising edge appears in the synchronization signal received by the second chip, the second chip will switch from the calibration calibration mode to the laser detection and ranging mode after waiting for the second offset time. Detection and ranging mode; among them, the preset working mode includes calibration mode and laser detection and ranging mode. That is to say, the second chip determines the corresponding relationship between the signal edge and the working mode according to the type of the first signal edge in the received synchronization signal; in the case where the first signal edge in the synchronization signal is a rising edge Under the condition that the rising edge and the calibration mode have a corresponding relationship, and the falling edge has a corresponding relationship with the laser detection and ranging mode; when the first signal edge in the synchronization signal is a falling edge, then It is determined that the falling edge has a corresponding relationship with the calibration mode, and the rising edge has a corresponding relationship with the laser detection and ranging mode.
本申请实施例中,从芯片根据接收到的同步信号中第一个信号沿的类型来确定信号沿与工作模式之间的对应关系,可以保证在不同情况下,主芯片和从芯片进入的第一个工作模式是预设的工作模式,提高了方案的灵活性。In the embodiment of the present application, the slave chip determines the corresponding relationship between the signal edge and the working mode according to the type of the first signal edge in the received synchronization signal, which can ensure that the master chip and the slave chip enter the first signal edge under different conditions. A working mode is a preset working mode, which improves the flexibility of the scheme.
本申请实施例第三方面提供了一种芯片,包括:发送单元,用于持续向第二芯片发送同步信号,同步信号为矩形波信号;处理单元,用于在同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,进入预设工作模式。The third aspect of the embodiments of the present application provides a chip, including: a sending unit, configured to continuously send a synchronization signal to the second chip, the synchronization signal is a rectangular wave signal; and a processing unit, configured to add a rising edge or a falling edge to the synchronization signal And after waiting for the first offset time, it enters the preset working mode.
结合上述第三方面,在第三方面第一种可能的实现方式中,处理单元,还用于在同步信号中加入上升沿,并在等待第一偏移时间后,进入第一工作模式;处理单元,还用于在同步信号中加入下降沿,并在等待第一偏移时间后,进入第二工作模式,其中,预设工作模式包括第一工作模式和第二工作模式。With reference to the above third aspect, in the first possible implementation of the third aspect, the processing unit is further configured to add a rising edge to the synchronization signal, and enter the first working mode after waiting for the first offset time; processing The unit is also used to add a falling edge to the synchronization signal, and after waiting for the first offset time, enter the second working mode, wherein the preset working mode includes the first working mode and the second working mode.
结合上述第三方面第一种可能的实现方式,在第三方面第二种可能的实现方式中,处理单元,还用于在同步信号中加入上升沿的次数达到预置数值时,停止进入第一工作模式;或者,处理单元,还用于在同步信号中加入下降沿的次数达到预置数值时,停止进入第二工作模式。In combination with the first possible implementation manner of the third aspect described above, in the second possible implementation manner of the third aspect, the processing unit is further configured to stop entering the first aspect when the number of rising edges added to the synchronization signal reaches a preset value. A working mode; or, the processing unit is further configured to stop entering the second working mode when the number of times of adding falling edges to the synchronization signal reaches a preset value.
结合上述第三方面,在第三方面第三种可能的实现方式中,处理单元还用于在同步信 号中加入第一信号沿,并在等待第一偏移时间后,进入激光探测及测距模式;处理单元还用于在同步信号中加入第二信号沿,并在等待第一偏移时间后,从激光探测及测距模式切换到标定校准模式,预设工作模式包括激光探测及测距模式和标定校准模式;其中,第一信号沿为上升沿且第二信号沿为下降沿,或者,第一信号沿为下降沿且第二信号沿为上升沿。In combination with the above third aspect, in the third possible implementation of the third aspect, the processing unit is further configured to add the first signal edge to the synchronization signal, and after waiting for the first offset time, enter the laser detection and ranging Mode; the processing unit is also used to add a second signal edge to the synchronization signal, and after waiting for the first offset time, switch from the laser detection and ranging mode to the calibration calibration mode, the preset working mode includes laser detection and ranging Mode and calibration mode; wherein, the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
结合上述第三方面,在第三方面第四种可能的实现方式中,若处理单元在同步信号中加入的第一个信号沿为上升沿,处理单元在等待第一偏移时间后,进入标定校准模式,并且当处理单元在同步信号中加入下降沿后,处理单元在等待第一偏移时间后,从标定校准模式切换到激光探测及测距模式;若处理单元在同步信号中加入的第一个信号沿为下降沿,处理单元在等待第一偏移时间后,进入标定校准模式,并且当处理单元在同步信号中加入下降沿后,处理单元在等待第一偏移时间后,从标定校准模式切换到激光探测及测距模式;其中,预设工作模式包括标定校准模式和激光探测及测距模式。In combination with the above third aspect, in the fourth possible implementation of the third aspect, if the first signal edge added by the processing unit to the synchronization signal is a rising edge, the processing unit enters calibration after waiting for the first offset time Calibration mode, and when the processing unit adds a falling edge to the synchronization signal, the processing unit switches from the calibration calibration mode to the laser detection and ranging mode after waiting for the first offset time; if the processing unit adds the first offset in the synchronization signal One signal edge is a falling edge. After the processing unit waits for the first offset time, it enters the calibration calibration mode, and when the processing unit adds the falling edge to the synchronization signal, the processing unit waits for the first offset time and then starts the calibration. The calibration mode is switched to laser detection and ranging mode; among them, the preset working mode includes calibration calibration mode and laser detection and ranging mode.
本申请实施例第四方面提供一种芯片,包括:接收单元,用于持续接收第一芯片发送的同步信号,同步信号为矩形波信号;处理单元,用于当接收单元接收到的同步信号中出现上升沿或下降沿后,在等待第二偏移时间后,进入预设工作模式。A fourth aspect of the embodiments of the present application provides a chip, including: a receiving unit, configured to continuously receive a synchronization signal sent by a first chip, the synchronization signal is a rectangular wave signal; a processing unit, used when the synchronization signal received by the receiving unit After the rising edge or the falling edge occurs, after waiting for the second offset time, the preset working mode is entered.
结合上述第四方面,在第四方面第一种可能的实现方式中,当接收单元接收到的同步信号中出现上升沿后,处理单元还用于在等待第二偏移时间后,进入第一工作模式;With reference to the above fourth aspect, in the first possible implementation of the fourth aspect, after a rising edge appears in the synchronization signal received by the receiving unit, the processing unit is further configured to enter the first after waiting for the second offset time. Operating mode;
当接收单元接收到的同步信号中出现下降沿后,处理单元还用于在等待第二偏移时间后,进入第二工作模式,其中,预设工作模式包括第一工作模式和第二工作模式。After a falling edge occurs in the synchronization signal received by the receiving unit, the processing unit is further configured to enter the second working mode after waiting for the second offset time, wherein the preset working mode includes the first working mode and the second working mode .
结合上述第四方面第一种可能的实现方式,在第四方面第二种可能的实现方式中,在接收单元接收到的同步信号中上升沿的出现次数达到预置数值时,处理单元还用于停止进入第一工作模式;In combination with the first possible implementation manner of the fourth aspect, in the second possible implementation manner of the fourth aspect, when the number of occurrences of rising edges in the synchronization signal received by the receiving unit reaches a preset value, the processing unit also uses Stop entering the first working mode;
或者,在接收单元接收到的同步信号中下降沿的出现次数达到预置数值时,处理单元停止进入第二工作模式。Or, when the number of occurrences of falling edges in the synchronization signal received by the receiving unit reaches a preset value, the processing unit stops entering the second working mode.
结合上述第四方面,在第四方面第三种可能的实现方式中,当接收单元接收到的同步信号中出现第一信号沿后,处理单元在等待第二偏移时间后,进入激光探测及测距模式;当接收单元接收到的同步信号中出现第二信号沿后,处理单元在等待第二偏移时间后,从激光探测及测距模式切换到标定校准模式,预设工作模式包括激光探测及测距模式和标定校准模式;其中,第一信号沿为上升沿且第二信号沿为下降沿,或者,第一信号沿为下降沿且第二信号沿为上升沿。In combination with the fourth aspect described above, in the third possible implementation manner of the fourth aspect, after the first signal edge appears in the synchronization signal received by the receiving unit, the processing unit enters the laser detection and detection after waiting for the second offset time. Ranging mode; when the second signal edge appears in the synchronization signal received by the receiving unit, the processing unit switches from laser detection and ranging mode to calibration mode after waiting for the second offset time. The preset working mode includes laser Detection and ranging mode and calibration calibration mode; wherein the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
结合上述第四方面,在第四方面第四种可能的实现方式中,若接收单元接收到的同步信号中出现的第一个信号沿为上升沿,处理单元在等待第二偏移时间后,进入标定校准模式,并且当接收单元接收到的同步信号中出现下降沿后,处理单元在等待第二偏移时间后,从标定校准模式切换到激光探测及测距模式;若接收单元接收到的同步信号中出现的第一个信号沿为下降沿,处理单元在等待第二偏移时间后,进入标定校准模式,并且当接收单元接收到的同步信号中出现上升沿后,处理单元在等待第二偏移时间后,从标定校准模式切换到激光探测及测距模式;其中,预设工作模式包括标定校准模式和激光探测及测 距模式。With reference to the above fourth aspect, in the fourth possible implementation manner of the fourth aspect, if the first signal edge that appears in the synchronization signal received by the receiving unit is a rising edge, the processing unit waits for the second offset time, Enter the calibration calibration mode, and when there is a falling edge in the synchronization signal received by the receiving unit, the processing unit will switch from the calibration calibration mode to the laser detection and ranging mode after waiting for the second offset time; if the receiving unit receives the signal The first signal edge that appears in the synchronization signal is the falling edge. After the processing unit waits for the second offset time, it enters the calibration calibration mode, and when the rising edge appears in the synchronization signal received by the receiving unit, the processing unit is waiting for the first signal edge. 2. After the offset time, switch from the calibration calibration mode to the laser detection and ranging mode; among them, the preset working mode includes the calibration calibration mode and the laser detection and ranging mode.
本申请实施例第五方面提供一种芯片,包括处理器和存储器,处理器与存储器耦合,用于读取并执行存储器中存储的指令,实现如第一方面中的步骤。The fifth aspect of the embodiments of the present application provides a chip including a processor and a memory, and the processor is coupled with the memory, and is configured to read and execute instructions stored in the memory to implement the steps in the first aspect.
本申请实施例第六方面提供一种芯片,包括处理器和存储器,处理器与存储器耦合,用于读取并执行存储器中存储的指令,实现如第二方面中的步骤。The sixth aspect of the embodiments of the present application provides a chip including a processor and a memory, and the processor is coupled with the memory, and is configured to read and execute instructions stored in the memory to implement the steps in the second aspect.
本申请实施例第七方面提供一种芯片系统,其特征在于,包括第三方面中的芯片和第四方面的芯片。A seventh aspect of the embodiments of the present application provides a chip system, which is characterized in that it includes the chip in the third aspect and the chip in the fourth aspect.
从以上技术方案可以看出,本申请实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
本申请实施例提供了一种芯片的同步方法及相关装置,由主芯片在向从芯片发送的同步信号中加入上升沿或下降沿来触发从芯片进入工作模式,并且主芯片在等待一定时间后再进入工作模式,确保了主芯片和从芯片能够在同一个时间点进入工作模式,本方案中仅仅需要占用一个芯片管脚来发送同步信号,即可实现多个芯片同步进入同一个工作模式,降低了芯片设计和布局时的复杂度。The embodiment of the application provides a chip synchronization method and related device. The master chip adds a rising edge or a falling edge to the synchronization signal sent to the slave chip to trigger the slave chip to enter the working mode, and the master chip waits for a certain period of time. Then enter the working mode to ensure that the master chip and the slave chip can enter the working mode at the same time. In this solution, only one chip pin is needed to send a synchronization signal, and multiple chips can enter the same working mode synchronously. Reduce the complexity of chip design and layout.
附图说明Description of the drawings
图1为本申请实施例提供的芯片的同步方法的一种应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a chip synchronization method provided by an embodiment of the application;
图2为本申请实施例提供的一种芯片的同步方法的流程示意图;FIG. 2 is a schematic flowchart of a chip synchronization method provided by an embodiment of the application;
图3为本申请实施例提供的同步信号的一种时序示意图;FIG. 3 is a schematic diagram of a timing sequence of a synchronization signal provided by an embodiment of the application;
图4为本申请实施例提供的一种工作模式切换的示意图;FIG. 4 is a schematic diagram of a working mode switching provided by an embodiment of the application;
图5为本申请实施例提供的一种工作模式切换的另一示意图;FIG. 5 is another schematic diagram of a work mode switching provided by an embodiment of the application;
图6为本申请实施例提供的一种工作模式切换的另一示意图;FIG. 6 is another schematic diagram of a working mode switching provided by an embodiment of the application;
图7为本申请实施例提供的一种工作模式切换的另一示意图;FIG. 7 is another schematic diagram of a work mode switching provided by an embodiment of the application;
图8为本申请实施例提供的一种第二芯片的电路结构示意图;FIG. 8 is a schematic diagram of a circuit structure of a second chip provided by an embodiment of the application;
图9为本申请实施例提供的一种第一芯片的结构示意图;FIG. 9 is a schematic structural diagram of a first chip provided by an embodiment of the application;
图10为本申请实施例提供的一种第二芯片的结构示意图。FIG. 10 is a schematic structural diagram of a second chip provided by an embodiment of the application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,下面结合附图,对本申请的实施例进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。本领域普通技术人员可知,随着新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In order to make the purpose, technical solutions and advantages of this application clearer, the following describes the embodiments of this application in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. . A person of ordinary skill in the art knows that with the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或模块的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或模块,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有 的其它步骤或模块。在本申请中出现的对步骤进行的命名或者编号,并不意味着必须按照命名或者编号所指示的时间/逻辑先后顺序执行方法流程中的步骤,已经命名或者编号的流程步骤可以根据要实现的技术目的变更执行次序,只要能达到相同或者相类似的技术效果即可。本申请中所出现的模块的划分,是一种逻辑上的划分,实际应用中实现时可以有另外的划分方式,例如多个模块可以结合成或集成在另一个系统中,或一些特征可以忽略,或不执行,另外,所显示的或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,模块之间的间接耦合或通信连接可以是电性或其他类似的形式,本申请中均不作限定。并且,作为分离部件说明的模块或子模块可以是也可以不是物理上的分离,可以是也可以不是物理模块,或者可以分布到多个电路模块中,可以根据实际的需要选择其中的部分或全部模块来实现本申请方案的目的。The terms "first" and "second" in the specification and claims of the application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments described herein can be implemented in a sequence other than the content illustrated or described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or modules is not necessarily limited to those clearly listed. Those steps or modules may include other steps or modules that are not clearly listed or are inherent to these processes, methods, products, or equipment. The naming or numbering of steps appearing in this application does not mean that the steps in the method flow must be executed in the time/logical sequence indicated by the naming or numbering. The named or numbered process steps can be implemented according to the The technical purpose changes the execution order, as long as the same or similar technical effects can be achieved. The division of modules presented in this application is a logical division. In actual applications, there may be other divisions. For example, multiple modules can be combined or integrated in another system, or some features can be ignored In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, and the indirect coupling or communication connection between the modules may be electrical or other similar forms. There are no restrictions in the application. In addition, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed to multiple circuit modules, and some or all of them may be selected according to actual needs. Module to achieve the purpose of this application program.
目前,在很多场合下通常都需要多个芯片来进行同步工作,以保证处理性能;例如,在激光探测及测距(light detection and ranging,LIDAR)信号处理系统中,往往需要多个芯片同步工作来实现激光探测及测距。At present, in many occasions, multiple chips are usually required to perform synchronous work to ensure processing performance; for example, in a laser detection and ranging (light detection and ranging, LIDAR) signal processing system, multiple chips are often required to work simultaneously To achieve laser detection and ranging.
在LIDAR信号处理系统中,多个同步工作的芯片必须在时间上有严格的同步关系才能保证测量结果的准确性,而这种同步的精度往往需要达到纳秒甚至皮秒量级。目前的芯片间同步技术较为复杂,一般是采用同源时钟加高精度同步控制触发信号的方式,或者采用复杂的时间同步协议来实现多个芯片间的这种严格时间同步;此外,在主从芯片间需要进行同步的模式切换和关断使能的时候,复杂度还会进一步提升。目前的这些芯片间同步方式需要过多的控制信号,并占用过多的芯片管脚和逻辑资源。In the LIDAR signal processing system, multiple synchronized chips must have a strict synchronization relationship in time to ensure the accuracy of the measurement results, and the accuracy of such synchronization often needs to reach the order of nanoseconds or even picoseconds. The current inter-chip synchronization technology is relatively complicated. Generally, it uses the same source clock and high-precision synchronization control trigger signal, or uses a complex time synchronization protocol to achieve such strict time synchronization between multiple chips; in addition, in the master-slave When synchronous mode switching and shutdown enable are required between chips, the complexity will be further increased. These current inter-chip synchronization methods require too many control signals and occupy too many chip pins and logic resources.
有鉴于此,本申请实施例提供一种更为简单的同步方式,通过根据同步信号中不同的触发信号来触发相应的工作模式,仅仅需要占用一个芯片管脚来发送同步信号,即可实现多个芯片间同步进入某一个工作模式,以达到多个芯片同步工作的目的,简化了多芯片级联系统的设计和实现。In view of this, the embodiment of the present application provides a simpler synchronization method. By triggering the corresponding operating mode according to different trigger signals in the synchronization signal, only one chip pin is needed to send the synchronization signal, and multiple synchronization signals can be realized. Each chip enters a certain working mode synchronously to achieve the purpose of multiple chips working synchronously, which simplifies the design and implementation of a multi-chip cascade system.
为了便于理解,以下将结合图1对本申请实施例提供的芯片的同步方法的应用场景进行介绍。可以参阅图1,图1为本申请实施例提供的芯片的同步方法的一种应用场景示意图。如图1所示,该应用场景具体可以包括一个主芯片以及一个或多个从芯片(如图1中的主芯片、从芯片1和从芯片2),其中,主芯片与一个或多个从芯片连接。在同步工作时,主芯片生成同步信号,并且向与其连接的一个或多个从芯片持续发送该同步信号,主芯片在同步信号中加入上升沿或下降沿,并在等待第一偏移时间之后,进入预设工作模式;从芯片持续接收同步信号,在接收到的同步信号中出现上升沿或下降沿之后,等待第二偏移时间进入工作模式,从而实现主从芯片间的同步。For ease of understanding, the application scenario of the chip synchronization method provided by the embodiment of the present application will be introduced below in conjunction with FIG. 1. Please refer to FIG. 1, which is a schematic diagram of an application scenario of the chip synchronization method provided by an embodiment of the application. As shown in Fig. 1, the application scenario may specifically include a master chip and one or more slave chips (the master chip, slave chip 1 and slave chip 2 in Fig. 1), where the master chip and one or more slave chips Chip connection. When working synchronously, the master chip generates a synchronization signal and continuously sends the synchronization signal to one or more slave chips connected to it. The master chip adds a rising or falling edge to the synchronization signal and waits for the first offset time. , Enter the preset working mode; the slave chip continues to receive the synchronization signal, after a rising or falling edge appears in the received synchronization signal, wait for the second offset time to enter the working mode, so as to achieve synchronization between the master and slave chips.
可以参阅图2,图2为本申请实施例提供的一种芯片的同步方法的流程示意图;如图2所示,本申请实施例提供的一种芯片的同步的方法,包括:Refer to FIG. 2. FIG. 2 is a schematic flowchart of a chip synchronization method provided by an embodiment of the application; as shown in FIG. 2, a chip synchronization method provided by an embodiment of the application includes:
201、第一芯片持续向第二芯片发送同步信号,同步信号为矩形波信号;201. The first chip continuously sends a synchronization signal to the second chip, and the synchronization signal is a rectangular wave signal;
本实施例中,第一芯片具体可以是多芯片系统中的主芯片,第二芯片具体可以是多芯片系统中的从芯片,其中,第一芯片的管脚和第二芯片的管脚通过连接线连接,实现第一芯片和第二芯片之间的连接。在第一芯片生成同步信号之后,第一芯片可以通过管脚间的 连接线持续向第二芯片发送同步信号。In this embodiment, the first chip may specifically be the master chip in the multi-chip system, and the second chip may specifically be the slave chip in the multi-chip system, wherein the pins of the first chip and the pins of the second chip are connected through Wire connection to realize the connection between the first chip and the second chip. After the first chip generates the synchronization signal, the first chip can continuously send the synchronization signal to the second chip through the connection line between the pins.
202、第一芯片在同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,第一芯片进入预设工作模式;202. The first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for the first offset time, the first chip enters a preset operating mode;
本实施例中,在需要第一芯片和第二芯片同步工作的情况下,第一芯片可以在持续向第二芯片发送的同步信号中加入上升沿或下降沿,来触发第二芯片与其同步进入预设工作模式。考虑到第一芯片与第二芯片之间存在有传输延迟,即从第一芯片向第二芯片发送同步信号到第二芯片接收到第二芯片是存在有一定延时的,第一芯片可以在往同步信号中加入上升沿或者下降沿之后,等待第一偏移时间,然后再进入预设工作模式,以确保第一芯片和第二芯片能够同步进入预设工作模式。In this embodiment, when the first chip and the second chip need to work synchronously, the first chip can add a rising edge or a falling edge to the synchronization signal continuously sent to the second chip to trigger the second chip to enter synchronously with it. Preset working mode. Considering that there is a transmission delay between the first chip and the second chip, that is, there is a certain delay from the first chip to the second chip sending the synchronization signal to the second chip receiving the second chip, the first chip can be After adding the rising edge or the falling edge to the synchronization signal, wait for the first offset time, and then enter the preset working mode to ensure that the first chip and the second chip can enter the preset working mode synchronously.
其中,第一芯片将同步信号发送到第二芯片所需的时间为第一芯片和第二芯片之间的固有延时,固有延时具体是由芯片器件以及连接线本身的固有特性所决定的,因此,在实际应用中,可以通过芯片间的标定来得到固有延时。Among them, the time required for the first chip to send the synchronization signal to the second chip is the inherent delay between the first chip and the second chip, and the inherent delay is specifically determined by the inherent characteristics of the chip device and the connection line itself. Therefore, in practical applications, the inherent delay can be obtained by calibrating between chips.
203、第二芯片持续接收第一芯片发送的同步信号,同步信号为矩形波信号;203. The second chip continuously receives the synchronization signal sent by the first chip, and the synchronization signal is a rectangular wave signal;
204、当第二芯片接收到的同步信号中出现上升沿或下降沿后,第二芯片在等待第二偏移时间后,第二芯片进入预设工作模式。204. After a rising edge or a falling edge occurs in the synchronization signal received by the second chip, the second chip enters a preset operating mode after waiting for the second offset time.
本实施例中,在第二芯片接收到同步信号之后,第二芯片可以持续对同步信号进行检测,当第二芯片检测到同步信号中出现上升沿或者下降沿之后,第二芯片可以在等待第二偏移时间之后,进入预设工作模式,从而实现与第一芯片同时进入预设工作模式。In this embodiment, after the second chip receives the synchronization signal, the second chip can continue to detect the synchronization signal. After the second chip detects the rising or falling edge in the synchronization signal, the second chip can wait for the first After the second offset time, it enters the preset working mode, so that it can enter the preset working mode at the same time as the first chip.
可以理解的是,在本实施例中,第一偏移时间和第二偏移时间为两个不同的时间,并且第一偏移时间为第二偏移时间和固有延时之和,也就是说,第一芯片所等待的时间为第二芯片所等待的时间和固有延时之和。这样一来,便可以确保第一芯片在等待第一偏移时间之后,能够和等待第二偏移时间的第二芯片同步进入预设工作模式。It can be understood that, in this embodiment, the first offset time and the second offset time are two different times, and the first offset time is the sum of the second offset time and the inherent delay, that is, In other words, the waiting time of the first chip is the sum of the waiting time of the second chip and the inherent delay. In this way, it can be ensured that after waiting for the first offset time, the first chip can enter the preset working mode synchronously with the second chip waiting for the second offset time.
例如,在第一芯片内部存在有计时器的情况下,如果第一芯片和第二芯片之间的固有延时为2(即第一芯片的计时器从0计到2时,第二芯片才接收到第一芯片所发送的同步信号),则可以设定第一偏移时间为10,第二偏移时间为8。具体地,第一芯片可以在往同步信号中加入上升沿或者下降沿之后开始计时,并且在计时器计到10的时候(即在等待了第一偏移时间之后),进入预设工作模式;而第二芯片则可以在检测到同步信号中的上升沿或者下降沿之后开始计时,并且在计时器计到8的时候(即在等待了第二偏移时间之后),进入预设工作模式。这样一来,第一芯片中的计时器计到10的时间点刚好和第二芯片中的计时器计到8的时间点是同一个时间点,确保了第一芯片和第二芯片能够在同一个时间点进入预设工作模式,即实现了第一芯片和第二芯片之间的同步。For example, if there is a timer inside the first chip, if the inherent delay between the first chip and the second chip is 2 (that is, when the timer of the first chip counts from 0 to 2, the second chip will only After receiving the synchronization signal sent by the first chip), the first offset time can be set to 10, and the second offset time can be set to 8. Specifically, the first chip may start timing after adding a rising edge or a falling edge to the synchronization signal, and enter the preset working mode when the timer counts 10 (that is, after waiting for the first offset time); The second chip can start timing after detecting the rising or falling edge of the synchronization signal, and enter the preset working mode when the timer counts to 8 (that is, after waiting for the second offset time). In this way, the time point when the timer in the first chip counts to 10 is exactly the same time point when the timer in the second chip counts to 8. This ensures that the first chip and the second chip can be at the same time. Enter the preset working mode at a time point, that is, the synchronization between the first chip and the second chip is realized.
可选地,在一些实施例中,第一偏移时间和第二偏移时间并非是固定不变的,在实际应用中,可以根据芯片间的固有延时来确定或者调整。此外,在另一些实施例中,例如,在第一芯片向多个第二芯片发送同步信号以实现多个芯片同步的情况下,还可以根据第一芯片与各个不同的第二芯片之间的固有延时来确定第一芯片等待的第一偏移时间以及各个第二芯片等待的第二偏移时间。例如,假设第一芯片同时向两个第二芯片发送同步信号,第一芯片与第一个第二芯片之间的固有延时为2,第一芯片与第二个第二芯片之间的固有 延时为5,那么,可以设定第一芯片对应的第一偏移时间为10,第一个第二芯片对应的第二偏移时间为8,而第二个第二芯片对应的第二偏移时间则为5。这样一来,第一芯片中的计时器计到10的时间点、第一个第二芯片中的计时器计到8的时间点以及第二个第二芯片中的计时器计到5的时间点刚好是同一个时间点,确保了第一芯片和这两个第二芯片都能够在同一个时间点进入预设工作模式,即实现了第一芯片和第二芯片之间的同步。Optionally, in some embodiments, the first offset time and the second offset time are not fixed. In actual applications, they can be determined or adjusted according to the inherent delay between chips. In addition, in other embodiments, for example, when the first chip sends a synchronization signal to multiple second chips to achieve synchronization of multiple chips, it may also be based on the relationship between the first chip and each different second chip. The inherent delay determines the first offset time that the first chip waits and the second offset time that each second chip waits. For example, assuming that the first chip sends synchronization signals to two second chips at the same time, the inherent delay between the first chip and the first second chip is 2, and the inherent delay between the first chip and the second second chip is 2. If the delay is 5, then you can set the first offset time corresponding to the first chip to 10, the second offset time corresponding to the first second chip to 8, and the second offset time corresponding to the second second chip to The offset time is 5. In this way, the timer in the first chip counts to 10, the timer in the first second chip counts to 8 and the timer in the second second chip counts to 5 The point is exactly the same point in time, ensuring that both the first chip and the two second chips can enter the preset working mode at the same point in time, that is, the synchronization between the first chip and the second chip is realized.
可选地,在一些实施例中,第一偏移时间和第二偏移时间具体可以通过芯片内部计时器的计数个数来量化,第一偏移时间和第二偏移时间也可以是一个具体的时间数值(例如N纳秒,其中,N为正数),在实际应用中,可以根据第一芯片和第二芯片本身的配置来确定第一偏移时间和第二偏移时间的量化方式,在此并不做具体的限定。Optionally, in some embodiments, the first offset time and the second offset time may be specifically quantified by the number of counts of a timer inside the chip, and the first offset time and the second offset time may also be one. The specific time value (for example, N nanoseconds, where N is a positive number). In practical applications, the quantization of the first offset time and the second offset time can be determined according to the configuration of the first chip and the second chip itself The method is not specifically limited here.
可选地,在一些实施例中,第一偏移时间具体还可以是第一芯片和第二芯片之间的固有延时,而第二偏移时间则为0;也就是说,第一芯片所等待的时间为第一芯片与第二芯片之间的固有延时,而第二芯片在检测到同步信号中有上升沿或者下降沿之后可以直接进入预设工作模式,而不需要再等待。这样一来,同样可以确保第一芯片在等待第一偏移时间之后,能够和第二芯片同步进入预设工作模式。值得注意的是,第一偏移时间为第一芯片和第二芯片之间的固有延时且第二偏移时间为0,具体可以适用于只有一个第一芯片和一个第二芯片的芯片系统,或者是第一芯片与所有的第二芯片之间的固有延时均相同的芯片系统。Optionally, in some embodiments, the first offset time may specifically be the inherent delay between the first chip and the second chip, and the second offset time is 0; that is, the first chip The waiting time is the inherent delay between the first chip and the second chip, and the second chip can directly enter the preset working mode after detecting a rising edge or a falling edge in the synchronization signal without waiting. In this way, it can also be ensured that the first chip can enter the preset working mode synchronously with the second chip after waiting for the first offset time. It is worth noting that the first offset time is the inherent delay between the first chip and the second chip and the second offset time is 0, which is specifically applicable to a chip system with only one first chip and one second chip , Or a chip system with the same inherent delay between the first chip and all second chips.
可选地,在一些实施例中,预设工作模式可以包括第一工作模式和第二工作模式。第一芯片具体可以是在同步信号中加入上升沿,并等待第一偏移时间后,进入第一工作模式;第二芯片则可以是在接收到的同步信号中出现上升沿,并等待第二偏移时间后,进入第一工作模式。并且,第一芯片具体还可以在同步信号中加入下降沿,并等待第一偏移时间后,进入第二工作模式;第二芯片则可以是在接收到的同步信号中出现下降沿,并等待第二偏移时间后,进入第二工作模式。也就是说,第一芯片和第二芯片可以根据同步信号中的信号沿是上升沿还是下降沿来决定所进入的工作模式。Optionally, in some embodiments, the preset working mode may include a first working mode and a second working mode. Specifically, the first chip may add a rising edge to the synchronization signal and wait for the first offset time before entering the first working mode; the second chip may include a rising edge in the received synchronization signal and wait for the second After the offset time, enter the first working mode. In addition, the first chip may specifically add a falling edge to the synchronization signal and wait for the first offset time before entering the second working mode; the second chip may have a falling edge in the received synchronization signal and wait After the second offset time, enter the second working mode. In other words, the first chip and the second chip can determine the working mode they enter according to whether the signal edge in the synchronization signal is a rising edge or a falling edge.
此外,当第一芯片已经进入第一工作模式之后,第一芯片可以在同步信号中加入下降沿,并等待第一偏移时间后,从第一工作模式切换到第二工作模式;同样地,当第一芯片已经进入第二工作模式之后,第一芯片可以在同步信号中加入上升沿,并等待第一偏移时间后,从第二工作模式切换到第一工作模式。同理,对于第二芯片来说,当第二芯片已经进入第一工作模式之后,第二芯片可以在同步信号中出现下降沿,并等待第二偏移时间后,从第一工作模式切换到第二工作模式;当第二芯片已经进入第二工作模式之后,第一芯片可以在同步信号中出现上升沿,并等待第二偏移时间后,从第二工作模式切换到第一工作模式。In addition, after the first chip has entered the first working mode, the first chip can add a falling edge to the synchronization signal, and after waiting for the first offset time, switch from the first working mode to the second working mode; similarly, After the first chip has entered the second working mode, the first chip may add a rising edge to the synchronization signal, and after waiting for the first offset time, switch from the second working mode to the first working mode. Similarly, for the second chip, after the second chip has entered the first working mode, the second chip can have a falling edge in the synchronization signal, and after waiting for the second offset time, switch from the first working mode to The second working mode; after the second chip has entered the second working mode, the first chip can have a rising edge in the synchronization signal, and after waiting for the second offset time, switch from the second working mode to the first working mode.
值得注意的是,在上述的实施例中,第一芯片和第二芯片是根据同步信号中的上升沿来决定进入第一工作模式,以及根据同步信号中的下降沿来决定进入第二工作模式;在另一些实施例中,第一芯片和第二芯片还可以是根据同步信号中的下降沿来决定进入第一工作模式,以及根据同步信号中的上升沿来决定进入第二工作模式。It is worth noting that in the above-mentioned embodiment, the first chip and the second chip decide to enter the first working mode according to the rising edge in the synchronization signal, and decide to enter the second working mode according to the falling edge in the synchronization signal. In other embodiments, the first chip and the second chip may also decide to enter the first working mode according to the falling edge in the synchronization signal, and decide to enter the second working mode according to the rising edge in the synchronization signal.
可选地,在一些实施例中,在本申请实施例提供的芯片的同步方法应用于LIDAR信号 处理系统的场景下,预设工作模式包括激光探测及测距模式和标定校准模式,例如第一工作模式具体可以是LIDAR信号处理系统中的激光探测及测距模式,第一工作模式具体可以是LIDAR信号处理系统中的标定校准模式;当然,也可以是第一工作模式为LIDAR信号处理系统中的标定校准模式,而第二工作模式为LIDAR信号处理系统中的激光探测及测距模式,在此并不做具体限定。其中,激光探测及测距模式为LIDAR信号处理系统中的正常工作模式,该模式主要用于实现激光探测及测距;而标定校准模式则为LIDAR信号处理系统中用于消除第一芯片和第二芯片的测量误差的模式,标定校准模式通常包括标定以及校准过程,标定表示的是获取校正参数,校准表示的是根据获取到的校正参数对系统进行校准。由于LIDAR信号处理系统是一个集光、机、电、算、控为一体的复杂测量系统,在测量的过程中不可避免地存在着测量误差,且这种测量误差会随着工作环境和时间的变化发生漂移,因此,在LIDAR信号处理系统的工作过程中,往往需要周期性地进行标定和校准。有鉴于此,在本实施例中,第一芯片和第二芯片可以根据同步信号中的上升沿或下降沿选择性地进入激光探测及测距模式或者标定校准模式中,从而实现多芯片同步进入到某一工作模式中,保证芯片间的同步。Optionally, in some embodiments, in a scenario where the chip synchronization method provided in the embodiments of the present application is applied to a LIDAR signal processing system, the preset working modes include laser detection and ranging mode and calibration mode, such as the first The working mode can be the laser detection and ranging mode in the LIDAR signal processing system. The first working mode can be the calibration mode in the LIDAR signal processing system. Of course, the first working mode can also be the LIDAR signal processing system. The second working mode is the laser detection and ranging mode in the LIDAR signal processing system, which is not specifically limited here. Among them, the laser detection and ranging mode is the normal working mode in the LIDAR signal processing system, which is mainly used to realize the laser detection and ranging; and the calibration mode is used to eliminate the first chip and the second chip in the LIDAR signal processing system. Two-chip measurement error mode. The calibration calibration mode usually includes calibration and calibration processes. Calibration means acquiring correction parameters, and calibration means calibrating the system according to the acquired correction parameters. Since the LIDAR signal processing system is a complex measurement system integrating light, machine, electricity, calculation and control, there will inevitably be measurement errors in the measurement process, and this measurement error will vary with the working environment and time. Changes have drifted. Therefore, in the working process of the LIDAR signal processing system, it is often necessary to periodically calibrate and calibrate. In view of this, in this embodiment, the first chip and the second chip can selectively enter the laser detection and ranging mode or the calibration mode according to the rising edge or the falling edge of the synchronization signal, so as to realize the synchronization of multiple chips. To a certain working mode, ensure the synchronization between the chips.
可选地,在一些实施例中,上升沿可以用于触发激光探测及测距模式且下降沿用于触发标定校准模式,或者,下降沿可以用于触发激光探测及测距模式且上升沿用于触发标定校准模式。在实际应用中,第一芯片和第二芯片可以根据同步信号中信号沿的类型来实现进入激光探测及测距模式、从激光探测及测距模式切换到标定校准模式或者是从标定校准模式切换到激光探测及测距模式。例如,在需要进行激光探测及测距时,在第一芯片在同步信号中加入上升沿,并在等待第一偏移时间之后,第一芯片进入激光探测及测距模式;同样地,第二芯片则在接收到的同步信号中出现上升沿后,在等待第二偏移时间之后,与第一芯片同步进入激光探测及测距模式;在需要进行芯片间的标定校准时,第一芯片在同步信号中加入下降沿,并在等待第一偏移时间之后,第一芯片从激光探测及测距模式切换到标定校准模式;第二芯片则在接收到的同步信号中出现下降沿后,在等待第二偏移时间之后,与第一芯片同步从激光探测及测距模式切换到标定校准模式。Optionally, in some embodiments, the rising edge can be used to trigger the laser detection and ranging mode and the falling edge can be used to trigger the calibration calibration mode, or the falling edge can be used to trigger the laser detection and ranging mode and the rising edge can be used to trigger Calibration calibration mode. In practical applications, the first chip and the second chip can enter the laser detection and ranging mode, switch from the laser detection and ranging mode to the calibration calibration mode, or switch from the calibration calibration mode according to the type of the signal edge in the synchronization signal To laser detection and ranging mode. For example, when laser detection and ranging is required, the first chip adds a rising edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the laser detection and ranging mode; similarly, the second After the chip has a rising edge in the received synchronization signal, after waiting for the second offset time, it enters the laser detection and ranging mode synchronously with the first chip; when the inter-chip calibration is required, the first chip is in the laser detection and ranging mode. A falling edge is added to the synchronization signal, and after waiting for the first offset time, the first chip switches from the laser detection and ranging mode to the calibration calibration mode; the second chip displays the falling edge in the received synchronization signal, and then After waiting for the second offset time, switch from the laser detection and ranging mode to the calibration mode in synchronization with the first chip.
可选地,在一些实施例中,第一工作模式以及第二工作模式的持续时间可以根据预先设定好的配置来决定。例如,在配置了芯片进入第一工作模式M秒之后,进入第二工作模式N秒的情况下,第一芯片在同步信号中加入上升沿,并且等待了第一偏移时间进入第一工作模式之后,第一芯片可以通过计时器开始进行计时,在计时器计到M1秒时,第一芯片在同步信号中加入下降沿,并且在等待第一偏移时间后从第一工作模式切换到第二工作模式,其中,M1为M与第一偏移时间之差;同理,在第一芯片进入第二工作模式之后,第一芯片可以通过计时器开始进行计时,在计时器计到N1秒时,第一芯片在同步信号中加入上升沿,并且在等待第一偏移时间后从第二工作模式切换到第一工作模式,其中,N1为N与第一偏移时间之差。也就是说,通过预先对第一工作模式以及第二工作模式的持续时间进行配置,可以实现第一芯片和第二芯片循环地在第一工作模式和第二工作模式之间切换。Optionally, in some embodiments, the duration of the first working mode and the second working mode may be determined according to a preset configuration. For example, after configuring the chip to enter the first working mode for M seconds and entering the second working mode for N seconds, the first chip adds a rising edge to the synchronization signal and waits for the first offset time to enter the first working mode After that, the first chip can start timing by the timer. When the timer counts up to M1 seconds, the first chip adds a falling edge to the synchronization signal, and switches from the first working mode to the first after waiting for the first offset time. Two working modes, where M1 is the difference between M and the first offset time; in the same way, after the first chip enters the second working mode, the first chip can start timing by the timer, and the timer counts to N1 seconds When, the first chip adds a rising edge to the synchronization signal, and switches from the second operating mode to the first operating mode after waiting for the first offset time, where N1 is the difference between N and the first offset time. In other words, by configuring the duration of the first working mode and the second working mode in advance, the first chip and the second chip can switch between the first working mode and the second working mode cyclically.
可选地,在一些实施例中,对于第二芯片来说,同步信号中出现的上升沿或下降沿可 以同时作为某一工作模式的触发信号以及使能信号,也就是说,在第二芯片检测到同步信号中的上升沿或者下降沿之后,触发相应的工作模式,并且保持处于该工作模式中,直至第二芯片检测到下一个信号沿。例如,在第二芯片检测到同步信号中的上升沿之后,第二芯片触发第一工作模式,并且一直保持处于第一工作模式的状态,直至第二芯片检测到同步信号中的下降沿之后,第二芯片关断第一工作模式,并且触发第二工作模式以及保持处于第二工作模式的状态,直至第二芯片检测到同步信号中的下一个上升沿,以此类推,即可通过不同的信号沿来实现不同的工作模式的触发、使能以及关断。Optionally, in some embodiments, for the second chip, the rising edge or the falling edge appearing in the synchronization signal can be used as the trigger signal and the enable signal of a certain working mode at the same time, that is, in the second chip After detecting the rising edge or the falling edge in the synchronization signal, the corresponding working mode is triggered, and the working mode remains in the working mode until the second chip detects the next signal edge. For example, after the second chip detects the rising edge in the synchronization signal, the second chip triggers the first operating mode and remains in the first operating mode until the second chip detects the falling edge in the synchronization signal. The second chip turns off the first working mode, triggers the second working mode and remains in the second working mode until the second chip detects the next rising edge in the synchronization signal, and so on, you can pass different The signal edge is used to realize the triggering, enabling and shutting off of different working modes.
可选地,在一些实施例中,对于第二芯片来说,在第二芯片对持续接收到的同步信号进行延时处理的情况下,同步信号中出现的上升沿或下降沿可以作为某一工作模式的触发信号,而同步信号中紧接着上升沿或下降沿的电平状态可以作为对应的工作模式的使能信号。例如,在上升沿作为第一工作模式的触发信号时,高电平状态可以作为第一工作模式的使能信号,低电平状态可以作为第一工作模式的关断信号,即通过上升沿来控制第一工作模式的触发,并且通过高电平状态来控制第一工作模式的使能,通过低电平状态来控制第一工作模式的关断。也就是说,在第二芯片接收到同步信号之后,当同步信号中出现上升沿时,第二芯片进入第一工作模式,并且通过紧接着上升沿的高电平状态控制第一工作模式的使能,上升沿的出现时刻即为第一工作模式的起始时刻,高电平状态的持续时间即为第一工作模式的持续时间;当同步信号中出现下降沿时,第二芯片进入第二工作模式,并且通过紧接着下降沿的低电平状态控制第二工作模式的使能,以及控制第一工作模式的关断,从而实现多个工作模式的触发、使能以及关断。Optionally, in some embodiments, for the second chip, when the second chip performs delay processing on the continuously received synchronization signal, the rising or falling edge that appears in the synchronization signal can be used as a certain The trigger signal of the working mode, and the level state of the synchronization signal immediately following the rising edge or the falling edge can be used as the enable signal of the corresponding working mode. For example, when the rising edge is used as the trigger signal of the first working mode, the high-level state can be used as the enable signal of the first working mode, and the low-level state can be used as the turn-off signal of the first working mode. The trigger of the first working mode is controlled, and the enabling of the first working mode is controlled by the high-level state, and the turning off of the first working mode is controlled by the low-level state. In other words, after the second chip receives the synchronization signal, when a rising edge appears in the synchronization signal, the second chip enters the first working mode, and controls the use of the first working mode through the high-level state following the rising edge. Yes, the moment when the rising edge occurs is the start moment of the first working mode, and the duration of the high level state is the duration of the first working mode; when a falling edge appears in the synchronization signal, the second chip enters the second In the working mode, the enabling of the second working mode and the turning off of the first working mode are controlled through the low level state immediately following the falling edge, so as to realize the triggering, enabling and turning off of multiple working modes.
本实施例中,通过采用单个同步信号实现两种工作模式的同步和使能,能够有效减少第一芯片和第二芯片为了实现同步而占用的管脚,使得第一芯片和第二芯片间的连接更为简单;并且本实施例中根据同步信号的电平状态实现两种工作模式的自动切换,无需通过软件配置或其他方式配置来实现工作模式的切换,简化了芯片间的耦合关系。In this embodiment, by adopting a single synchronization signal to achieve synchronization and enabling of the two working modes, the pins occupied by the first chip and the second chip for synchronization can be effectively reduced, so that the communication between the first chip and the second chip The connection is simpler; and in this embodiment, the two working modes are automatically switched according to the level state of the synchronization signal, and there is no need to configure the working mode through software configuration or other configuration to realize the switching of the working mode, which simplifies the coupling relationship between chips.
此外,在本实施例中,分别以同步信号中的信号沿和电平状态来作为工作模式的起始时刻和使能,使得这种芯片间的同步方式具有较强的抗毛刺干扰能力,保证系统工作的稳定性。需要说明的是,毛刺是数字逻辑逻辑电路中经常会碰到的一种噪声干扰信号,是正常信号中由于干扰而产生的一个短时脉冲信号,这个短时脉冲信号有上升沿或者下降沿,也有电平状态,容易触发芯片出现误操作,因此通常需要将其滤除掉。由于本实施例中采用的是信号沿和电平状态相结合的方式来进行同步,而这个用于使能各个工作模式的电平状态通常是很长的,因此可以通过检查电平状态的持续时间是否满足要求,来将一些远小于正常电平持续时间的毛刺信号给滤除掉,因此,能够使得芯片间的同步具有较强的抗毛刺干扰能力。In addition, in this embodiment, the signal edge and level state in the synchronization signal are respectively used as the starting time and enable of the working mode, so that this inter-chip synchronization method has a strong anti-burr interference ability and ensures The stability of the system. It should be noted that a glitch is a kind of noise interference signal that is often encountered in digital logic logic circuits. It is a short-term pulse signal generated due to interference in a normal signal. This short-term pulse signal has a rising edge or a falling edge. There is also a level state, which is easy to trigger the misoperation of the chip, so it usually needs to be filtered out. Because this embodiment uses a combination of signal edge and level status to synchronize, and the level status used to enable each operating mode is usually very long, so you can check the continuity of the level status Whether the time meets the requirements, to filter out some glitch signals that are much shorter than the normal level duration, so that the synchronization between the chips can have a strong anti-burr interference ability.
具体地,可以参阅图3,图3为本申请实施例提供的同步信号的一种时序示意图。如图3所示,第一个信号曲线表示的是第一芯片所生成的同步信号;第二个信号曲线表示的是第二芯片在接收到的同步信号中检测到的上升沿;第三个信号曲线表示的是第一工作模式的起始信号;第四个信号曲线表示的是第一工作模式的使能;第五个信号曲线表示的是第二芯片在接收到的同步信号中检测到的下降沿;第六个信号曲线表示的是第二工作模式 的起始信号;第七个信号曲线表示的是第二工作模式的使能;其中,S1表示的是第一芯片和第二芯片之间的固有延时,由第一个信号曲线和第二个信号曲线可以看出,第二芯片在接收到的同步信号中检测到的上升沿与第一芯片在同步信号中加入的上升沿之间相差时间间隔S1,该时间间隔S1即为两个芯片之间的固有延时;S2表示的是第一偏移时间;s3表示的是第二偏移时间;显然,由图3可以看出,S2=S1+S3,通过在第一芯片中设置第一偏移时间,在第二芯片中设置第二偏移时间,可以保证第一芯片和第二芯片同步进入相同的工作模式中。此外,由图3可以看出,高电平状态和低电平状态分别为第一工作模式以及第二工作模式的使能。通过信号沿和电平状态的配合,可以实现不同工作模式的触发、使能以及关断,从而使得多芯片能够同步进入某一个工作模式或者是同步进行工作模式的切换。Specifically, refer to FIG. 3, which is a schematic diagram of a timing sequence of a synchronization signal provided in an embodiment of the application. As shown in Figure 3, the first signal curve represents the synchronization signal generated by the first chip; the second signal curve represents the rising edge detected by the second chip in the received synchronization signal; the third The signal curve shows the start signal of the first working mode; the fourth signal curve shows the enable of the first working mode; the fifth signal curve shows that the second chip detects in the received synchronization signal The falling edge of; the sixth signal curve represents the start signal of the second working mode; the seventh signal curve represents the enable of the second working mode; among them, S1 represents the first chip and the second chip The inherent delay between the first signal curve and the second signal curve can be seen. The rising edge detected by the second chip in the received synchronization signal is the same as the rising edge added by the first chip in the synchronization signal. The difference between the time interval S1, the time interval S1 is the inherent delay between the two chips; S2 represents the first offset time; s3 represents the second offset time; obviously, it can be seen from Figure 3 S2=S1+S3. By setting the first offset time in the first chip and the second offset time in the second chip, it can be ensured that the first chip and the second chip enter the same working mode synchronously. In addition, it can be seen from FIG. 3 that the high-level state and the low-level state are the enabling of the first working mode and the second working mode, respectively. Through the cooperation of the signal edge and the level state, the triggering, enabling and shutting off of different working modes can be realized, so that multiple chips can enter a certain working mode synchronously or switch between working modes synchronously.
可以参阅图4,图4为本申请实施例提供的一种工作模式切换的示意图。如图4所示,在LIDAR信号处理系统中,同步信号中的上升沿用于触发芯片的激光探测及测距模式,同步信号中的高电平状态作为激光探测及测距模式的使能,同步信号中的下降沿用于触发芯片的标定校准模式,同步信号中的低电平状态作为标定校准模式的使能。由图4可以看出,在同步信号中,上升沿表示激光探测及测距模式起始时刻,下降沿表示标定校准模式的起始时刻,并且,同步信号的高电平状态和低电平状态分别作为激光探测及测距模式和标定校准模式的使能,即在高电平的持续时间内,第一芯片以及第二芯片均进入激光探测及测距模式,在低电平的持续时间内,第一芯片以及第二芯片则进入标定校准模式。这样一来,通过触发信号和电平状态的配合,可以实现激光探测及测距模式的触发和使能,并且在激光探测及测距模式关断的期间(即两次探测测距之间的时间间隙)实现多芯片同步进行标定和校准。Refer to FIG. 4, which is a schematic diagram of a working mode switching provided by an embodiment of the application. As shown in Figure 4, in the LIDAR signal processing system, the rising edge in the synchronization signal is used to trigger the laser detection and ranging mode of the chip, and the high level state in the synchronization signal is used as the enable of the laser detection and ranging mode. The falling edge in the signal is used to trigger the calibration and calibration mode of the chip, and the low level state in the synchronization signal is used as the enablement of the calibration and calibration mode. It can be seen from Figure 4 that in the synchronization signal, the rising edge represents the starting time of the laser detection and ranging mode, and the falling edge represents the starting time of the calibration mode, and the high-level state and low-level state of the synchronization signal It is used as the enable of laser detection and ranging mode and calibration mode respectively, that is, during the duration of high level, the first chip and the second chip both enter the laser detection and ranging mode, and during the duration of low level , The first chip and the second chip enter the calibration mode. In this way, through the cooperation of the trigger signal and the level state, the laser detection and ranging mode can be triggered and enabled, and during the period when the laser detection and ranging mode is turned off (that is, the period between two detection ranging Time gap) to achieve simultaneous calibration and calibration of multiple chips.
可选地,在一些实施例中,在LIDAR信号处理系统中,还可以周期性地进行多芯片间的标定和校准,而不需要在每个激光探测及测距模式关断的期间都进行多芯片间的标定和校准。例如,在以下降沿作为触发第二芯片进入标定校准模式的信号沿时,在第二芯片关断标定校准模式之后,第二芯片持续检测同步信号中下降沿的出现次数,在下降沿的出现次数达到第一阈值的时候,第二芯片再触发标定校准模式。同样地,在以上升沿作为触发第二芯片进入标定校准模式的信号沿时,在第二芯片关断标定校准模式之后,第二芯片持续检测同步信号中上升沿的出现次数,在上升沿的出现次数达到第一阈值的时候,第二芯片再触发标定校准模式。其中,第一阈值可以根据实际应用来确定或者调整,例如可以是1或2等整数,在此不对第一阈值的具体数值进行限定。Optionally, in some embodiments, in the LIDAR signal processing system, calibration and calibration between multiple chips can also be performed periodically, without the need to perform multiple calibrations during each laser detection and ranging mode off period. Calibration and calibration between chips. For example, when the falling edge is used as the signal edge to trigger the second chip to enter the calibration mode, after the second chip turns off the calibration mode, the second chip continuously detects the number of occurrences of the falling edge in the synchronization signal, and the occurrence of the falling edge When the number of times reaches the first threshold, the second chip triggers the calibration mode again. Similarly, when the rising edge is used as the signal edge to trigger the second chip to enter the calibration mode, after the second chip turns off the calibration mode, the second chip continues to detect the number of occurrences of rising edges in the synchronization signal. When the number of occurrences reaches the first threshold, the second chip triggers the calibration calibration mode again. The first threshold may be determined or adjusted according to actual applications, for example, it may be an integer such as 1 or 2. The specific value of the first threshold is not limited here.
具体地,可以参阅图5,图5为本申请实施例提供的一种工作模式切换的另一示意图。如图5所示,第一芯片和第二芯片在关断标定校准模式之后,在检测到后续第二个下降沿的时候才进入标定校准模式。也就是说,在高电平的持续时间内,第一芯片以及第二芯片均进入激光探测及测距模式;而在低电平的持续时间内,第一芯片以及第二芯片则是周期性地进入标定校准模式。这样一来,第一芯片和第二芯片不需要在每次执行完激光探测及测距之后,都进行芯片间的标定和校准,而是周期性地进行标定和校准,在测量误差变化较小的情况下,既能够控制芯片间的测量误差,又能够节省芯片的资源开销。Specifically, reference may be made to FIG. 5, which is another schematic diagram of a working mode switching provided by an embodiment of the application. As shown in Fig. 5, the first chip and the second chip enter the calibration calibration mode after the calibration calibration mode is turned off, and only when the subsequent second falling edge is detected. That is to say, during the duration of the high level, the first chip and the second chip both enter the laser detection and ranging mode; while during the duration of the low level, the first chip and the second chip are periodic To enter the calibration calibration mode. In this way, the first chip and the second chip do not need to calibrate and calibrate between chips every time after laser detection and ranging are performed. Instead, calibration and calibration are performed periodically, and the measurement error changes little. In the case of, it can not only control the measurement error between the chips, but also save the resource overhead of the chips.
在一些可选的实施例中,在LIDAR信号处理系统中,在第一芯片和第二芯片上电或复位之后,只执行一次或者N次的标定和校准(其中,N为大于1的正整数);也就是说,第一芯片和第二芯片在上电或复位之后,在标定校准模式的触发次数达到第二阈值时,便不再触发标定校准模式,直至下一次重新上电或复位之后,再触发标定校准模式,即不再周期性地触发标定校准模式。其中,第二阈值可以为大于或等于1的正整数,第二阈值的具体数值可以根据实际应用中的情况来确定或调整,在此不做限定。其中,芯片上电指的是芯片通电启动;而芯片复位指的是将芯片恢复至初始的默认状态并且重新开始工作,芯片之前的工作状态都会被清除掉。通常,在芯片上电之后,芯片都会默认处于复位状态,只有在上电并且复位状态撤离之后,芯片才会开始启动工作,即芯片触发相应的工作模式;因此,在本实施例中,芯片可以在每次复位状态撤离之后,触发一次或N次标定校准模式之后就不再触发标定校准模式,直至下一次复位状态撤离。具体地,可以参阅图6,图6为本申请实施例提供的一种工作模式切换的另一示意图。如图6所示,在上电并开始工作,第一芯片和第二芯片均只触发了一次标定校准模式,便不再触发标定校准模式。In some optional embodiments, in the LIDAR signal processing system, after the first chip and the second chip are powered on or reset, calibration and calibration are performed only once or N times (where N is a positive integer greater than 1 ); That is, after the first chip and the second chip are powered on or reset, when the number of triggers of the calibration calibration mode reaches the second threshold, the calibration calibration mode will no longer be triggered until the next power-on or reset , Then trigger the calibration calibration mode, that is, do not trigger the calibration calibration mode periodically. Wherein, the second threshold value may be a positive integer greater than or equal to 1, and the specific value of the second threshold value may be determined or adjusted according to actual application conditions, which is not limited here. Among them, the chip power-on refers to the chip's power-on startup; and the chip reset refers to the restoration of the chip to the initial default state and restarts work, the previous working state of the chip will be cleared. Generally, after the chip is powered on, the chip will be in the reset state by default. Only after power on and the reset state is withdrawn, the chip will start to work, that is, the chip triggers the corresponding working mode; therefore, in this embodiment, the chip can After each reset state is evacuated, the calibration calibration mode is triggered once or N times, and the calibration calibration mode is no longer triggered until the next reset state is evacuated. Specifically, refer to FIG. 6, which is another schematic diagram of a working mode switching provided by an embodiment of the application. As shown in Fig. 6, after powering on and starting to work, both the first chip and the second chip only trigger the calibration calibration mode once, and no longer trigger the calibration calibration mode.
在一些可选的实施例中,在LIDAR信号处理系统中,在第一芯片和第二芯片上电或者复位之后,可以根据同步信号中的第一个信号沿的类型来确定到底是通过上升沿触发标定校准模式还是通过下降沿触发标定校准模式,即在同步信号中的第一个信号沿为上升沿时,确定上升沿用于触发芯片进入标定校准模式,在同步信号中的第一个触发信号为下降沿时,确定下降沿用于触发芯片进入标定校准模式。也就是说,无论同步信号中的第一个信号沿是上升沿还是下降沿,第一芯片和第二芯片都先进入标定校准模式,然后,在第一芯片在同步信号中加入第二个信号沿之后,第一芯片从标定校准模式切换到激光探测及测距模式,同样地,在第二芯片接收到的同步信号中出现第二个信号沿之后,第二芯片从标定校准模式切换到激光探测及测距模式中,以使得在进行激光探测及测距之前,先进行一次第一芯片和第二芯片间的标定和校准,从而保证芯片上电或复位之后所进行的第一次激光探测及测距能够获得误差较小的结果。In some optional embodiments, in the LIDAR signal processing system, after the first chip and the second chip are powered on or reset, the type of the first signal edge in the synchronization signal can be used to determine whether to pass the rising edge. Trigger calibration calibration mode or by falling edge trigger calibration calibration mode, that is, when the first signal edge in the synchronization signal is a rising edge, the rising edge is determined to trigger the chip to enter the calibration calibration mode, the first trigger signal in the synchronization signal When it is a falling edge, determine that the falling edge is used to trigger the chip to enter the calibration mode. In other words, regardless of whether the first signal edge in the synchronization signal is a rising edge or a falling edge, the first chip and the second chip enter the calibration mode first, and then the second signal is added to the synchronization signal in the first chip After the edge, the first chip switches from the calibration and calibration mode to the laser detection and ranging mode. Similarly, after the second signal edge appears in the synchronization signal received by the second chip, the second chip switches from the calibration and calibration mode to the laser In the detection and ranging mode, the calibration and calibration between the first chip and the second chip are performed before laser detection and ranging, so as to ensure the first laser detection after the chip is powered on or reset And ranging can obtain results with less error.
具体地,可以参阅图7,图7为本申请实施例提供的一种工作模式切换的另一示意图。如图7所示,在同步信号1的初始电平状态为低电平状态时(即初始状态为0),同步信号1的第一个沿为上升沿,此时,用于触发第一芯片和第二芯片进入标定校准模式的触发信号为上升沿,用于触发第一芯片和第二芯片进入激光探测及测距模式的信号沿则为下降沿;在同步信号2的初始电平状态为高电平状态时(即初始状态为1),同步信号2的第一个沿为下降沿,此时,用于触发第一芯片和第二芯片进入标定校准模式的信号沿为下降沿,用于触发第一芯片和第二芯片进入激光探测及测距模式的信号沿则为上升沿。Specifically, refer to FIG. 7, which is another schematic diagram of a working mode switching provided by an embodiment of the application. As shown in Figure 7, when the initial level state of the synchronization signal 1 is a low level state (that is, the initial state is 0), the first edge of the synchronization signal 1 is a rising edge. At this time, it is used to trigger the first chip The trigger signal for entering the calibration mode with the second chip is a rising edge, and the signal edge used to trigger the first chip and the second chip to enter the laser detection and ranging mode is a falling edge; the initial level state of the synchronization signal 2 is In the high-level state (that is, the initial state is 1), the first edge of the synchronization signal 2 is the falling edge. At this time, the signal edge used to trigger the first chip and the second chip to enter the calibration mode is the falling edge. The signal edge that triggers the first chip and the second chip to enter the laser detection and ranging mode is the rising edge.
当然,在一些实施例中,还可以根据同步信号中的第一个信号沿确定触发激光探测及测距模式的信号,即在同步信号中的第一个信号沿为上升沿时,确定上升沿用于触发激光探测及测距模式,在同步信号中的第一个信号沿为下降沿时,确定下降沿用于触发激光探测及测距模式。也就是说,无论同步信号中的第一个信号沿是上升沿还是下降沿,第二芯片都先进入激光探测及测距模式,然后再进入标定校准模式。在实际应用中,具体可以根据实际需要来确定第一个信号沿是用于触发进入激光探测及测距模式还是用于触发标定校 准模式;例如,在时效性要求较高的场景下,可以确定第一个信号沿用于触发进入激光探测及测距模式,以便于快速获得测量结果;在精确度要求较高的场景下,可以确定第一个信号沿用于触发进入标定校准模式,以便于获得误差较小的测量结果。Of course, in some embodiments, the signal that triggers the laser detection and ranging mode can also be determined according to the first signal edge in the synchronization signal, that is, when the first signal edge in the synchronization signal is a rising edge, the rising edge is used to determine When triggering the laser detection and ranging mode, when the first signal edge in the synchronization signal is the falling edge, the falling edge is determined to trigger the laser detection and ranging mode. In other words, regardless of whether the first signal edge in the synchronization signal is a rising edge or a falling edge, the second chip enters the laser detection and ranging mode first, and then enters the calibration mode. In practical applications, it can be determined according to actual needs whether the first signal edge is used to trigger the laser detection and ranging mode or the calibration calibration mode; for example, in scenarios with high timeliness requirements, it can be determined The first signal edge is used to trigger the laser detection and ranging mode to quickly obtain the measurement results; in scenarios with high accuracy requirements, the first signal edge can be determined to be used to trigger the calibration mode to obtain the error Smaller measurement result.
为了便于理解,以下将结合具体的电路结构图对本实施例中芯片的同步方法的实现过程进行详细的描述。可以参阅图8,图8为本申请实施例提供的一种第二芯片的电路结构示意图。如图8所示,第二芯片中包括有可编程延时单元、上升沿检测电路、下降沿检测电路、第一工作模式逻辑电路、第二工作模式逻辑电路以及数据选择器(multiplexer,MUX);其中,可编程延时单元的输入端用于接收同步信号,其输出端则分别与上升沿检测电路的输入端和下降沿检测电路的输入端连接,可编程延时单元用于对第一芯片发送的同步信号进行延时后,将延时后的同步信号发送至上升沿检测电路和下降沿检测电路;上升沿检测电路的输出端与第一工作模式电路连接,用于检测延时后的同步信号中的上升沿,并且在检测到上升沿之后向第一工作模式电路发送信号,以触发第一工作模式电路进行工作;下降沿检测电路的输出端与第二工作模式电路,用于检测延时后的同步信号中的下降沿,并且在检测到下降沿之后向第二工作模式电路发送信号,以触发第二工作模式电路进行工作;此外,可编程延时单元的输出端还与第一工作模式电路连接,可编程延时单元所输出的延时后的同步信号作为第一工作模式逻辑电路的使能信号;可编程延时单元的输出端还通过反相器与第二工作模式电路连接,可编程延时单元所输出的延时后的同步信号经过反相器取反之后作为第二工作模式逻辑电路的使能信号;第一工作模式逻辑电路的输出端和第二工作模式逻辑电路的输出端分别与MUX的输入端连接,并且可编程延时单元的输出端还与MUX连接,MUX用于根据延时后的同步信号选择输出第一工作模式逻辑电路的输出或者是第二工作模式逻辑电路的输出。For ease of understanding, the implementation process of the synchronization method of the chip in this embodiment will be described in detail below in conjunction with a specific circuit structure diagram. Refer to FIG. 8, which is a schematic diagram of a circuit structure of a second chip provided by an embodiment of the application. As shown in Figure 8, the second chip includes a programmable delay unit, a rising edge detection circuit, a falling edge detection circuit, a first working mode logic circuit, a second working mode logic circuit, and a data selector (multiplexer, MUX) ; Among them, the input end of the programmable delay unit is used to receive the synchronization signal, and its output end is respectively connected with the input end of the rising edge detection circuit and the input end of the falling edge detection circuit, and the programmable delay unit is used for the first After the synchronization signal sent by the chip is delayed, the delayed synchronization signal is sent to the rising edge detection circuit and the falling edge detection circuit; the output end of the rising edge detection circuit is connected to the first working mode circuit for detecting the delay time The rising edge in the synchronization signal of the falling edge, and after detecting the rising edge, sends a signal to the first working mode circuit to trigger the first working mode circuit to work; the output terminal of the falling edge detection circuit and the second working mode circuit are used for Detect the falling edge in the delayed synchronization signal, and send a signal to the second working mode circuit after detecting the falling edge to trigger the second working mode circuit to work; in addition, the output terminal of the programmable delay unit is also connected with The first working mode circuit is connected, and the delayed synchronization signal output by the programmable delay unit is used as the enable signal of the first working mode logic circuit; the output terminal of the programmable delay unit is also connected to the second working mode through an inverter The mode circuit is connected, the delayed synchronization signal output by the programmable delay unit is inverted by the inverter as the enable signal of the second working mode logic circuit; the output terminal of the first working mode logic circuit and the second working mode The output end of the mode logic circuit is connected to the input end of the MUX respectively, and the output end of the programmable delay unit is also connected to the MUX. The MUX is used to select the output of the first working mode logic circuit according to the delayed synchronization signal or The output of the logic circuit in the second working mode.
具体地,在同步信号进入可编程延时单元之后,可编程延时单元根据预置时长对同步信号进行延时,得到延时后的同步信号;然后,上升沿检测电路对延时后的同步信号进行上升沿检测,在检测到上升沿之后,向第一工作模式逻辑电路发送触发信号,以触发第一工作模式电路进行工作;并且,延时后的同步信号还作为第一工作模式逻辑电路的使能,只有在延时后的同步信号处于高电平状态下,第一工作模式逻辑电路才处于工作状态,否则关断第一工作模式电路;同样地,下降沿检测电路对延时后的同步信号进行下降沿检测,在检测到下降沿之后,向第二工作模式逻辑电路发送触发信号,以触发第二工作模式电路进行工作;并且,延时后的同步信号经过反相器取反之后还作为第二工作模式逻辑电路的使能,只有在经过取反之后的同步信号处于高电平状态下,第二工作模式逻辑电路才处于工作状态,否则关断第二工作模式电路;也就是说,通过上述的电路结构可以实现通过同步信号中的上升沿或下降沿来触发相应的工作模式,并且以同步信号中的电平状态来使能相应的工作模式。此外,延时后的同步信号还作为MUX选择输出的参考信号,在延时后的同步信号处于高电平状态时,MUX选择输出第一工作模式逻辑电路的输出结果;在延时后的同步信号处于低电平状态时,MUX选择输出第二工作模式逻辑电路的输出结果。Specifically, after the synchronization signal enters the programmable delay unit, the programmable delay unit delays the synchronization signal according to the preset time length to obtain the delayed synchronization signal; then, the rising edge detection circuit performs the delayed synchronization The signal undergoes rising edge detection, and after the rising edge is detected, a trigger signal is sent to the first working mode logic circuit to trigger the first working mode circuit to work; and the delayed synchronization signal is also used as the first working mode logic circuit The logic circuit of the first working mode is in the working state only when the delayed synchronization signal is at a high level, otherwise the first working mode circuit is turned off; similarly, the falling edge detection circuit is After detecting the falling edge, send a trigger signal to the second working mode logic circuit to trigger the second working mode circuit to work; and the delayed synchronization signal is inverted by the inverter After that, it is also used as the enablement of the second working mode logic circuit. Only when the inverted synchronization signal is in the high level state, the second working mode logic circuit is in the working state, otherwise the second working mode circuit is turned off; That is to say, through the above circuit structure, the corresponding operating mode can be triggered by the rising edge or the falling edge in the synchronization signal, and the corresponding operating mode can be enabled with the level state in the synchronization signal. In addition, the delayed synchronization signal is also used as a reference signal for the MUX selection output. When the delayed synchronization signal is at a high level, the MUX selects and outputs the output result of the logic circuit of the first working mode; the synchronization after the delay When the signal is in a low level state, the MUX selects and outputs the output result of the logic circuit of the second working mode.
需要说明的是,在一些实施例中,在第二芯片中还可以不设置可编程延时单元,或者设置可编程延时单元的延时时间为0,即第二芯片不对同步信号进行延时。例如,在第一 芯片对同步信号进行延时后再发送给第二芯片的情况下,第二芯片可以不再对同步信号进行延时,而直接接收同步信号并且对同步信号进行检测。It should be noted that in some embodiments, the programmable delay unit may not be provided in the second chip, or the delay time of the programmable delay unit is set to 0, that is, the second chip does not delay the synchronization signal. . For example, in the case where the first chip delays the synchronization signal before sending it to the second chip, the second chip may no longer delay the synchronization signal, but directly receives the synchronization signal and detects the synchronization signal.
可以参阅图9,图9为本申请实施例提供的一种第一芯片的结构示意图。如图9所示,本申请实施例提供的一种第一芯片90,包括:发送单元901,用于持续向第二芯片发送同步信号,同步信号为矩形波信号;处理单元902,用于在同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,进入预设工作模式。Refer to FIG. 9, which is a schematic structural diagram of a first chip provided by an embodiment of the application. As shown in FIG. 9, a first chip 90 provided by an embodiment of the present application includes: a sending unit 901, configured to continuously send a synchronization signal to the second chip, the synchronization signal being a rectangular wave signal; and a processing unit 902, configured to A rising edge or a falling edge is added to the synchronization signal, and after waiting for the first offset time, it enters the preset working mode.
可选地,处理单元902,还用于在同步信号中加入上升沿,并在等待第一偏移时间后,进入第一工作模式;处理单元,还用于在同步信号中加入下降沿,并在等待第一偏移时间后,进入第二工作模式,其中,预设工作模式包括第一工作模式和第二工作模式。Optionally, the processing unit 902 is also used to add a rising edge to the synchronization signal, and after waiting for the first offset time, enter the first working mode; the processing unit is also used to add a falling edge to the synchronization signal, and After waiting for the first offset time, enter the second working mode, where the preset working mode includes the first working mode and the second working mode.
可选地,处理单元902,还用于在同步信号中加入上升沿的次数达到预置数值时,停止进入第一工作模式;或者,处理单元902,还用于在同步信号中加入下降沿的次数达到预置数值时,停止进入第二工作模式。Optionally, the processing unit 902 is further configured to stop entering the first working mode when the number of times of adding rising edges to the synchronization signal reaches a preset value; or, the processing unit 902 is further configured to add falling edges to the synchronization signal When the number of times reaches the preset value, stop entering the second working mode.
可选地,若处理单元902在同步信号中加入的第一个信号沿为上升沿,处理单元902还用于在等待第一偏移时间后,进入第一工作模式,并且当处理单元902在同步信号中加入下降沿后,处理单元902在等待第二偏移时间后,进入第二工作模式;若处理单元902在同步信号中加入的第一个信号沿为下降沿,处理单元902还用于在等待第一偏移时间后,进入第一工作模式,并且当处理单元902在同步信号中加入下降沿后,处理单元902在等待第二偏移时间后,进入第二工作模式;其中,预设工作模式包括第一工作模式和第二工作模式。Optionally, if the first signal edge added by the processing unit 902 in the synchronization signal is a rising edge, the processing unit 902 is further configured to enter the first working mode after waiting for the first offset time, and when the processing unit 902 is at After the falling edge is added to the synchronization signal, the processing unit 902 enters the second working mode after waiting for the second offset time; if the first signal edge added by the processing unit 902 to the synchronization signal is a falling edge, the processing unit 902 also uses After waiting for the first offset time, enter the first operating mode, and when the processing unit 902 adds a falling edge to the synchronization signal, the processing unit 902 enters the second operating mode after waiting for the second offset time; wherein, The preset working mode includes a first working mode and a second working mode.
可以参阅图10,图10为本申请实施例提供的一种第二芯片的结构示意图。如图10所示,本申请实施例提供的一种第二芯片100,包括:接收单元1001,用于持续接收第一芯片发送的同步信号,同步信号为矩形波信号;处理单元1002,用于当接收单元1001接收到的同步信号中出现上升沿或下降沿后,在等待第二偏移时间后,进入预设工作模式。Refer to FIG. 10, which is a schematic structural diagram of a second chip provided by an embodiment of the application. As shown in FIG. 10, a second chip 100 provided by an embodiment of the present application includes: a receiving unit 1001, configured to continuously receive a synchronization signal sent by the first chip, the synchronization signal being a rectangular wave signal; and a processing unit 1002, configured to After a rising edge or a falling edge occurs in the synchronization signal received by the receiving unit 1001, it enters the preset working mode after waiting for the second offset time.
可选地,当接收单元1001接收到的同步信号中出现上升沿后,处理单元1002还用于在等待第二偏移时间后,进入第一工作模式;Optionally, after a rising edge occurs in the synchronization signal received by the receiving unit 1001, the processing unit 1002 is further configured to enter the first working mode after waiting for the second offset time;
当接收单元1001接收到的同步信号中出现下降沿后,处理单元1002还用于在等待第二偏移时间后,进入第二工作模式,其中,预设工作模式包括第一工作模式和第二工作模式。After a falling edge occurs in the synchronization signal received by the receiving unit 1001, the processing unit 1002 is further configured to enter the second working mode after waiting for the second offset time, wherein the preset working mode includes the first working mode and the second working mode. Operating mode.
可选地,在接收单元1001接收到的同步信号中上升沿的出现次数达到预置数值时,处理单元1002还用于停止进入第一工作模式;Optionally, when the number of occurrences of rising edges in the synchronization signal received by the receiving unit 1001 reaches a preset value, the processing unit 1002 is further configured to stop entering the first working mode;
或者,在接收单元1001接收到的同步信号中下降沿的出现次数达到预置数值时,处理单元1002停止进入第二工作模式。Alternatively, when the number of occurrences of falling edges in the synchronization signal received by the receiving unit 1001 reaches a preset value, the processing unit 1002 stops entering the second working mode.
可选地,若接收单元1001接收到的同步信号中出现的第一个信号沿为上升沿,处理单元1002还用于在等待第二偏移时间后,进入第一工作模式,并且当接收单元1001接收到的同步信号中出现下降沿后,处理单元1002还用于在等待第二偏移时间后,进入第二工作模式;若接收单元1001接收到的同步信号中出现的第一个信号沿为下降沿,处理单元1002在等待第二偏移时间后,进入第一工作模式,并且当接收单元1001接收到的同步 信号中出现上升沿后,处理单元1002还用于在等待第二偏移时间后,进入第二工作模式;其中,预设工作模式包括第一工作模式和第二工作模式。Optionally, if the first signal edge appearing in the synchronization signal received by the receiving unit 1001 is a rising edge, the processing unit 1002 is further configured to enter the first working mode after waiting for the second offset time, and when the receiving unit 1001 After a falling edge appears in the synchronization signal received by 1001, the processing unit 1002 is also used to enter the second working mode after waiting for the second offset time; if the first signal edge appears in the synchronization signal received by the receiving unit 1001 For the falling edge, the processing unit 1002 enters the first working mode after waiting for the second offset time, and when a rising edge appears in the synchronization signal received by the receiving unit 1001, the processing unit 1002 is also used to wait for the second offset After time, enter the second working mode; wherein, the preset working mode includes the first working mode and the second working mode.
本申请实施例还提供一种芯片系统,该芯片系统包括图2对应的实施例中的第一芯片和第二芯片,该第一芯片与该第二芯片连接,用于执行图2对应的实施例中的芯片的同步方法。The embodiment of the present application also provides a chip system, the chip system includes the first chip and the second chip in the embodiment corresponding to FIG. 2, the first chip is connected to the second chip, and is used to perform the implementation corresponding to FIG. 2 The synchronization method of the chip in the example.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Claims (25)

  1. 一种芯片的同步方法,其特征在于,包括:A method for synchronizing chips, which is characterized in that it includes:
    第一芯片持续向第二芯片发送同步信号,所述同步信号为矩形波信号;The first chip continuously sends a synchronization signal to the second chip, where the synchronization signal is a rectangular wave signal;
    所述第一芯片在所述同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,所述第一芯片进入预设工作模式。The first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for a first offset time, the first chip enters a preset working mode.
  2. 根据权利要求1所述的芯片的同步方法,其特征在于,所述第一芯片在所述同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,所述第一芯片进入预设工作模式,包括:The chip synchronization method according to claim 1, wherein the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for a first offset time, the first chip enters Preset working modes, including:
    所述第一芯片在所述同步信号中加入第一信号沿,并在等待所述第一偏移时间后,所述第一芯片进入激光探测及测距模式;The first chip adds a first signal edge to the synchronization signal, and after waiting for the first offset time, the first chip enters a laser detection and ranging mode;
    所述第一芯片在所述同步信号中加入第二信号沿,并在等待所述第一偏移时间后,所述第一芯片从所述激光探测及测距模式切换到标定校准模式,所述预设工作模式包括所述激光探测及测距模式和所述标定校准模式;The first chip adds a second signal edge to the synchronization signal, and after waiting for the first offset time, the first chip switches from the laser detection and ranging mode to the calibration mode, so The preset working mode includes the laser detection and ranging mode and the calibration mode;
    其中,所述第一信号沿为上升沿且所述第二信号沿为下降沿,或者,所述第一信号沿为下降沿且所述第二信号沿为上升沿。Wherein, the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
  3. 根据权利要求1所述的芯片的同步方法,其特征在于,所述第一芯片在所述同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,所述第一芯片进入预设工作模式,包括:The chip synchronization method according to claim 1, wherein the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for a first offset time, the first chip enters Preset working modes, including:
    若所述第一芯片在所述同步信号中加入的第一个信号沿为上升沿,所述第一芯片在等待所述第一偏移时间后,进入标定校准模式,并且当所述第一芯片在所述同步信号中加入下降沿后,所述第一芯片在等待所述第一偏移时间后,从所述标定校准模式切换到激光探测及测距模式;If the first signal edge added by the first chip in the synchronization signal is a rising edge, the first chip enters the calibration calibration mode after waiting for the first offset time, and when the first chip After the chip adds a falling edge to the synchronization signal, the first chip switches from the calibration calibration mode to the laser detection and ranging mode after waiting for the first offset time;
    若所述第一芯片在所述同步信号中加入的第一个信号沿为下降沿,所述第一芯片在等待所述第一偏移时间后,进入所述标定校准模式,并且当所述第一芯片在所述同步信号中加入下降沿后,所述第一芯片在等待所述第一偏移时间后,从所述标定校准模式切换到所述激光探测及测距模式;If the first signal edge added by the first chip to the synchronization signal is a falling edge, the first chip enters the calibration calibration mode after waiting for the first offset time, and when the After the first chip adds a falling edge to the synchronization signal, the first chip switches from the calibration calibration mode to the laser detection and ranging mode after waiting for the first offset time;
    其中,所述预设工作模式包括所述标定校准模式和所述激光探测及测距模式。Wherein, the preset working mode includes the calibration mode and the laser detection and ranging mode.
  4. 根据权利要求1所述的芯片的同步方法,其特征在于,所述第一芯片在所述同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,所述第一芯片进入预设工作模式,包括:The chip synchronization method according to claim 1, wherein the first chip adds a rising edge or a falling edge to the synchronization signal, and after waiting for a first offset time, the first chip enters Preset working modes, including:
    所述第一芯片在所述同步信号中加入上升沿,并在等待所述第一偏移时间后,所述第一芯片进入第一工作模式;Adding a rising edge to the synchronization signal by the first chip, and after waiting for the first offset time, the first chip enters a first working mode;
    或者,所述第一芯片在所述同步信号中加入下降沿,并在等待所述第一偏移时间后,所述第一芯片进入第二工作模式,其中,所述预设工作模式包括所述第一工作模式和所述第二工作模式。Alternatively, the first chip adds a falling edge to the synchronization signal, and after waiting for the first offset time, the first chip enters the second working mode, wherein the preset working mode includes all The first working mode and the second working mode.
  5. 根据权利要求4所述的芯片的同步方法,其特征在于,在所述第一芯片在所述同步信号中加入上升沿的次数达到预置数值时,所述第一芯片停止进入所述第一工作模式;The chip synchronization method according to claim 4, wherein the first chip stops entering the first chip when the number of times that the first chip adds rising edges to the synchronization signal reaches a preset value. Operating mode;
    或者,在所述第一芯片在所述同步信号中加入下降沿的次数达到所述预置数值时,所述第一芯片停止进入所述第二工作模式。Alternatively, when the number of times that the first chip adds falling edges to the synchronization signal reaches the preset value, the first chip stops entering the second working mode.
  6. 根据权利要求1至5任意一项所述的芯片的同步方法,其特征在于,所述第一芯片为主芯片,所述第二芯片为从芯片。The method for synchronizing chips according to any one of claims 1 to 5, wherein the first chip is a master chip, and the second chip is a slave chip.
  7. 一种芯片的同步方法,其特征在于,包括:A method for synchronizing chips, which is characterized in that it includes:
    第二芯片持续接收第一芯片发送的同步信号,所述同步信号为矩形波信号;The second chip continuously receives the synchronization signal sent by the first chip, where the synchronization signal is a rectangular wave signal;
    当所述第二芯片接收到的同步信号中出现上升沿或下降沿后,所述第二芯片在等待第二偏移时间后,所述第二芯片进入预设工作模式。After a rising edge or a falling edge occurs in the synchronization signal received by the second chip, the second chip enters a preset operating mode after waiting for a second offset time.
  8. 根据权利要求7所述的芯片的同步方法,其特征在于,所述当所述第二芯片接收到的同步信号中出现上升沿或下降沿后,所述第二芯片在等待第二偏移时间后,所述第二芯片进入预设工作模式,包括:8. The chip synchronization method according to claim 7, wherein the second chip waits for a second offset time after a rising edge or a falling edge appears in the synchronization signal received by the second chip After that, the second chip enters a preset working mode, including:
    当所述第二芯片接收到的同步信号中出现第一信号沿后,所述第二芯片在等待所述第二偏移时间后,进入激光探测及测距模式;After the first signal edge appears in the synchronization signal received by the second chip, the second chip enters the laser detection and ranging mode after waiting for the second offset time;
    当所述第二芯片接收到的同步信号中出现第二信号沿后,所述第二芯片在等待所述第二偏移时间后,从所述激光探测及测距模式切换到标定校准模式,所述预设工作模式包括所述激光探测及测距模式和所述标定校准模式;After a second signal edge appears in the synchronization signal received by the second chip, the second chip switches from the laser detection and ranging mode to the calibration calibration mode after waiting for the second offset time, The preset working mode includes the laser detection and ranging mode and the calibration mode;
    其中,所述第一信号沿为上升沿且所述第二信号沿为下降沿,或者,所述第一信号沿为下降沿且所述第二信号沿为上升沿。Wherein, the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
  9. 根据权利要求7所述的芯片的同步方法,其特征在于,所述当所述第二芯片接收到的同步信号中出现上升沿或下降沿后,所述第二芯片在等待第二偏移时间后,所述第二芯片进入预设工作模式,包括:8. The chip synchronization method according to claim 7, wherein the second chip waits for a second offset time after a rising edge or a falling edge appears in the synchronization signal received by the second chip After that, the second chip enters a preset working mode, including:
    若所述第二芯片接收到的同步信号中出现的第一个信号沿为上升沿,所述第二芯片在等待所述第二偏移时间后,进入标定校准模式,并且当所述第二芯片接收到的同步信号中出现下降沿后,所述第二芯片在等待所述第二偏移时间后,从所述标定校准模式切换到激光探测及测距模式;If the first signal edge appearing in the synchronization signal received by the second chip is a rising edge, the second chip enters the calibration calibration mode after waiting for the second offset time, and when the second chip After a falling edge occurs in the synchronization signal received by the chip, the second chip switches from the calibration calibration mode to the laser detection and ranging mode after waiting for the second offset time;
    若所述第二芯片接收到的同步信号中出现的第一个信号沿为下降沿,所述第二芯片在等待所述第二偏移时间后,进入所述标定校准模式,并且当所述第二芯片接收到的同步信号中出现上升沿后,所述第二芯片在等待所述第二偏移时间后,从所述标定校准模式切换到所述激光探测及测距模式;If the first signal edge appearing in the synchronization signal received by the second chip is a falling edge, the second chip enters the calibration mode after waiting for the second offset time, and when the After a rising edge occurs in the synchronization signal received by the second chip, the second chip switches from the calibration mode to the laser detection and ranging mode after waiting for the second offset time;
    其中,所述预设工作模式包括所述标定校准模式和所述激光探测及测距模式。Wherein, the preset working mode includes the calibration mode and the laser detection and ranging mode.
  10. 根据权利要求7所述的芯片的同步方法,其特征在于,所述当所述第二芯片接收到的同步信号中出现上升沿或下降沿后,所述第二芯片在等待第二偏移时间后,所述第二芯片进入预设工作模式,包括:8. The chip synchronization method according to claim 7, wherein the second chip waits for a second offset time after a rising edge or a falling edge appears in the synchronization signal received by the second chip After that, the second chip enters a preset working mode, including:
    当所述第二芯片接收到的同步信号中出现上升沿后,所述第二芯片在等待第二偏移时间后,进入第一工作模式;After a rising edge occurs in the synchronization signal received by the second chip, the second chip enters the first working mode after waiting for the second offset time;
    或者,当所述第二芯片接收到的同步信号中出现下降沿后,所述第二芯片在等待所述第二偏移时间后,进入第二工作模式,其中,所述预设工作模式包括所述第一工作模式和 所述第二工作模式。Or, after a falling edge occurs in the synchronization signal received by the second chip, the second chip enters the second working mode after waiting for the second offset time, wherein the preset working mode includes The first working mode and the second working mode.
  11. 根据权利要求10所述的芯片的同步方法,其特征在于,在所述第二芯片接收到的同步信号中上升沿的出现次数达到预置数值时,所述第二芯片停止进入所述第一工作模式;The chip synchronization method according to claim 10, wherein when the number of occurrences of rising edges in the synchronization signal received by the second chip reaches a preset value, the second chip stops entering the first Operating mode;
    或者,在所述第二芯片接收到的同步信号中下降沿的出现次数达到预置数值时,所述第二芯片停止进入所述第二工作模式。Alternatively, when the number of occurrences of falling edges in the synchronization signal received by the second chip reaches a preset value, the second chip stops entering the second working mode.
  12. 根据权利要求7至11任意一项所述的芯片的同步方法,其特征在于,所述第一芯片为主芯片,所述第二芯片为从芯片。The method for synchronizing chips according to any one of claims 7 to 11, wherein the first chip is a master chip, and the second chip is a slave chip.
  13. 一种芯片,其特征在于,包括:A chip, characterized in that it comprises:
    发送单元,用于持续向第二芯片发送同步信号,所述同步信号为矩形波信号;A sending unit, configured to continuously send a synchronization signal to the second chip, where the synchronization signal is a rectangular wave signal;
    处理单元,用于在所述同步信号中加入上升沿或下降沿,并在等待第一偏移时间后,进入预设工作模式。The processing unit is configured to add a rising edge or a falling edge to the synchronization signal, and enter the preset working mode after waiting for the first offset time.
  14. 根据权利要求13所述的芯片,其特征在于,所述处理单元还用于在所述同步信号中加入第一信号沿,并在等待所述第一偏移时间后,进入激光探测及测距模式;The chip according to claim 13, wherein the processing unit is further configured to add a first signal edge to the synchronization signal, and after waiting for the first offset time, enter laser detection and ranging mode;
    所述处理单元还用于在所述同步信号中加入第二信号沿,并在等待所述第一偏移时间后,从所述激光探测及测距模式切换到标定校准模式,所述预设工作模式包括所述激光探测及测距模式和所述标定校准模式;The processing unit is further configured to add a second signal edge to the synchronization signal, and after waiting for the first offset time, switch from the laser detection and ranging mode to the calibration calibration mode, the preset The working mode includes the laser detection and ranging mode and the calibration mode;
    其中,所述第一信号沿为上升沿且所述第二信号沿为下降沿,或者,所述第一信号沿为下降沿且所述第二信号沿为上升沿。Wherein, the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
  15. 根据权利要求13所述的芯片,其特征在于,若所述处理单元在同步信号中加入的第一个信号沿为上升沿,所述处理单元在等待所述第一偏移时间后,进入标定校准模式,并且当所述处理单元在同步信号中加入下降沿后,所述处理单元在等待所述第一偏移时间后,从所述标定校准模式切换到激光探测及测距模式;The chip according to claim 13, wherein if the first signal edge added by the processing unit to the synchronization signal is a rising edge, the processing unit enters calibration after waiting for the first offset time Calibration mode, and after the processing unit adds a falling edge to the synchronization signal, the processing unit switches from the calibration calibration mode to the laser detection and ranging mode after waiting for the first offset time;
    若所述处理单元在同步信号中加入的第一个信号沿为下降沿,所述处理单元在等待所述第一偏移时间后,进入所述标定校准模式,并且当所述处理单元在同步信号中加入下降沿后,所述处理单元在等待所述第一偏移时间后,从所述标定校准模式切换到所述激光探测及测距模式;If the first signal edge added by the processing unit in the synchronization signal is a falling edge, the processing unit enters the calibration calibration mode after waiting for the first offset time, and when the processing unit is in synchronization After the falling edge is added to the signal, the processing unit switches from the calibration mode to the laser detection and ranging mode after waiting for the first offset time;
    其中,所述预设工作模式包括所述标定校准模式和所述激光探测及测距模式。Wherein, the preset working mode includes the calibration mode and the laser detection and ranging mode.
  16. 根据权利要求13所述的芯片,其特征在于,所述处理单元,还用于在所述同步信号中加入上升沿,并在等待所述第一偏移时间后,进入第一工作模式;The chip according to claim 13, wherein the processing unit is further configured to add a rising edge to the synchronization signal, and enter the first working mode after waiting for the first offset time;
    或者,所述处理单元,还用于在所述同步信号中加入下降沿,并在等待所述第一偏移时间后,进入第二工作模式,其中,所述预设工作模式包括所述第一工作模式和所述第二工作模式。Alternatively, the processing unit is further configured to add a falling edge to the synchronization signal, and after waiting for the first offset time, enter the second working mode, wherein the preset working mode includes the first A working mode and the second working mode.
  17. 根据权利要求16所述的芯片,其特征在于,所述处理单元,还用于在所述同步信号中加入上升沿的次数达到预置数值时,停止进入所述第一工作模式;The chip according to claim 16, wherein the processing unit is further configured to stop entering the first working mode when the number of times of adding rising edges to the synchronization signal reaches a preset value;
    或者,所述处理单元,还用于在所述同步信号中加入下降沿的次数达到所述预置数值时,停止进入所述第二工作模式。Alternatively, the processing unit is further configured to stop entering the second working mode when the number of times of adding falling edges to the synchronization signal reaches the preset value.
  18. 一种芯片,其特征在于,包括:A chip, characterized in that it comprises:
    接收单元,用于持续接收第一芯片发送的同步信号,所述同步信号为矩形波信号;A receiving unit, configured to continuously receive a synchronization signal sent by the first chip, where the synchronization signal is a rectangular wave signal;
    处理单元,用于当所述接收单元接收到的同步信号中出现上升沿或下降沿后,在等待第二偏移时间后,进入预设工作模式。The processing unit is configured to enter a preset working mode after waiting for a second offset time after a rising edge or a falling edge occurs in the synchronization signal received by the receiving unit.
  19. 根据权利要求18所述的芯片,其特征在于,当所述接收单元接收到的同步信号中出现第一信号沿后,所述处理单元在等待所述第二偏移时间后,进入激光探测及测距模式;18. The chip according to claim 18, wherein after a first signal edge appears in the synchronization signal received by the receiving unit, the processing unit enters laser detection and detection after waiting for the second offset time Ranging mode;
    当所述接收单元接收到的同步信号中出现第二信号沿后,所述处理单元在等待所述第二偏移时间后,从所述激光探测及测距模式切换到标定校准模式,所述预设工作模式包括所述激光探测及测距模式和所述标定校准模式;After the second signal edge appears in the synchronization signal received by the receiving unit, the processing unit switches from the laser detection and ranging mode to the calibration mode after waiting for the second offset time, and The preset working mode includes the laser detection and ranging mode and the calibration and calibration mode;
    其中,所述第一信号沿为上升沿且所述第二信号沿为下降沿,或者,所述第一信号沿为下降沿且所述第二信号沿为上升沿。Wherein, the first signal edge is a rising edge and the second signal edge is a falling edge, or the first signal edge is a falling edge and the second signal edge is a rising edge.
  20. 根据权利要求18所述的芯片,其特征在于,若所述接收单元接收到的同步信号中出现的第一个信号沿为上升沿,所述处理单元在等待所述第二偏移时间后,进入标定校准模式,并且当所述接收单元接收到的同步信号中出现下降沿后,所述处理单元在等待所述第二偏移时间后,从所述标定校准模式切换到激光探测及测距模式;18. The chip according to claim 18, wherein if the first signal edge appearing in the synchronization signal received by the receiving unit is a rising edge, the processing unit waits for the second offset time, Enter the calibration calibration mode, and when a falling edge appears in the synchronization signal received by the receiving unit, the processing unit switches from the calibration calibration mode to laser detection and ranging after waiting for the second offset time mode;
    若所述接收单元接收到的同步信号中出现的第一个信号沿为下降沿,所述处理单元在等待所述第二偏移时间后,进入所述标定校准模式,并且当所述接收单元接收到的同步信号中出现上升沿后,所述处理单元在等待所述第二偏移时间后,从所述标定校准模式切换到所述激光探测及测距模式;If the first signal edge appearing in the synchronization signal received by the receiving unit is a falling edge, the processing unit enters the calibration calibration mode after waiting for the second offset time, and when the receiving unit After a rising edge appears in the received synchronization signal, the processing unit switches from the calibration mode to the laser detection and ranging mode after waiting for the second offset time;
    其中,所述预设工作模式包括所述标定校准模式和所述激光探测及测距模式。Wherein, the preset working mode includes the calibration mode and the laser detection and ranging mode.
  21. 根据权利要求18所述的芯片,其特征在于,当所述接收单元接收到的同步信号中出现上升沿后,所述处理单元还用于在等待第二偏移时间后,进入第一工作模式;18. The chip according to claim 18, wherein after a rising edge occurs in the synchronization signal received by the receiving unit, the processing unit is further configured to enter the first working mode after waiting for the second offset time ;
    或者,当所述接收单元接收到的同步信号中出现下降沿后,所述处理单元还用于在等待所述第二偏移时间后,进入第二工作模式,其中,所述预设工作模式包括所述第一工作模式和所述第二工作模式。Alternatively, after a falling edge occurs in the synchronization signal received by the receiving unit, the processing unit is further configured to enter the second working mode after waiting for the second offset time, wherein the preset working mode Including the first working mode and the second working mode.
  22. 根据权利要求21所述的芯片,其特征在于,在所述接收单元接收到的同步信号中上升沿的出现次数达到预置数值时,所述处理单元还用于停止进入所述第一工作模式;The chip according to claim 21, wherein when the number of occurrences of rising edges in the synchronization signal received by the receiving unit reaches a preset value, the processing unit is further configured to stop entering the first working mode ;
    或者,在所述接收单元接收到的同步信号中下降沿的出现次数达到预置数值时,所述处理单元停止进入所述第二工作模式。Alternatively, when the number of occurrences of falling edges in the synchronization signal received by the receiving unit reaches a preset value, the processing unit stops entering the second working mode.
  23. 一种芯片,包括处理器和存储器,其特征在于,所述处理器与存储器耦合,用于读取并执行所述存储器中存储的指令,实现如权利要求1-6中任一项的步骤。A chip comprising a processor and a memory, wherein the processor is coupled with the memory, and is used to read and execute instructions stored in the memory to implement the steps according to any one of claims 1-6.
  24. 一种芯片,包括处理器和存储器,其特征在于,所述处理器与存储器耦合,用于读取并执行所述存储器中存储的指令,实现如权利要求7-12中任一项的步骤。A chip comprising a processor and a memory, wherein the processor is coupled with the memory, and is configured to read and execute instructions stored in the memory to implement the steps according to any one of claims 7-12.
  25. 一种芯片系统,其特征在于,包括权利要求13-17中任一项的芯片和权利要求18-22任一项的芯片。A chip system characterized by comprising the chip of any one of claims 13-17 and the chip of any one of claims 18-22.
PCT/CN2020/100392 2019-11-15 2020-07-06 Chip synchronization method and related apparatus WO2021093346A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911124104.2 2019-11-15
CN201911124104.2A CN112817368B (en) 2019-11-15 2019-11-15 Chip synchronization method and related device

Publications (1)

Publication Number Publication Date
WO2021093346A1 true WO2021093346A1 (en) 2021-05-20

Family

ID=75852121

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/100392 WO2021093346A1 (en) 2019-11-15 2020-07-06 Chip synchronization method and related apparatus

Country Status (2)

Country Link
CN (1) CN112817368B (en)
WO (1) WO2021093346A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11822377B2 (en) 2022-01-11 2023-11-21 Waymo Llc Timebase synchronization using pulsed signal injection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101738600A (en) * 2008-11-14 2010-06-16 武汉大学 High-frequency ground wave radar networking clock synchronization control method and device thereof
CN103516506A (en) * 2012-06-27 2014-01-15 美国博通公司 Multichip synchronization system
CN106774634A (en) * 2016-12-08 2017-05-31 郑州云海信息技术有限公司 A kind of skewed clock bearing calibration, device and system
US20190196532A1 (en) * 2017-12-26 2019-06-27 Samsung Electronics Co., Ltd. Device including digital interface with mixture of synchronous and asynchronous communication, digital processing system including the same, and digital processing method performed by the same
CN110389924A (en) * 2018-04-19 2019-10-29 大唐移动通信设备有限公司 A kind of serial bus device and setting method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7231538B2 (en) * 2003-11-06 2007-06-12 Mentor Graphics (Holdings) Ltd. Synchronized communication between integrated circuit chips
US7382844B2 (en) * 2005-02-11 2008-06-03 International Business Machines Corporation Methods to self-synchronize clocks on multiple chips in a system
US10095263B1 (en) * 2015-12-15 2018-10-09 Marvell International Ltd. Apparatus and method for calibrating signal synchronization

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101738600A (en) * 2008-11-14 2010-06-16 武汉大学 High-frequency ground wave radar networking clock synchronization control method and device thereof
CN103516506A (en) * 2012-06-27 2014-01-15 美国博通公司 Multichip synchronization system
CN106774634A (en) * 2016-12-08 2017-05-31 郑州云海信息技术有限公司 A kind of skewed clock bearing calibration, device and system
US20190196532A1 (en) * 2017-12-26 2019-06-27 Samsung Electronics Co., Ltd. Device including digital interface with mixture of synchronous and asynchronous communication, digital processing system including the same, and digital processing method performed by the same
CN110389924A (en) * 2018-04-19 2019-10-29 大唐移动通信设备有限公司 A kind of serial bus device and setting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11822377B2 (en) 2022-01-11 2023-11-21 Waymo Llc Timebase synchronization using pulsed signal injection

Also Published As

Publication number Publication date
CN112817368A (en) 2021-05-18
CN112817368B (en) 2023-03-03

Similar Documents

Publication Publication Date Title
EP1451666B1 (en) Glitch free clock selection switch
KR100301720B1 (en) Clock control device and method
JP5317356B2 (en) Clock control signal generation circuit, clock selector, and information processing apparatus
US8627132B2 (en) Autonomous multi-device event synchronization and sequencing technique eliminating master and slave assignments
US6266780B1 (en) Glitchless clock switch
JP2018506232A (en) Receive clock calibration for serial bus
US8831160B2 (en) Method and apparatus for switching clock frequency in a system-in-package device
JP2023515026A (en) CLOCK SIGNAL GENERATING CIRCUIT, DRIVING METHOD AND ELECTRONIC DEVICE
US7656980B2 (en) Clock switching circuit
WO2021093346A1 (en) Chip synchronization method and related apparatus
JPH07147573A (en) Dynamic clock switching circuit
CN103684375A (en) Clock frequency division switching circuit and clock chip
CN110502066B (en) Clock switching device and method and electronic equipment
US7164296B2 (en) Runt-pulse-eliminating multiplexer circuit
CN114371876A (en) Configuration circuit of register and integrated circuit chip
EP3812874B1 (en) Glitch-free clock multiplexer
US6825705B2 (en) Clock signal generation circuit and audio data processing apparatus
US11695399B2 (en) Digital timer delay line with sub-sample accuracy
WO2024066950A1 (en) Signal processing method, signal processing apparatus, chip, and electronic device
US11545987B1 (en) Traversing a variable delay line in a deterministic number of clock cycles
KR101211684B1 (en) Semiconductor device and operating method thereof
CN113985960A (en) Glitch-free switching circuit of system clock and reset implementation method thereof
EP2447805A1 (en) Apparatus and method for synchronizing and providing a glitch-free clock
JP4750505B2 (en) Clock switching circuit
KR20170088751A (en) Semiconductor device, semiconductor system and method for operating semiconductor device

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: 20887465

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20887465

Country of ref document: EP

Kind code of ref document: A1