CPLD power-on time sequence automatic configuration method and device, equipment and storage medium
By automatically configuring the CPLD power-on sequence, the problem of repeated adjustments and modifications during the power-on sequence debugging process in the CPLD system is solved, and the configuration efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411421130.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2044-10-12
AI Technical Summary
In a CPLD system, the power-on timing needs to be adjusted or modified repeatedly during the debugging process, which causes engineers to spend a lot of time checking and modifying, and are prone to errors.
Provide an automatic configuration method of CPLD power -on timing. By obtaining the configuration information of the power -on timing, generates the Verilog code and the tube foot constraint description file, and automatically configures the CPLD power -on timing based on these files.
This method improves the efficiency of CPLD power -on configuration, reduces the operating time and error rate of engineers, and makes system debugging more convenient.
Smart Images

Figure CN119336410A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment, and storage medium for automatically configuring a CPLD power-on timing. Background Art
[0002] CPLD (Complex Programmable Logic Device) is the abbreviation of Complex PLD, a more complex logic element than PLD. Users can construct digital integrated circuits with logic functions according to their own needs. Its basic design method is to use the integrated development software platform, schematic diagrams, hardware description languages and other methods to generate corresponding target files, and transfer the code to the target chip through the download cable ("in-system" programming) to realize the designed digital system.
[0003] It has the characteristics of flexible programming, high integration, short design and development cycle, wide application range, advanced development tools, low design and manufacturing cost, low hardware experience requirements for designers, no need for testing of standard products, strong confidentiality, and popular prices. It can realize large-scale circuit design, so it is widely used in product prototype design and product production. CPLD devices can be used in almost all occasions where small-scale general-purpose digital integrated circuits are used. CPLD devices have become an indispensable part of electronic products.
[0004] One of the main application scenarios of CPLD is to control and manage the power-on and reset signals of each module or component in the system. However, some CPUs have requirements for the power-on and reset timing of each peripheral in the system. If the power-on time of a PCIE device is incorrect, the device may not be recognized by the CPU. Using CPLD to manage system power-on can continuously modify and adjust the power-on timing according to actual needs until all devices can be recognized by the CPU, which greatly facilitates system debugging.
[0005] However, since there are many signals that need to be managed, there are many situations in which repeated adjustments or increases and decreases in requirements are required during the debugging process. Engineers responsible for the CPLD software program often need to spend a lot of time checking and modifying, and are prone to errors. Summary of the invention
[0006] In order to solve one of the above technical defects, the present application provides a CPLD power-on timing automatic configuration method, device, equipment, and storage medium.
[0007] In a first aspect, the present application provides a method for automatically configuring a CPLD power-on timing, the method comprising:
[0008] Get the configuration information of the power-on sequence;
[0009] Generate Verilog code and pin constraint description file according to configuration information;
[0010] Automatically configure the CPLD power-on timing according to the Verilog code and pin constraint description file.
[0011] Optionally, the configuration information includes: power-on timing description information, reset timing description information and level conversion description information;
[0012] Generate Verilog code based on configuration information, including:
[0013] Generate three copies of Verilog code according to the configuration information;
[0014] The three Verilog codes are: a power-on timing Verilog code corresponding to the power-on timing description information, a reset timing Verilog code corresponding to the reset timing description information, and a level conversion Verilog code corresponding to the level conversion description information.
[0015] Optionally, the power-on timing description information includes: ReadySignal, power-on ready signal, power-on time node TimingPoint, power-on enable signal PowerEnableSignal, normal signal ConstantSignal, power-on completion signal PgSignal, external input CPLD reset signal RebootSignal, external input system shutdown signal ShutdownSignal, reset signal InternalReboot generated inside the CPLD, and shutdown signal InternalShutdown generated inside the CPLD.
[0016] Optionally, RebootSignal and ShutdownSignal both include: a signal name indicating whether the rising edge / falling edge is valid, a pin number, and voltage standard information.
[0017] Optionally, the reset timing description information includes: a normal reset signal ConstantReset, a reset time node TimingPoint2T0, and a controlled reset signal ResetSignal.
[0018] Optionally, ConstantReset, TimingPoint2T0, and ResetSignal all include: a signal name, a pin number, and a voltage value.
[0019] Optionally, the power-on sequence Verilog code is encoded using a three-stage state machine;
[0020] The reset timing Verilog code is implemented using count delay.
[0021] In a second aspect of the present application, a CPLD power-on timing automatic configuration device is provided, the device comprising:
[0022] An acquisition module is used to obtain configuration information of the power-on sequence;
[0023] A generation module is used to generate Verilog code and pin constraint description files according to the configuration information obtained by the acquisition module;
[0024] The configuration module is used to automatically configure the CPLD power-on timing according to the Verilog code and pin constraint description file generated by the generation module.
[0025] In a third aspect of the present application, an electronic device is provided, including:
[0026] Memory;
[0027] Processor; and
[0028] Computer programs;
[0029] The computer program is stored in the memory and is configured to be executed by the processor to implement the method as described in the first aspect above.
[0030] In a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored; the computer program is executed by a processor to implement the method described in the first aspect above.
[0031] The present application provides a method, device, equipment, and storage medium for automatically configuring the power-on timing of a CPLD. The method includes: obtaining configuration information of the power-on timing; generating Verilog code and a pin constraint description file according to the configuration information; and automatically configuring the power-on timing of the CPLD according to the Verilog code and the pin constraint description file. The engineer responsible for the CPLD software program only needs to provide the configuration information, and the method provided by the present application can generate the Verilog code and the pin constraint description file according to the configuration information, thereby realizing the automatic configuration of the power-on timing of the CPLD and improving the configuration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0033] Figure 1 A flowchart of a method for automatically configuring a CPLD power-on timing sequence provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of an implementation architecture of a CPLD power-on timing automatic configuration method provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of a power-on timing table provided in an embodiment of the present application;
[0036] Figure 4 A schematic diagram of a reset timing table provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram of file import provided in an embodiment of the present application;
[0038] Figure 6 A schematic diagram of information import provided in an embodiment of the present application;
[0039] Figure 7 A schematic diagram of code generation provided in an embodiment of the present application;
[0040] Figure 8 A schematic diagram of a Verilog code structure provided for an embodiment of the present application;
[0041] Fig. 9 A schematic diagram of the structure of a CPLD power-on timing automatic configuration device provided in an embodiment of the present application;
[0042] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0044] In the process of implementing this application, the inventors found that due to the large number of signals that need to be managed, there are many situations in which repeated adjustments or increases and decreases in requirements are required during the debugging process. Engineers responsible for the CPLD software program often need to spend a lot of time checking and modifying, and are prone to errors.
[0045] In view of the above problems, the present application provides a method, device, equipment, and storage medium for automatically configuring the power-on timing of a CPLD. The method includes: obtaining configuration information of the power-on timing; generating Verilog code and a pin constraint description file according to the configuration information; and automatically configuring the power-on timing of the CPLD according to the Verilog code and the pin constraint description file. The engineer responsible for the CPLD software program only needs to provide the configuration information, and the method provided by the present application can generate the Verilog code and the pin constraint description file according to the configuration information, thereby realizing the automatic configuration of the power-on timing of the CPLD and improving the configuration efficiency.
[0046] See also Figure 1 This embodiment provides a method for automatically configuring the power-on timing of a CPLD. The method is performed as follows:
[0047] 101, obtain configuration information of the power-on sequence.
[0048] The configuration information of this step can be an Excel template created according to the usage habits of hardware engineers. The Excel template will write and describe the standardized power-on reset timing. Therefore, the implementation architecture of the CPLD power-on timing automatic configuration method provided in this embodiment is as follows: Figure 2 As shown, the hardware engineer's usage habit creates an Excel template. The CPLD power-on timing automatic configuration method provided in this embodiment will obtain the Excel template, write and describe the standardized power-on reset timing and input it into the script software to generate Verilog code.
[0049] The configuration information may include: power-on timing description information, reset timing description information and level conversion description information. For example, the Excel spreadsheet is divided into three pages, and each page uses a similar style and format to describe the power-on, reset timing requirements and level conversion requirements.
[0050] The power-on timing description information includes but is not limited to the following: ReadySignal, power-on ready signal, TimingPoint (power-on time node), PowerEnableSignal (power-on enable signal), ConstantSignal (normal signal), PgSignal (power-on completion signal), RebootSignal (externally input CPLD reset signal), ShutdownSignal (externally input system shutdown signal), InternalReboot (reset signal generated internally by CPLD), InternalShutdown (shutdown signal generated internally by CPLD).
[0051] a) Power-on ready signal, when it jumps to the specified level, it means that the power-on process can be started;
[0052] b) TimingPoint: power-on time node, arranged after the current node, until the power-on enable signal before the next node is the signal that will enable the current node;
[0053] c)PowerEnableSignal: Power-on enable signal, which is enabled after the power-on process runs to the corresponding time node
[0054] d) ConstantSignal: Normal signal. After the CPLD is powered on, the signal will be pulled high or low and will not change thereafter.
[0055] e) PgSignal: Power-on completion signal, indicating that the power-on enable of the corresponding time node is completed;
[0056] f)RebootSignal: external input CPLD reset signal;
[0057] g)ShutdownSignal: external input system shutdown signal;
[0058] h) InternalReboot: reset signal generated inside the CPLD;
[0059] i)InternalShutdown: The shutdown signal generated inside the CPLD.
[0060] The information required to fill in each content is different, such as Figure 3 shown.
[0061] Among them, RebootSignal and ShutdownSignal both include: a signal name indicating that the rising edge / falling edge is valid, a pin number, and voltage standard information.
[0062] External input / output signals (i.e. RebootSignal and ShutdownSignal) need to indicate the rising / falling edge validity and signal name, as well as the pin number and voltage standard information. Internal signals or information do not need this information.
[0063] Reset timing description information, including: ConstantReset (normal reset signal), TimingPoint2T0 (reset time node), ResetSignal (controlled reset signal).
[0064] a) ConstantReset: Normal reset signal. The corresponding signal is pulled high / low immediately after the CPLD is powered on.
[0065] b) TimingPoint2T0: reset time node, which starts from the power-on start time;
[0066] c)ResetSignal: The reset signal that needs to be controlled will be released at the corresponding time node;
[0067] Among them, ConstantReset, TimingPoint2T0, and ResetSignal all include: signal name, pin number, and voltage value. Figure 4 As shown, each information also needs to fill in the signal name, pin number, voltage value, etc.
[0068] In actual applications, in addition to the above information, the configuration information may also include other configuration information such as level conversion and pin constraints according to actual needs.
[0069] In a specific implementation, step 101 can be performed by Figure 5 The interface shown reads the Excel table. Use the File->Import Excel function to obtain the Excel table, read the contents in the Excel table, and obtain the configuration information of the power-on sequence.
[0070] In addition, a modification function can be provided to facilitate the modification of some information, such as Figure 6 As shown, after obtaining the contents in the Excel table, the configuration information will be displayed in the interface, and the information can be checked and modified here.
[0071] 102, generating Verilog code and pin constraint description file according to the configuration information.
[0072] Among them, the Verilog code is generated according to the configuration information, including:
[0073] Generate three copies of Verilog code based on the configuration information.
[0074] The three Verilog codes are: a power-on timing Verilog code corresponding to the power-on timing description information, a reset timing Verilog code corresponding to the reset timing description information, and a level conversion Verilog code corresponding to the level conversion description information.
[0075] The power-on sequence Verilog code is encoded using a three-stage state machine.
[0076] The reset timing Verilog code is implemented using count delay.
[0077] After the configuration information is acquired in step 101, a corresponding Verilog implementation code that can be directly synthesized and a pin constraint description file can be obtained through step 102.
[0078] The power-on sequence Verilog code uses a three-stage state machine encoding to achieve the functional requirement of controlling the power-on enable signal one by one at each time node in the power-on sequence.
[0079] The reset timing Verilog code uses a simpler counting delay implementation to meet the control requirements of the reset signal.
[0080] In the specific implementation, it can be achieved through Figure 7 The Export function shown in the figure determines the corresponding code output options and generates Verilog code. The module function block diagram of the generated power-on reset timing management module Verilog code is as follows: Figure 8 As shown, the power-on timing management module is generated by the generate power-on timing management module option, the reset timing management module is generated by the generate reset management module, and the clock frequency division module and the reset signal detection module are inherent and optional modules.
[0081] Finally, a power-on reset timing control code library can be formed, which will include Verilog code and pin constraint description files, etc.
[0082] 103. Automatically configure the CPLD power-on timing according to the Verilog code and pin constraint description file.
[0083] For example, the Verilog code and pin constraint description file are imported into the compiler to generate a bitstream file for burning onto the board.
[0084] The CPLD power-on timing automatic configuration method provided in this embodiment automatically generates a basic code framework for power-on, reset, and restart functions, and fills in a power-on reset signal, in view of the characteristics of CPLD power-on function requirements being relatively simple, code architecture being relatively fixed, work being highly repetitive, and being relatively time-consuming, so as to shorten the code writing cycle, reduce repetition, and reduce workload.
[0085] The CPLD power-on timing automatic configuration method provided in this embodiment is scalable. In addition to realizing functions such as power-on reset, it can also subsequently add code generation functions for simple functions such as level conversion, or generate pin constraint files.
[0086] The CPLD power-on timing automatic configuration method provided in this embodiment uses a unified table to standardize the way in which hardware engineers describe power-on and reset signals and their timing, thereby improving the communication efficiency between hardware engineers and digital circuit engineers.
[0087] The CPLD power-on timing automatic configuration method provided in this embodiment can describe the power-on and reset timing in a table format and style that is close to the usage habits and actual needs of hardware engineers, and has strong practicality while lowering the learning threshold.
[0088] The CPLD power-on timing automatic configuration method provided in this embodiment can generate Verilog code in one-click mode. The operation is simple and easy to learn, and the generation process is simple and intuitive. The operation can be learned in a short time.
[0089] The code structure generated by the CPLD power-on timing automatic configuration method provided in this embodiment is simple and clear, easy to read, and has good scalability, which is convenient for digital circuit engineers to modify the code on the basis of the generated code according to the actual needs of the project.
[0090] The Verilog code generated by the CPLD power-on timing automatic configuration method provided in this embodiment can directly replace the files in the library, and can be repackaged and used directly in the project in just a few simple steps.
[0091] The CPLD power-on timing automatic configuration method provided in this embodiment is a method of using QT to write script software to generate a basic code framework for power-on, reset, and restart functions, and fill in a power-on reset signal. This method can shorten the code writing cycle, reduce repetitive and simple workload, and enable FPGA engineers to generate a project that can be powered on for hardware testing in the shortest time, and also enable engineers to focus on the special functional requirements of the project.
[0092] The CPLD power-on timing automatic configuration method provided in this embodiment can automatically generate a Verilog code with a power-on reset management function and can be directly compiled by extracting information from an input power-on reset timing information table.
[0093] The CPLD power-on timing automatic configuration method provided in this embodiment can meet the power-on reset management requirements of different projects, and the generated code has high scalability, and the code can be modified according to special requirements.
[0094] The code generated by the CPLD power-on timing automatic configuration method provided in this embodiment divides power-on and reset management into two modules for management, thereby reducing the complexity of the code and improving the readability and scalability of the code.
[0095] The method for automatically configuring the CPLD power-on timing provided in this embodiment proposes a method of filling the power-on reset information into a table and then having the software read the table content to generate code, which conforms to the working habits of hardware engineers and digital circuit engineers and reduces the learning cost.
[0096] The CPLD power-on timing automatic configuration method provided in this embodiment has strong scalability, and the function of generating codes for other functional modules can be added later.
[0097] This embodiment provides a CPLD power-on timing automatic configuration method, which obtains the configuration information of the power-on timing; generates Verilog code and pin constraint description file according to the configuration information; and performs the CPLD power-on timing automatic configuration according to the Verilog code and the pin constraint description file. The engineer responsible for the CPLD software program only needs to provide the configuration information, and the method provided in this embodiment can generate the Verilog code and the pin constraint description file according to the configuration information, thereby realizing the CPLD power-on timing automatic configuration and improving the configuration efficiency.
[0098] Based on the same inventive concept of the CPLD power-on timing automatic configuration method, this embodiment provides a CPLD power-on timing automatic configuration device, see Fig. 9 , the device comprises:
[0099] The acquisition module 901 is used to acquire configuration information of the power-on sequence.
[0100] The generating module 902 is used to generate Verilog code and pin constraint description file according to the configuration information acquired by the acquiring module 901 .
[0101] The configuration module 903 is used to automatically configure the CPLD power-on timing according to the Verilog code and pin constraint description file generated by the generation module 902.
[0102] The configuration information includes: power-on timing description information, reset timing description information and level conversion description information.
[0103] Generate Verilog code based on configuration information, including:
[0104] Generate three copies of Verilog code based on the configuration information.
[0105] The three Verilog codes are: a power-on timing Verilog code corresponding to the power-on timing description information, a reset timing Verilog code corresponding to the reset timing description information, and a level conversion Verilog code corresponding to the level conversion description information.
[0106] Among them, the power-on timing description information includes: ReadySignal, power-on ready signal, power-on time node TimingPoint, power-on enable signal PowerEnableSignal, normal signal ConstantSignal, power-on completion signal PgSignal, external input CPLD reset signal RebootSignal, external input system shutdown signal ShutdownSignal, reset signal InternalReboot generated inside the CPLD, and shutdown signal InternalShutdown generated inside the CPLD.
[0107] Among them, RebootSignal and ShutdownSignal both include: a signal name indicating that the rising edge / falling edge is valid, a pin number, and voltage standard information.
[0108] The reset timing description information includes: a normal reset signal ConstantReset, a reset time node TimingPoint2T0, and a controlled reset signal ResetSignal.
[0109] Among them, ConstantReset, TimingPoint2T0, and ResetSignal all include: signal name, pin number, and voltage value.
[0110] Among them, the power-on sequence Verilog code adopts three-stage state machine encoding.
[0111] The reset timing Verilog code is implemented using count delay.
[0112] The device provided in this embodiment obtains configuration information of the power-on timing; generates Verilog code and pin constraint description file according to the configuration information; and automatically configures the CPLD power-on timing according to the Verilog code and the pin constraint description file. The engineer responsible for the CPLD software program only needs to provide the configuration information, and the device provided in this application can generate Verilog code and pin constraint description file according to the configuration information, thereby realizing automatic configuration of the CPLD power-on timing and improving configuration efficiency.
[0113] Based on the same inventive concept of the CPLD power-on timing automatic configuration method, this embodiment provides an electronic device, the electronic device such as Fig.10 As shown, it includes: a memory 1001, a processor 1002, and a computer program.
[0114] The computer program is stored in the memory 1001 and is configured to be executed by the processor 1002 to implement the above-mentioned CPLD power-on timing automatic configuration method.
[0115] Specifically,
[0116] Get the configuration information of the power-on sequence.
[0117] Generate Verilog code and pin constraint description files based on the configuration information.
[0118] Automatically configure the CPLD power-on timing according to the Verilog code and pin constraint description file.
[0119] Optionally, the configuration information includes: power-on timing description information, reset timing description information and level conversion description information.
[0120] Generate Verilog code based on configuration information, including:
[0121] Generate three copies of Verilog code based on the configuration information.
[0122] The three Verilog codes are: a power-on timing Verilog code corresponding to the power-on timing description information, a reset timing Verilog code corresponding to the reset timing description information, and a level conversion Verilog code corresponding to the level conversion description information.
[0123] Optionally, the power-on timing description information includes: ReadySignal, power-on ready signal, power-on time node TimingPoint, power-on enable signal PowerEnableSignal, normal signal ConstantSignal, power-on completion signal PgSignal, external input CPLD reset signal RebootSignal, external input system shutdown signal ShutdownSignal, reset signal InternalReboot generated inside the CPLD, and shutdown signal InternalShutdown generated inside the CPLD.
[0124] Optionally, RebootSignal and ShutdownSignal both include: a signal name indicating whether the rising edge / falling edge is valid, a pin number, and voltage standard information.
[0125] Optionally, the reset timing description information includes: a normal reset signal ConstantReset, a reset time node TimingPoint2T0, and a controlled reset signal ResetSignal.
[0126] Optionally, ConstantReset, TimingPoint2T0, and ResetSignal all include: a signal name, a pin number, and a voltage value.
[0127] Optionally, the power-on sequence Verilog code is encoded using a three-stage state machine.
[0128] The reset timing Verilog code is implemented using count delay.
[0129] In the electronic device provided by this embodiment, the computer program on the electronic device is executed by the processor to generate Verilog code and pin constraint description file according to the configuration information, thereby realizing automatic configuration of the CPLD power-on timing, thereby improving the configuration efficiency.
[0130] Based on the same inventive concept of the CPLD power-on timing automatic configuration method, this embodiment provides a computer-readable storage medium, and a computer program is stored on the medium. The computer program is executed by a processor to implement the above CPLD power-on timing automatic configuration method.
[0131] Specifically,
[0132] Get the configuration information of the power-on sequence.
[0133] Generate Verilog code and pin constraint description files based on the configuration information.
[0134] Automatically configure the CPLD power-on timing according to the Verilog code and pin constraint description file.
[0135] Optionally, the configuration information includes: power-on timing description information, reset timing description information and level conversion description information.
[0136] Generate Verilog code based on configuration information, including:
[0137] Generate three copies of Verilog code based on the configuration information.
[0138] The three Verilog codes are: a power-on timing Verilog code corresponding to the power-on timing description information, a reset timing Verilog code corresponding to the reset timing description information, and a level conversion Verilog code corresponding to the level conversion description information.
[0139] Optionally, the power-on timing description information includes: ReadySignal, power-on ready signal, power-on time node TimingPoint, power-on enable signal PowerEnableSignal, normal signal ConstantSignal, power-on completion signal PgSignal, external input CPLD reset signal RebootSignal, external input system shutdown signal ShutdownSignal, reset signal InternalReboot generated inside the CPLD, and shutdown signal InternalShutdown generated inside the CPLD.
[0140] Optionally, RebootSignal and ShutdownSignal both include: a signal name indicating whether the rising edge / falling edge is valid, a pin number, and voltage standard information.
[0141] Optionally, the reset timing description information includes: a normal reset signal ConstantReset, a reset time node TimingPoint2T0, and a controlled reset signal ResetSignal.
[0142] Optionally, ConstantReset, TimingPoint2T0, and ResetSignal all include: a signal name, a pin number, and a voltage value.
[0143] Optionally, the power-on sequence Verilog code is encoded using a three-stage state machine.
[0144] The reset timing Verilog code is implemented using count delay.
[0145] The computer-readable storage medium provided in this embodiment has a computer program on which a processor executes to generate Verilog code and a pin constraint description file according to configuration information, thereby realizing automatic configuration of the CPLD power-on timing and improving configuration efficiency.
[0146] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0147] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. 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 generate 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.
[0148] 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.
[0149] 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.
[0150] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0151] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for automatically configuring a CPLD power-on timing, characterized in that: The method comprises: Get the configuration information of the power-on sequence; Generate Verilog code and pin constraint description file according to the configuration information; The CPLD power-on timing is automatically configured according to the Verilog code and the pin constraint description file.
2. The method according to claim 1, characterized in that The configuration information includes: power-on timing description information, reset timing description information and level conversion description information; The generating of Verilog code according to the configuration information comprises: Generate three copies of Verilog code according to the configuration information; The three Verilog codes are: a power-on timing Verilog code corresponding to the power-on timing description information, a reset timing Verilog code corresponding to the reset timing description information, and a level conversion Verilog code corresponding to the level conversion description information.
3. The method according to claim 2, characterized in that The power-on timing description information includes: ReadySignal, power-on ready signal, power-on time node TimingPoint, power-on enable signal PowerEnableSignal, normal signal ConstantSignal, power-on completion signal PgSignal, external input CPLD reset signal RebootSignal, external input system shutdown signal ShutdownSignal, reset signal InternalReboot generated inside the CPLD, and shutdown signal InternalShutdown generated inside the CPLD.
4. The method according to claim 3, characterized in that The RebootSignal and ShutdownSignal both include: a signal name indicating whether the rising edge / falling edge is valid, a pin number, and voltage standard information.
5. The method according to claim 2, characterized in that: The reset timing description information includes: a normal reset signal ConstantReset, a reset time node TimingPoint2T0, and a controlled reset signal ResetSignal.
6. The method according to claim 5, characterized in that The ConstantReset, TimingPoint2T0, and ResetSignal all include: a signal name, a pin number, and a voltage value.
7. The method according to claim 2, characterized in that The power-on timing Verilog code is encoded using a three-stage state machine; The reset timing Verilog code is implemented in a counting delay manner.
8. A CPLD power-on timing automatic configuration device, characterized in that: The device comprises: An acquisition module is used to obtain configuration information of the power-on sequence; A generating module, used for generating Verilog code and pin constraint description file according to the configuration information acquired by the acquiring module; The configuration module is used to automatically configure the CPLD power-on timing according to the Verilog code and pin constraint description file generated by the generation module.
9. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon; the computer program is executed by a processor to implement the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method for automatically generating power-on time sequence program
CN109753673A
Method and device for generating FPGA code, storage medium and electronic equipment
CN117787159A
Hardware design protocol and system
US20030196194A1
Cited By
CPLD configuration information power-on loading method and system based on dynamic voltage regulation
WO2026174919A1