Method and device for generating time sequence signal and storage medium
By determining the target execution unit based on the target digital circuit resources and configuring timing signals to adapt to different hardware scenarios, the problem that the CMOS image sensor timing signals cannot adapt to various hardware scenarios is solved, and the flexibility and rapid deployment of timing signals are achieved.
Patent Information
- Application Number
- CN202410663709.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-06
AI Technical Summary
The timing signals of CMOS image sensors only support working scenarios in a single mode and cannot adapt to a variety of different hardware usage scenarios, making it difficult to quickly transplant and deploy solutions.
By determining the target execution unit based on the resources of the target digital circuit and determining the timing pins based on the data sheet of the target module, the timing signals adapted to different hardware scenarios are configured to ensure that the timing signals are electrically connected to the hardware pins of the target module.
The flexibility of the timing signal is improved, making it suitable for various hardware usage scenarios, and simplifying the rapid transplantation and deployment process of CMOS image sensors.
Smart Images

Figure CN118612563A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology and provides a method, device and storage medium for generating a timing signal. Background Art
[0002] CMOS image sensors are widely used in modern digital cameras and imaging systems. They have high operating frequency, low power consumption, automatic white balance and automatic exposure control, and can realize autofocus function after manual configuration and firmware burning. The camera function is very powerful.
[0003] However, the related timing of the above-mentioned CMOS image sensor only supports the working scenario in a single mode, that is, the related timing of the CMOS image sensor cannot support a variety of different hardware usage scenarios, which is not conducive to the rapid transplantation and deployment of the solution. Summary of the invention
[0004] The embodiments of the present disclosure provide a method, an apparatus, and a storage medium for generating a timing signal, so as to improve the flexibility of using the timing signal.
[0005] The specific technical solutions provided by this disclosure are as follows:
[0006] In a first aspect, an embodiment of the present disclosure provides a method for generating a timing signal, comprising:
[0007] Determine a target execution unit according to resources of a target digital circuit, wherein the resources of the target digital circuit are determined according to hardware resources electrically connected to a target module and matching software resources, and the target execution unit is at least one of a hardware resource and a software resource;
[0008] Determine at least two timing pins based on the target execution unit, wherein the timing pins are used to be electrically connected to the hardware pins of the target module;
[0009] Timing signals are configured for at least two timing pins according to the reference timing required by the target module, and the timing signals are provided to the hardware pins of the target module through the timing pins, wherein the reference timing is determined based on the data sheet of the target module.
[0010] Optionally, determining a target execution unit according to resources of a target digital circuit includes:
[0011] Determine whether the resources of the target digital circuit include a central processing unit CPU;
[0012] If so, determining a target execution unit based on whether the resources of the target digital circuit include an operating system, wherein the operating system runs in a CPU;
[0013] Otherwise, the logic gate circuit included in the target digital circuit is determined as the target execution unit.
[0014] Optionally, determining the target execution unit based on whether the resources of the target digital circuit include an operating system includes:
[0015] determining whether the resources of the target digital circuit include an operating system;
[0016] If yes, the logic gate circuit, CPU and operating system included in the target digital circuit are determined as the target execution unit;
[0017] Otherwise, the logic gate circuit and the CPU included in the target digital circuit are determined as the target execution unit.
[0018] Optionally, determining at least two timing pins based on the target execution unit includes:
[0019] At least two pins are selected from a logic gate circuit included in the target execution unit, and the selected at least two pins are determined as timing pins.
[0020] Optionally, configuring timing signals for at least two timing pins according to a reference timing required by the target module includes:
[0021] According to the reference timing required by the target module, the pin types of at least two timing pins are configured as output types, and high-level signals and low-level signals are configured for the timing pins.
[0022] Optionally, if the logic gate circuit included in the target digital circuit is determined to be the target execution unit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module, and high level signals and low level signals are configured for the timing pins, including:
[0023] In the logic gate circuit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module;
[0024] Configure high and low signals in software built into logic gate circuits;
[0025] According to the reference timing required by the target module, the timing pins are associated with the corresponding high-level signals and low-level signals, and layout and routing are performed according to the associated timing pins.
[0026] Optionally, after performing layout and routing according to the associated timing pins, the method further includes:
[0027] Select at least two pins from the remaining pins of the logic gate circuit, and configure the pin types of the at least two selected pins as input types, wherein the input type pins at least include a clock input pin and a reset input pin;
[0028] In the software built into the logic gate circuit, a plurality of frequency multiplication input parameters and adjustment parameters corresponding to the frequency multiplication input parameters are configured for the clock input pin, wherein the frequency multiplication input parameters and the corresponding adjustment parameters are determined according to the reference timing required by the target module;
[0029] The input type pins are associated with the corresponding high level signals and low level signals according to the reference timing required by the target module, and layout and routing are performed according to the associated input type pins.
[0030] Optionally, if the logic gate circuit, CPU and operating system included in the target digital circuit are determined as the target execution unit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module, and high level signals and low level signals are configured for the timing pins, including:
[0031] In the logic gate circuit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module;
[0032] Running the operating system in the CPU, and associating the GPIO resources with the timing pins in the running operating system;
[0033] In the GPIO resources, the timing pins are associated with the corresponding high-level signals and low-level signals according to the reference timing required by the target module.
[0034] Optionally, if the logic gate circuit and the CPU included in the target digital circuit are determined as the target execution unit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module, and high level signals and low level signals are configured for the timing pins, including:
[0035] In the logic gate circuit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module;
[0036] In the CPU, a high level signal and a low level signal are configured based on a system clock of the CPU, and at least two timing pins are associated with register resources in the CPU;
[0037] In the CPU, the timing pins are associated with the corresponding high-level signals and low-level signals according to the reference timing required by the target module.
[0038] Optionally, before providing the timing signal to the hardware pin of the target module through the timing pin, the method further includes:
[0039] Compare whether the benchmark timing is consistent with the timing represented by the timing signal;
[0040] If they are inconsistent, the timing signal is modified until the reference timing is consistent with the timing represented by the timing signal.
[0041] In a second aspect, an embodiment of the present disclosure further provides a device for generating a timing signal, including:
[0042] A first determination unit, configured to determine a target execution unit according to resources of a target digital circuit, wherein the resources of the target digital circuit are determined according to hardware resources electrically connected to a target module and matching software resources, and the target execution unit is at least one of a hardware resource and a software resource;
[0043] A second determining unit, configured to determine at least two timing pins based on the target execution unit, wherein the timing pins are configured to be electrically connected to hardware pins of the target module;
[0044] The configuration unit is used to configure timing signals for at least two timing pins according to the reference timing required by the target module, and provide the timing signals to the hardware pins of the target module through the timing pins, wherein the reference timing is determined based on the data sheet of the target module.
[0045] In a third aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, which enables the processor to execute any of the above methods when instructions in the storage medium are executed by a processor.
[0046] The beneficial effects of the present disclosure are as follows:
[0047] In summary, the embodiments of the present disclosure provide a method, device and storage medium for generating a timing signal, the method for generating a timing signal includes: determining a target execution unit according to resources of a target digital circuit, wherein the resources of the target digital circuit are determined according to hardware resources electrically connected to a target module and matching software resources, the target execution unit is at least one of hardware resources and software resources, at least two timing pins are determined based on the target execution unit, wherein the timing pins are used to be electrically connected to hardware pins of the target module, timing signals are configured for at least two timing pins according to a reference timing required by the target module, and the timing signals are provided to the hardware pins of the target module through the timing pins, wherein the reference timing is determined based on a data sheet of the target module, and the timing signals generated as described above can be applicable to various hardware usage scenarios, thereby improving the flexibility of timing signal application.
[0048] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by practicing the present disclosure. The purpose and other advantages of the present disclosure can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The drawings described herein are used to provide a further understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and their descriptions are used to explain the present disclosure and do not constitute an improper limitation on the present disclosure. In the drawings:
[0050] Figure 1 A schematic diagram of a flow chart of a method for generating a timing signal in an embodiment of the present disclosure;
[0051] Figure 2 It is a schematic diagram of a process of determining a target execution unit based on a CPU in an embodiment of the present disclosure;
[0052] Figure 3 A schematic diagram of a process for determining a target execution unit based on an operating system in an embodiment of the present disclosure;
[0053] Figure 4 A schematic diagram of a process of configuring a timing signal for a timing pin in an embodiment of the present disclosure;
[0054] Figure 5 A schematic diagram of a process of using a logic gate circuit to place and route associated timing pins in an embodiment of the present disclosure;
[0055] Figure 6 A schematic diagram of placing and routing the associated timing pins according to the frequency multiplication input parameters and the adjustment parameters in an embodiment of the present disclosure;
[0056] Figure 7 A schematic diagram of a process of placing and routing associated timing pins using a logic gate circuit, a CPU, and an operating system in an embodiment of the present disclosure;
[0057] Figure 8 A schematic diagram of a process of using a logic gate circuit and a CPU to perform layout and routing of associated timing pins in an embodiment of the present disclosure;
[0058] Fig. 9 It is a connection diagram of a display device in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the technical solution of the present disclosure, rather than all the embodiments. Based on the embodiments recorded in the present disclosure document, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present disclosure.
[0060] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented using sequences other than those illustrated or described herein.
[0061] CMOS image sensors are widely used in modern digital cameras and imaging systems. CMOS image sensors have high operating frequencies, low power consumption, automatic white balance and automatic exposure control, and can realize autofocus function after manually configuring and burning firmware. The camera function is very powerful. However, in the related art, the relevant timing of the above-mentioned CMOS image sensor only supports the working scene in a single mode, that is, the relevant timing of the CMOS image sensor cannot support a variety of different hardware usage scenarios, that is, when the hardware usage scenario changes, the relevant timing of the CMOS image sensor cannot be adapted, which is not conducive to the rapid transplantation and deployment of the solution.
[0062] The preferred embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
[0063] See also Figure 1 As shown, the steps of a method for generating a timing signal proposed in an embodiment of the present application specifically include:
[0064] Step 201: Determine a target execution unit according to resources of a target digital circuit, wherein the resources of the target digital circuit are determined according to hardware resources electrically connected to a target module and matching software resources, and the target execution unit is at least one of hardware resources and software resources.
[0065] First of all, it should be explained that the target module in the embodiment of the present application is a CMOS image sensor, for example, OmniVision OV5640, etc. The above-mentioned target digital circuit is a processing circuit electrically connected to the target module for generating a timing signal. After the target digital circuit generates the timing signal, the above-mentioned timing signal is further provided to the target module, so that the target module can perform image acquisition and other tasks under the action of the above-mentioned timing signal.
[0066] Correspondingly, the resources of the target digital circuit are the relevant resources of other circuits electrically connected to the target module, including but not limited to hardware resources and matching software resources. The target execution unit is at least one of the above-mentioned hardware resources and software resources, namely, hardware resources, software resources, hardware resources and software resources. In other words, depending on the different hardware resources and software resources included in the target digital circuit, the target execution unit is at least one of the above-mentioned hardware resources and software resources.
[0067] Combine the following Figure 2 The process of determining the target execution unit is described in detail. The target execution unit is determined based on the resources of the target digital circuit. Figure 2 As shown, including:
[0068] Step 2011: Determine whether the resources of the target digital circuit include a central processing unit (CPU).
[0069] Considering that the CPU is the core processing device of the digital circuit, during the implementation process, it is first determined whether the resources of the target digital circuit include the CPU. If so, step 2012 is executed. Otherwise, step 2013 is executed. That is, if it is determined that the resources of the target digital circuit include the CPU, step 2012 is continued to be executed. If it is determined that the resources of the target digital circuit do not include the CPU, step 2013 is continued to be executed.
[0070] Step 2012: Determine a target execution unit based on whether the resources of the target digital circuit include an operating system, wherein the operating system runs in a CPU.
[0071] Since the target digital circuit can also complete the core processing functions through the operating system when there is a CPU. Based on this, after introducing the process of determining the target execution unit based on the CPU, the following further introduces the process of determining the target execution unit in combination with the operating system. The above process of determining the target execution unit based on whether the resources of the target digital circuit include the operating system is described in detail in the following. Figure 3 As shown, including:
[0072] Step 20121: Determine whether the resources of the target digital circuit include an operating system.
[0073] It should be noted that if the target digital circuit has an operating system, then the operating system runs in the CPU, but not every target digital circuit includes an operating system.
[0074] Based on this, during the implementation process, after determining that the resources of the target digital circuit include the CPU, it is further determined whether the resources of the target digital circuit include the operating system. If so, step 20122 is executed. Otherwise, step 20123 is executed. That is, when it is determined that the resources of the target digital circuit include the operating system, step 20122 is continued to be executed; when it is determined that the resources of the target digital circuit do not include the operating system, step 20123 is continued to be executed.
[0075] Step 20122: Determine the logic gate circuit, CPU and operating system included in the target digital circuit as the target execution unit.
[0076] During the implementation process, after determining that the resources of the target digital circuit include an operating system, the logic gate circuit, CPU and operating system included in the target digital circuit are determined as the target execution unit, that is, the logic gate circuit, CPU and operating system cooperate to generate the above timing signal.
[0077] Step 20123: Determine the logic gate circuit and CPU included in the target digital circuit as the target execution unit.
[0078] During implementation, after determining that the resources of the target digital circuit do not include an operating system, the logic gate circuit and the CPU included in the target digital circuit are determined as target execution units, that is, the logic gate circuit and the CPU cooperate to generate the above timing signals.
[0079] Step 2013: Determine the logic gate circuit included in the target digital circuit as the target execution unit.
[0080] When it is determined that the resources of the target digital circuit do not include a CPU, the logic gate circuit included in the target digital circuit is determined as a target execution unit, that is, the logic gate circuit generates the above timing signal.
[0081] In summary, according to the different resources of the target digital circuit, the determination of the target execution unit is divided into three cases: 1) logic gate circuit; 2) logic gate circuit and CPU; 3) logic gate circuit, CPU and operating system.
[0082] During the implementation process, after the target execution unit is determined, the target execution unit further determines the timing pin and generates the timing signal, which will be described below.
[0083] Step 202: Determine at least two timing pins based on the target execution unit, wherein the timing pins are used to be electrically connected to the hardware pins of the target module.
[0084] In order to provide the timing signal to the target module, it is necessary to first establish a hardware connection relationship between the target digital circuit and the target module, that is, first determine the pins electrically connected to the hardware pins of the target module.
[0085] During the implementation process, at least two pins are selected from the logic gate circuit included in the target execution unit, and the selected at least two pins are determined as timing pins.
[0086] It should be noted that the logic gate circuit is the basic component of the target execution unit, and the logic gate circuit includes a variety of hardware gate circuits. The target execution unit arbitrarily selects at least two pins from the included logic gate circuits, and the at least two selected pins are determined as timing pins. The timing pins are electrically connected to the hardware pins of the target module, and the timing signal generated by the target execution unit is provided to the target module after being transmitted through the timing pins and the hardware pins.
[0087] Step 203: configuring timing signals for at least two timing pins according to the reference timing required by the target module, and providing the timing signals to the hardware pins of the target module through the timing pins, wherein the reference timing is determined based on the data sheet of the target module.
[0088] Considering that different target modules require different timing signals, during the implementation process, it is necessary to first determine the reference timing according to the data sheet of the target module electrically connected to the target digital circuit, and configure the timing signal for the target module on this basis.
[0089] The above-mentioned configuring timing signals for at least two timing pins according to the reference timing required by the target module includes:
[0090] According to the reference timing required by the target module, the pin types of at least two timing pins are configured as output types, and high-level signals and low-level signals are configured for the timing pins.
[0091] During the implementation process, after determining the reference timing required by the target module according to the data manual of the target module, the pin type of the above-mentioned at least two timing pins is first configured as an output type, so that the target execution unit can output the generated timing signal to the target module through the timing pins through the above-mentioned at least two timing pins.
[0092] After determining that the timing pin is an output type, high-level signals and low-level signals are configured for the timing pin according to the above-mentioned reference timing. The high-level signals and low-level signals here are also determined according to the data sheet of the target module, that is, the specific level values included in the timing signal are determined according to the above-mentioned high-level signals and low-level signals in the data sheet.
[0093] During the implementation, the configuration process of timing signals is introduced in three cases according to the different target execution units. Figure 4 As shown, the following is a detailed introduction:
[0094] The first case: if the logic gate circuit included in the target digital circuit is determined to be the target execution unit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module, and high level signals and low level signals are configured for the timing pins, including:
[0095] Step 2031: In the logic gate circuit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module.
[0096] In the case where the target execution unit only includes a logic gate circuit, the logic gate circuit is first used to perform the configuration of the input and output types of the timing pins. During the implementation process, after determining the reference timing required by the target module according to the data manual, the pin types of the at least two timing pins are configured as output types in the logic gate circuit according to the indication of the reference timing, so that after the target execution unit generates the timing signal, it can output the generated timing signal to the target module through the timing pin.
[0097] Step 2032: Configure high level signals and low level signals in software built into the logic gate circuit.
[0098] After configuring the timing pin as an output type, you also need to configure a specific level value for the timing pin. During the implementation process, the software built into the logic gate circuit generates corresponding high and low levels according to the high and low level signals indicated in the data sheet, thereby matching the specific level value for the above timing pin.
[0099] Step 2033: associate the timing pins with the corresponding high-level signals and low-level signals according to the reference timing required by the target module, and perform layout and routing according to the associated timing pins.
[0100] Taking into account that there are more than one timing pins, after the logic gate circuit configures the output type and specific level value for the above timing pins according to the data manual, further corresponding associations are made for the timing pins, that is, each timing pin is instantiated. In this way, the timing pin itself has output properties, and the timing signal transmitted in the timing pin also has corresponding specific level data.
[0101] During the implementation process, after the high-level signal and the low-level signal are associated with the above-mentioned timing pins, the above-mentioned associated timing pins are laid out and wired into physical hardware, that is, the timing pins become an actual connectable entity, thereby making the timing pins hardware in the actual sense, which is convenient for electrical connection with the target module.
[0102] In addition, in order to ensure that the above timing pins can output normally, after the above-mentioned layout and routing according to the associated timing pins, refer to Figure 5As shown, it also includes:
[0103] Step 2034: Select at least two pins from the remaining pins of the logic gate circuit, and configure the pin types of the at least two selected pins as input types, wherein the input type pins include at least a clock input pin and a reset input pin.
[0104] After the timing pins are hardwareized, the timing pins need to be equipped with corresponding clock and reset management to ensure the accuracy and repeatability of the timing signals output by the timing pins. During the implementation, the target execution unit selects at least two pins from the remaining pins in the above logic gate circuit except for the at least two timing pins.
[0105] In order to ensure the accuracy of signal transmission between the timing pins and the target module, the at least two pins selected from the remaining pins need to input an external input clock that matches the target module. Based on this, during the implementation process, the pin types of the at least two pins are configured as input types. Specifically, the at least two pins include a clock input pin and a reset input pin, wherein the clock input pin is used to input a matching clock, and the reset input pin is used to input a reset signal.
[0106] Step 2035: configuring a plurality of frequency multiplication input parameters and adjustment parameters corresponding to the frequency multiplication input parameters for the clock input pin in the software built into the logic gate circuit, wherein the frequency multiplication input parameters and the corresponding adjustment parameters are determined according to the reference timing required by the target module.
[0107] In order to be compatible with more external input clocks, the clock input pin in the embodiment of the present application supports multiple external input clocks by multiplying the frequency. However, since the clock of the connected target module is fixed, the received external input clock also needs to be converted into the reference timing required by the target module during the implementation process.
[0108] During the implementation process, the target execution unit configures multiple frequency multiplication input parameters for the clock input pin in the software built into the logic gate circuit, so that when the external input clock is consistent with any frequency multiplication input parameter, the clock input pin can receive it, thereby achieving compatibility with multiple external input clocks. After configuring multiple frequency multiplication input parameters for the clock input pin, it is also necessary to match the corresponding adjustment parameters for each frequency multiplication input parameter, that is, after multiplying the frequency through the frequency multiplication input parameter, it is then down-converted through the adjustment parameter.
[0109] It should be noted that the numerical values of the above-mentioned frequency multiplication input parameters and the corresponding adjustment parameters are determined according to the reference timing required by the target module. For example, when the reference timing required by the target module is clk and the frequency multiplication input parameter is 2clk, the adjustment parameter is 1 / 2; when the reference timing required by the target module is clk and the frequency multiplication input parameter is 3clk, the adjustment parameter is 1 / 3, thereby ensuring that the reference timing of the target module is consistent with the data manual.
[0110] In addition, the reset timing of the reset input pin must also be consistent with the reset timing indicated in the data sheet of the target module, that is, after the reset timing is reached, the reset is performed through the input signal of the reset input pin.
[0111] Step 2036: Associating the input type pins with the corresponding high level signals and low level signals according to the reference timing required by the target module, and performing layout and routing according to the associated input type pins.
[0112] During the implementation process, it is also necessary to match specific level values for input type pins such as clock input pins and reset input pins, that is, to associate the above pins with corresponding high level signals and low level signals according to the reference timing required by the target module, that is, to instantiate each input type pin, so that the input type pin has input properties, and the signal transmitted in the input type pin also has specific level data accordingly, and then the associated input type pins are laid out and wired, that is, the above input type pins become a physical hardware that can actually be connected, refer to Figure 6 As shown, it is convenient to make electrical connection with a circuit that provides an external input clock.
[0113] The second case: If the target digital circuit includes a logic gate circuit, a CPU, and an operating system, the target execution unit is determined as the target execution unit. Then, according to the reference timing required by the target module, the pin types of at least two timing pins are configured as output types, and high-level signals and low-level signals are configured for the timing pins. Figure 7 As shown, including:
[0114] Step 2031 ′: in the logic gate circuit, configure the pin types of at least two timing pins as output types according to the reference timing required by the target module.
[0115] In the case where the target execution unit includes a logic gate circuit, a CPU and an operating system, the logic gate circuit is first used to configure the input and output types of the timing pins. During the implementation, after determining the reference timing required by the target module according to the data manual, the pin types of the at least two timing pins are configured as output types in the logic gate circuit according to the indication of the reference timing, so that after the target execution unit generates the timing signal, it can output the generated timing signal to the target module through the timing pin.
[0116] Step 2032': Run the operating system in the CPU, and associate the GPIO resources with the timing pins in the running operating system.
[0117] After configuring the timing pin as an output type through a logic gate circuit, the target execution unit runs the operating system in the CPU. After the operating system is running, the GPIO resources are matched in the running operating system, and the GPIO resources are associated with the timing pin, thereby realizing the association between the logic gate circuit and the operating system.
[0118] Step 2033 ′: associate the timing pins with the corresponding high level signals and low level signals in the GPIO resources according to the reference timing required by the target module.
[0119] During the implementation process, the high-level signal and low-level signal required by the timing pin are determined according to the reference timing required by the target module, and the timing pin is associated with the corresponding high-level signal and low-level signal in the GPIO resource, that is, the specific level value is configured for the above timing pin according to the above high-level signal and low-level signal in the GPIO resource, so that each timing pin is instantiated. In this way, the timing pin not only has the output property, but also has corresponding specific level data.
[0120] The third case: If the logic gate circuit and CPU included in the target digital circuit are determined as the target execution unit, the pin type of at least two timing pins is configured as output type according to the reference timing required by the target module, and the timing pins are configured with high level signals and low level signals, see Figure 8 As shown, including:
[0121] Step 2031": in the logic gate circuit, the pin types of at least two timing pins are configured as output types according to the reference timing required by the target module.
[0122] In the case where the target execution unit includes a logic gate circuit and a CPU, the logic gate circuit is first used to configure the input and output types of the timing pins. During the implementation, after determining the reference timing required by the target module according to the data manual, the pin types of the at least two timing pins are configured as output types in the logic gate circuit according to the indication of the reference timing, so that after the target execution unit generates the timing signal, it can output the generated timing signal to the target module through the timing pin.
[0123] Step 2032": configure a high level signal and a low level signal in the CPU based on the system clock of the CPU, and associate at least two timing pins with register resources in the CPU.
[0124] After configuring the timing pin as an output type through the logic gate circuit, the target execution unit obtains the system clock of the CPU, and configures a high-level signal and a low-level signal according to the system clock. It should be noted that the high-level signal and the low-level signal are usually level values representing high-level signals, such as 5V, and level values representing low-level signals, such as 3V. The target execution unit further matches register resources in the CPU and associates the register resources with at least two timing pins, thereby realizing the association between the logic gate circuit and the CPU.
[0125] Step 2033": in the CPU, the timing pins are associated with the corresponding high level signals and low level signals according to the reference timing required by the target module.
[0126] During the implementation process, the high level signal and the low level signal required by the timing pin are determined according to the reference timing required by the target module. Usually, the high level signal and the low level signal associated with the timing pin are a combination of the level values represented in step 2032", that is, the timing pin needs to be associated with multiple high level signals and low level signals. After the timing pin is associated with the corresponding high level signal and low level signal in the CPU, a specific level value is configured for the above timing pin, so that each timing pin is instantiated. In this way, the timing pin not only has an output property, but also has corresponding specific level data.
[0127] It should be noted that before providing the timing signal to the hardware pin of the target module through the timing pin, it also includes:
[0128] (1) Compare the benchmark timing and the timing represented by the timing signal to see if they are consistent.
[0129] Considering that the timing signal of the timing pin is configured through the logic gate circuit, operating system or CPU, in order to ensure the accuracy of the timing signal provided to the target module, during the implementation process, before the timing signal is provided to the hardware pin of the target module, it is also necessary to compare whether the reference timing is consistent with the timing represented by the timing signal.
[0130] (2) If they are inconsistent, the timing signal is modified until the reference timing is consistent with the timing represented by the timing signal.
[0131] During the implementation process, if the comparison shows that the above-mentioned reference timing is inconsistent with the timing represented by the timing signal, it means that there is an error in the configuration of the timing signal. In this case, it is necessary to modify the timing signal according to the reference timing determined in the data manual of the target module. Only after the timing signal is modified to be consistent with the timing represented by the reference timing, is it allowed to provide the timing signal to the hardware pin of the target module.
[0132] Based on the same inventive concept, refer to Fig. 9 As shown, an embodiment of the present disclosure provides a device for generating a timing signal, including:
[0133] The first determination unit 901 is used to determine the target execution unit according to the resources of the target digital circuit, wherein the resources of the target digital circuit are determined according to the hardware resources electrically connected to the target module and the matching software resources, and the target execution unit is at least one of the hardware resources and the software resources.
[0134] The second determining unit 902 is used to determine at least two timing pins based on the target execution unit, wherein the timing pins are used to be electrically connected to the hardware pins of the target module.
[0135] The configuration unit 903 is used to configure timing signals for at least two timing pins according to the reference timing required by the target module, and provide the timing signals to the hardware pins of the target module through the timing pins, wherein the reference timing is determined based on the data manual of the target module.
[0136] Based on the same inventive concept, an embodiment of the present disclosure provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor is enabled to execute any method described in the first aspect above.
[0137] In summary, the embodiments of the present disclosure provide a method, device and storage medium for generating a timing signal, and the method for generating a timing signal specifically includes: determining a target execution unit according to resources of a target digital circuit, wherein the resources of the target digital circuit are determined according to hardware resources electrically connected to a target module and matching software resources, and the target execution unit is at least one of hardware resources and software resources; determining at least two timing pins based on the target execution unit, wherein the timing pins are used to be electrically connected to hardware pins of the target module; configuring timing signals for at least two timing pins according to a reference timing required by the target module; and providing the timing signals to the hardware pins of the target module through the timing pins, wherein the reference timing is determined based on a data sheet of the target module; and the timing signals generated above can be applicable to various hardware usage scenarios, thereby improving the flexibility of timing signal application.
[0138] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program product systems. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product system implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0139] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program product systems according to the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0140] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0141] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0142] Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.
Claims
1. A method for generating a timing signal, characterized in that: The method comprises: Determine a target execution unit according to resources of a target digital circuit, wherein the resources of the target digital circuit are determined according to hardware resources electrically connected to a target module and matching software resources, and the target execution unit is at least one of the hardware resources and the software resources; Determining at least two timing pins based on the target execution unit, wherein the timing pins are used to be electrically connected to hardware pins of the target module; A timing signal is configured for at least two of the timing pins according to a reference timing required by the target module, and the timing signal is provided to the hardware pin of the target module through the timing pin, wherein the reference timing is determined based on a data sheet of the target module.
2. The method according to claim 1, characterized in that The step of determining a target execution unit according to resources of a target digital circuit comprises: Determining whether the resources of the target digital circuit include a central processing unit CPU; If so, determining the target execution unit based on whether the resources of the target digital circuit include an operating system, wherein the operating system runs in the CPU; Otherwise, the logic gate circuit included in the target digital circuit is determined as the target execution unit.
3. The method according to claim 2, characterized in that The determining the target execution unit based on whether the resources of the target digital circuit include an operating system comprises: determining whether the resources of the target digital circuit include an operating system; If yes, the logic gate circuit, the CPU and the operating system included in the target digital circuit are determined as the target execution unit; Otherwise, the logic gate circuit and the CPU included in the target digital circuit are determined as the target execution unit.
4. The method according to claim 1, characterized in that The determining at least two timing pins based on the target execution unit includes: At least two pins are selected from the logic gate circuit included in the target execution unit, and the selected at least two pins are determined as the timing pins.
5. The method according to claim 3, characterized in that The configuring timing signals for at least two of the timing pins according to the reference timing required by the target module includes: According to the reference timing required by the target module, the pin types of at least two of the timing pins are configured as output types, and high level signals and low level signals are configured for the timing pins.
6. The method according to claim 5, characterized in that If the logic gate circuit included in the target digital circuit is determined to be the target execution unit, configuring the pin types of at least two of the timing pins as output types according to the reference timing required by the target module, and configuring high level signals and low level signals for the timing pins, includes: In the logic gate circuit, according to the reference timing required by the target module, the pin types of at least two of the timing pins are configured as output types; configuring a high level signal and a low level signal in software built into the logic gate circuit; The timing pin is associated with the corresponding high-level signal and the low-level signal according to the reference timing required by the target module, and layout and routing are performed according to the associated timing pin.
7. The method according to claim 6, characterized in that After performing layout and routing according to the associated timing pins, the method further includes: Select at least two pins from the remaining pins of the logic gate circuit, and configure the pin types of the at least two selected pins as input types, wherein the input type pins at least include a clock input pin and a reset input pin; configuring a plurality of frequency multiplication input parameters and adjustment parameters corresponding to the frequency multiplication input parameters for the clock input pin in the software built into the logic gate circuit, wherein the frequency multiplication input parameters and the corresponding adjustment parameters are determined according to the reference timing required by the target module; The input type pins are associated with the corresponding high level signals and low level signals according to the reference timing required by the target module, and layout and routing are performed according to the associated input type pins.
8. The method according to claim 5, characterized in that If the logic gate circuit, the CPU and the operating system included in the target digital circuit are determined to be the target execution unit, configuring the pin types of at least two of the timing pins as output types according to the reference timing required by the target module, and configuring high level signals and low level signals for the timing pins, includes: In the logic gate circuit, according to the reference timing required by the target module, the pin types of at least two of the timing pins are configured as output types; Running the operating system in the CPU, and associating the GPIO resource with the timing pin in the running operating system; In the GPIO resource, the timing pin is associated with the corresponding high level signal and the low level signal according to the reference timing required by the target module.
9. The method according to claim 5, characterized in that If the logic gate circuit and the CPU included in the target digital circuit are determined to be the target execution unit, configuring the pin types of at least two of the timing pins as output types according to the reference timing required by the target module, and configuring high level signals and low level signals for the timing pins, includes: In the logic gate circuit, according to the reference timing required by the target module, the pin types of at least two of the timing pins are configured as output types; configuring a high level signal and a low level signal in the CPU based on a system clock of the CPU, and associating at least two of the timing pins with register resources in the CPU; In the CPU, the timing pin is associated with the corresponding high level signal and the low level signal according to the reference timing required by the target module.
10. The method according to claim 1, characterized in that Before providing the timing signal to the hardware pin of the target module through the timing pin, the method further includes: Comparing whether the reference timing is consistent with the timing represented by the timing signal; If they are inconsistent, the timing signal is modified until the reference timing is consistent with the timing represented by the timing signal.
11. A device for generating a timing signal, characterized in that: include: A first determination unit is used to determine a target execution unit according to resources of a target digital circuit, wherein the resources of the target digital circuit are determined according to hardware resources electrically connected to a target module (5640 chip) and matching software resources, and the target execution unit is at least one of the hardware resources and the software resources; A second determining unit, configured to determine at least two timing pins based on the target execution unit, wherein the timing pins are configured to be electrically connected to hardware pins of the target module; A configuration unit is used to configure timing signals for at least two of the timing pins according to the reference timing required by the target module, and provide the timing signals to the hardware pins of the target module through the timing pins, wherein the reference timing is determined based on a data sheet of the target module.
12. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 10.
Citation Information
Cited By
Computer system, signal processing method, device, medium and product
CN118860966A
