Automatic logic component construction method and device, equipment and storage medium

By automatically parsing and matching logic component files, the problem of low efficiency and insufficient accuracy of logic component creation in automotive electronic and electrical architecture design is solved, and the automatic construction of logic components and automatic association of signal components is realized, improving the overall construction efficiency and accuracy .

CN119248241APending Publication Date: 2025-01-03FAW JIEFANG AUTOMOTIVE CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411277124.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In the process of designing and developing automotive electronic and electrical architectures, the creation of logical components requires manual construction, which is susceptible to human subjective factors, resulting in errors and inefficiency.

Method used

By obtaining the logical component file to be created, parsing and extracting the input signal and output signal components, matching and updating the model logic component file, the automatic construction of the logical component is realized.

Benefits of technology

It improves the construction efficiency and accuracy of logic components, realizes the automatic construction of logic components and the automatic association of signal components, and reduces manual errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248241A_ABST
    Figure CN119248241A_ABST
Patent Text Reader

Abstract

The invention discloses a logic component automatic construction method and device, equipment and a storage medium. The method comprises the steps of obtaining a to-be-created logic component file; performing file analysis on the to-be-created logic component file to obtain a to-be-created logic component and a to-be-created input signal component and a to-be-created output signal component of the to-be-created logic component; obtaining a model logic component file constructed in an automobile architecture design and development process; performing logic component traversal on the model logic component file to obtain a constructed model logic component; and performing component matching on the model logic component and the to-be-created logic component to obtain a component matching result, and according to the component matching result, based on a to-be-created input signal component and a to-be-created output signal component of the to-be-created logic component, updating the model logic component file so as to realize automatic construction of the logic component. According to the technical scheme, the construction efficiency and the construction accuracy of the logic component are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile electrical architecture design and development, and in particular to a method, device, equipment and storage medium for automatically constructing a logic component. Background Art

[0002] In the process of designing and developing automotive electronic and electrical architecture, the process of constructing the logic components of the model logic layer usually involves the creation of logic components. This includes the creation of the logic components themselves, as well as the creation of other components associated with the components themselves. Currently, the process of creating logic components usually requires manual construction. The manual construction method may have problems such as logic component creation errors and low component creation efficiency due to the influence of human subjective factors. Summary of the invention

[0003] The present invention provides a method, device, equipment and storage medium for automatically constructing a logic component to improve the construction efficiency and construction accuracy of the logic component.

[0004] According to one aspect of the present invention, a method for automatically constructing a logic component is provided, the method comprising:

[0005] Get the logical component file to be created;

[0006] Parsing the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created;

[0007] Obtain model logic component files built during the vehicle architecture design and development process;

[0008] Performing logical component traversal on the model logic component file to obtain the constructed model logic component;

[0009] The model logic component is matched with the logic component to be created to obtain a component matching result. According to the component matching result, based on the input signal component to be created and the output signal component to be created of the logic component to be created, the model logic component file is updated to realize automatic construction of the logic component.

[0010] According to another aspect of the present invention, there is provided a device for automatically constructing a logic component, the device comprising:

[0011] A component file acquisition module is used to acquire the logical component file to be created;

[0012] A file parsing module, used for parsing the file of the logic component to be created, and obtaining the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created;

[0013] Model file acquisition module, used to obtain model logic component files built during the vehicle architecture design and development process;

[0014] A component traversal module, used for traversing the logic components of the model logic component file to obtain the constructed model logic components;

[0015] A component update module is used to match the model logic component with the logic component to be created to obtain a component matching result. According to the component matching result, based on the input signal component to be created and the output signal component to be created of the logic component to be created, the model logic component file is updated to realize automatic construction of the logic component.

[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0017] at least one processor; and

[0018] a memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for automatically constructing a logic component according to any embodiment of the present invention.

