Graphical modeling method, device, equipment, storage medium and program product
By integrating and connecting components in SoC design using graphical modeling methods and automatically assigning addresses, the problem of inconsistent component descriptions is solved, design efficiency and accuracy are improved, and the automatic generation of system design files is realized.
Patent Information
- Application Number
- CN202511784342.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-11-28
AI Technical Summary
In existing SoC designs, the lack of standardized component descriptions leads to low efficiency in module reuse and design automation. Manually writing IP-XACT XML files is prone to errors, and the lack of a unified code generation and verification path results in a broken and unclosed design flow.
A graphical modeling method is provided, which integrates components in a component directory, responds to placement and connection instructions, automatically allocates address space, generates modeling design files, and reduces manual operations.
It improves the development efficiency and accuracy of SoC design, realizes the automatic generation of system design files, and avoids errors caused by manually writing and assembling components.
Smart Images

Figure CN121706715B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of system modeling technology, specifically to graphical modeling methods, devices, equipment, storage media, and program products. Background Technology
[0002] As the complexity of SoC (System on Chip) design increases, the demand for module reuse and design automation also rises during the system design process. Currently, IP-XACT is commonly used to standardize the descriptions of SoC components to address the issue of inconsistent component descriptions and promote module reuse and design process automation. However, this method relies on manual writing and assembly of components, resulting in a high error rate and low development efficiency. Summary of the Invention
[0003] In view of this, the present invention provides a graphical modeling method, apparatus, device, storage medium, and program product to solve the problems of high error rate and low development efficiency in system-on-a-chip design.
[0004] In a first aspect, the present invention provides a graphical modeling method, the method comprising: In response to the placement command for the first component in the component catalog, the first component is placed in the first position corresponding to the placement command in the graphics modeling canvas; In response to the connection command between the first component and the second component in the graphics modeling canvas, the ports between the first component and the second component are connected through a bus or signal line, and the address space or memory mapping information of the first component and the second component is allocated; Generate modeling design files based on the components contained in the graphical modeling canvas.
[0005] In one optional implementation, the placement instruction for the first component in the component catalog includes a component selection instruction for the first component in the component catalog and a position selection instruction for the first component in the graphical modeling canvas; in response to the placement instruction for the first component in the component catalog, placing the first component at the target position corresponding to the placement instruction includes: Based on the component selection instruction, determine the first component from the component catalog; Based on the position selection instruction, determine the first position of the first component in the graphic modeling canvas; Place the first component in the first position.
[0006] In one optional implementation, allocating address space or memory mapping information for the first and second components includes: Based on the interface connection relationship in the first component and the second component, determine the correspondence between the main interface and the slave interface in the first component and the second component; Obtain the address space of the corresponding main interface and the memory mapping information of the slave interface; The address space of the main interface is allocated based on the address space of the main interface and the memory mapping information of the slave interface.
[0007] In one alternative implementation, a modeling design file is generated based on components contained in the graphical modeling canvas, including: Based on the components contained in the graphical modeling canvas, determine the component connection information and port configuration information in the graphical modeling canvas; Based on component connection information and port configuration information, a modeling design file is generated.
[0008] In one alternative implementation, after placing the first component at the first position corresponding to the placement instruction in the graphics modeling canvas, the method further includes: In response to a parameter modification instruction for the first component, obtain the target parameter corresponding to the parameter modification instruction and the target parameter value corresponding to the target parameter; Based on the target parameter value, the parameter value of the target parameter is modified.
[0009] In one alternative implementation, after connecting the ports between the first component and the second component via a bus or signal line, the method further includes: The configuration information of the first component and the second component is parsed to obtain the structural information of the first component and the second component respectively; Based on the structural information of the first and second components, the connection between the first and second components is verified.
[0010] In a second aspect, the present invention provides a graphical modeling apparatus, the apparatus comprising: The component placement module is used to place the first component in the graphic modeling canvas at the first position corresponding to the placement instruction in response to the placement instruction of the first component in the component catalog. The component connection module is used to connect the ports between the first component and the second component via a bus or signal line, and to allocate the address space or memory mapping information of the first component and the second component. The file generation module is used to generate modeling design files based on the components contained in the graphical modeling canvas.
[0011] Thirdly, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the graphical modeling method of the first aspect or any corresponding embodiment described above.
[0012] Fourthly, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the graphical modeling method of the first aspect or any corresponding embodiment thereof.
[0013] Fifthly, the present invention provides a computer program product, including computer instructions for causing a computer to execute the graphical modeling method of the first aspect or any corresponding embodiment thereof.
[0014] The graphical modeling method provided in this invention integrates components in a component directory, places and arranges components by placing instructions in the component directory, connects ports between components by connecting instructions in the graphical modeling canvas, and automatically assigns addresses. Based on the components contained in the graphical modeling canvas, it generates modeling design files, thereby automatically generating system design files without manually writing and assembling components, thus improving system development efficiency and accuracy. Attached Figure Description
[0015] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating a graphical modeling method according to an embodiment of the present invention; Figure 2 This is a flowchart illustrating another graphical modeling method according to an embodiment of the present invention; Figure 3 This is a flowchart illustrating another graphical modeling method according to an embodiment of the present invention; Figure 4 This is a flowchart of another graphical modeling method according to an embodiment of the present invention; Figure 5 This is a structural block diagram of a graphical modeling device according to an embodiment of the present invention; Figure 6 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] As the complexity of SoC (System-on-Chip) design increases, the demand for module reuse and design automation also rises during the system design process. Currently, IP-XACT is commonly used to standardize the descriptions of SoC components to address the issue of inconsistent component descriptions and promote module reuse and design flow automation. However, this method relies on manual writing of IP-XACT XML files, which are lengthy, complex to write, prone to errors, and have a high learning curve. Furthermore, the component assembly process is complex, requiring manual connection of interfaces and configuration of addresses, which can easily lead to interface mismatch issues. In addition, the lack of a unified code generation and verification path results in a missing end-to-end process, leading to a broken and unclosed design flow.
[0019] Based on this, the present invention provides a graphical modeling method, which includes: in response to a placement instruction for a first component in a component directory, placing the first component into a first position corresponding to the placement instruction in a graphical modeling canvas; in response to a connection instruction between the first component and a second component in the graphical modeling canvas, connecting the ports between the first component and the second component via a bus or signal line, and allocating address space or memory mapping information for the first component and the second component; and generating a modeling design file based on the components contained in the graphical modeling canvas. Thus, by integrating components in a component directory, placing and arranging components through placement instructions in the component directory, and connecting ports and buses between components through connection instructions in the graphical modeling canvas, and automatically allocating address ranges, the present invention generates a modeling design file based on the components contained in the graphical modeling canvas. This eliminates the need for manually writing and assembling components, enabling automatic generation of system design files, thereby improving system development efficiency and accuracy.
[0020] According to an embodiment of the present invention, a graphical modeling method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0021] This embodiment provides a graphical modeling method. Figure 1 This is a flowchart of a graphical modeling method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps: Step S101: In response to the placement instruction for the first component in the component catalog, the first component is placed in the first position corresponding to the placement instruction in the graphic modeling canvas.
[0022] In this embodiment of the invention, the user selects and places a first component in the component directory of the interface, generating a placement instruction for the first component in the component directory; in response to the placement instruction for the first component in the component directory, the first component is placed in the first position corresponding to the placement instruction on the graphic modeling canvas. The component directory is located in the tool sidebar of the graphic modeling tool interface and displays all currently used IP components.
[0023] In one optional implementation, after placing the first component in the corresponding first position, the parameters of the first component can be modified. Specifically, in response to a parameter modification instruction for the first component, the target parameter corresponding to the parameter modification instruction and the target parameter value corresponding to the target parameter are obtained. The parameter modification instruction for the first component is an instruction generated by the user to modify the parameters of the first component in the graphical modeling canvas of the display interface. In response to this parameter modification instruction, the target parameter and the target parameter value corresponding to the target parameter are obtained from the parameter modification instruction; based on the target parameter value, the parameter value of the target parameter is modified.
[0024] In step S102, in response to the connection instruction between the first component and the second component in the graphics modeling canvas, the ports between the first component and the second component are connected through a bus or signal line, and the address space or memory mapping information of the first component and the second component is allocated.
[0025] In this embodiment of the invention, the user connects a first component and a second component placed in a graphical modeling canvas, generating a connection command for the first and second components. In response to the connection command, the ports between the first and second components are connected via a bus or signal line. The connection between the ports of the first and second components can be based on a connection method obtained from the connection command, or it can be connected according to a preset connection method between the ports of the two components.
[0026] In this embodiment of the invention, after connecting the port between the first component and the second component, in order to allocate address space or memory mapping information for the first component and the second component, specifically, address space or memory mapping information is allocated for each interface in the first component and the second component, wherein address space is allocated for the main interface and memory mapping information is allocated for the slave interface.
[0027] In one optional implementation, after completing the connection between the ports of the first component and the second component and allocating the address space or memory mapping information of the first and second components, the configuration information of the first and second components is parsed to obtain the structural information of the first and second components. Based on the structural information of the first and second components, the connection between the first and second components is verified. Specifically, IP-XACT uses XML format files to standardize the description of the structural information of IP components. These files are parsed to extract structural information representing bus attributes, such as interface names, bus types, and bus definitions. After connecting the first and second components, the structural information of the ports or buses connecting the first and second components is obtained, and verification is performed according to preset verification rules to determine whether the ports or buses are connected, whether the connected ports or buses match, etc., and a prompt is issued when the verification fails.
[0028] Step S103: Generate a modeling design file based on the components contained in the graphical modeling canvas.
[0029] In this embodiment of the invention, a modeling design file is generated based on the components contained in the graphical modeling canvas, as well as the connection relationships and port information between the components. Specifically, it may include the IP-XACT design xml file, the RTLwrapper file, the Top-Level module, the constraint file, register information, etc.
[0030] This embodiment provides a graphical modeling method. Figure 2 This is a flowchart of another graphical modeling method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps: Step S201: In response to the placement instruction for the first component in the component catalog, the first component is placed in the first position corresponding to the placement instruction in the graphic modeling canvas.
[0031] In this embodiment of the invention, the placement instruction for the first component in the component catalog includes a component selection instruction for the first component in the component catalog, and a position selection instruction for the first component in the graphic modeling canvas; correspondingly, step S201 includes: Step S2011: Based on the component selection instruction, determine the first component from the component catalog.
[0032] In this embodiment of the invention, the first component selected by the user from the component target is determined based on the component selection instruction.
[0033] Step S2012: Based on the position selection instruction, determine the first position of the first component in the graphic modeling canvas.
[0034] In this embodiment of the invention, the first position of the first component selected by the user in the image modeling canvas is determined based on the position selection instruction.
[0035] Step S2013: Place the first component in the first position.
[0036] In this embodiment of the invention, the first component is placed in the first position to complete the user's response to component selection and placement.
[0037] Step S202: In response to the connection instruction between the first component and the second component in the graphical modeling canvas, the ports between the first component and the second component are connected via a bus or signal line, and address space or memory mapping information for the first component and the second component is allocated. See details below. Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0038] Step S203: Generate a modeling design file based on the components contained in the graphical modeling canvas. For details, please refer to [link to relevant documentation]. Figure 1 Step S103 of the illustrated embodiment will not be described again here.
[0039] This embodiment provides a graphical modeling method. Figure 3 This is a flowchart of another graphical modeling method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps: Step S301: In response to the placement instruction for the first component in the component catalog, the first component is placed in the first position corresponding to the placement instruction on the graphics modeling canvas. For details, please refer to [link to details]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0040] In step S302, in response to the connection instruction between the first component and the second component in the graphics modeling canvas, the ports between the first component and the second component are connected through a bus or signal line, and the address space or memory mapping information of the first component and the second component is allocated.
[0041] Specifically, step S302 includes: Step S3021: Based on the interface connection relationship in the first component and the second component, determine the correspondence between the main interface and the slave interface in the first component and the second component.
[0042] In this embodiment of the invention, based on the connection between the first component and the second component, the interface connection relationship between the first component and the second component is obtained, and then the correspondence between each main interface and slave interface in the first component and the second component is determined through the interface connection relationship.
[0043] Step S3022: Obtain the address space of the master interface and the memory mapping information of the slave interface that have a corresponding relationship.
[0044] In this embodiment of the invention, information related to the address allocation of a pair of corresponding master interfaces and slave interfaces in the first component and the second component is obtained, namely, the address space of the master interface and the memory mapping information of the slave interface. It should be noted that the master interface and slave interface are not limited to being located only in the first component or the second component; in fact, both the first component and the second component contain master interfaces and slave interfaces.
[0045] In this embodiment of the invention, the address space of the main interface includes the upper limit of the total address space of the main interface, address space partitions, and special constraints on address segments, thereby determining the range of address segments available for address allocation in the address space of the main interface. The memory mapping information of the slave interface includes the size of the address range required by the slave interface and the requirements for address alignment. For some slave interfaces, there may also be requirements for fixed base addresses and priority of address allocation.
[0046] Step S3023: Allocate the address space of the main interface based on the address space of the main interface and the memory mapping information of the slave interface.
[0047] In this embodiment of the invention, based on the address space range of the master interface and the memory mapping information of the slave interfaces, priority is given to allocating corresponding address ranges from the address space of the master interface to slave interfaces with priority, and to slave interfaces with fixed base address requirements. For slave interfaces without priority or fixed base address requirements, the required address ranges can be allocated sequentially from the address space of the master interface according to the connection order. For example, if the master interface provides an address space range of 0x000000-0xFFFFFF, and the slave interface defines memory mapping information requiring addresses 0x000000 - 0x00FFFF, then the address space of 0x000000 - 0x00FFFF in the master interface will be allocated to the slave interface.
[0048] Step S303: Generate a modeling design file based on the components contained in the graphical modeling canvas. For details, please refer to [link to relevant documentation]. Figure 1 Step S103 of the illustrated embodiment will not be described again here.
[0049] This embodiment provides a graphical modeling method. Figure 4 This is a flowchart of another graphical modeling method according to an embodiment of the present invention, such as... Figure 4 As shown, the process includes the following steps: Step S401: In response to the placement instruction for the first component in the component catalog, the first component is placed in the first position corresponding to the placement instruction on the graphics modeling canvas. See details in [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.
[0050] Step S402: In response to the connection instruction between the first component and the second component in the graphics modeling canvas, the ports between the first component and the second component are connected via a bus or signal line, and address space or memory mapping information for the first and second components is allocated. See details below. Figure 1 Step S102 of the illustrated embodiment will not be described again here.
[0051] Step S403: Generate a modeling design file based on the components contained in the graphical modeling canvas.
[0052] Specifically, step S403 includes: Step S4031: Based on the components contained in the graphical modeling canvas, determine the component connection information and port configuration information in the graphical modeling canvas.
[0053] In this embodiment of the invention, based on the components contained in the graphical modeling canvas, the component connection information between each component in the graphical modeling canvas and the port configuration information of each connected component are determined respectively. The port configuration information may include the connection relationship of the ports between each connected component and the address configuration.
[0054] Step S4032: Generate modeling design files based on component connection information and port configuration information.
[0055] In this embodiment of the invention, a modeling design file is generated based on component connection information and port configuration information. Specifically, it may include the IP-XACT design xml file, as well as the RTL wrapper file, Top-Level module, constraint file, register information, etc.
[0056] The graphical modeling method provided in this embodiment, in response to a placement instruction for a first component in the component directory, places the first component into the first position corresponding to the placement instruction in the graphical modeling canvas; in response to a connection instruction between the first and second components in the graphical modeling canvas, it connects the ports between the first and second components via a bus or signal line, and allocates address space or memory mapping information for the first and second components; and generates a modeling design file based on the components contained in the graphical modeling canvas. Thus, by integrating components in the component directory, placing and arranging components through placement instructions in the component directory, and connecting ports between components through connection instructions in the graphical modeling canvas, and automatically allocating address ranges, the method generates a modeling design file based on the components contained in the graphical modeling canvas. This eliminates the need for manually writing and assembling components, enabling automatic generation of system design files, thereby improving system development efficiency and accuracy.
[0057] This embodiment also provides a graphical modeling device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0058] This embodiment provides a graphical modeling device, such as Figure 5 As shown, it includes: The component placement module 501 is used to place the first component in the graphic modeling canvas at the first position corresponding to the placement instruction in response to the placement instruction of the first component in the component catalog. The component connection module 502 is used to respond to the connection command between the first component and the second component in the graphic modeling canvas, connect the ports between the first component and the second component through a bus or signal line, and allocate the address space or memory mapping information of the first component and the second component. The file generation module 503 is used to generate modeling design files based on the components contained in the graphical modeling canvas.
[0059] In one optional implementation, the placement instruction for the first component in the component catalog includes a component selection instruction for the first component in the component catalog, and a position selection instruction for the first component in the graphical modeling canvas; the component placement module 501 includes: The first component determining unit is used to determine the first component from the component catalog based on the component selection instruction; The first position determination unit is used to determine the first position of the first component in the graphic modeling canvas based on the position selection instruction; The first component placement unit is used to place the first component in the first position.
[0060] In one alternative implementation, the component connection module 502 includes: The connection relationship determination unit is used to determine the correspondence between the master interface and the slave interface in the first component and the second component based on the interface connection relationship in the first component and the second component; The information acquisition unit is used to acquire the address space of the main interface and the memory mapping information of the slave interface that have a corresponding relationship; The address allocation unit is used to allocate the address space of the main interface based on the address space of the main interface and the memory mapping information of the slave interface.
[0061] In one alternative implementation, the file generation module 503 includes: The component information determination unit is used to determine the component connection information and port configuration information in the graphical modeling canvas based on the components contained in the graphical modeling canvas. The design document generation unit is used to generate modeling design documents based on component connection information and port configuration information.
[0062] In one alternative embodiment, the device further includes: The parameter acquisition module is used to respond to the parameter modification instruction of the first component and acquire the target parameter corresponding to the parameter modification instruction and the target parameter value corresponding to the target parameter. The parameter modification module is used to modify the value of a target parameter based on the target parameter value.
[0063] In one alternative embodiment, the device further includes: The configuration parsing module is used to parse the configuration information of the first component and the second component respectively to obtain the structural information of the first component and the second component; The connection verification module is used to verify the connection between the first component and the second component based on the structural information of the first component and the second component.
[0064] The graphical modeling apparatus provided in this embodiment of the invention can execute the graphical modeling method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.
[0065] This invention also provides a computer device having the above-described features. Figure 5 The graphical modeling device shown.
[0066] Please see Figure 6 , Figure 6This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 6 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 6 Take a processor 10 as an example.
[0067] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.
[0068] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.
[0069] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0070] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.
[0071] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.
[0072] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.
[0073] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0074] Although embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the present invention.
Claims
1. A graphical modeling method, characterized in that, The method includes: In response to the placement instruction for the first component in the component catalog, the first component is placed in the first position corresponding to the placement instruction in the graphics modeling canvas; In response to a connection command to the first component and the second component in the graphical modeling canvas, the ports between the first component and the second component are connected via a bus or signal line, and address space or memory mapping information of the first component and the second component is allocated; Based on the components contained in the graphical modeling canvas, a modeling design file is generated; The allocation of address space or memory mapping information for the first component and the second component includes: Based on the interface connection relationship in the first component and the second component, determine the correspondence between the main interface and the slave interface in the first component and the second component; Obtain the address space of the corresponding main interface and the memory mapping information of the slave interface; The address space of the main interface is allocated based on the address space of the main interface and the memory mapping information of the slave interface; The address space of the main interface includes the upper limit of the total address space of the main interface, address space partitions, and special constraints on address segments; the memory mapping information of the slave interface includes the size of the address range required by the slave interface, the requirements for address alignment, the requirement for fixed base addresses, and the requirements for address allocation priority; based on the address space of the main interface and the memory mapping information of the slave interface, the address space of the main interface is allocated, including: prioritizing the allocation of corresponding address ranges from the address space of the main interface to slave interfaces with priority, and allocating corresponding address ranges from the address space of the main interface to slave interfaces with fixed base address requirements; for slave interfaces without priority or fixed base address requirements, the required address ranges are allocated from the address space of the main interface sequentially according to the connection order.
2. The method according to claim 1, characterized in that, The placement instructions for the first component in the component catalog include component selection instructions for the first component in the component catalog, and position selection instructions for the first component in the graphic modeling canvas. In response to a placement instruction for a first component in the component catalog, placing the first component at the target location corresponding to the placement instruction includes: Based on the component selection instruction, the first component is determined from the component catalog; Based on the position selection instruction, the first position of the first component in the graphic modeling canvas is determined; Place the first component in the first position.
3. The method according to claim 1, characterized in that, The generation of modeling design files based on the components contained in the graphical modeling canvas includes: Based on the components contained in the graphical modeling canvas, determine the component connection information and port configuration information in the graphical modeling canvas; The modeling design file is generated based on the component connection information and the port configuration information.
4. The method according to claim 1, characterized in that, After placing the first component into the first position corresponding to the placement instruction in the graphics modeling canvas, the method further includes: In response to a parameter modification instruction for the first component, the target parameter corresponding to the parameter modification instruction and the target parameter value corresponding to the target parameter are obtained; Based on the target parameter value, the parameter value of the target parameter is modified.
5. The method according to claim 1, characterized in that, After the port connecting the first component and the second component via a bus or signal line is described, the method further includes: The configuration information of the first component and the second component are parsed respectively to obtain the structural information of the first component and the second component; Based on the structural information of the first component and the second component, the connection between the first component and the second component is verified.
6. A graphical modeling device, characterized in that, The device includes: The component placement module is used to place the first component in the graphic modeling canvas at the first position corresponding to the placement instruction in response to the placement instruction of the first component in the component catalog. The component connection module is used to respond to the connection command of the first component and the second component in the graphical modeling canvas, connect the ports between the first component and the second component through a bus or signal line, and allocate the address space or memory mapping information of the first component and the second component. The file generation module is used to generate modeling design files based on the components contained in the graphical modeling canvas. The component connection module is specifically used to: determine the correspondence between the main interface and the slave interface in the first component and the second component based on the interface connection relationship in the first component and the second component; Obtain the address space of the corresponding main interface and the memory mapping information of the slave interface; The address space of the main interface is allocated based on the address space of the main interface and the memory mapping information of the slave interface; The address space of the main interface includes the upper limit of the total address space of the main interface, address space partitions, and special constraints on address segments; the memory mapping information of the slave interface includes the size of the address range required by the slave interface, the requirements for address alignment, the requirement for fixed base addresses, and the requirements for address allocation priority; based on the address space of the main interface and the memory mapping information of the slave interface, the address space of the main interface is allocated, including: prioritizing the allocation of corresponding address ranges from the address space of the main interface to slave interfaces with priority, and allocating corresponding address ranges from the address space of the main interface to slave interfaces with fixed base address requirements; for slave interfaces without priority or fixed base address requirements, the required address ranges are allocated from the address space of the main interface sequentially according to the connection order.
7. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the graphical modeling method of any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the graphical modeling method according to any one of claims 1 to 5.
9. A computer program product, characterized in that, It includes computer instructions for causing a computer to perform the graphical modeling method according to any one of claims 1 to 5.
Citation Information
Patent Citations
System for generating target design file list based on display interface
CN118210490A
System and method for generation of a report and debug of address transformations in electronic systems described with IP-XACT standard
US20230025288A1
