A multi-core microprocessor and a control method thereof

By introducing a signal filter into a multi-core microprocessor, filtering the initial control signal and generating a set of valid and invalid signals, the error triggering problem during control signal transmission in the prior art is solved, and the operation accuracy and efficiency of the processor are improved.

CN114791897BActive Publication Date: 2024-11-19SHENZHEN HANGSHUN CHIP TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210388330.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-13
Publication Date
2024-11-19
Estimated Expiration
2042-04-13

AI Technical Summary

Technical Problem

Existing multi-core microprocessors lack filtering mechanisms when controlling signal transmission, resulting in interrupts of other cores being triggered or falsely awakened.

Method used

A multi-core microprocessor is designed, including a signal generation module, a signal filter and an edge detection module. The signal filter filters the initial control signal through preset logic operations to generate a set of valid and invalid control signals and send it to The corresponding processing core is used to perform the corresponding control operations to ensure that only valid signals trigger the valid operation.

Benefits of technology

It effectively avoids interrupts, false triggering or false wake-up of other processing cores, and improves the accuracy and efficiency of control signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114791897B_ABST
    Figure CN114791897B_ABST
Patent Text Reader

Abstract

The present application discloses a multi-core microprocessor and a control method thereof. The multi-core microprocessor includes a plurality of processing cores, and the processing core includes a signal generation module, a signal filter, an edge detection module, and a signal execution module. The signal filter is electrically connected to the edge detection modules of the remaining processing cores, respectively, wherein the signal filter is configured to filter the initial control signal through a preset logical operation to generate a corresponding control signal set, and the control signal set includes at least one valid control signal and at least one invalid control signal. The present application can solve the technical problem that the control between multiple processing cores in the prior art lacks a corresponding filtering mechanism for the control signal issued by a certain processing core, which easily leads to the interruption of other cores being mistriggered or misawakened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of microprocessor technology, and in particular, relates to a multi-core microprocessor and a control method thereof. Background Art

[0002] With the continuous development and improvement of science and technology, the demand for microprocessor functions is getting higher and higher. Ordinary single-core microprocessors can no longer meet the requirements of applications in some places, and multi-core microprocessors have been born. On the one hand, multi-core microprocessors are gradually favored by customers due to their execution efficiency advantages. On the other hand, some problems brought about by the birth of multi-core microprocessors have also attracted widespread attention, especially the problem of how to reduce power consumption while ensuring efficiency. To this end, in the prior art, the multi-core microprocessor generally only wakes up a certain processing core or several processing cores when a certain processing core or several processing cores are required to perform tasks, and the remaining processing cores that do not need to perform tasks are in a dormant state, ensuring that the multi-core microprocessor reduces power consumption as much as possible while ensuring efficiency. However, the prior art lacks a corresponding filtering mechanism for the control signal sent by a certain processing core, which easily leads to the interruption of other cores being mistriggered or misawakened. Summary of the invention

[0003] The embodiments of the present application provide a multi-core microprocessor and a control method thereof, aiming to solve the technical problem that in the prior art, control between multiple processing cores lacks a corresponding filtering mechanism for the control signal issued by a certain processing core, which easily leads to the false triggering or false wake-up of interrupts of other cores.

[0004] In a first aspect, an embodiment of the present application provides a multi-core microprocessor, comprising a plurality of processing cores, wherein the processing core comprises a signal generation module, a signal filter, an edge detection module and a signal execution module, wherein the signal filter is electrically connected to the edge detection modules of the remaining processing cores, respectively,

[0005] The signal generating module is configured to output an initial control signal based on the current working state;

[0006] The signal filter is configured to filter the initial control signal through a preset logic operation to generate a corresponding control signal set, wherein the control signal set includes at least one valid control signal and at least one invalid control signal;

[0007] The edge detection module is configured to record the corresponding valid control signal or invalid control signal through asynchronous logic to generate a corresponding execution signal;

[0008] The signal execution module is configured to execute corresponding management and control operations according to the execution signal sent by the edge detection module.

[0009] Optionally, in some embodiments of the present application, the signal filter includes a core selection module and a plurality of filter modules, the core selection module is electrically connected to the plurality of filter modules respectively, and the plurality of filter modules in the processing core are electrically connected to the edge detection modules in the remaining processing cores respectively, wherein:

