CN117591149A - Method, device, equipment and medium for updating port signals in system-on-chip integration - Google Patents

Method, device, equipment and medium for updating port signals in system-on-chip integration Download PDF

Info

Publication number
CN117591149A
CN117591149A CN202311542235.9A CN202311542235A CN117591149A CN 117591149 A CN117591149 A CN 117591149A CN 202311542235 A CN202311542235 A CN 202311542235A CN 117591149 A CN117591149 A CN 117591149A
Authority
CN
China
Prior art keywords
signal
level
port
target
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311542235.9A
Other languages
Chinese (zh)
Inventor
宗鹏
李兆静
刘子君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Silang Technology Co ltd
Original Assignee
Shanghai Silang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Silang Technology Co ltd filed Critical Shanghai Silang Technology Co ltd
Priority to CN202311542235.9A priority Critical patent/CN117591149A/en
Publication of CN117591149A publication Critical patent/CN117591149A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention provides a method, a device, equipment and a medium for updating port signals in system-on-chip integration, wherein the method comprises the following steps: when the on-chip system is determined to need to update the port signal, acquiring original hierarchical relation information of the unit to be replaced in an original grammar structure corresponding to the on-chip system; adding port signals to be added of the units to be replaced into the original hierarchical relationship information to obtain target hierarchical relationship information; and calling a preset signal passing script, and carrying out signal updating processing on the system on chip by combining the target level relation information. Compared with the prior art, the signal declaration operation process of each level is very complicated; by using the method, the hierarchical relation information of the unit to be replaced is obtained, the port signal to be added is added to the hierarchical relation information, and the signal update processing is performed by using the hierarchical relation information after the signal is added, so that the update processing process of the port signal is simplified, the processing efficiency is improved, and the processing cost is reduced.

Description