[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for automatically constructing a logic component described in any embodiment of the present invention when executed.

[0021] The technical solution of the embodiment of the present invention parses the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created, traverses the logic component of the model logic component file to obtain the constructed model logic component; matches the model logic component with the logic component to be created to obtain the component matching result, and updates the model logic component file based on the input signal component to be created and the output signal component to be created of the logic component to be created according to the component matching result, so as to realize the automatic construction of the logic component. The above technical solution realizes the automatic construction of the logic components of the model logic development layer in the process of developing the automotive electronic and electrical architecture, as well as the automatic association and construction of the input signal components and output signal components associated with the logic development components, thereby improving the construction efficiency and construction accuracy of the logic components.

[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0024] Figure 1 is a flowchart of a method for automatically constructing a logic component according to Embodiment 1 of the present invention;

[0025] Figure 2 is a schematic diagram of the structure of a device for automatically constructing a logic component according to a second embodiment of the present invention;

[0026] Figure 3 It is a structural schematic diagram of an electronic device for implementing the method for automatically constructing a logic component according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Embodiment 1

[0030] Figure 1This is a flowchart of a method for automatically building a logic component provided in the first embodiment of the present invention. This embodiment can be applied to the situation where logic components are automatically built in the process of building a model logic layer in the scenario of the design and development process of the automotive electronic and electrical architecture. The method can be executed by a logic component automatic building device, which can be implemented in the form of hardware and / or software, and the logic component automatic building device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0031] S110: Obtain the logic component file to be created.

[0032] S120 , parsing the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created.

[0033] S130. Obtain a model logic component file constructed during the vehicle architecture design and development process.

[0034] S140: perform logical component traversal on the model logic component file to obtain the constructed model logic component.

[0035] S150. Component matching is performed between the model logic component and the logic component to be created to obtain a component matching result. According to the component matching result, based on the input signal component to be created and the output signal component to be created of the logic component to be created, the model logic component file is updated to realize automatic construction of the logic component.

[0036] The file of the logic component to be created may be a table file pre-created by relevant technicians for storing information related to the logic component to be created, such as an EXCEL file. The logic component to be created may be a logic component that needs to be created at the model logic layer. The file of the logic component to be created may include the name of the logic component to be created, the description information of the logic component, the name of the input signal of the logic component, and the name of the output signal. Exemplarily, the expression form of the logic component to be created may be as follows:

[0037]

[0038] For example, the name of the logic component may be "brake pedal logic component", the description of the corresponding logic component may be "responsible for outputting brake pedal status information", and the names of the corresponding output signals may be "pedal opening signal" and "pedal switch status signal". For another example, the name of the logic component may be "ON gear relay logic component", the description of the corresponding logic component may be "responsible for the execution of the vehicle ON gear power on / off control command and status information feedback", the name of the corresponding input signal may be "ON power control command signal", and the name of the output signal may be "ON gear power on / off status feedback signal".

[0039] The description information of the logic component can be used to describe the component function of the logic component. The logic component can be an automotive electronic and electrical functional component. For example, if the name of the logic component is a brake pedal, the corresponding description information of the logic component can be used to determine the effectiveness of the vehicle's brake function. The corresponding input signal can be a brake pedal position sensor signal and a pedal pressure, etc.; the output signal can be a brake signal and an electronic brake system command signal, etc.

[0040] In order to realize full automation of the construction of model logic components, the content of the logic component file to be created can be automatically parsed and extracted, so as to obtain the logic component to be created, and its corresponding input signal component to be created and output signal component to be created.

[0041] In an optional embodiment, a file of a logic component to be created is parsed to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created, including: traversing the content of the first column of the logic component file to be created, and when the traversal obtains that the cell content is not empty and does not meet the traversal end condition, taking the previous row corresponding to the row to which the cell belongs as the end row; determining the content of the first column belonging to the end row as the input signal component to be created, and determining the content of the preset target column belonging to the end row as the input signal component to be created and the output signal component to be created of the input component to be created.

[0042] The traversal end condition may be the end of the traversal of the EXCEL document. For example, if 10 consecutive traversal rows are empty, it may indicate the end of the traversal of the document.

[0043] Capture the EXCEL document content of the logical component to be created, set the variable i to the number of rows in the EXCEL document, and use the FOR loop statement to traverse the first column of the EXCEL document row by row. When it is determined that the content of a row cell is empty, no processing is done and the next row is traversed. When the content of a row obtained by traversal is not empty and the cell traversal has not ended, it is considered that the row is the starting row of the logical component. At the same time, the component name of the logical component can be saved in the newly created array. At the same time, continue to traverse the next row until it is determined that the content of a row is not empty and the traversal has not ended. If the row is artificially considered to be the starting row of the next logical component, the number of rows is reduced by 1, which is the end row of the previous logical component. At the same time, the component name of the next traversed logical component is retained in a newly created data.