[0010] The core selection module is configured to generate corresponding mask signals for the remaining processing cores based on the current working state;

[0011] The filtering module is configured to perform a preset logic operation on the initial control signal based on the corresponding mask signal to generate a valid control signal or an invalid control signal for a corresponding electrically connected processing core.

[0012] Optionally, in some embodiments of the present application, the core selection module includes at least one multi-bit mask register, and each bit of the mask register stores a mask signal of the processing core.

[0013] Optionally, in some embodiments of the present application, the filtering module includes:

[0014] a first logic operation unit, configured to perform a first logic operation on the initial control signal based on the current sleep signal and the first preset judgment signal to obtain a first logic signal;

[0015] The second logic operation unit is configured to perform a second logic operation on the first logic signal based on the corresponding mask signal and the second preset judgment signal to generate a valid control signal or an invalid control signal for the corresponding electrically connected processing core.

[0016] Optionally, in some embodiments of the present application, the first logic operation unit includes an OR gate circuit and a first trigger, the first input end of the OR gate circuit is connected to the sleep signal, the second input end of the OR gate circuit is connected to the first preset judgment signal, the output end of the OR gate circuit is electrically connected to the reset end of the first trigger, the set end of the first trigger is connected to the initial control signal, and the output end of the first trigger outputs the first logic signal.

[0017] Optionally, in some embodiments of the present application, the second logic operation unit includes a first AND gate circuit and a second AND gate circuit, the first input end of the first AND gate circuit is connected to the first logic signal, the second input end of the first AND gate circuit is connected to the corresponding mask signal, the output end of the first AND gate circuit outputs the second logic signal, the first input end of the second AND gate circuit is connected to the second preset judgment signal, the second input end of the second AND gate circuit is connected to the second logic signal, and the output end of the second AND gate circuit outputs a valid control signal or an invalid control signal for the corresponding electrically connected processing core.

[0018] Optionally, in some embodiments of the present application, the filtering module also includes a preset judgment signal configuration unit, configured to preset the system clock signal based on the initial control signal to generate the first preset judgment signal and the second preset judgment signal, respectively.

[0019] In a second aspect, an embodiment of the present application provides a method for controlling a multi-core microprocessor, comprising the following steps:

[0020] Output initial control signal based on current working status;

[0021] Filtering the initial control signal through a preset logical operation to generate a corresponding control signal set, wherein the control signal set includes at least one valid control signal and at least one invalid control signal;

[0022] The valid control signal or the invalid control signal in the control signal set is sent to the corresponding processing core respectively, so that the corresponding processing core performs the corresponding control operation.

[0023] Optionally, in some embodiments of the present application, the step of filtering the initial control signal by a preset logical operation to generate a corresponding control signal set specifically includes:

[0024] generating corresponding mask signals for the remaining processing cores based on the current working state;

[0025] A preset logic operation is performed on the initial control signal based on each mask signal to generate a corresponding control signal set.

[0026] Optionally, in some embodiments of the present application, the step of performing a preset logical operation on the initial control signal based on each of the mask signals to generate a corresponding control signal set specifically includes:

[0027] Performing a first logic operation on the initial control signal based on the current sleep signal and the first preset judgment signal to obtain a first logic signal;

[0028] A second logic operation is performed on the first logic signal based on each mask signal and the second preset judgment signal to generate a corresponding control signal set.

[0029] In the present application, its multi-core microprocessor includes a plurality of processing cores, and the processing core includes a signal generation module, a signal filter, an edge detection module and a signal execution module, and the signal filter is electrically connected to the edge detection modules of the remaining processing cores. Each processing core will first output an initial control signal based on the current state when performing control operations on itself or other processing cores. Then, the initial control signal will be filtered through a preset logical operation to generate a corresponding control signal set, and the control signal set includes at least one valid control signal and at least one invalid control signal. Finally, the valid control signal or the invalid control signal in the control signal set is sent to the corresponding processing core respectively, so that the corresponding processing core performs the corresponding control operation. In this way, for the control signal sent by a certain processing core, only the processing core that finally receives the valid control signal will perform the valid control operation, and the remaining processing cores that receive the invalid control signal will only perform the invalid control operation (specifically, it can be expressed as not performing any operation), so that it will not cause the problem of false triggering or false wake-up of the interrupt of other processing cores. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The technical solution and beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.