Method, device, equipment and medium for updating port signals in system-on-chip integration
Technical Field
The present invention relates to the field of integrated circuits, and in particular, to a method, an apparatus, a device, and a medium for updating a port signal in system on a chip integration.
Background
In the integration of a System On Chip (SOC), intellectual property (Intellectual Property, IP) modules of many co-providers (venders) need to be integrated. In the integration process, some standard units in the IP module are replaced by own standard units, when the standard units are replaced by own standard units, ports (ports) of the standard units to be replaced are inconsistent with original ports of the standard units in the IP module, and signals can be more than the original ports, so that the Port signals of the bottom layer need to be modified. This requires signaling in from the top layer until the problem of the standard cell port to be replaced is resolved. The prior art is embodied in such a way that when adding a certain signal of a certain unit, signal declarations need to be made at each of the layers involved. It is not complex for a pass signal with fewer levels, but when the levels are deep and there are many standard cells to replace, it is very cumbersome to handle and error prone.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for updating port signals in system-on-chip integration, which simplify the updating processing process of the port signals, improve the processing efficiency and reduce the processing cost.
In a first aspect, an embodiment of the present invention provides a method for updating a port signal in system on chip integration, including:
when the on-chip system is determined to need to update port signals, acquiring original hierarchical relation information of a unit to be replaced in an original grammar structure corresponding to the on-chip system;
adding port signals to be added of the units to be replaced into the original hierarchical relationship information to obtain target hierarchical relationship information;
and calling a preset signal passing script, and carrying out signal updating processing on the system on chip by combining the target level relation information.
In a second aspect, an embodiment of the present invention provides an apparatus for updating a port signal in a system on chip integration, including:
the information determining module is used for acquiring original hierarchical relation information of the unit to be replaced in an original grammar structure corresponding to the system on chip when the system on chip is determined to need to update port signals;
The signal adding module is used for adding the port signal to be added of the unit to be replaced into the original hierarchical relationship information to obtain target hierarchical relationship information;
and the signal updating module is used for calling a preset signal passing script and carrying out signal updating processing on the system on chip by combining the target level relation information.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a method of updating port signals in a system-on-chip integration as described in an embodiment of the first aspect.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer executable instructions, which when executed by a computer processor, are for performing a method of updating port signals in a system-on-chip integration as described in the embodiments of the first aspect.
The embodiment of the invention provides a method for updating port signals in system-on-chip integration, which comprises the following steps: when the on-chip system is determined to need to update port signals, acquiring original hierarchical relation information of a unit to be replaced in an original grammar structure corresponding to the on-chip system; adding port signals to be added of the units to be replaced into the original hierarchical relationship information to obtain target hierarchical relationship information; and calling a preset signal passing script, and carrying out signal updating processing on the system on chip by combining the target level relation information. Compared with the prior art, the signal declaration operation process of each level is very complicated; according to the technical scheme, the hierarchical relation information of the unit to be replaced is obtained, the port signals to be added are added to the hierarchical relation information, and the signal updating processing is performed by using the hierarchical relation information after the signals are added, so that the updating processing process of the port signals is simplified, the processing efficiency is improved, and the processing cost is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for updating port signals in a system-on-chip integration according to an embodiment of the present invention;
fig. 2 is a flow chart of another method for updating port signals in system-on-chip integration according to the second embodiment of the present invention;
fig. 3 is a flowchart illustrating an implementation of a method for updating a port signal in a system on a chip integration in an application scenario according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for updating port signals in system-on-chip integration according to a third embodiment of the present invention;
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "original," "target," and the like in the description and claims of the present invention and the above-described drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
For example, in response to receiving an active request from a user, a prompt is sent to the user to explicitly prompt the user that the operation it is requesting to perform will require personal information to be obtained and used with the user. Thus, the user can autonomously select whether to provide personal information to software or hardware such as an electronic device, an application program, a server or a storage medium for executing the operation of the technical scheme of the present disclosure according to the prompt information.
As an alternative but non-limiting implementation, in response to receiving an active request from a user, the manner in which the prompt information is sent to the user may be, for example, a popup, in which the prompt information may be presented in a text manner. In addition, a selection control for the user to select to provide personal information to the electronic device in a 'consent' or 'disagreement' manner can be carried in the popup window.
It will be appreciated that the above-described notification and user authorization process is merely illustrative and not limiting of the implementations of the present disclosure, and that other ways of satisfying relevant legal regulations may be applied to the implementations of the present disclosure.
It will be appreciated that the data (including but not limited to the data itself, the acquisition or use of the data) involved in the present technical solution should comply with the corresponding legal regulations and the requirements of the relevant regulations.
The verilog is a hardware description language, and the verilog program is composed of modules, and the content of each module is embedded between two keywords module and endmodule. Each module implements a specific function. Illustratively, the syntax architecture of the verilog integration module is as follows:
in the prior art, if an add module is to be replaced and the add module has an increased signal, add is added to the signal i, the instantiation of the module is changed as follows:
as can be appreciated from the above examples, if the underlying port signals are to be modified, the signals are not only asserted in the instantiation region, but also in the port declaration region, and the signal names may be different, if the hierarchy is deep, nested layer by layer and many, a significant amount of effort is required.
Example 1
Fig. 1 is a flow chart of a method for updating a port signal in a system-on-chip integration according to an embodiment of the present invention, where the method is applicable to a case of adding a port signal in a system-on-chip integration, and the method may be performed by an apparatus for updating a port signal in a system-on-chip integration, and the apparatus may be implemented in a form of hardware and/or software, and may be configured in an electronic device. As shown in fig. 1, the method for updating port signals in the system on chip integration provided in the first embodiment specifically includes the following steps:
S110, when the on-chip system is determined to need to update the port signal, acquiring original hierarchical relation information of the unit to be replaced in an original grammar structure corresponding to the on-chip system.
The application scenario of this embodiment can be understood as follows: in the integration of a system on chip, many co-provider IP blocks need to be integrated. In the integration process, because the IP module is a general module, in order to adapt to the integration of the system on chip, some standard units in the IP module are replaced by own standard units, and when the standard units are replaced by own standard units, the ports of the standard units to be replaced are inconsistent with the original ports of the standard units in the IP module, and a plurality of signals can be more than the original ports, so that the port signals of the bottom layer need to be modified.
The grammar structure corresponding to the IP module provided by each cooperation provider is recorded as an original grammar structure.
In this embodiment, it is generally described in a user manual which standard units need to be replaced in the IP module integration process, so as to replace the standard units with the standard units, for example, the standard units need to be replaced for the basic units. If the port signal is required to be updated, the method provided by the embodiment needs to be utilized to add the port signal into the grammar structure.
The unit to be replaced can be understood as an IP module that needs to be replaced in the integrated process of the system on chip. And the IP modules are in signal transmission through ports. In order to perform port signal addition, when it is determined that the system-on-chip needs to perform port signal update, the original hierarchical relationship information of the unit to be replaced needs to be acquired first. The original hierarchical relationship information may be understood to include information such as the hierarchy in which the unit to be replaced is located in the entire syntax structure, which hierarchy is above this hierarchy, the order in which the hierarchies are arranged, and the like. It should be noted that, while determining the original hierarchical relationship information of the unit to be replaced in the original syntax structure corresponding to the system on chip, it is also necessary to determine the signal direction of the port signal added by the unit to be replaced. Wherein the signal direction may be input or output. The signal bit width of the port signal to be added may be single bit or multiple bits.
For example, assuming that the unit to be replaced is an add unit, the obtaining the original hierarchical relationship information to be exchanged is: top.u1.u2.u3.u4.u5.u6.u7.u8.u_name.u_add, add units are on level 11, where Top, u1, u2, u3, u4, u5, u6, u7, u8, u_name are respectively the upper levels of the levels where add units are located.
S120, adding port signals to be added of the units to be replaced into the original hierarchical relationship information to obtain target hierarchical relationship information.
The port signal to be added of the unit to be replaced is recorded as the port signal to be added. In this embodiment, after the original hierarchical relationship information is obtained, the level where the unit to be replaced is located is known. Adding the port signal to be added into the original hierarchy relation information, namely adding the signal name of the port to be changed on the hierarchy to be replaced and the port to be changed, and adding the signal name of the hierarchy located at the higher hierarchy until reaching the highest hierarchy. And recording the hierarchical relation information added with the port signals as target hierarchical relation information.
Continuing to describe the above example, when it is determined that the add unit is on the 11 th hierarchy, the hierarchical relationship is top.u1.u2.u3.u4.u5.u6.u7.u8.u_name.u_add, a signal name of the port signal to be added is added on the add, and the port signal name of the connected last hierarchy is added, so that the determination of the signal flow direction can be realized through the added signal name. Specifically, the hierarchical signal names above u_name remain unchanged until the top layer is reached, and after port signals are added, the hierarchical relationship is as follows:
Top (d) (d) u1 (d) (d) u2 (d) (d) u3 (d) (d) u4 (d) (d) u5 (d) (d) u6 (d) (d) u7 (d) (d) u8 (d) (d) u_name (d) (d) u_add (I) (d), wherein the contents in the first bracket of each hierarchy represent the signal names of its own ports and the contents in the second bracket represent the signal names of the ports of the last connected hierarchy. The names of the signals of the ports of each hierarchy may be the same or different, and the link relationship may be maintained. That is, in the above example, the names of the above hierarchical signals are each named d, or the names of the above hierarchical signals may be respectively named as different names, and the unevenness may be named as d.
S130, calling a preset through signal script, and carrying out signal updating processing on the system on chip by combining the target level relation information.
Specifically, after the target hierarchical relationship information is obtained, the register conversion stage circuit (Register Transfer Level, RTL) engineering is subjected to signal passing processing according to the target hierarchical relationship information, namely, the system on chip is subjected to signal updating processing. In the present embodiment, the number of ports to be added is not particularly limited, and may be one or a plurality of ports, for example. The signal bit width of the port signal to be added may be single bit or multiple bits. For each unit to be replaced and each new signal in each unit to be replaced, the signal script and the target level relation information corresponding to the new signal can be utilized to update the new signal.
The preset signal threading script can be understood as a pre-generated script which can be used for executing signal threading, and batch signal threading operation can be executed by using the signal threading script instead of manual operation. The process of performing signal update processing by using the through-signal script in combination with the target hierarchical relationship information can be described as follows: taking a target level in the target level relation information as a current level through a signal passing script; reading the current signal name of the port signal of the current level and the previous signal name of the port signal of the previous level connected with the current level from the target level relation information through the signal passing script; adding the current signal name into the current level of the original grammar structure through a signal penetrating script; acquiring a previous level connected with the current level according to the name of the previous signal through a signal penetrating script; the last level is used as the current level through the signal passing script, and the step of continuously executing the current signal name of the port signal of the current level and the last signal name of the port signal of the last level connected with the current level through the signal passing script is returned; until the level included in the target level relation information is traversed, the signal updating process is completed.
In the present embodiment, it can be considered that the execution of the method is based on a script file. And the script file performs signal updating processing on the system on chip according to the target hierarchical relationship. It can be known that in the prior art, when a certain signal of a certain unit is added, signal declarations need to be performed on each layer involved, and the level is not complex for penetrating signals with fewer levels, but when the level is deeper and standard units to be replaced are many, the processing is very complicated and errors are easy to occur; the script tool batch processing is very suitable for the complicated problems, and the processing efficiency is improved.
The embodiment of the invention provides a method for updating port signals in system-on-chip integration, which comprises the following steps: firstly, when the on-chip system is determined to need to update port signals, acquiring original hierarchical relation information of a unit to be replaced in an original grammar structure corresponding to the on-chip system; then adding port signals to be added of the units to be replaced into the original hierarchical relationship information to obtain target hierarchical relationship information; and finally, calling a preset through signal script, and carrying out signal updating processing on the system on chip by combining the target level relation information. Compared with the prior art, the signal declaration operation process of each level is very complicated; according to the technical scheme, the hierarchical relation information of the unit to be replaced is obtained, the port signals to be added are added to the hierarchical relation information, and the signal updating processing is performed by using the hierarchical relation information after the signals are added, so that the updating processing process of the port signals is simplified, the processing efficiency is improved, and the processing cost is reduced.
As an optional embodiment of the embodiments of the present invention, on the basis of the foregoing embodiment, the method may be optimized further includes: and when the first signal quantity of the port signals of the replacement unit is more than the second signal quantity of the port signals of the unit to be replaced in the integrated module in the integrated process of the system on chip, determining that the system on chip needs to update the port signals.
In the integrated process of the system on chip, a replacement unit of the system on chip needs to replace a unit to be replaced in an IP module, the number of port signals of the replacement unit is recorded as a first signal number, and the number of port signals of the unit to be replaced is recorded as a second signal number. In this alternative embodiment, it is necessary to determine in advance whether the port signal update is required, and when the first signal number is greater than the second signal number, it is determined that the port signal update is required.
The above technical solution adds the step of updating the port signal.
Example two
Fig. 2 is a flow chart of another method for updating port signals in a system-on-chip integration provided by the second embodiment of the present invention, where the present embodiment is a further optimization of the above embodiment, in the present embodiment, the optimization is further defined for "obtaining the original hierarchical relationship information of the unit to be replaced in the original syntax structure", and the optimization is further defined for "adding the port signals to be added of the unit to be replaced to the original hierarchical relationship information, obtaining the target hierarchical relationship information", and further defined for "calling a preset through signal script, and performing signal updating processing on the system-on-chip by combining the target hierarchical relationship information".
As shown in fig. 2, the second embodiment provides a method for updating port signals in system-on-chip integration, which specifically includes the following steps:
and S210, when the on-chip system is determined to need to update the port signal, adding a printing function to the unit to be replaced and compiling codes to obtain the original hierarchical relation information of the unit to be replaced in the original grammar structure.
Specifically, when it is determined that the on-chip system needs to update the port signal, a print function (i.e., print function) is added to the unit to be replaced, and codes are compiled to print out the hierarchical relationships of all the units to be replaced, and the hierarchical relationships are recorded as the original hierarchical relationship information of the unit to be replaced. The hierarchical relation information comprises a target hierarchy where the unit to be replaced is located. In this embodiment, the level at which the unit to be replaced is located is referred to as a target level.
S220, extracting a target level where the unit to be replaced is located in the original level relation information.
For example, assuming that the unit to be replaced is an add unit, the obtaining the original hierarchical relationship information to be exchanged is: top.u1.u2.u3.u4.u5.u6.u7.u8.u_name.u_add, add units are on level 11.
S230, adding the signal name of the port signal to be added to the target level.
Specifically, the signal name of the port signal to be added is added to the target level, wherein not only the signal name of the port signal to be added, but also the signal name of the port signal of the level connected with the port needs to be added.
Further, adding the signal name of the port signal to be added to the target hierarchy includes:
a1 A signal name of the port signal to be added is taken as first added content.
Specifically, the signal name of the port signal to be added is recorded as the first added content, and it is assumed that the port signal l is added at the level where the add is located by way of example.
b1 The signal name of the last port signal of the last hierarchy of the target hierarchy connection is taken as second added content.
Specifically, the signal name of the last port signal of the last hierarchy connected to the target hierarchy is used as the second added content. Illustratively, let d be the last port signal of the last level of the level where add is located.
c1 The first added content and the second added content are added to the target hierarchy in the set order.
The setting order may be that a first bracket places the first added content and a second bracket places the second added content. Illustratively, the port signal name d of the add itself and the port signal l of the connected upper layer are added in the set order, to obtain u_add (l) (d).
S240, adding connection relation information of each upper level to each upper level of the target level to obtain the target level relation information.
In this embodiment, the level above the target level is designated as the upper level, and in order to realize the purpose of penetrating the added port signal to the topmost level, it is necessary to add connection relationship information of each upper level to each level, and obtain final target level relationship information.
Further, adding connection relation information of each upper hierarchy to each upper hierarchy of the target hierarchy to obtain target hierarchy relation information, including:
a2 For each upper hierarchy, the signal name of the port signal of the upper hierarchy is taken as the third added content.
Specifically, for each upper hierarchy, the signal name of the port signal of the upper hierarchy is noted as the third added content. Illustratively, the content in the first bracket in each hierarchy described below is the third added content.
Top(d)(d).u1(d)(d).u2(d)(d).u3(d)(d).u4(d)(d).u5(d)(d).u6(d)(d).u7(d)(d).u8(d)(d).u_name(d)(d)。
b2 A signal name of a last port signal of a last hierarchy connected to the last hierarchy is used as fourth added content.
Specifically, the signal name of the last port signal of the last hierarchy connected to the last hierarchy is referred to as fourth added content. Illustratively, the content in the second brackets in each hierarchy described below is the fourth added content.
Top(d)(d).u1(d)(d).u2(d)(d).u3(d)(d).u4(d)(d).u5(d)(d).u6(d)(d).u7(d)(d).u8(d)(d).u_name(d)(d)。
c2 The third added content and the fourth added content are used as connection relation information of each level, and each connection relation is added to the upper level in a set order.
The setting order may be that the first bracket places the third added content, the second bracket places the fourth added content. Illustratively, the target hierarchical relationship information may be expressed as:
Top(d)(d).u1(d)(d).u2(d)(d).u3(d)(d).u4(d)(d).u5(d)(d).u6(d)(d).u7(d)(d).u8(d)(d).u_name(d)(d)。
s250, calling and using the target hierarchy in the target hierarchy relation information as the current hierarchy through the signal passing script.
Specifically, a through-signal script is called, a target level where a unit to be replaced is located in the target level relation information is obtained through the through-signal script, and the target level is used as a current level.
S260, reading the current signal name of the port signal of the current level and the previous signal name of the port signal of the previous level connected with the current level from the target level relation information through the signal passing script.
Specifically, each level in the target level relationship information includes the signal name of the present level and the signal name of the previous level. Based on the through signal script, reading the signal name of the port signal of the current level and marking the signal name of the port signal of the previous level connected with the current level as the previous signal name.
S270, adding the current signal name into the current level of the original grammar structure through the signal passing script.
The step can be understood as a step of adding signals, and in the embodiment, the manual operation is performed based on the through-signal script agent, so that batch processing can be performed by utilizing script mechanization, and the complexity and error of the manual operation are avoided.
S280, acquiring a previous level of current level connection according to the name of the previous signal through the signal passing script.
Specifically, through the signal passing script, according to the name of the last signal, the last level of the current level connection can be determined.
S290, returning to the step S260 by taking the previous hierarchy as the current hierarchy through the signal passing script.
S2110 is performed until the hierarchy included in the target hierarchy relationship information is traversed, so as to complete the signal update processing.
When each level information in the target level relation information is traversed, the signal updating process is realized, which is equivalent to that each level in the original grammar structure is subjected to signal increasing.
The technical scheme includes the steps of obtaining original hierarchical relation information of a unit to be replaced in the original grammar structure, adding port signals to be added of the unit to be replaced to the original hierarchical relation information to obtain target hierarchical relation information, calling a preset penetrating signal script, and carrying out signal updating processing on the system on chip by combining the target hierarchical relation information. By acquiring the hierarchical relation information of the unit to be replaced, adding the port signal to be added to the hierarchical relation information, and performing signal updating processing by using the hierarchical relation information after adding the signal, the updating processing process of the port signal is simplified, the processing efficiency is improved, and the processing cost is reduced.
In order to more clearly describe the method for updating the port signal in the system-on-chip integration provided by the embodiment of the invention, the method for updating the port signal in the system-on-chip integration is described by taking a certain practical application scene as an example. Fig. 3 is a flowchart illustrating an implementation of a method for updating a port signal in a system on chip integration in an application scenario according to a second embodiment of the present invention, where, as shown in fig. 3, the implementation steps of the method for updating a port signal in a system on chip integration specifically include:
s1, when the first signal quantity of the port signals of the replacement unit is larger than the second signal quantity of the port signals of the unit to be replaced in the integrated module in the integrated process of the system on chip, determining that the system on chip needs to update the port signals.
And S2, when the on-chip system is determined to need to update the port signal, adding a printing function to the unit to be replaced and compiling codes to obtain the original hierarchical relation information of the unit to be replaced in the original grammar structure.
S3, extracting a target level where the unit to be replaced is located in the original level relation information.
And S4, taking the signal name of the port signal to be added as the first added content.
S5, taking the signal name of the last port signal of the last level connected with the target level as a second added content.
S6, adding the first added content and the second added content to the target level according to the set sequence.
And S7, regarding each upper layer, taking the signal name of the port signal of the upper layer as a third added content.
And S8, taking the signal name of the last port signal of the last hierarchy connected with the last hierarchy as fourth added content.
And S9, adding the third added content and the fourth added content as connection relation information of each level to the upper level according to a set sequence, and obtaining target level relation information.
S10, calling and using the target hierarchy in the target hierarchy relation information as the current hierarchy through the signal passing script.
S11, reading the current signal name of the port signal of the current level and the previous signal name of the port signal of the previous level connected with the current level from the target level relation information through the signal passing script.
S12, adding the current signal name into the current level of the original grammar structure through the signal passing script.
S13, acquiring the last hierarchy of the current hierarchy connection according to the last signal name through the signal passing script.
S14, returning to the step S11 by taking the previous hierarchy as the current hierarchy through the signal passing script.
S15, traversing until the level included in the target level relation information is completed, so as to complete signal updating processing.
Example III
Fig. 4 is a schematic structural diagram of a device for updating port signals in a system-on-chip integration according to a third embodiment of the present invention, where the device is applicable to a case of adding port signals in a system-on-chip integration, and the device for updating port signals in a system-on-chip integration may be configured in an electronic device, as shown in fig. 4, and the device includes: an information determination module 31, a signal addition module 32, and a signal update module; wherein,
the information determining module 31 is configured to obtain, when it is determined that the system on chip needs to perform port signal update, original hierarchical relation information of a unit to be replaced in an original syntax structure corresponding to the system on chip;
the signal adding module 32 is configured to add a port signal to be added of the unit to be replaced to the original hierarchical relationship information, so as to obtain target hierarchical relationship information;
the signal updating module 33 is configured to invoke a preset signal passing script, and perform signal updating processing on the system on chip in combination with the target level relationship information.
The embodiment of the invention provides a device for updating port signals in system-on-chip integration, which is very complicated in the operation process by carrying out signal declaration on each level compared with the prior art; by using the method, the hierarchical relation information of the unit to be replaced is obtained, the port signal to be added is added to the hierarchical relation information, and the signal update processing is performed by using the hierarchical relation information after the signal is added, so that the update processing process of the port signal is simplified, the processing efficiency is improved, and the processing cost is reduced.
Optionally, the apparatus further includes an update judgment module configured to:
and when the first signal quantity of the port signals of the replacement unit is more than the second signal quantity of the port signals of the unit to be replaced in the integrated module in the integrated process of the system on chip, determining that the system on chip needs to update the port signals.
Optionally, the information determining module 31 is specifically configured to:
and adding a printing function to the unit to be replaced, and compiling codes to obtain original hierarchical relation information of the unit to be replaced, wherein the hierarchical relation information comprises a target hierarchy where the unit to be replaced is located.
Optionally, the signal adding module 32 may include:
the hierarchy extraction unit is used for extracting a target hierarchy where the unit to be replaced is located in the original hierarchy relation information;
a first adding unit, configured to add a signal name of a port signal to be added to a target hierarchy;
and the second adding unit is used for respectively adding the connection relation information of each upper level on each upper level of the target level to obtain the target level relation information.
Optionally, the first adding unit is specifically configured to:
taking the signal name of the port signal to be added as first added content;
taking the signal name of the last port signal of the last level connected with the target level as second added content;
The first added content and the second added content are added to the target hierarchy in a set order.
Optionally, the second adding unit is specifically configured to:
for each upper hierarchy, taking the signal name of the port signal of the upper hierarchy as third added content;
taking the signal name of the last port signal of the last hierarchy connected with the last hierarchy as fourth added content;
and adding the third added content and the fourth added content as connection relation information of each level to the upper level according to a set sequence to obtain target level relation information.
Optionally, the signal updating module 33 may be specifically configured to:
calling and using a target hierarchy in the target hierarchy relation information as a current hierarchy through a signal passing script;
reading the current signal name of the port signal of the current level and the previous signal name of the port signal of the previous level connected with the current level from the target level relation information through the signal passing script;
adding the current signal name into the current level of the original grammar structure through a signal penetrating script;
acquiring a previous level connected with the current level according to the name of the previous signal through a signal penetrating script;
the last level is used as the current level through the signal passing script, and the step of continuously executing the current signal name of the port signal of the current level and the last signal name of the port signal of the last level connected with the current level through the signal passing script is returned;
Until the level included in the target level relation information is traversed, the signal updating process is completed.
The device for updating the port signal in the system-on-chip integration provided by the embodiment of the invention can execute the method for updating the port signal in the system-on-chip integration provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 40 includes at least one processor 41, and a memory communicatively connected to the at least one processor 41, such as a Read Only Memory (ROM) 42, a Random Access Memory (RAM) 43, etc., in which the memory stores a computer program executable by the at least one processor, and the processor 41 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 42 or the computer program loaded from the storage unit 48 into the Random Access Memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 40 may also be stored. The processor 41, the ROM 42 and the RAM 43 are connected to each other via a bus 44. An input/output (I/O) interface 45 is also connected to bus 44.
Various components in electronic device 40 are connected to I/O interface 45, including: an input unit 46 such as a keyboard, a mouse, etc.; an output unit 47 such as various types of displays, speakers, and the like; a storage unit 48 such as a magnetic disk, an optical disk, or the like; and a communication unit 49 such as a network card, modem, wireless communication transceiver, etc. The communication unit 49 allows the electronic device 40 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 41 may be various general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 41 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 41 performs the various methods and processes described above, such as the method of updating port signals in a system-on-chip integration.
In some embodiments, the method of updating port signals in system-on-chip integration may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 48. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 40 via the ROM 42 and/or the communication unit 49. When the computer program is loaded into RAM 43 and executed by processor 41, one or more steps of the method of updating port signals in a system-on-chip integration described above may be performed. Alternatively, in other embodiments, processor 41 may be configured to perform the method of updating the port signals in the system-on-chip integration in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for updating port signals in a system-on-chip integration, comprising:
when the on-chip system is determined to need to update port signals, acquiring original hierarchical relation information of a unit to be replaced in an original grammar structure corresponding to the on-chip system;
adding port signals to be added of the units to be replaced into the original hierarchical relationship information to obtain target hierarchical relationship information;
And calling a preset signal passing script, and carrying out signal updating processing on the system on chip by combining the target level relation information.
2. The method as recited in claim 1, further comprising:
and in the integrated process of the system on chip, when the first signal quantity of the port signals of the replacement unit is more than the second signal quantity of the port signals of the unit to be replaced in the integrated module, determining that the system on chip needs to update the port signals.
3. The method of claim 1, wherein the obtaining the original hierarchical relationship information of the unit to be replaced in the original syntax structure corresponding to the system-on-chip includes:
and adding a printing function to the unit to be replaced and compiling codes to obtain original hierarchical relation information of the unit to be replaced in the original grammar structure, wherein the hierarchical relation information comprises a target hierarchy where the unit to be replaced is located.
4. The method according to claim 1, wherein adding the port signal to be added of the unit to be replaced to the original hierarchical relationship information to obtain target hierarchical relationship information includes:
extracting a target level of the unit to be replaced in the original level relation information;
Adding the signal name of the port signal to be added to the target level;
and adding the connection relation information of each upper level to each upper level of the target level to obtain the target level relation information.
5. The method of claim 4, wherein the adding the signal name of the port signal to be added to the target tier comprises:
taking the signal name of the port signal to be added as first added content;
taking the signal name of the last port signal of the last level connected with the target level as second added content;
the first added content and the second added content are added to the target hierarchy in a set order.
6. The method according to claim 4, wherein adding each of the connection relationship information of the upper hierarchy to each of the upper hierarchies of the target hierarchy to obtain the target hierarchy relationship information, respectively, comprises:
for each upper hierarchy, taking the signal name of the port signal of the upper hierarchy as third added content;
taking the signal name of the last port signal of the last hierarchy connected with the last hierarchy as fourth added content;
And adding the third added content and the fourth added content as connection relation information of each level to the upper level according to a set sequence to obtain the target level relation information.
7. The method of claim 5, wherein the invoking the preset through-signal script in combination with the target hierarchical relationship information performs a signal update process on the system-on-chip, comprising:
calling and using the target hierarchy in the target hierarchy relation information as a current hierarchy through the signal passing script;
reading the current signal name of the port signal of the current level and the previous signal name of the port signal of the previous level connected with the current level from the target level relation information through the signal passing script;
adding the current signal name to a current level of the original grammar structure through the through-signal script;
acquiring a previous level of the current level connection according to the previous signal name through the signal passing script;
returning to the step of continuing to execute the reading of the current signal name of the port signal of the current level and the previous signal name of the port signal of the previous level connected with the current level through the signal penetrating script by taking the previous level as the current level through the signal penetrating script;
Until the hierarchy included in the target hierarchy relation information is traversed, signal updating processing is completed.
8. An apparatus for updating port signals in a system-on-chip integration, comprising:
the information determining module is used for acquiring original hierarchical relation information of the unit to be replaced in an original grammar structure corresponding to the system on chip when the system on chip is determined to need to update port signals;
the signal adding module is used for adding the port signal to be added of the unit to be replaced into the original hierarchical relationship information to obtain target hierarchical relationship information;
and the signal updating module is used for calling a preset signal passing script and carrying out signal updating processing on the system on chip by combining the target level relation information.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of updating port signals in a system-on-chip integration of any one of claims 1-7.
10. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the method of updating port signals in a system-on-chip integration according to any one of claims 1-7.
CN202311542235.9A 2023-11-17 2023-11-17 Method, device, equipment and medium for updating port signals in system-on-chip integration Pending CN117591149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311542235.9A CN117591149A (en) 2023-11-17 2023-11-17 Method, device, equipment and medium for updating port signals in system-on-chip integration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311542235.9A CN117591149A (en) 2023-11-17 2023-11-17 Method, device, equipment and medium for updating port signals in system-on-chip integration