[0044] For any logic component to be created during the traversal process, the content of the first column of the logic component is traversed. When the traversal row is empty, the reason is that the row corresponding to the column where the corresponding input signal and / or output signal is located has corresponding data. The number of input signals and / or output signals of the logic component can be one or more. Therefore, for any logic component to be created, during the traversal of the logic component, the content corresponding to the traversal row where the corresponding third column and fourth column are located is extracted to obtain the input signal component to be created and the output signal component to be created of the logic component to be created. The input signal component i1 to be created and the output signal component i2 to be created of the logic component i to be created are stored in the array corresponding to the logic component i to be created, so as to establish the association relationship between the logic component i to be created and the input signal i1 to be created and the output signal i2 to be created.

[0045] It should be noted that, in the process of traversing the logic components to be created, different logic components may be named repeatedly or the same logic component may be created repeatedly. Therefore, the traversed logic components to be created may be deduplicated or modified.

[0046] In an optional embodiment, there are multiple logical components to be created; accordingly, after parsing the file of the logical component to be created to obtain the logical component to be created and the input signal component to be created and the output signal component to be created of the logical component to be created, it also includes: determining whether there are identical logical components to be created in each logical component to be created based on the component name of the logical component to be created; if so, judging whether the identical logical components to be created need to be renamed based on the component description data of the identical logical components to be created; if so, updating the component name of the identical logical component to be created to obtain the updated logical component to be created.

[0047] Compare the component names of the logical components to be created one by one. If there are logical components to be created with the same name, determine whether the input signals to be created and the output signals to be created corresponding to the same logical components to be created are the same. If so, determine that the logical components to be created with the same name are the same logical components, and perform a component name update operation on the logical components to be created to obtain an updated logical component to be created. If not, determine that the logical components to be created with the same name are not the same logical components, and then perform a name change operation or not.

[0048] By automatically extracting the content of the logic component file to be created, the efficiency of extracting the logic component to be created is improved, and the accuracy of establishing the association relationship between the component and the input and output signals is improved, thereby facilitating the automatic creation of subsequent logic components.

[0049] Obtain the model logic component file constructed during the vehicle architecture design and development process. Specifically, the vehicle architecture design and development can be designed and constructed based on existing automotive electronic and electrical architecture design and development tools, and the model logic component file is a file used to describe the hierarchical relationship of the logic components of the model logic layer.

[0050] Perform logical component traversal on the model logic component file to obtain the constructed model logic component. Perform component matching on the constructed model logic component and the logic component to be created to obtain the component matching result. According to the component matching result, based on the input signal component to be created and the output signal component to be created of the logic component to be created, update the model logic component file to realize the automatic construction of the logic component.

[0051] In an optional embodiment, component matching is performed between the model logic component and the logic component to be created to obtain a component matching result, and according to the component matching result, based on the input signal component to be created and the output signal component to be created of the logic component to be created, the model logic component file is updated, including:

[0052] Step a1: Component matching is performed between the model logic component and the logic component to be created, and matched logic components that successfully match the model logic component are obtained in the logic component to be created, and unmatched logic components that fail to match the model logic component are obtained.

[0053] The matched logical component may be the same logical component that successfully matches the model logical component; the unmatched logical component may be a different logical component that fails to match the model logical component, that is, there is no unmatched logical component in the model logical component.

[0054] Taking PREEvision (automotive electrical and electronic architecture design and development tool) as an example, find the LogicalStructure Package component (in the automotive electrical and electronic architecture, define and organize the data packets of different logical functional components), save the Logical Domain (dividing different functional logical components) component under the Logical Structure Package component, use the FOR loop to traverse the Building Block (model logical component) under each Logical Domain and save it, specifically, it can be saved to a pre-built array. Match the component name of the model logical component with the component name of the logical component to be created to obtain the matched logical components and the unmatched logical components.

[0055] Step a11: Update the model logic component file according to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the matched logic component.

[0056] Optionally, the model logic component file is updated according to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the matched logic component, including: traversing the input interface component and the output interface component under the model logic component corresponding to the matched logic component to obtain the model input interface component and the model output interface component corresponding to the model logic component; if there is an unmatched output signal component that does not match the model output interface component in the output signal component to be created corresponding to the matched logic component, then according to the component name of the unmatched output signal component, the unmatched output signal component is created under the model logic component corresponding to the matched logic component to update the model logic component file; and if there is an unmatched input signal component that does not match the model input interface component in the input signal component to be created corresponding to the matched logic component, then according to the component name of the unmatched input signal component, the unmatched input signal component is created under the model logic component corresponding to the matched logic component to update the model logic component file.