[0031] Figure 1 It is a structural block diagram of a multi-core processor provided in an embodiment of the present application.

[0032] Figure 2 yes Figure 1 The structural diagram of the multi-core processor is shown.

[0033] Figure 3 yes Figure 2 The structural schematic diagram of the filtering module of the multi-core processor is shown.

[0034] Figure 4 yes Figure 3 A schematic diagram of the first working state changes of each signal in the filtering module is shown.

[0035] Figure 5 yes Figure 3 A schematic diagram of the second working state change of each signal in the filtering module is shown.

[0036] Figure 6 yes Figure 3 A schematic diagram of the third working state change of each signal in the filtering module is shown.

[0037] Figure 7 It is a flowchart of the multi-core processor control method provided in the embodiment of the present application.

[0038] Figure 8 yes Figure 7 Schematic diagram of the flow of step S120 of the control method shown. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.

[0040] With the continuous development and improvement of science and technology, the demand for microprocessor functions is getting higher and higher. Ordinary single-core microprocessors can no longer meet the requirements of applications in some places, and multi-core microprocessors have been born. On the one hand, multi-core microprocessors are gradually favored by customers due to their execution efficiency advantages. On the other hand, some problems brought about by the birth of multi-core microprocessors have also attracted widespread attention, especially the problem of how to reduce power consumption while ensuring efficiency. To this end, in the prior art, the multi-core microprocessor generally only wakes up a certain processing core or several processing cores when a certain processing core or several processing cores are required to perform tasks, and the remaining processing cores that do not need to perform tasks are in a dormant state, ensuring that the multi-core microprocessor reduces power consumption as much as possible while ensuring efficiency. However, the prior art lacks a corresponding filtering mechanism for the control signal sent by a certain processing core, which easily leads to the interruption of other cores being mistriggered or misawakened.

[0041] Based on this, it is necessary to provide a new multi-core processor solution to solve the technical problem that in the existing technology, there is a lack of corresponding filtering mechanism for the control signal sent by a certain processing core, which easily leads to the false triggering or false wake-up of interrupts of other cores.

[0042] like Figure 1As shown, in one embodiment, the embodiment of the present application provides a multi-core microprocessor, which may specifically include multiple processing cores (i.e., processing core 1, processing core 2, processing core 3...processing core N), the processing core includes a signal generation module 100, a signal filter 200, an edge detection module 300 and a signal execution module 400, and the signal filter 200 is electrically connected to the edge detection modules 300 of the remaining processing cores. Among them, the signal generation module 100 can be specifically configured to output an initial control signal based on the current working state. The signal filter 200 can be specifically configured to filter the initial control signal through a preset logical operation to generate a corresponding control signal set, and the control signal set includes at least one valid control signal and at least one invalid control signal. The edge detection module 300 can be specifically configured to record the corresponding valid control signal or invalid control signal through asynchronous logic to generate a corresponding execution signal. The signal execution module 400 can be specifically configured to perform a corresponding control operation according to the execution signal sent by the edge detection module.

[0043] It should be noted that Figure 1 This is only a schematic diagram of the structure of the multi-core processor according to the embodiment of the present application, which only illustrates the electrical connection relationship between the signal filter 200 of one processing core and the edge detection modules 300 of all other processing cores. In fact, the signal filter 200 of each processing core is electrically connected to the edge detection modules 300 of all other processing cores. At the same time, the internal structure of each processing core is basically the same, including a signal generation module 100, a signal filter 200, an edge detection module 300 and a signal execution module 400. Figure 1 In order to simplify the diagram, the internal structures of different processing cores are omitted. Figure 1 The above signal generation module 100 is configured to output an initial control signal based on the current working state, which can be Figure 1 As shown, the processing core 1 executes the SEV instruction to make its signal generation module 100 output the initial control signal TXEV. The situations in which the processing core 1 needs to execute the SEV instruction may be: 1. The processing core 1 needs to enter the sleep state through the sleep instruction. At this time, the structure of the sleep instruction can be specifically the SEV+2*WFE instruction. When the processing core 1 executes the SEV+2*WFE instruction, its signal generation module 100 will output the corresponding initial control signal TXEV. 2. The processing core 1 needs to wake up other processing cores in the sleep state (which may be the processing core 2 or the processing core 3 or other processing cores) through the wake-up instruction. At this time, the wake-up instruction can be specifically the SEV instruction with the corresponding wake-up event. When the processing core 1 executes the SEV instruction with the corresponding wake-up event, its signal generation module 100 will also output the corresponding initial control signal TXEV.