Publications (1)

Publication Number Publication Date
CN117591149A true CN117591149A (en) 2024-02-23

Family

ID=89914476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311542235.9A Pending CN117591149A (en) 2023-11-17 2023-11-17 Method, device, equipment and medium for updating port signals in system-on-chip integration

Country Status (1)

Country Link
CN (1) CN117591149A (en)

Similar Documents

Publication Publication Date Title
CN107402992B (en) Distributed NewSQL database system and full-text retrieval establishing method
US10318595B2 (en) Analytics based on pipes programming model
US20140250103A1 (en) Obtaining partial results from a database query
CN108984388A (en) A kind of method and terminal device generating automatic test cases
CN109684607A (en) JSON data analysis method, device, computer equipment and storage medium
US10979515B1 (en) Resource discovery agent computing device, software application, and method
CN117591149A (en) Method, device, equipment and medium for updating port signals in system-on-chip integration
WO2020024902A1 (en) Method, device, and storage medium for searching for blockchain data
CN116185389A (en) Code generation method and device, electronic equipment and medium
CN114047926A (en) Method, device and equipment for converting array calculation expression language and storage medium
CN115629763A (en) Target code generation method and NPU instruction display method and device
CN112882994A (en) Log extraction method and device
WO2019148796A1 (en) Deduction information processing method and apparatus, and computer device and storage medium
CN117492822B (en) Change contrast method, device, electronic equipment and storage medium
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN114896322A (en) JSON (Java Server object notation) -based configuration data conversion method, device, equipment and medium
CN117033402A (en) Data access method, device, equipment and storage medium
CN116400956A (en) Code merging information determining method and device, electronic equipment and storage medium
CN115983222A (en) EasyExcel-based file data reading method, device, equipment and medium
CN117032756A (en) Software updating method and device, electronic equipment and storage medium
CN117520395A (en) Port association deletion screening method, device, equipment and storage medium
CN117421283A (en) Layer publishing method, device, equipment and storage medium
CN116955394A (en) Data query method, device, equipment and medium
CN116932562A (en) Database updating method, device, electronic equipment and computer readable medium
CN116382699A (en) Method, device, equipment and medium for processing mapping file in vehicle calibration engineering

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination