Laser radar chip and control method thereof, laser radar
By detecting and repairing memory abnormalities after the lidar chip is powered on, the safety of data acquisition of lidar chips is solved, its reliability and stability are improved, and the safe operation of the vehicle is ensured.
Patent Information
- Application Number
- CN202410824940.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-06-25
AI Technical Summary
In the fields of smart transportation and autonomous driving, the data acquisition safety of lidar chips affects the safety of vehicles, and it is difficult for the existing technology to effectively detect and repair memory abnormalities, resulting in safety hazards.
A lidar chip is designed, including the main control circuit, memory control circuit and memory repair circuit. After powering up, the test command is output to detect whether the memory is abnormal, and when abnormality is found, the repair command is output to ensure the lidar chip's Reliable operation.
By detecting and repairing the memory after the lidar chip is powered on, safety risks are reduced, the reliability and stability of the lidar chip are improved, and personal safety is guaranteed.
Smart Images

Figure CN118409299B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of laser radar technology, and in particular to a laser radar chip and a control method thereof, and a laser radar. Background Art
[0002] In the fields of smart transportation / autonomous driving, the key point is to quickly and accurately perceive the surrounding environment of the road / autonomous driving vehicle. According to the road, vehicle position and obstacle information obtained by the sensor equipment, the road signal control is coordinated to improve the quality and efficiency of road management; the decision-making of the autonomous driving vehicle is controlled, and the safe distance between the autonomous driving vehicles is adjusted to ensure that the vehicle can drive safely and reliably on the road. As one of the most important autonomous driving sensors, LiDAR can provide the decision-making system with the most important information about the location / size / motion of traffic participants in the fields of smart transportation / autonomous driving. It is precisely because LiDAR is the eyes of the autonomous driving vehicle that how to protect the security of LiDAR data collection is particularly important, which is directly related to the life safety of the driver and passengers of the vehicle. Summary of the invention
[0003] The embodiments of the present application provide a laser radar chip and a control method thereof, and a laser radar, which can implement a memory detection and repair process after the laser radar chip is powered on to ensure the subsequent reliable operation of the laser radar chip, which is beneficial to reducing safety hazards and can effectively protect personal safety.
[0004] In a first aspect, an embodiment of the present application provides a laser radar chip, comprising: a main control circuit, used to output a test instruction after the laser radar chip is powered on; a memory control circuit and a memory, wherein the memory control circuit is used to control the operation of the memory based on the test instruction to test whether the memory is abnormal, and output an abnormal feedback signal to the main control circuit when the memory is abnormal; the main control circuit is also used to output a repair instruction in response to the abnormal feedback signal; and a memory repair circuit is used to repair the abnormal address of the memory based on the repair instruction.
[0005] In some embodiments, the memory control circuit includes: a memory instruction parsing module, used to parse the test instruction into a memory control instruction and output the memory control instruction; a memory control module, used to control the memory operation based on the memory control instruction to test whether the memory is abnormal, and output the abnormal feedback signal to the main control circuit when the memory is abnormal.
[0006] In some embodiments, the memory instruction parsing module is also used to output a first selection signal, and parse the test instruction into a first control instruction based on a preset protocol; the lidar chip also includes: a first selector, the first selector inputs the first control instruction and an external second control instruction, and outputs the first control instruction when the first selector receives the first selection signal, and outputs the second control instruction when the first selector does not receive the first selection signal; a first parsing module, used to parse the first control instruction or the second control instruction into the memory control instruction, and output the memory control instruction.
[0007] In some embodiments, the memory repair circuit includes: a memory repair control module, used to determine and output the abnormal address; a memory repair mapping module and a redundant memory, wherein the memory repair mapping module is used to switch the physical access object to access the redundant memory when the physical access object accesses the abnormal address, so as to repair the abnormal address.
[0008] In some embodiments, the memory repair control module is also used to output a first repair enable signal; the memory repair circuit also includes a second selector, which is used to select the memory repair control module to take over the memory access when the first repair enable signal is received, and to select the memory control circuit to take over the memory access when the first repair enable signal is not received.
[0009] In some embodiments, the memory repair control module is also used to output a second repair enable signal; the memory repair mapping module includes: a first cache unit, used to cache the second repair enable signal; a second cache unit, used to cache the exception address; a comparison unit, used to compare the actual address of the memory with the exception address in response to the second repair enable signal, and switch the physical access object to access the redundant memory when the actual address is the same as the exception address.
[0010] In the second aspect, an embodiment of the present application provides a control method based on a laser radar chip, including: outputting a test instruction after the laser radar chip is powered on to test the memory in the laser radar chip; if it is determined that the memory is abnormal, outputting a repair instruction to repair the memory; if it is determined that the memory is repaired successfully, determining that the laser radar chip is normal, and controlling the laser radar chip to start normally.
[0011] In some embodiments, the control method further includes: if it is determined that the memory is normal, then determining that the laser radar chip is normal, and controlling the laser radar chip to start normally.
[0012] In some embodiments, the control method further includes: if it is determined that the memory repair has failed, determining that the laser radar chip is abnormal, and stopping controlling the normal startup of the laser radar chip.
[0013] In a third aspect, an embodiment of the present application provides a laser radar, comprising: a shell and the laser radar chip as described above disposed in the shell.
[0014] Compared with the prior art, the laser radar chip of the embodiment of the present application includes a main control circuit, a memory control circuit, a memory and a memory repair circuit. After the laser radar chip is powered on, the main control circuit outputs a test instruction so that the memory control circuit controls the memory operation to test whether the memory is abnormal, thereby realizing the detection process of the memory. At the same time, when an abnormality occurs in the memory, the memory control circuit outputs an abnormal feedback signal to the main control circuit so that the main control circuit outputs a repair instruction to the memory repair circuit, and then the memory repair circuit repairs the abnormal address of the memory, thereby, it is also possible to realize the repair process of the memory when the memory is abnormal. In summary, the memory is detected and repaired after the laser radar chip is powered on to ensure the subsequent reliable operation of the laser radar chip, which is conducive to reducing safety hazards, thereby effectively protecting personal safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] One or more embodiments are exemplarily described by the figures in the corresponding drawings, and these exemplary descriptions are not intended to limit the embodiments. Elements with the same reference numerals in the drawings represent similar elements.
[0016] Figure 1 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 1 ;
[0017] Figure 2 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 2 ;
[0018] Figure 3 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 3 ;
[0019] Figure 4 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 4 ;
[0020] Figure 5 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 5 ;
[0021] Figure 6 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 6 ;
[0022] Figure 7 This is the process of the control method based on the laser radar chip provided in the embodiment of the present application Figure 1 ;
[0023] Figure 8 This is the process of the control method based on the laser radar chip provided in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION
[0024] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be described clearly and in detail in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0025] It should be noted that, when an element is described as being “connected to” another element, it may be directly connected to the other element, or one or more intervening elements may exist therebetween.
[0026] In addition, the technical features involved in the various embodiments of the present application described below can be combined with each other as long as there is no structural conflict between them.
[0027] In LiDAR, LiDAR chip is the core component, responsible for the collection, processing and transmission of all LiDAR information. Especially in vehicle-mounted systems, LiDAR chip undertakes important object sensing functions. Once the LiDAR chip is abnormal during use, it will directly affect the life safety of the vehicle's drivers and passengers. Therefore, how to improve the reliability and stability of LiDAR chips during use is particularly important.
[0028] Based on this, an embodiment of the present application provides a laser radar chip that can detect and repair the memory when powered on, to ensure that the laser radar chip works normally only when there is no abnormality in the memory, thereby improving the reliability and stability of the laser radar chip during use, reducing safety hazards, and effectively protecting personal safety.
[0029] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of the laser radar chip provided in the embodiment of the present application. Figure 1 As shown, the laser radar chip 100 includes a main control circuit 10, a memory control circuit 20, a memory 30 and a memory repair circuit 40.
[0030] The memory control circuit 20 is connected to the main control circuit 10 and the memory repair circuit 40 respectively, and the memory repair circuit 40 is also connected to the memory 30 .
[0031] After the laser radar chip 100 is powered on, the main control circuit 10 outputs a test instruction to the memory control circuit 20. After receiving the test instruction, the memory control circuit 20 controls the memory 30 to run to test whether the memory 30 is abnormal, thereby realizing the detection process of the memory 30. Specifically, after receiving the test instruction, the memory control circuit 20 first controls the memory repair circuit 40 to stop running. At this time, the memory control circuit 20 takes over the access to the memory 30 through the memory repair circuit 40 to control the memory 30 to run to test whether the memory 30 is abnormal.
[0032] Among them, the abnormality of the memory includes at least the following situations: the first situation is that a certain storage unit in the memory is damaged or fails, resulting in data read / write errors. This type of failure is usually caused by hardware, such as damage to the memory chip; the second situation is that a certain bit in the memory changes without external interference, which may cause data errors; the third situation is that multiple operations access the same storage unit at the same time, resulting in competition conditions and data errors; the fourth situation is that the data in the memory is inconsistent or damaged. When the laser radar chip 100 is powered on, the self-diagnosis and detection of the memory 30 can timely discover the faults in the memory 30.
[0033] If there is an abnormality in the memory 30, the memory control circuit 20 outputs an abnormal feedback signal to the main control circuit 10 when the memory 30 is abnormal. After receiving the abnormal feedback signal, the main control circuit 10 outputs a repair instruction and inputs it to the memory repair circuit 40 through the memory control circuit 20. Then, after receiving the repair instruction, the memory repair circuit 40 takes over the access to the memory 30 to repair the abnormal address of the memory 30. Thus, the repair process of the memory 30 can also be implemented when the memory 30 is abnormal to prevent data loss, ensure the integrity and reliability of the data, and thus improve the reliability and stability of the operation of the laser radar chip 100.
[0034] In summary, the memory 30 is detected and repaired after the laser radar chip 100 is powered on, so that the laser radar chip 100 can work normally only when there is no abnormality in the memory 30, that is, normally perform functions such as emitting lasers, receiving reflected signals, signal processing and data output. In this case, the functions of the laser radar chip 100 can operate reliably, which is conducive to reducing safety hazards, thereby effectively ensuring personal safety.
[0035] In some embodiments, the main control circuit 10 is implemented as a functional module, such as an FSM module, that configures different states of the system (such as a detection state for detecting the memory 30 and a repair state for repairing the memory 30). FSM (Finite State Machine) is a mathematical model used in computer science and engineering to describe the transition and behavior of a system between different states. FSM includes components such as defined states, transition conditions between states, output logic, and control logic, and is used to simulate and design the behavior of the system. FSM can be implemented by software or by hardware circuits.
[0036] In some other embodiments, the main control circuit 10 is implemented as a programmable controller, such as an MCU (Microcontroller Unit).
[0037] In one embodiment, if Figure 2 As shown, the memory control circuit 20 includes a memory instruction parsing module 21 and a memory control module 22 .
[0038] The memory instruction parsing module 21 is connected to the memory control module 22 and the main control circuit 10 respectively. The memory instruction parsing module 21 is used to parse the test instruction into a memory control instruction and output the memory control instruction to the memory control module 22.
[0039] In some embodiments, the memory instruction parsing module 21 is configured as an MBIST instruction parsing module, which is a hardware module for identifying and parsing MBIST commands. Specifically, the memory instruction parsing module 21 is configured to identify and parse MBIST test commands from the main control circuit 10, including commands such as starting a test, stopping a test, and reading test results. MBIST (Memory Built-In Self-Test) is a technology for testing memories in integrated circuits.
[0040] The memory control module 22 is also connected to the memory repair circuit 40. The memory control module 22 is used to control the operation of the memory 30 based on the memory control instruction to test whether the memory 30 is abnormal, and output an abnormal feedback signal to the main control circuit 10 when the memory 30 is abnormal. Specifically, after receiving the memory control instruction, the memory control module 22 first controls the memory repair circuit 40 to stop running. At this time, the memory control module 22 takes over the access to the memory 30 through the memory repair circuit 40 to control the operation of the memory 30 to test whether the memory 30 is abnormal, and outputs an abnormal feedback signal to the main control circuit 10 when the memory 30 is abnormal.
[0041] In some embodiments, be configured as MBIST instruction parsing module corresponding to memory instruction parsing module 21, memory control module 22 is configured as MBIST control circuit, and it is used to control and carry out the hardware module of MBIST test.Be specifically, memory control module 22 comprises one or more MBIST engines, and MBIST engine is used to generate test sequence.After receiving the memory control instruction from memory instruction parsing module 21, memory control module 22 drives memory 30 to operate under test module, and under test mode, whether abnormal based on test sequence test memory 30, such as whether the read-write operation of test memory 30 is abnormal.Wherein, test sequence refers to a series of test operation sequences that are used to test memory 30, and these test operations comprise the test data of inputting specific mode, output data are compared etc.
[0042] It is understandable that in the embodiments of the present application, one memory 30 is used as an example. In other embodiments, the same method can be used to detect and repair all memories in the laser radar chip 100. Each memory is connected to a memory control module 22 and a memory repair circuit 40.
[0043] Specifically, the laser radar chip 100 includes N memories, N memory control modules and N memory repair circuits, where N is an integer greater than or equal to 1. The N memories include a first memory, a second memory, ..., and an Nth memory. The N memory control modules include a first memory control module, a second memory control module, ..., and an Nth memory control module. The N memory repair circuits include a first memory repair circuit, a second memory repair circuit, ..., and an Nth memory repair circuit. The first memory is connected to the first memory control module through the first memory repair circuit; the second memory is connected to the second memory control module through the second memory repair circuit; ...; the Nth memory is connected to the Nth memory repair module through the Nth memory repair circuit. In addition, the N memory control modules are all connected to the memory instruction parsing module 21 to receive memory control instructions.
[0044] After the laser radar chip 100 is powered on, the main control circuit 10 outputs a test instruction to the memory instruction parsing module 21. The memory instruction parsing module 21 outputs a memory control instruction to N memory control modules 22. After receiving the memory control instruction, the N memory control modules 22 control the memory 30 connected thereto to run to test whether the memory 30 is abnormal, thereby realizing the detection process of all memories 30 in the laser radar chip 100. That is, if the memory instruction parsing module 21 outputs a memory control instruction to N memory control modules 22, then after receiving the test instruction, the first memory control module controls the first memory connected thereto to run to test whether the first memory is abnormal; after receiving the test instruction, the second memory control module controls the second memory connected thereto to run to test whether the second memory is abnormal; ...; after receiving the test instruction, the Nth memory control module controls the Nth memory connected thereto to run to test whether the Nth memory is abnormal.
[0045] If there is at least one abnormal memory among the N memories, when an abnormality occurs in any memory, the memory control module connected thereto outputs an abnormal feedback signal to the main control circuit 10, so that the main control circuit 10 outputs a repair instruction to the corresponding memory repair circuit, and repairs the abnormal address of the memory through the memory repair circuit. For example, if there is an abnormality in the first memory among the N memories, when an abnormality occurs in the first memory, the first memory control module connected to the first memory outputs an abnormal feedback signal to the main control circuit 10, so that the main control circuit 10 outputs a repair instruction to the first memory repair circuit, and repairs the abnormal address of the first memory through the first memory repair circuit.
[0046] In one embodiment, if Figure 3 As shown, the laser radar chip 100 also includes a first selector 50 and a first analysis module 60 .
[0047] Among them, the memory instruction parsing module 21 is also used to output a first selection signal to the first selector 50 to control the first selector 50 to select the output signal. The memory instruction parsing module 21 is also used to parse the test instruction into a first control instruction S1 based on a preset protocol. The preset protocol is a pre-set protocol, which can be set based on the actual application scenario, and the embodiments of the present application do not impose specific restrictions on this. In some embodiments, the preset protocol is a JTAG (Joint Test Action Group) protocol, and the JTAG protocol defines a set of functions and technologies for testing integrated circuits, including boundary scan testing and test access port (Test Access Port, TAP). Among them, TAP is a hardware interface, consisting of a series of state machines and signal lines, mainly used to control and access the boundary scan chain (boundary scan chain) and other test functions of the target device. In these embodiments, the first control instruction S1 is a TAP control instruction.
[0048] The first selector 50 inputs the first control instruction S1 and the external second control instruction S2, and outputs the first control instruction S1 when the first selector 50 receives the first selection signal, and outputs the second control instruction S2 when the first selector does not receive the first selection signal.
[0049] In actual applications, when the lidar chip 100 performs a self-test on the memory 30, the memory instruction parsing module 21 outputs a first selection signal to receive corresponding test content from the memory instruction parsing module 21. In this case, due to time and capacity limitations, the coverage rate of the test content may be low, that is, the test content at this time cannot perform a comprehensive test on the memory 30, and mainly completes the test of key functions, such as the memory's function of reading data.
[0050] When the laser radar chip 100 needs to be tested in batches during the production process, the memory instruction parsing module 21 in each laser radar chip 100 stops outputting the first selection signal to receive the corresponding test content from the external test machine, and this part of the test content is parsed into the second control instruction S2 based on the preset protocol. Among them, the test content set in the test machine can have a high coverage rate to perform a comprehensive test on the memory 30, thereby ensuring that the laser radar chip 100 can meet the expected performance and functional requirements when leaving the factory, and has high quality and reliability.
[0051] The first parsing module 60 is used to parse the first control instruction or the second control instruction into a memory control instruction, and output the memory control instruction to the memory control module. In some embodiments, when the preset protocol is configured as the JTAG protocol, the first control instruction S1 and the second control instruction S2 are TAP control instructions with different contents, and the first parsing module 60 is configured as a TAP parsing module, which is used to parse the TAP control instruction into a memory control instruction.
[0052] In one embodiment, if Figure 4 As shown, the memory repair circuit 40 includes a memory repair control module 41 , a memory repair mapping module 42 and a redundant memory 43 .
[0053] The memory repair control module 41 is connected to the memory control module 22 and the memory repair mapping module 42 respectively. The memory repair control module 41 is used to determine and output the abnormal address. Specifically, the memory repair control module 41 can perform error location on the abnormal memory 30 to determine the address where the data error or data loss occurs in the memory 30, which is the abnormal address, and output the abnormal address to the memory repair mapping module 42.
[0054] The memory repair mapping module 42 is also connected to the memory control module 22, the redundant memory 43 and the memory 30 respectively. The memory repair mapping module 42 is used to switch the physical access object to access the redundant memory 43 to repair the abnormal address when the physical access object accesses the abnormal address. The redundant memory 43 can achieve redundant backup and fault tolerance of data by retaining additional storage devices or storage units in the system. By switching the physical access object to access the redundant memory 43 when the physical access object accesses the abnormal address, data repair and recovery can be performed without affecting performance. Therefore, even if the memory 30 fails, the laser radar chip 100 can still continue to operate and keep the data intact, which is beneficial to enhance the reliability of the laser radar chip 100.
[0055] In one embodiment, if Figure 5 As shown, the memory repair circuit 40 further includes a second selector 44 .
[0056] The memory repair control module 41 is also connected to the second selector 44. The memory repair control module 41 is also used to output a first repair enable signal to the second selector 44.
[0057] The second selector 44 is also connected to the memory control module 22 and the memory repair mapping module 42 respectively. The second selector 44 is used to select the memory repair control module 41 to take over the memory 30 access when the first repair enable signal is received, and is used to select the storage control module 22 in the memory control circuit 20 to take over the memory 30 access when the first repair enable signal is not received.
[0058] When the memory control module 22 receives a memory control instruction, the memory control module 22 controls the memory repair control module 41 to stop outputting the first repair enable signal, so that the second selector 44 selects the memory control module 22 to take over the access to the memory 30, thereby enabling the memory control module 22 to control the operation of the memory 30 to test whether the memory 30 is abnormal, and output an abnormal feedback signal to the main control circuit 10 when the memory 30 is abnormal.
[0059] When the memory control module 22 receives the repair instruction, the memory control module 22 controls the memory repair control module 41 to output a first repair enable signal so that the second selector 44 selects the memory repair control module 41 to take over the access of the memory 30 to repair the abnormal address of the memory 30 .
[0060] In one embodiment, if Figure 6 As shown, the memory repair mapping module 42 includes a first cache unit 421 , a second cache unit 422 and a comparison unit 423 .
[0061] The memory repair control module 41 is connected to the first cache unit 421 and the second cache unit 422 respectively. The memory repair control module 41 outputs a second repair enable signal to the first cache unit 421 and outputs an abnormal address to the second cache unit 422.
[0062] The first cache unit 421 is used to cache the second repair enable signal. The second cache unit 422 is used to cache the abnormal address. By setting the first cache unit 421 and the second cache unit 422, temporary storage of data can be achieved. When the data needs to be accessed, it can be directly read from the first cache unit 421 and the second cache unit 422, which is conducive to improving the data access speed.
[0063] The comparison unit 423 is used to respond to the second repair enable signal, compare the actual address of the memory 30 with the abnormal address, and switch the physical access object to access the redundant memory 43 when the actual address is the same as the abnormal address, so as to achieve data repair and recovery without affecting performance. Thus, even if the memory 30 fails, the laser radar chip 100 can continue to operate and keep the data intact, which is conducive to enhancing the reliability of the laser radar chip 100.
[0064] Please refer to Figure 7 , Figure 7 This is a flow chart of a control method based on a laser radar chip provided in an embodiment of the present application. Figure 7 As shown, the control method based on the laser radar chip includes the following steps:
[0065] Step 701: After the laser radar chip is powered on, a test instruction is output to test the memory in the laser radar chip.
[0066] Step 702: If it is determined that the memory is abnormal, a repair instruction is output to repair the memory.
[0067] Step 703: If it is determined that the memory repair is successful, then it is determined that the laser radar chip is normal, and the laser radar chip is controlled to start normally.
[0068] In one embodiment, the control method based on the laser radar chip also includes the following steps: if it is determined that the memory is normal, then it is determined that the laser radar chip is normal, and the laser radar chip is controlled to start normally.
[0069] In one embodiment, the control method based on the laser radar chip also includes the following steps: if it is determined that the memory repair fails, the laser radar chip is determined to be abnormal, and the control of the normal startup of the laser radar chip is stopped.
[0070] Through the above process, the memory is detected and repaired when the lidar chip is powered on, and the lidar chip is controlled to start normally only when there is no abnormality in the memory or the memory is repaired successfully. This can prevent data loss or system instability caused by memory abnormalities, thereby ensuring the reliability of the lidar chip operation and the security of data.
[0071] It should be understood that the specific control of the laser radar chip in the method embodiment and the beneficial effects produced can refer to the corresponding description in the above-mentioned laser radar chip embodiment, and for the sake of brevity, it will not be repeated here.
[0072] Please refer to Figure 8 , Figure 8 This is a flow chart of a control method based on a laser radar chip provided in another embodiment of the present application. Figure 8As shown, the control method based on the laser radar chip includes the following process. First, the laser radar chip is powered on and a test instruction is output, and then the test process of the memory can be completed, and whether the memory is abnormal is determined based on the test results. If it is determined that the memory is not abnormal based on the test results of the memory, the laser radar chip is determined to be normal, and then the laser radar chip is controlled to start normally. If it is determined that the memory is abnormal based on the test results of the memory, a repair instruction is output, and then the repair process of the memory can be implemented, and whether the repair is successful is determined based on the repair results. If it is determined that the repair of the memory is unsuccessful based on the repair results, the laser radar chip is determined to be abnormal, and the control of the laser radar chip startup is stopped. If it is determined that the repair of the memory is successful based on the repair results, the laser radar chip is determined to be normal, and the laser radar chip is controlled to start normally. In summary, on the one hand, self-diagnosis and detection of the memory when the laser radar chip is powered on can timely discover the faults in the memory; on the other hand, the repair process of the memory is implemented when the memory is abnormal, which can prevent data loss, ensure the integrity and reliability of the data, and thus improve the reliability and stability of the laser radar chip operation.
[0073] An embodiment of the present application also provides a laser radar, which includes a shell and the laser radar chip 100 in any embodiment of the present application, and the laser radar chip 100 is disposed in the shell.
[0074] The above descriptions are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
[0075] The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them. Under the idea of the present application, the technical features in the above embodiments or different embodiments can also be combined, and the steps can be implemented in any order. It should be understood by ordinary technicians in this field that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A laser radar chip, characterized in that: include: A main control circuit, used for outputting a test instruction after the laser radar chip is powered on; A memory control circuit and a memory, wherein the memory control circuit is used to control the operation of the memory based on the test instruction to test whether the memory is abnormal, and output an abnormal feedback signal to the main control circuit when the memory is abnormal; The main control circuit is also used to output a repair instruction in response to the abnormal feedback signal; A memory repair circuit, used for repairing the abnormal address of the memory based on the repair instruction; The memory control circuit includes a memory instruction parsing module and a memory control module, and the laser radar chip also includes a first selector and a first parsing module; The memory instruction parsing module is used to output a first selection signal when the laser radar chip performs a self-test on the memory, and stop outputting the first selection signal when the laser radar chip needs to be tested in a batch production process, and parse the test instruction into a first control instruction based on a preset protocol; The first selector is used to input the first control instruction and a second control instruction outside the laser radar chip, and output the first control instruction when the first selector receives the first selection signal, and output the second control instruction when the first selector does not receive the first selection signal, wherein the coverage rate corresponding to the test content received from the memory instruction parsing module when the first selector outputs the first control instruction is lower than the coverage rate corresponding to the test content received from the external tester when the first selector outputs the second control instruction; The first parsing module is used to parse the first control instruction or the second control instruction into a memory control instruction, and output the memory control instruction; The memory control module is used to control the operation of the memory based on the memory control instruction to test whether the memory is abnormal, and output the abnormal feedback signal to the main control circuit when the memory is abnormal.
2. The laser radar chip according to claim 1, characterized in that: The memory repair circuit comprises: A memory repair control module, used for determining and outputting the abnormal address; A memory repair mapping module and a redundant memory, wherein the memory repair mapping module is used to switch the physical access object to access the redundant memory when the physical access object accesses the abnormal address, so as to repair the abnormal address.
3. The laser radar chip according to claim 2, characterized in that: The memory repair control module is also used to output a first repair enable signal; The memory repair circuit also includes a second selector, which is used to select the memory repair control module to take over the memory access when the first repair enable signal is received, and is used to select the memory control circuit to take over the memory access when the first repair enable signal is not received.
4. The laser radar chip according to claim 2, characterized in that: The memory repair control module is further used to output a second repair enable signal; The memory repair mapping module includes: A first cache unit, configured to cache the second repair enable signal; A second cache unit, used for caching the exception address; A comparing unit is used to compare the actual address of the memory with the abnormal address in response to the second repair enable signal, and switch the physical access object to access the redundant memory when the actual address is the same as the abnormal address.
5. A laser radar, characterized in that: include: A shell and a laser radar chip as described in any one of claims 1 to 4 arranged in the shell.