[0044] by Figure 1 Taking the example shown, the control process of the multi-core processor of the embodiment of the present application is as follows: when the signal generation module 100 of the processing core 1 outputs the initial control signal TXEV, the signal filter 200 of the processing core 1 will first filter the initial control signal through a preset logical operation to generate a corresponding control signal set, which includes at least one valid control signal and at least one invalid control signal. Then, the signal filter 200 sends the valid control signal or invalid control signal in the control signal set to the corresponding processing core (specifically, it can be the edge detection module 300 of the corresponding processing core, so as to record the corresponding valid control signal or invalid control signal through the asynchronous logic of the edge detection module 300 to generate the corresponding execution signal), so that the corresponding processing core (specifically, it can be the signal execution module 400) performs the corresponding control operation.

[0045] In this way, in the multi-core processor of the embodiment of the present application, for a control signal sent by a certain processing core, only the processing core that finally receives a valid control signal will perform a valid control operation, while the remaining processing cores that receive invalid control signals will only perform invalid control operations (specifically, it can be manifested as not performing any operation). Therefore, it will not cause the problem of false triggering or false wake-up of interrupts of other processing cores.

[0046] In some examples, such as Figure 2As shown, the signal filter 200 includes a core selection module 210 and a plurality of filter modules 220, the core selection module 210 is electrically connected to the plurality of filter modules 220, and the plurality of filter modules 220 in the processing core are electrically connected to the edge detection modules 300 in the remaining processing cores, respectively. Specifically, it can be embodied as follows: the number of the plurality of filter modules 220 in a processing core is the same as the number of the remaining processing cores, and the two are in a one-to-one corresponding electrical connection relationship, that is, each filter module 220 is electrically connected to the edge detection module 300 in the corresponding processing core. Among them, the core selection module 210 can be specifically configured to generate corresponding mask signals MASK for the remaining processing cores based on the current working state. The filter module 220 can be specifically configured to perform a preset logic operation on the initial control signal TXEV based on the corresponding mask signal MASK to generate a valid control signal TXEV_FILTERED or an invalid control signal TXEV_FILTERED for the corresponding electrically connected processing core. The core selection module 210 may specifically include at least one multi-bit mask register, and each bit of the mask register corresponds to a mask signal MASK of a filter module 220. The storage content of the mask signal MASK may specifically be "0" or "1", so as to output a "low level" or "high level" mask signal MASK. Assuming that the current processing core 1 needs to wake up other processing cores 2 in a dormant state, for example, at this time, the core selection module 210 of the processing core 1 will configure each bit of its mask register accordingly, wherein the mask signal MASK stored in the corresponding bit of the filter module 220 corresponding to the electrically connected processing core 2 is configured as "1" to output a "high level" mask signal MASK to the filter module 220 corresponding to the electrically connected processing core 2. The mask signals MASK stored in the corresponding bits of the filter modules 220 corresponding to the electrically connected processing cores other than the processing cores 1 and 2 are all configured as "0" to output a "low level" mask signal MASK to the filter modules 220 corresponding to the electrically connected processing cores. Finally, the corresponding filtering module 220 performs a preset logical operation on the initial control signal TXEV based on the corresponding mask signal MASK to generate a valid control signal TXEV_FILTERED or an invalid control signal TXEV_FILTERED for the corresponding electrically connected processing core. This ensures that only the target processing core (specifically, the processing core 2 in the above example) receives the valid control signal TXEV_FILTERED to perform effective control operations.

[0047] In some examples, such as Figure 3As shown, the filtering module 220 mentioned above may specifically include a first logic operation unit 221 and a second logic operation unit 222, wherein the first logic operation unit 221 may specifically be configured to perform a first logic operation on the initial control signal TXEV based on the current sleep signal SLEEPING and the first preset judgment signal to obtain a first logic signal txev_filter_tmp. The second logic operation unit 222 may specifically be configured to perform a second logic operation on the first logic signal txev_filter_tmp based on the corresponding mask signal MASK and the second preset judgment signal to generate a valid control signal TXEV_FILTERED or an invalid control signal TXEV_FILTERED for the corresponding electrically connected processing core.