[0057] Match the model output interface components of all Logical Provide Ports (logical output interfaces) in Provide Port (output interface) under Building Block (model logic component) with the component name of the output signal component to be created; if they are consistent, there is no need to create the output interface; if they are inconsistent, create the output signal component to be created under Provide Port, and at the same time, find the Building Block Type component with the same name as the matched Building Block (model logic component) under the Logical Function Architecture (which describes the logical organization and structure of each function, including how to decompose the function into different components and the interaction between them), create a Logical Provide Port ProtoType (a template or prototype that defines and describes the logical output port) component under the Building Block Type component, and fill in the name in the Name (name) in the General (property setting) column of the Logical Provide Port ProtoType component. That is, according to the component name of the unmatched output signal component, create the unmatched output signal component under the model logic component corresponding to the matched logical component to update the model logic component file.

[0058] Match the model input interface components of all Logical Receive Ports (Logical Input Interfaces) in the Receive Ports (Input Interfaces) under the Building Block (Model Logical Component) with the component name of the input signal component to be created; if they are consistent, there is no need to create the input interface; if they are inconsistent, create the input signal component to be created under the Receive Port, and at the same time find the Building Block Type component with the same name as the matched Building Block (Model Logical Component) under the Logical Function Architeture component, create the Logical Receive Port ProtoType component under the BuildingBlock Type component, and fill in the name in the Name (Name) in the General (Property Settings) column of the LogicalReceivePort ProtoType component. That is, according to the component name of the unmatched input signal component, create the unmatched input signal component under the model logic component corresponding to the matched logical component to update the model logic component file.

[0059] Step a12: Update the model logic component file according to the component name of the unmatched logic component, based on the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component.

[0060] Optionally, according to the component name of the unmatched logic component, based on the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component, the model logic component file is updated, including: creating the unmatched logic component in the model logic component file according to the component name of the unmatched logic component; creating an unmatched input signal component and an unmatched output signal component corresponding to the unmatched logic component under the model logic component corresponding to the unmatched logic component according to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component.

[0061] In the model logic component file, create an unmatched logic component (Building Block), and fill in the component name of the unmatched logic component in the Name in the General (property setting) column. At the same time, create a Building Block Type component under the Logical FunctionArchiteture component, and fill in the name of the Building Block (unmatched logic component) in the Name in the General column of the Building Block Type component. Create a Logical Provide Port (logical output interface) component under the Provide Port (output interface) of the Building Block component, and find the Building Block Type component with the same name as the Building Block (unmatched logic component) under the Logical Function Architeture component, create a Logical ProvidePort ProtoType (a template or prototype that defines and describes the logical output port) component under the Building Block Type component, and fill in the name in the Name in the General column of the LogicalProvide Port ProtoType component. Also, create a Logical Receive Port (logical input interface) component under the Receive Port (input interface) of the Building Block component, and find the Building Block Type component with the same name as the Building Block (unmatched logical component) under the Logical Function Architeture component, and create a Logical ReceivePort ProtoType (a template or prototype that defines and describes the logical input port) component under the Building Block Type component, and fill in the name in the Name in the General column of the LogicalReceive Port ProtoType component.

[0062] The technical solution of the embodiment of the present invention parses the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created, traverses the logic component of the model logic component file to obtain the constructed model logic component; matches the model logic component with the logic component to be created to obtain the component matching result, and updates the model logic component file based on the input signal component to be created and the output signal component to be created of the logic component to be created according to the component matching result, so as to realize the automatic construction of the logic component. The above technical solution realizes the automatic construction of the logic components of the model logic development layer in the process of developing the automotive electronic and electrical architecture, as well as the automatic association and construction of the input signal components and output signal components associated with the logic development components, thereby improving the construction efficiency and construction accuracy of the logic components.

[0063] Embodiment 2

[0064] Figure 2 The following is a schematic diagram of a logic component automatic construction device provided in the second embodiment of the present invention. The logic component automatic construction device provided in the embodiment of the present invention can be applied to the situation where logic components are automatically constructed in the process of model logic layer construction in the scenario of automobile electronic and electrical architecture design and development process. The logic component automatic construction device can be implemented in the form of hardware and / or software, such as Figure 2 As shown, the logic component automatic construction device can be configured in an electronic device, and specifically includes: a component file acquisition module 201, a file parsing module 202, a model file acquisition module 203, a component traversal module 204 and a component update module 205.