[0048] Furthermore, if Figure 3 As shown, the first logic operation unit 221 may specifically include an OR gate circuit U1 and a first trigger D1, the first input end of the OR gate circuit U1 is connected to the sleep signal SLEEPING signal, the second input end of the OR gate circuit U1 is connected to the first preset judgment signal, the output end of the OR gate circuit U1 is electrically connected to the reset end Clr of the first trigger D1, the set end Set of the first trigger D1 is connected to the initial control signal TXEV, and the output end Q of the first trigger D1 outputs the first logic signal txev_filter_tmp.

[0049] The second logic operation unit 222 includes a first AND gate circuit U2 and a second AND gate circuit U3. The first input end of the first AND gate circuit U2 is connected to the first logic signal txev_filter_tmp, the second input end of the first AND gate circuit U2 is connected to the corresponding mask signal MASK, the output end of the first AND gate circuit U2 outputs a second logic signal (not shown in the figure), the first input end of the second AND gate circuit U3 is connected to the second preset judgment signal, the second input end of the second AND gate circuit U3 is connected to the second logic signal, and the output end of the second AND gate circuit outputs a valid control signal TXEV_FILTERED or an invalid control signal TXEV_FILTERED for the corresponding electrically connected processing core. In order to obtain the above-mentioned first preset judgment signal and second preset judgment signal, as shown in the following example: Figure 3As shown, the filtering module 220 also includes a preset judgment signal configuration unit 223, which can be specifically configured to preset the system clock signal based on the initial control signal to generate a first preset judgment signal and a second preset judgment signal respectively. In order to realize the above-mentioned preset configuration of the system clock signal, the preset judgment signal configuration unit 223 may specifically include a counter, which may specifically be composed of a two-choice selector S1 and a second trigger D2, wherein the enable end EN of the second trigger D2 is connected to the initial control signal TXEV, the reset end Clr of the second trigger D2 is connected to the system reset signal HRESETn, the input end D of the second trigger D2 is electrically connected to the output end of the selector S1, the output end Q of the second trigger D2 is electrically connected to the second selection end of the selector S1, and the first selection end of the selector S1 is connected to the count "0". The judgment value input to the selector S1 is the preset value n. When working, the input terminal D of the second trigger D2 is the output terminal Q of the second trigger D2. When the enable terminal EN of the second trigger D2, that is, the initial control signal TXEV, is pulled high, the counter starts counting. At this time, Q is 0, which is not equal to n. Therefore, Figure 3 The condition "==n" of the selector S1 is not established, so the input of port 0 (i.e., the second selection terminal) is selected, that is, "+1", and this cycle continues until the output of the counter is equal to n. At this time, the condition "==n" of the selector S1 is established, and the value of the selector port 1 (i.e., the first selection terminal) is counted as "0", achieving the purpose of clearing the counter. When the current counter counts to n, a judgment signal (similar to a flag signal) is output based on the change of the system clock signal (i.e., equivalent to waiting for n clock cycles), which is the above-mentioned first preset judgment signal, to be output to the second input terminal of the OR gate circuit U1; and when the current counter counts to n-1, a judgment signal (similar to a flag signal) is output based on the change of the system clock signal (i.e., equivalent to waiting for n-1 clock cycles), which is the above-mentioned second preset judgment signal, to be output to the first input terminal of the second AND gate circuit U3.

[0050] When the entire filtering module 220 is working, Figure 3As shown, the initial control signal TXEV is connected to the set end Set of the first trigger D1, and to the enable end EN of the second trigger D2. First, when the initial control signal TXEV is "1", the counter starts counting, and the set end Set of the first trigger D1 is valid, and the output first logic signal txev_filter_tmp is "1". Secondly, if the sleep signal SLEEPING of the current processing core is "1", it is considered that the behavior of the current processing core is to enter sleep. At this time, the reset end Clr of the first trigger D1 is valid, and the output first logic signal txev_filter_tmp is "0". If the sleep signal SLEEPING of the current processing core is "0", it is considered that the behavior of the current processing core is to wake up other processing cores. At this time, the system clock signal can be output when the counter counts to n, which is the above-mentioned first preset judgment signal, so that the reset end Clr of the first trigger D1 is valid, and the output first logic signal txev_filter_tmp is "0". Next, the corresponding bit of the wake-up mask register (i.e., the corresponding mask signal MASK) is used to determine whether the wake-up request is allowed. Finally, the valid control signal TXEV_FILTERED allowed to be generated is constrained to a clock length through the counter and output to the target processing core (i.e., the specific processing core to be awakened).