[0065] The component file acquisition module 201 is used to acquire the logical component file to be created;

[0066] A file parsing module 202, used for parsing the file of the logic component to be created, and obtaining the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created;

[0067] The model file acquisition module 203 is used to acquire the model logic component file constructed during the vehicle architecture design and development process;

[0068] The component traversal module 204 is used to perform a logical component traversal on the model logic component file to obtain the constructed model logic component;

[0069] The component update module 205 is used to match the model logic component with the logic component to be created to obtain a component matching result. According to the component matching result, based on the input signal component to be created and the output signal component to be created of the logic component to be created, the model logic component file is updated to realize automatic construction of the logic component.

[0070] The technical solution of the embodiment of the present invention parses the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created, traverses the logic component of the model logic component file to obtain the constructed model logic component; matches the model logic component with the logic component to be created to obtain the component matching result, and updates the model logic component file based on the input signal component to be created and the output signal component to be created of the logic component to be created according to the component matching result, so as to realize the automatic construction of the logic component. The above technical solution realizes the automatic construction of the logic components of the model logic development layer in the process of developing the automotive electronic and electrical architecture, as well as the automatic association and construction of the input signal components and output signal components associated with the logic development components, thereby improving the construction efficiency and construction accuracy of the logic components.

[0071] Optional, component update module, including:

[0072] A component matching unit, used for matching the model logic component with the logic component to be created, obtaining matched logic components that successfully match the model logic component in the logic component to be created, and obtaining unmatched logic components that fail to match the model logic component;

[0073] A first component updating unit is used to update the model logic component file according to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the matched logic component; and

[0074] The second component updating unit is used to update the model logic component file according to the component name of the unmatched logic component, based on the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component.

[0075] Optionally, the first component updating unit is specifically configured to:

[0076] Traverse the input interface components and output interface components under the model logic component corresponding to the matched logic component to obtain the model input interface component and model output interface component corresponding to the model logic component;

[0077] If there is an unmatched output signal component that does not match the model output interface component in the output signal component to be created corresponding to the matched logic component, then according to the component name of the unmatched output signal component, the unmatched output signal component is created under the model logic component corresponding to the matched logic component to update the model logic component file; and,

[0078] If there is an unmatched input signal component that does not match the model input interface component in the input signal component to be created corresponding to the matched logic component, then according to the component name of the unmatched input signal component, the unmatched input signal component is created under the model logic component corresponding to the matched logic component to update the model logic component file.

[0079] Optionally, the second component updating unit is specifically configured to:

[0080] According to the component name of the unmatched logic component, the unmatched logic component is created in the model logic component file;

[0081] According to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component, the unmatched input signal component and the unmatched output signal component corresponding to the unmatched logic component are created under the model logic component corresponding to the unmatched logic component.

[0082] Optional, file parsing module, including:

[0083] A content traversal unit, used for traversing the content of the first column of the logic component file to be created, and when the traversal finds that the cell content is not empty and does not meet the traversal end condition, taking the previous row corresponding to the row to which the cell belongs as the end row;

[0084] The file parsing unit is used to determine the content of the first column to which the end row belongs as the input signal component to be created, and to determine the content of the preset target column to which the end row belongs as the input signal component to be created and the output signal component to be created of the input component to be created.

[0085] Optionally, there are multiple logical components to be created; accordingly, the device further includes:

[0086] a logic component judgment module, for determining whether there is an identical logic component to be created in each of the logic components to be created according to the component name of the logic component to be created, after parsing the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created;

[0087] A component name changing module, for determining whether a name change operation is required for the same logical component to be created according to component description data of the same logical component to be created if it is determined that the same logical component to be created exists in the logical components to be created;

[0088] The name updating module is used to update the component name of the same logical component to be created if it is determined that the same logical component to be created needs to be renamed, so as to obtain an updated logical component to be created.

[0089] The logic component automatic construction device provided in the embodiment of the present invention can execute the logic component automatic construction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0090] Embodiment 3

[0091] Figure 3 A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0092] like Figure 3 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.

[0093] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0094] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 31 executes the various methods and processes described above, such as a logic component automatic construction method.

[0095] In some embodiments, the logic component automatic construction method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the logic component automatic construction method described above can be performed. Alternatively, in other embodiments, the processor 31 can be configured to execute the logic component automatic construction method in any other appropriate manner (for example, by means of firmware).