[0051] The above working principle is further explained below in conjunction with the schematic diagram of various working state changes of each signal in the filtering module. Figure 4 As shown in the figure, when the corresponding mask signal MASK is configured as '0', the initial control signal TXEV is not allowed to issue a wake-up request to the corresponding processing core. At this time, regardless of whether the initial control signal TXEV is set (i.e., whether it is 1), the filtered signal is always "0", that is, the invalid control signal TXEV_FILTERED is always "0". Figure 5 As shown, when the corresponding mask signal MASK is configured as "1", after the initial control signal TXEV is set, the set terminal Set of the first trigger D1 is valid, and the output first logic signal txev_filter_tmp is "1". When the sleep signal SLEEPING of the current processing core is read as "1", the reset terminal Clr of the first trigger D1 is valid, and the output first logic signal txev_filter_tmp is "0". At this time, it is judged that the behavior of the current processing core is to enter sleep, so the final invalid control signal TXEV_FILTERED is always "0". Figure 6As shown, when the corresponding mask signal MASK is configured as '1', the initial control signal TXEV is allowed to send a wake-up request to the corresponding processing core. At this time, when the initial control signal TXEV is set, the counter starts counting, and the set end Set of the first trigger D1 is valid, and the output first logic signal txev_filter_tmp is "1". The sleep signal SLEEPING of the current processing core is not pulled high (that is, the sleep signal SLEEPING of the current processing core is "0"). After n (configurable) clock cycles (that is, when the counter counts to n, the system clock signal is output, which is the above-mentioned first preset judgment signal), the reset end Clr of the first trigger D1 is valid, and the output first logic signal txev_filter_tmp is "0". At this time, when judging the behavior of the current processing core, wake up other processing cores, and constrain the output signal of the first AND gate circuit U2 through the above-mentioned first preset judgment signal. The filtered signal is a pulse signal with a length of 1 clock, and a control signal TXEV_FILTERED of 1 pulse is obtained.

[0052] In some examples, such as Figure 2 As shown, the signal execution module 400 may specifically include a wake-up source receiving end 410 and an interrupt manager 420. At this time, when the edge detection module 300 records the corresponding valid control signal or invalid control signal through asynchronous logic, the operation of generating the corresponding execution signal may specifically be that when the edge detection module 300 records the valid control signal through asynchronous logic, it may specifically generate an ERQ signal and send it to the wake-up source receiving end 410, so as to execute the wake-up operation of the current processing core through the wake-up source receiving end 410; it may also generate an IRQ signal and send it to the interrupt manager 420, so as to execute the corresponding interrupt request or interrupt recovery operation on the current processing core through the interrupt manager 420.

[0053] In one embodiment, Figure 7 As shown, the embodiment of the present application provides a control method for a multi-core microprocessor, and the control method specifically includes the following steps:

[0054] Step S110: Output an initial control signal based on the current working state.

[0055] Specifically, the control method of the multi-core microprocessor of the embodiment of the present application is specifically applied to the multi-core processor in the above embodiment, which can be Figure 1As shown, processing core 1 executes the SEV instruction to make its signal generation module 100 output the initial control signal TXEV. The situations where processing core 1 needs to execute the SEV instruction may be: 1. Processing core 1 needs to enter the sleep state through the WFE instruction. At this time, the SEV instruction can be specifically the SEV+2*WFE instruction. When processing core 1 executes the SEV instruction, its signal generation module 100 outputs the initial control signal TXEV. 2. Processing core 1 needs to wake up other processing cores in the sleep state (which may be processing core 2 or processing core 3 or other processing cores). At this time, it can also execute the corresponding SEV instruction to make its signal generation module 100 output the initial control signal TXEV.

[0056] Step S120: filtering the initial control signal through a preset logic operation to generate a corresponding control signal set, where the control signal set includes at least one valid control signal and at least one invalid control signal.

[0057] Specifically, Figure 1 For example, when the signal filter 200 of the processing core 1 obtains the above-mentioned initial control signal TXEV, it will filter the initial control signal through a preset logical operation to generate a corresponding control signal set, which includes at least one valid control signal and several invalid control signals.

[0058] Step S130: sending the valid control signal or the invalid control signal in the control signal set to the corresponding processing core respectively, so that the corresponding processing core performs the corresponding control operation.

[0059] Specifically, Figure 1 For example, when the signal filter 200 of the processing core 1 obtains the above-mentioned control signal set, it will send the valid control signal or invalid control signal in the control signal set to the corresponding processing core (specifically, it can be the edge detection module 300 of the corresponding processing core, so as to record the corresponding valid control signal or invalid control signal through the asynchronous logic of the edge detection module 300 to generate the corresponding execution signal), so that all processing cores of the multi-core processor (specifically, it can be the signal execution module 400) can perform the corresponding control operations respectively.

[0060] In this way, in the control method of the multi-core processor of the embodiment of the present application, for a control signal sent by a certain processing core, only the processing core that finally receives a valid control signal will perform a valid control operation, while the remaining processing cores that receive invalid control signals will only perform invalid control operations (specifically, it can be manifested as not performing any operation). Therefore, it will not cause the problem of false triggering or false wake-up of interrupts of other processing cores.

[0061] In some examples, such as Figure 8As shown, the above process of filtering the initial control signal through a preset logical operation to generate a corresponding control signal set can be specifically as follows:

[0062] Step S121: Generate corresponding mask signals for the remaining processing cores based on the current working status.

[0063] Step S122: performing a preset logic operation on the initial control signal based on each mask signal to generate a corresponding control signal set.

[0064] It can be seen from the above embodiment that the signal filter 200 includes a core selection module 210 and a plurality of filter modules 220, the core selection module 210 is electrically connected to the plurality of filter modules 220, and each filter module 220 is electrically connected to the edge detection module 300 of a processing core among all the remaining processing cores. At this time, when the step of "filtering the initial control signal by a preset logical operation to generate a corresponding control signal set" is executed, the core selection module 210 can generate a corresponding mask signal MASK for the processing core electrically connected to each filter module 220 based on the current working state, and then each filter module 220 performs a preset logical operation on the initial control signal TXEV based on each mask signal MASK to generate a corresponding control signal set.

[0065] Further, the above-mentioned filtering module 220 may specifically include a first logic operation unit 221 and a second logic operation unit 222. At this time, the above-mentioned preset logic operation is performed on the initial control signal TXEV based on each mask signal through each filtering module 220 to generate a corresponding control signal set. Specifically, the first logic operation unit 221 performs a first logic operation on the initial control signal TXEV based on the current sleep signal SLEEPING and the first preset judgment signal to obtain the first logic signal txev_filter_tmp. And the second logic operation unit 222 performs a second logic operation on the first logic signal based on each mask signal MASK and the second preset judgment signal to generate a corresponding control signal set.

[0066] It should be noted that the above-mentioned multi-core processor control method and the above-mentioned multi-core processor embodiment belong to the same concept, and its specific implementation process is detailed in the above-mentioned multi-core processor embodiment, and the technical features in the above-mentioned multi-core processor embodiment are correspondingly applicable in the embodiment of the multi-core processor control method, which will not be repeated here.

[0067] Although the present application has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art based on reading and understanding of this specification and the accompanying drawings. The present application includes all such modifications and variations and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the above-mentioned components, the terms used to describe such components are intended to correspond to any component (unless otherwise indicated) that performs the specified function of the component (e.g., it is functionally equivalent), even if it is not structurally equivalent to the disclosed structure that performs the functions in the exemplary implementation of this specification shown herein.

[0068] That is, the above description is only an embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, such as the mutual combination of technical features between the embodiments, or direct or indirect application in other related technical fields, are also included in the patent protection scope of the present application.

[0069] For structural elements with the same or similar characteristics, the present application may use the same or different reference numerals for identification. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0070] In this application, the word "exemplary" is used to mean "used as an example, illustration or description". Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or more advantageous than other embodiments. In order to enable any technician in the field to implement and use the present application, the present application provides the above description. In the above description, various details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other embodiments, well-known structures and processes will not be elaborated in detail to avoid unnecessary details that make the description of the present application obscure. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest range of principles and features disclosed in the present application.

Claims

1. A multi-core microprocessor, characterized in that: It includes multiple processing cores, each of which includes a signal generation module, a signal filter, an edge detection module and a signal execution module. The signal filter includes a core selection module and multiple filter modules. The core selection module is electrically connected to the multiple filter modules respectively. The multiple filter modules in each processing core are electrically connected to the edge detection modules in the remaining processing cores respectively. The signal generating module is configured to output an initial control signal based on the current working state; The signal filter is configured to filter the initial control signal through a preset logic operation to generate a corresponding control signal set, wherein the control signal set includes at least one valid control signal and at least one invalid control signal; The edge detection module is configured to record the corresponding valid control signal or invalid control signal through asynchronous logic to generate a corresponding execution signal; The signal execution module is configured to execute corresponding control operations according to the execution signal sent by the edge detection module; The core selection module is configured to generate corresponding mask signals for the remaining processing cores based on the current working state; The filtering module includes a first logic operation unit and a second logic operation unit, wherein: The first logic operation unit is configured to perform a first logic operation on the initial control signal based on the current sleep signal and the first preset judgment signal to obtain a first logic signal; The second logic operation unit is configured to perform a second logic operation on the first logic signal based on the corresponding mask signal and the second preset judgment signal to generate a valid control signal or an invalid control signal for the corresponding electrically connected processing core.

2. The multi-core microprocessor according to claim 1, characterized in that: The core selection module includes at least one multi-bit mask register, and each bit of the mask register stores a mask signal of the processing core.

3. The multi-core microprocessor according to claim 1, characterized in that: The first logic operation unit includes an OR gate circuit and a first trigger, the first input end of the OR gate circuit is connected to the sleep signal, the second input end of the OR gate circuit is connected to the first preset judgment signal, the output end of the OR gate circuit is electrically connected to the reset end of the first trigger, the set end of the first trigger is connected to the initial control signal, and the output end of the first trigger outputs the first logic signal.

4. The multi-core microprocessor according to claim 1, characterized in that: The second logic operation unit includes a first AND gate circuit and a second AND gate circuit, the first input end of the first AND gate circuit is connected to the first logic signal, the second input end of the first AND gate circuit is connected to the corresponding mask signal, the output end of the first AND gate circuit outputs the second logic signal, the first input end of the second AND gate circuit is connected to the second preset judgment signal, the second input end of the second AND gate circuit is connected to the second logic signal, and the output end of the second AND gate circuit outputs a valid control signal or an invalid control signal for the corresponding electrically connected processing core.

5. The multi-core microprocessor according to claim 1, characterized in that: The filtering module further includes a preset judgment signal configuration unit configured to preset the system clock signal based on the initial control signal to generate the first preset judgment signal and the second preset judgment signal respectively.

6. A method for controlling a multi-core microprocessor, applied to the multi-core microprocessor according to any one of claims 1 to 5, characterized in that: The following steps are involved: Output initial control signal based on current working status; Filtering the initial control signal through a preset logical operation to generate a corresponding control signal set, wherein the control signal set includes at least one valid control signal and at least one invalid control signal; The valid control signal or the invalid control signal in the control signal set is sent to the corresponding processing core respectively, so that the corresponding processing core performs the corresponding control operation.

7. The control method according to claim 6, characterized in that: The step of filtering the initial control signal by a preset logic operation to generate a corresponding control signal set specifically includes: generating corresponding mask signals for the remaining processing cores based on the current working state; A preset logic operation is performed on the initial control signal based on each mask signal to generate a corresponding control signal set.

8. The control method according to claim 7, characterized in that: The step of performing a preset logic operation on the initial control signal based on each mask signal to generate a corresponding control signal set specifically includes: Performing a first logic operation on the initial control signal based on the current sleep signal and the first preset judgment signal to obtain a first logic signal; A second logic operation is performed on the first logic signal based on each mask signal and the second preset judgment signal to generate a corresponding control signal set.