[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0097] Computer programs for implementing the 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, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0098] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0099] To provide interaction with a user, the systems and techniques described herein may 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 the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the 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, voice input, or tactile input).

[0100] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0101] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0103] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for automatically constructing a logic component, characterized in that: include: Get the logical component file to be created; Parsing the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created; Obtain model logic component files built during the vehicle architecture design and development process; Performing logical component traversal on the model logic component file to obtain the constructed model logic component; The model logic component is matched with the logic component to be created to obtain a component matching result. According to the component matching result, based on the input signal component to be created and the output signal component to be created of the logic component to be created, the model logic component file is updated to realize automatic construction of the logic component.

2. The method according to claim 1, characterized in that The component matching of the model logic component with the logic component to be created to obtain a component matching result, and updating the model logic component file according to the component matching result and based on the input signal component to be created and the output signal component to be created of the logic component to be created, comprises: Component matching is performed between the model logic component and the logic component to be created, to obtain matched logic components that successfully match the model logic component in the logic component to be created, and to obtain unmatched logic components that fail to match the model logic component; updating the model logic component file according to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the matched logic component; and According to the component name of the unmatched logic component, based on the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component, the model logic component file is updated.

3. The method according to claim 2, characterized in that The updating of the model logic component file according to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the matched logic component includes: Traverse the input interface components and output interface components under the model logic component corresponding to the matched logic component to obtain the model input interface component and model output interface component corresponding to the model logic component; If there is an unmatched output signal component that does not match the model output interface component in the output signal component to be created corresponding to the matched logic component, then according to the component name of the unmatched output signal component, the unmatched output signal component is created under the model logic component corresponding to the matched logic component to update the model logic component file; and, If there is an unmatched input signal component that does not match the model input interface component in the input signal component to be created corresponding to the matched logic component, then according to the component name of the unmatched input signal component, the unmatched input signal component is created under the model logic component corresponding to the matched logic component to update the model logic component file.

4. The method according to claim 2, characterized in that: The updating of the model logic component file according to the component name of the unmatched logic component and based on the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component includes: According to the component name of the unmatched logic component, the unmatched logic component is created in the model logic component file; According to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component, the unmatched input signal component and the unmatched output signal component corresponding to the unmatched logic component are created under the model logic component corresponding to the unmatched logic component.

5. The method according to claim 1, characterized in that The parsing the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created includes: Traversing the content of the first column of the logic component file to be created, and when it is found that the cell content is not empty and does not meet the traversal end condition, taking the previous row corresponding to the row to which the cell belongs as the end row; The content of the first column to which the end row belongs is determined as the input signal component to be created, and the content of the preset target column to which the end row belongs is determined as the input signal component to be created and the output signal component to be created of the input component to be created.

6. The method according to claim 1, characterized in that The number of the logic components to be created is multiple; accordingly, after parsing the file of the logic component to be created to obtain the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created, the method further includes: Determining, according to the component names of the logical components to be created, whether there is an identical logical component to be created among the logical components to be created; If yes, judging whether the same logical component to be created needs to be renamed according to the component description data of the same logical component to be created; If so, the component name of the same logical component to be created is updated to obtain an updated logical component to be created.

7. A logical component automatic construction device, characterized in that: include: A component file acquisition module is used to acquire the logical component file to be created; A file parsing module, used for parsing the file of the logic component to be created, and obtaining the logic component to be created and the input signal component to be created and the output signal component to be created of the logic component to be created; Model file acquisition module, used to obtain model logic component files built during the vehicle architecture design and development process; A component traversal module, used for traversing the logic components of the model logic component file to obtain the constructed model logic components; A component update module is used to match the model logic component with the logic component to be created to obtain a component matching result. According to the component matching result, based on the input signal component to be created and the output signal component to be created of the logic component to be created, the model logic component file is updated to realize automatic construction of the logic component.

8. The device according to claim 7, characterized in that The component update module includes: A component matching unit, used for matching the model logic component with the logic component to be created, obtaining matched logic components that successfully match the model logic component in the logic component to be created, and obtaining unmatched logic components that fail to match the model logic component; A first component updating unit is used to update the model logic component file according to the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the matched logic component; and The second component updating unit is used to update the model logic component file according to the component name of the unmatched logic component, based on the component name of the input signal component to be created and the component name of the output signal component to be created corresponding to the unmatched logic component.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method for automatically constructing a logic component according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for automatically constructing a logic component according to any one of claims 1 to 6 when the computer instructions are executed.