CN115291963A - Method for configuring hardware resources, electronic device and storage medium - Google Patents

Method for configuring hardware resources, electronic device and storage medium Download PDF

Info

Publication number
CN115291963A
CN115291963A CN202210692574.4A CN202210692574A CN115291963A CN 115291963 A CN115291963 A CN 115291963A CN 202210692574 A CN202210692574 A CN 202210692574A CN 115291963 A CN115291963 A CN 115291963A
Authority
CN
China
Prior art keywords
configuration file
electronic device
peripheral components
hardware
resource information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210692574.4A
Other languages
Chinese (zh)
Other versions
CN115291963B (en
Inventor
李嘉敏
高翔
王礼宾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinhuazhang Technology Co ltd
Original Assignee
Xinhuazhang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinhuazhang Technology Co ltd filed Critical Xinhuazhang Technology Co ltd
Priority to CN202210692574.4A priority Critical patent/CN115291963B/en
Publication of CN115291963A publication Critical patent/CN115291963A/en
Application granted granted Critical
Publication of CN115291963B publication Critical patent/CN115291963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a method for configuring hardware resources, an electronic device and a storage medium. The method comprises the following steps: acquiring a first configuration file, wherein the first configuration file describes the connection relation between a plurality of peripheral components and a hardware simulation tool; receiving an editing instruction of a user for editing the first configuration file; modifying the first configuration file according to the editing instruction to generate a second configuration file; sending the second configuration file to the hardware simulation tool to cause the hardware simulation tool to configure at least a portion of the plurality of peripheral components according to the second configuration file.

Description

配置硬件资源的方法、电子设备及存储介质Method for configuring hardware resources, electronic device and storage medium

技术领域technical field

本公开涉及芯片验证领域,尤其涉及一种配置硬件资源的方法、电子设备及存储介质。The present disclosure relates to the field of chip verification, and in particular to a method for configuring hardware resources, electronic equipment and a storage medium.

背景技术Background technique

在利用硬件仿真工具对芯片设计进行验证时,硬件仿真工具需要对使用到的硬件资源进行管理。这些硬件资源可以是与硬件仿真工具配合的外围组件(例如,网卡、鼠标、显示器、PCI-E设备等)。When using a hardware simulation tool to verify a chip design, the hardware simulation tool needs to manage the hardware resources used. These hardware resources may be peripheral components (for example, network card, mouse, monitor, PCI-E device, etc.) that cooperate with the hardware emulation tool.

目前,管理硬件资源需要用户以代码的形式编写硬件资源配置文件,而编写硬件资源配置文件需要用户记忆大量的参数、语法。同时,不同的厂家的语法又通常不同。编写出的资源配置文件无法同时兼顾到可读性、紧凑性以及分析的简便性。同时,资源配置文件所对应的硬件资源也可能与实际硬件有所出入,导致资源配置文件无法运行等问题。At present, managing hardware resources requires users to write hardware resource configuration files in the form of code, and writing hardware resource configuration files requires users to memorize a large number of parameters and syntax. At the same time, the syntax of different manufacturers is usually different. The resource configuration files written cannot take into account readability, compactness, and ease of analysis at the same time. At the same time, the hardware resources corresponding to the resource configuration file may also be different from the actual hardware, resulting in problems such as the failure of the resource configuration file to run.

如何帮助用户直观、快速地生成硬件配置资源文件来配置硬件资源是亟需解决的问题。How to help users intuitively and quickly generate hardware configuration resource files to configure hardware resources is an urgent problem to be solved.

发明内容Contents of the invention

有鉴于此,本公开提出了一种配置硬件资源的方法、电子设备及存储介质。In view of this, the present disclosure proposes a method for configuring hardware resources, an electronic device, and a storage medium.

本公开第一方面,提供了一种配置硬件资源的方法,包括:获取第一配置文件,所述第一配置文件描述多个外围组件和硬件仿真工具的连接关系;接收用户编辑所述第一配置文件的编辑指令;根据所述编辑指令修改所述第一配置文件以生成第二配置文件;发送所述第二配置文件至所述硬件仿真工具以使得所述硬件仿真工具根据所述第二配置文件配置所述多个外围组件中的至少一部分。The first aspect of the present disclosure provides a method for configuring hardware resources, including: obtaining a first configuration file, the first configuration file describes the connection relationship between a plurality of peripheral components and a hardware simulation tool; receiving a user to edit the first Editing instruction of the configuration file; modify the first configuration file according to the editing instruction to generate a second configuration file; send the second configuration file to the hardware simulation tool so that the hardware simulation tool according to the second configuration file A configuration file configures at least some of the plurality of peripheral components.

本公开第二方面,提供了一种配置硬件资源的电子设备,包括:接口,连接到硬件仿真工具;存储器,用于存储一组指令;以及至少一个处理器,配置为执行该组指令以使得所述电子设备执行如第一方面所述的方法。A second aspect of the present disclosure provides an electronic device for configuring hardware resources, including: an interface connected to a hardware simulation tool; a memory for storing a set of instructions; and at least one processor configured to execute the set of instructions so that The electronic device executes the method described in the first aspect.

本公开第三方面,提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储电子设备的一组指令,该组指令用于使所述电子设备执行如第一方面所述的方法。In a third aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, the non-transitory computer-readable storage medium stores a set of instructions of an electronic device, and the set of instructions is used to make the electronic device perform the following steps: A method as described in one aspect.

本公开提供的一种配置硬件资源的方法、电子设备及存储介质,通过图形界面的方式与用户进行交互,使得用户可以直观地对硬件资源(即,外围组件)进行配置修改,生成新的配置文件。硬件仿真工具可以根据新的配置文件进行硬件资源的管理和配置。通过本公开提供的方法,使得编辑硬件资源配置变得简便、直观,改善了用户体验,进而提高了仿真验证的效率。The present disclosure provides a method for configuring hardware resources, an electronic device, and a storage medium, which interact with users through a graphical interface, so that users can intuitively modify the configuration of hardware resources (that is, peripheral components) and generate new configurations document. Hardware emulation tools can manage and configure hardware resources according to new configuration files. The method provided by the present disclosure makes editing hardware resource configuration easy and intuitive, improves user experience, and further improves the efficiency of simulation verification.

附图说明Description of drawings

为了更清楚地说明本公开或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only the present invention. It is disclosed that those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1示出了示例性硬件资源配置文件代码的示意图。Figure 1 shows a schematic diagram of an exemplary hardware resource profile code.

图2示出了根据本公开实施例的示例性电子设备的结构示意图。Fig. 2 shows a schematic structural diagram of an exemplary electronic device according to an embodiment of the present disclosure.

图3A示出了根据本公开实施例的示例性硬件连接关系的示意图。FIG. 3A shows a schematic diagram of an exemplary hardware connection relationship according to an embodiment of the present disclosure.

图3B示出了根据本公开实施例的示例性编辑后的拓扑图的示意图。FIG. 3B shows a schematic diagram of an exemplary edited topology map according to an embodiment of the present disclosure.

图3C示出了根据本公开实施例的示例性配置文件的示意图。FIG. 3C shows a schematic diagram of an exemplary configuration file according to an embodiment of the disclosure.

图4示出了根据本公开实施例的示例性配置硬件资源的方法的流程图。Fig. 4 shows a flowchart of an exemplary method for configuring hardware resources according to an embodiment of the present disclosure.

具体实施方式Detailed ways

为使本公开的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本公开进一步详细说明。In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

需要说明的是,除非另外定义,本公开使用的技术术语或者科学术语应当为本公开所属领域内具有一般技能的人士所理解的通常意义。本公开中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。“包括”或者“包含”等类似的词语意指出现该词前面的元件或者物件涵盖出现在该词后面列举的元件或者物件及其等同,而不排除其他元件或者物件。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present disclosure shall have the usual meanings understood by those skilled in the art to which the present disclosure belongs. "First", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Comprising" or "comprising" and similar words mean that the elements or items appearing before the word include the elements or items listed after the word and their equivalents, without excluding other elements or items. Words such as "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

图1示出了示例性硬件资源配置文件代码100的示意图。FIG. 1 shows a schematic diagram of exemplary hardware resource profile code 100 .

如上所述,目前,管理硬件资源需要用户以代码的形式编写硬件资源配置文件。如图1所示,编写硬件资源配置文件需要用户记忆大量的参数、语法,并且产生的配置文件对于用户不友好、不直观。As mentioned above, currently, managing hardware resources requires users to write hardware resource configuration files in the form of code. As shown in Figure 1, writing a hardware resource configuration file requires the user to memorize a large number of parameters and syntax, and the generated configuration file is not user-friendly and intuitive.

有鉴于上述问题,本公开提供一种配置硬件资源的方法、电子设备及存储介质,通过图形界面的方式与用户进行交互,使得用户可以直观地对硬件资源进行配置修改,生成新的配置文件。硬件仿真工具可以根据新的配置文件进行硬件资源的管理和配置。通过本公开提供的方法,使得编辑硬件资源配置变的简便、直观,改善了用户体验,进而提高了仿真验证的效率。In view of the above problems, the present disclosure provides a method for configuring hardware resources, an electronic device, and a storage medium, which interact with users through a graphical interface, so that users can intuitively configure and modify hardware resources and generate new configuration files. Hardware emulation tools can manage and configure hardware resources according to new configuration files. Through the method provided in the present disclosure, editing hardware resource configuration becomes simple and intuitive, improves user experience, and further improves the efficiency of simulation verification.

图2示出了根据本公开实施例的示例性电子设备200的结构示意图。Fig. 2 shows a schematic structural diagram of an exemplary electronic device 200 according to an embodiment of the present disclosure.

电子设备200例如可以是主机计算机。电子设备200可以包括:处理器202、存储器204、网络接口206、外围接口208和总线210。其中处理器202、存储器204、网络接口206和外围接口208可以通过总线210实现彼此之间在电子设备200内部的通信连接。Electronic device 200 may be, for example, a host computer. The electronic device 200 may include: a processor 202 , a memory 204 , a network interface 206 , a peripheral interface 208 and a bus 210 . The processor 202 , the memory 204 , the network interface 206 and the peripheral interface 208 can communicate with each other within the electronic device 200 through the bus 210 .

处理器202可以是中央处理器(Central Processing Unit,CPU)、图像处理器、神经网络处理器、微控制器、可编程逻辑器件、数字信号处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或一个或多个集成电路。处理器202可以用于进行与本公开描述的技术相关的功能。在一些实施例中,处理器202还可以包括集成为单一逻辑组件的多个处理器。如图2所示,处理器202可以包括多个处理器202a、202b和202c。The processor 202 may be a central processing unit (Central Processing Unit, CPU), an image processor, a neural network processor, a microcontroller, a programmable logic device, a digital signal processor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC ), or one or more integrated circuits. Processor 202 may be used to perform functions related to the techniques described in this disclosure. In some embodiments, processor 202 may also include multiple processors integrated into a single logical component. As shown in FIG. 2, the processor 202 may include a plurality of processors 202a, 202b, and 202c.

存储器204可以配置为存储数据(例如,指令集、计算机代码、中间数据等)。例如,如图2所示,存储的数据可以包括程序指令(例如,用于实现本公开的技术的程序指令)以及待处理的数据(例如,存储器204可以存储在编译过程产生的临时代码)。处理器202也可以访问存储的程序指令和数据,并且执行程序指令以对待处理的数据进行操作。存储器204可以包括非暂态计算机可读存储介质,例如易失性存储装置或非易失性存储装置。在一些实施例中,存储器204可以包括随机访问存储器(RAM)、只读存储器(ROM)、光盘、磁盘、硬盘、固态硬盘(SSD)、闪存、存储棒等。Memory 204 may be configured to store data (eg, sets of instructions, computer code, intermediate data, etc.). For example, as shown in FIG. 2 , stored data may include program instructions (eg, program instructions for implementing the techniques of the present disclosure) and data to be processed (eg, memory 204 may store temporary code generated during compilation). Processor 202 can also access stored program instructions and data, and execute the program instructions to operate on the data to be processed. Memory 204 may include non-transitory computer-readable storage media, such as volatile or non-volatile storage. In some embodiments, memory 204 may include random access memory (RAM), read only memory (ROM), optical disks, magnetic disks, hard disks, solid state disks (SSD), flash memory, memory sticks, and the like.

网络接口206可以配置为使电子设备200能够经由网络与一个或多个其他外部装置进行通信。该网络可以是能够传输和/或接收数据的任何有线或无线的网络。例如,该网络可以是有线网络、本地无线网络(例如,蓝牙、WiFi、近场通信(NFC)等)、蜂窝网络、因特网、或上述的组合。可以理解的是,网络的类型不限于上述具体示例。在一些实施例中,网络接口206可以包括任意数量的网络接口控制器(NIC)、射频模块、接收发器、调制解调器、路由器、网关、适配器、蜂窝网络芯片等的任意组合。The network interface 206 may be configured to enable the electronic device 200 to communicate with one or more other external devices via a network. The network may be any wired or wireless network capable of transmitting and/or receiving data. For example, the network may be a wired network, a local wireless network (eg, Bluetooth, WiFi, Near Field Communication (NFC), etc.), a cellular network, the Internet, or a combination thereof. It can be understood that the type of the network is not limited to the above specific examples. In some embodiments, network interface 206 may include any combination of any number of network interface controllers (NICs), radio frequency modules, transceivers, modems, routers, gateways, adapters, cellular network chips, and the like.

外围接口208可以配置为将电子设备200与一个或多个外围装置连接,以实现信息输入及输出。例如,外围装置可以包括键盘、鼠标、触摸板、触摸屏、麦克风、各类传感器等输入装置以及显示器、扬声器、振动器、指示灯等输出装置。The peripheral interface 208 can be configured to connect the electronic device 200 with one or more peripheral devices to realize information input and output. For example, peripheral devices may include input devices such as keyboards, mice, touchpads, touch screens, microphones, and various sensors, and output devices such as displays, speakers, vibrators, and indicator lights.

总线210可以被配置为在电子设备200的各个组件(例如,处理器202、存储器204、网络接口206和外围接口208)之间传输信息,并且例如可以是内部总线(例如,处理器-存储器总线)、外部总线(USB端口、PCI-E总线)等。Bus 210 may be configured to transfer information between various components of electronic device 200 (e.g., processor 202, memory 204, network interface 206, and peripheral interface 208), and may be, for example, an internal bus (e.g., a processor-memory bus ), external bus (USB port, PCI-E bus), etc.

在一些实施例中,除了图2所示出的以及上述所描述的处理器202、存储器204、网络接口206、外围接口208和总线210之外,电子设备200还可以包括实现正常运行所需的一个或多个其他组件和/或实现本公开的实施例的解决方案所必需的一个或多个其他组件。在一些实施例中,电子设备200可能不包含图2中所示的一个或多个组件。In some embodiments, in addition to the processor 202, memory 204, network interface 206, peripheral interface 208, and bus 210 shown in FIG. 2 and described above, the electronic device 200 may also include One or more other components and/or one or more other components necessary to implement the solutions of the embodiments of the present disclosure. In some embodiments, electronic device 200 may not include one or more of the components shown in FIG. 2 .

需要说明的是,尽管上述电子设备200的构成架构仅示出了处理器202、存储器204、网络接口206、外围接口208和总线210,但是在具体实施过程中,该电子设备200的构成架构还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述电子设备200的构成架构中也可以仅包含实现本公开实施例方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the structure of the electronic device 200 above only shows the processor 202, the memory 204, the network interface 206, the peripheral interface 208 and the bus 210, in the specific implementation process, the structure of the electronic device 200 is also May include other components necessary for proper operation. In addition, those skilled in the art can understand that the structure of the electronic device 200 may only include components necessary to implement the solutions of the embodiments of the present disclosure, instead of including all the components shown in the figure.

电子设备200可以运行调试工具(例如,芯华章科技股份有限公司出品的FusionDebug工具)来实施本公开实施例的方法。The electronic device 200 can run a debugging tool (for example, FusionDebug tool produced by Xinhuazhang Technology Co., Ltd.) to implement the method of the embodiment of the present disclosure.

图3A示出了根据本公开实施例的示例性硬件连接关系300的示意图。FIG. 3A shows a schematic diagram of an exemplary hardware connection relationship 300 according to an embodiment of the present disclosure.

电子设备200可以通过外围接口208与硬件仿真工具302连接。这里的硬件仿真工具302例如可以是芯华章科技股份有限公司出品的桦捷(HuaPro-P1)仿真工具。硬件仿真工具302可以接收逻辑系统设计304进行仿真验证。在仿真验证的过程中,硬件仿真工具302可以与外围组件3062通过接口3082连接、与外围组件3064通过接口3084连接、与外围组件3066通过接口3086连接。这里的外围组件可以包括FPGA、子卡、电缆、网卡、存储卡等。The electronic device 200 can be connected with the hardware emulation tool 302 through the peripheral interface 208 . The hardware simulation tool 302 here can be, for example, the HuaPro-P1 simulation tool produced by Xinhuazhang Technology Co., Ltd. The hardware simulation tool 302 can receive the logic system design 304 for simulation verification. During the simulation verification process, the hardware simulation tool 302 can be connected with the peripheral component 3062 through the interface 3082 , connected with the peripheral component 3064 through the interface 3084 , and connected with the peripheral component 3066 through the interface 3086 . The peripheral components here may include FPGA, daughter card, cable, network card, memory card, etc.

在一些实施例中,电子设备200可以获取连接到硬件仿真工具302的外围组件3062、3064、3066的资源信息,并根据该资源信息生成配置文件312。该资源信息可以包括外围组件3062、3064、3066的名称、类型、或连接关系的至少一个。电子设备200根据获取的资源信息可以生成图形界面。该图形界面可以包括描述外围组件3062、3064、3066及其连接关系的拓扑图310,并通过外围接口208显示在例如显示器上。拓扑图310与配置文件312对应。从拓扑图310中,用户可以清楚地看到外围组件3062、3064、3066和硬件仿真工具302的连接关系。In some embodiments, the electronic device 200 may acquire resource information of the peripheral components 3062, 3064, 3066 connected to the hardware simulation tool 302, and generate the configuration file 312 according to the resource information. The resource information may include at least one of the name, type, or connection relationship of the peripheral components 3062, 3064, 3066. The electronic device 200 may generate a graphical interface according to the acquired resource information. The graphical interface may include a topology diagram 310 describing peripheral components 3062 , 3064 , 3066 and their connection relationships, and is displayed on, for example, a display through the peripheral interface 208 . Topology map 310 corresponds to configuration file 312 . From the topology diagram 310 , the user can clearly see the connection relationship between the peripheral components 3062 , 3064 , 3066 and the hardware simulation tool 302 .

硬件仿真工具302可以接收逻辑系统设计304,并使用外围组件对逻辑系统设计304进行仿真验证。The hardware simulation tool 302 can receive the logic system design 304 and perform simulation verification on the logic system design 304 using peripheral components.

在一些实施例中,拓扑图310中的外围组件3062、3064、3066可能有仿真验证过程中不需要使用的外围组件。此时,根据仿真验证的需要,用户可以对拓扑图310进行编辑。电子设备200可以接收用户的编辑指令。例如,用户可以直接在图形界面对拓扑图310进行编辑,移除此次仿真验证过程中不需要使用的外围组件3066。拓扑图310中还可能缺少仿真验证过程中所需要的其他外围组件,例如图3A中所示的不在拓扑图310中的外围组件3068。用户可以直接在图形界面中将外围组件3068通过接口3088与硬件仿真工具302连接。需要注意的是,由于外围组件3068此时并未连接到硬件仿真工具302,因此外围组件3068尚不可用。电子设备200在显示拓扑图时可以突出显示外围组件3068及其连接方式,以提示用户应当将外围组件3068按拓扑图310的连接关系连接到硬件仿真工具302。In some embodiments, the peripheral components 3062, 3064, 3066 in the topology diagram 310 may have peripheral components that are not required to be used during the simulation verification process. At this point, the user can edit the topology diagram 310 according to the needs of simulation verification. The electronic device 200 may receive a user's editing instruction. For example, the user can directly edit the topology map 310 on the graphical interface, and remove the peripheral components 3066 that are not needed in the simulation verification process. The topology diagram 310 may also lack other peripheral components required in the simulation verification process, such as the peripheral component 3068 shown in FIG. 3A that is not in the topology diagram 310 . The user can directly connect the peripheral component 3068 with the hardware simulation tool 302 through the interface 3088 in the graphical interface. It should be noted that since the peripheral component 3068 is not connected to the hardware emulation tool 302 at this time, the peripheral component 3068 is not yet available. When displaying the topology diagram, the electronic device 200 may highlight the peripheral component 3068 and its connection mode, so as to prompt the user to connect the peripheral component 3068 to the hardware simulation tool 302 according to the connection relationship of the topology diagram 310 .

图3B示出了根据本公开实施例的示例性编辑后的拓扑图320的示意图。FIG. 3B shows a schematic diagram of an exemplary edited topology map 320 according to an embodiment of the present disclosure.

经过上述编辑操作,图形界面中可以显示编辑后的拓扑图320。硬件仿真工具302与外围组件3062通过接口3082连接、与外围组件3064通过接口3084连接、与外围组件3068通过接口3088连接。与图3A中所示的拓扑图310相比,拓扑图320中的外围组件3068取代了外围组件3066执行对逻辑系统设计304的仿真验证。如上所述,在图3B中,外围组件3068及其连接以突出显示(例如,加粗)的方式来显示。After the above editing operations, the edited topology map 320 can be displayed in the graphical interface. The hardware simulation tool 302 is connected with the peripheral component 3062 through the interface 3082 , connected with the peripheral component 3064 through the interface 3084 , and connected with the peripheral component 3068 through the interface 3088 . Compared to topology diagram 310 shown in FIG. 3A , peripheral component 3068 in topology diagram 320 replaces peripheral component 3066 to perform simulation verification of logic system design 304 . As noted above, in FIG. 3B peripheral components 3068 and their connections are shown highlighted (eg, bolded).

可以理解的是,除了移除外围组件3066或增加外围组件3068,用户还可以对拓扑图310进行其他编辑操作以满足仿真验证过程的需要,本公开对于用户的编辑操作不作限制,例如,用户可以编辑拓扑图310以改变外围组件的连接关系。It can be understood that, in addition to removing the peripheral component 3066 or adding the peripheral component 3068, the user can also perform other editing operations on the topology map 310 to meet the needs of the simulation verification process. This disclosure does not limit the user's editing operations. For example, the user can Edit the topology map 310 to change the connection relationship of peripheral components.

拓扑图对于用户来说,是友好且易于编辑的,但是却无法直接被硬件仿真工具302读取。硬件仿真工具302可以通过配置文件(例如,JSON格式的配置文件)管理所使用的外围组件。电子设备200可以基于编辑后的拓扑图320生成配置文件322,并将配置文件322发送给硬件仿真工具302。拓扑图320与配置文件322对应,例如,用户对拓扑图320的编辑操作可以映射到对配置文件322的修改。硬件仿真工具302根据接收到的配置文件322可以配置对应的外围组件3062、3064和3068。The topology map is friendly and easy to edit for users, but it cannot be directly read by the hardware simulation tool 302 . The hardware emulation tool 302 can manage the used peripheral components through a configuration file (for example, a configuration file in JSON format). The electronic device 200 can generate a configuration file 322 based on the edited topology map 320 and send the configuration file 322 to the hardware simulation tool 302 . The topology map 320 corresponds to the configuration file 322 , for example, a user's editing operation on the topology map 320 may be mapped to a modification to the configuration file 322 . The hardware emulation tool 302 can configure the corresponding peripheral components 3062 , 3064 and 3068 according to the received configuration file 322 .

图3C示出了根据本公开实施例的示例性配置文件322的示意图。FIG. 3C shows a schematic diagram of an exemplary configuration file 322 according to an embodiment of the disclosure.

配置文件322可以是用芯华章的资源规范语言(resource specificationlanguage)编写的。如图3C所示,配置文件322可以直接使用“+”或“-”表示添加或移除外围组件。配置文件322可以使用JSON格式来描述资源信息,而JSON格式是一种对用户和电子设备200都友好的代码格式。The configuration file 322 may be written in the resource specification language of Xinhuazhang. As shown in FIG. 3C , the configuration file 322 may directly use "+" or "-" to indicate adding or removing peripheral components. The configuration file 322 may use JSON format to describe resource information, and the JSON format is a code format friendly to both the user and the electronic device 200 .

在一些实施例中,电子设备200可以向用户提供命令行工具,并生成一份描述资源信息的文本文件。与图形界面类似,用户可以根据仿真验证过程的需要对该文本文件进行裁剪、补充或修改,例如可以通过VI、Emacs等编辑器对该文本文件进行编辑以得到满足用户需求的新的文本文件。电子设备200可以基于该新的文本文件生成配置文件,供硬件仿真工具302读取。In some embodiments, the electronic device 200 may provide a command line tool to the user, and generate a text file describing resource information. Similar to the graphical interface, the user can cut, supplement or modify the text file according to the needs of the simulation verification process. For example, the text file can be edited by VI, Emacs and other editors to obtain a new text file that meets the user's needs. The electronic device 200 can generate a configuration file based on the new text file for the hardware simulation tool 302 to read.

可以理解的是,这里的图形界面和命令行工具仅仅是示例,电子设备200也可以根据资源信息生成其他可视化或易于用户编辑的格式供用户进行编辑。It can be understood that the graphical interface and the command line tool here are only examples, and the electronic device 200 may also generate other visual or user-friendly formats for editing according to the resource information.

如上所述,修改后的配置文件322可能与当前实际的外围组件连接方式不同。为了匹配配置文件322,需要用户调整外围组件的实际连接,而这个过程是可能出现操作错误的(例如,接口连接错误之类)。因此,在一些实施例中,电子设备200可以确定配置文件322是否与连接到硬件仿真工具302的多个外围组件的资源信息匹配。例如,电子设备200执行核验机制,将配置文件322中要求配置的外围组件与获取到的实际连接到硬件仿真工具302的外围组件3062、3064、3068的资源信息进行匹配。响应于配置文件322与资源信息不匹配,电子设备200可以突出显示不匹配的外围组件。例如,电子设备200可以在配置文件322或拓扑图320中突出显示(例如,高亮显示)不匹配的外围组件。通过上述核验机制以及突出显示,本公开实施例的电子设备200可以确保外围组件的实际连接与配置文件对应。即使出现操作失误,也可以及时发现错误进行调整。As mentioned above, the modified configuration file 322 may be different from the current actual peripheral component connection method. In order to match the configuration file 322, the user needs to adjust the actual connection of the peripheral components, and this process may cause operational errors (eg, interface connection errors and the like). Accordingly, in some embodiments, electronic device 200 may determine whether configuration file 322 matches resource information of a plurality of peripheral components connected to hardware emulation tool 302 . For example, the electronic device 200 executes a verification mechanism to match the peripheral components required to be configured in the configuration file 322 with the obtained resource information of the peripheral components 3062 , 3064 , and 3068 actually connected to the hardware simulation tool 302 . In response to the configuration file 322 not matching the resource information, the electronic device 200 may highlight the mismatching peripheral components. For example, electronic device 200 may highlight (eg, highlight) mismatched peripheral components in configuration file 322 or topology map 320 . Through the above verification mechanism and highlighting, the electronic device 200 in the embodiment of the present disclosure can ensure that the actual connection of the peripheral components corresponds to the configuration file. Even if there is an operation error, the error can be found and adjusted in time.

回到图3A,在另一些实施例中,配置文件312可以由用户编写,而不是由电子设备200根据外围组件3062、3064、3066的资源信息来生成。用户编写的配置文件312中涉及的外围组件可能与实际的外围组件有所区别,例如缺少某个外围组件或某个外围组件的连接关系不一致,这些情况都可能会导致配置文件无法运行。用户编写的配置文件312中所提供的某些外围组件情况也可能无法自动检测出来,从而对外围组件情况的自动核实机制产生影响。与电子设备200确定配置文件322是否与连接到硬件仿真工具302的多个外围组件的资源信息匹配相类似,电子设备200可以确定用户编写的配置文件312是否与获取到的外围组件的资源信息匹配。响应于用户编写的配置文件312与资源信息不匹配,电子设备200可以突出显示不匹配的外围组件。Returning to FIG. 3A , in some other embodiments, the configuration file 312 may be written by the user instead of being generated by the electronic device 200 according to the resource information of the peripheral components 3062 , 3064 , 3066 . The peripheral components involved in the configuration file 312 written by the user may be different from the actual peripheral components, for example, a certain peripheral component is missing or the connection relationship of a certain peripheral component is inconsistent, which may cause the configuration file to fail to run. Certain peripheral component conditions provided in the configuration file 312 written by the user may also not be automatically detected, thus affecting the automatic verification mechanism of the peripheral component conditions. Similar to how the electronic device 200 determines whether the configuration file 322 matches the resource information of a plurality of peripheral components connected to the hardware emulation tool 302, the electronic device 200 can determine whether the configuration file 312 written by the user matches the acquired resource information of the peripheral components . In response to the user-authored configuration file 312 not matching the resource information, the electronic device 200 may highlight the mismatching peripheral components.

这样,电子设备200通过图形界面的方式与用户进行交互,使得用户可以直观地对硬件资源进行配置修改,生成新的配置文件。硬件仿真工具302可以根据新的配置文件进行硬件资源的管理和配置。电子设备200还可以将配置文件与实际连接的硬件资源进行匹配,并突出显示不匹配的硬件资源。通过本公开提供的方法,使得用户可以更简便、更直观地编辑硬件资源配置,也能更快的找到硬件资源配置中不匹配的部分,改善用户体验,提高仿真验证的效率。In this way, the electronic device 200 interacts with the user through a graphical interface, so that the user can intuitively modify the configuration of hardware resources and generate a new configuration file. The hardware simulation tool 302 can manage and configure hardware resources according to the new configuration file. The electronic device 200 can also match the configuration file with the actually connected hardware resources, and highlight the unmatched hardware resources. Through the method provided by the present disclosure, the user can edit the hardware resource configuration more conveniently and intuitively, and can also quickly find the unmatched parts in the hardware resource configuration, thereby improving user experience and improving the efficiency of simulation verification.

图4示出了根据本公开实施例的示例性配置硬件资源的方法400的流程图。方法400可以由图2的电子设备200执行,更具体地,由在电子设备200上运行的调试工具执行。方法400可以包括如下步骤。FIG. 4 shows a flowchart of an exemplary method 400 for configuring hardware resources according to an embodiment of the present disclosure. The method 400 may be executed by the electronic device 200 in FIG. 2 , more specifically, by a debugging tool running on the electronic device 200 . Method 400 may include the following steps.

在步骤S402,电子设备200可以获取第一配置文件(例如,图3A中的配置文件312),该第一配置文件可以描述多个外围组件(例如,图3A中的外围组件3062、3064和3066)和硬件仿真工具(例如,图3A中的硬件仿真工具302)的连接关系。In step S402, the electronic device 200 can obtain a first configuration file (for example, the configuration file 312 in FIG. ) and the connection relationship between the hardware simulation tool (for example, the hardware simulation tool 302 in FIG. 3A ).

在一些实施例中,电子设备200可以获取连接到该硬件仿真工具的多个外围组件(例如,图3A中的外围组件3062、3064和3066)的资源信息,并根据该资源信息生成第一配置文件(例如,图3A中的配置文件312)。In some embodiments, the electronic device 200 may acquire resource information of multiple peripheral components (for example, peripheral components 3062, 3064, and 3066 in FIG. 3A ) connected to the hardware simulation tool, and generate the first configuration according to the resource information file (eg, configuration file 312 in FIG. 3A ).

在一些实施例中,该资源信息可以包括该多个外围组件的名称(例如,“CARD”或“BOARD”)、类型(例如,“Cable”或“TWO_CHIP_BORRD”)、或连接关系的至少一个。电子设备200根据该资源信息可以生成图形界面。该图形界面可以包括该多个外围组件和硬件仿真工具的第一拓扑图(例如,图3A中的拓扑图310)。该第一拓扑图与该第一配置文件对应(例如,图3A中拓扑图310和配置文件312对应关系)。In some embodiments, the resource information may include at least one of names (eg, "CARD" or "BOARD"), types (eg, "Cable" or "TWO_CHIP_BORRD"), or connection relationships of the plurality of peripheral components. The electronic device 200 can generate a graphical interface according to the resource information. The graphical interface can include a first topology (eg, topology 310 in FIG. 3A ) of the plurality of peripheral components and hardware emulation tools. The first topology map corresponds to the first configuration file (for example, the corresponding relationship between the topology map 310 and the configuration file 312 in FIG. 3A ).

在步骤S404,电子设备200可以接收用户编辑该第一配置文件的编辑指令。In step S404, the electronic device 200 may receive an edit instruction from the user to edit the first configuration file.

在步骤S406,电子设备200可以根据该编辑指令修改该第一配置文件以生成第二配置文件(例如,图3B中的配置文件322)。In step S406, the electronic device 200 may modify the first configuration file according to the editing instruction to generate a second configuration file (eg, configuration file 322 in FIG. 3B ).

在一些实施例中,电子设备200可以经由该图形界面接收该编辑指令。该编辑指令可以包括移除一个外围组件(例如,移除外围组件3066)、增加一个外围组件(例如,增加外围组件3068)、或改变一个外围组件的连接关系的至少一个。电子设备200根据该编辑指令可以编辑该第一拓扑图以得到第二拓扑图(例如,图3B中的拓扑图320)。电子设备200基于该第二拓扑图可以生成该第二配置文件(例如,图3B中的配置文件322)。该配置文件可以是用芯华章的资源规范语言(resource specification language)编写的(例如,图3C所示的配置文件322)。In some embodiments, the electronic device 200 may receive the editing instruction via the graphical interface. The editing instruction may include at least one of removing a peripheral component (eg, remove peripheral component 3066), adding a peripheral component (eg, adding peripheral component 3068), or changing a connection relationship of a peripheral component. The electronic device 200 may edit the first topology map according to the editing instruction to obtain a second topology map (for example, the topology map 320 in FIG. 3B ). The electronic device 200 may generate the second configuration file (for example, the configuration file 322 in FIG. 3B ) based on the second topology map. The configuration file may be written in the resource specification language of Xinhuazhang (eg, configuration file 322 shown in FIG. 3C ).

在步骤S408,电子设备200可以发送该第二配置文件至该硬件仿真工具302以使得该硬件仿真工具302根据该第二配置文件(例如,图3B中的配置文件322)配置该多个外围组件中的至少一部分(例如,图3B中的外围组件3062、3064和3068)。In step S408, the electronic device 200 may send the second configuration file to the hardware emulation tool 302 so that the hardware emulation tool 302 configures the plurality of peripheral components according to the second configuration file (eg, configuration file 322 in FIG. 3B ). At least a portion of (eg, peripheral components 3062, 3064, and 3068 in FIG. 3B ).

在一些实施例中,电子设备200可以进一步确定该第二配置文件是否与该资源信息匹配,响应于该第二配置文件与该资源信息不匹配,可以突出显示不匹配的外围组件(例如,在配置文件322或拓扑图320中高亮显示不匹配的外围组件)。In some embodiments, the electronic device 200 may further determine whether the second configuration file matches the resource information, and in response to the second configuration file not matching the resource information, may highlight mismatched peripheral components (for example, in Mismatched peripheral components are highlighted in configuration file 322 or topology map 320).

在另一些实施例中,该第一配置文件(例如,图3A中的配置文件312)可以由用户编写。电子设备200可以获取连接到该硬件仿真工具的该多个外围组件(例如,图3A中的外围组件3062、3064和3066)的资源信息。因为用户编写的该第一配置文件中涉及的外围组件可能与实际的外围组件有所区别,从而导致该第一配置文件无法运行或影响外围组件情况的自动核实机制。类似地,电子设备200可以确定该第一配置文件是否与该资源信息匹配;响应于该第一配置文件与该资源信息不匹配,突出显示不匹配的外围组件。In other embodiments, the first configuration file (eg, configuration file 312 in FIG. 3A ) may be written by a user. The electronic device 200 may acquire resource information of the plurality of peripheral components (eg, peripheral components 3062, 3064, and 3066 in FIG. 3A ) connected to the hardware emulation tool. Because the peripheral components involved in the first configuration file written by the user may be different from the actual peripheral components, the first configuration file cannot run or affect the automatic verification mechanism of the peripheral components. Similarly, the electronic device 200 can determine whether the first configuration file matches the resource information; in response to the first configuration file not matching the resource information, highlight the non-matching peripheral components.

本公开还提供了一种配置硬件资源的电子设备。该电子设备可以是图2所示的电子设备200。电子设备200可以包括接口,连接到硬件仿真工具;存储器,用于存储一组指令;以及至少一个处理器,被配置为执行存储在存储器204中的计算机程序以实现与本公开一致的配置硬件资源的方法,诸如上述示例性方法(例如,图4中所示的方法400)。此处不再赘述。The present disclosure also provides an electronic device for configuring hardware resources. The electronic device may be the electronic device 200 shown in FIG. 2 . Electronic device 200 may include an interface to a hardware emulation tool; memory to store a set of instructions; and at least one processor configured to execute a computer program stored in memory 204 to implement configured hardware resources consistent with the present disclosure A method, such as the exemplary method described above (eg, method 400 shown in FIG. 4 ). I won't repeat them here.

本公开还提供了一种非暂态计算机可读存储介质。非暂态计算机可读存储介质存储电子设备的一组指令。该组指令在被执行时,可以使得电子设备200实现与本公开一致的配置硬件资源的方法,诸如上述示例性方法(例如,图4中所示的方法400)。此处不再赘述。The present disclosure also provides a non-transitory computer readable storage medium. A non-transitory computer-readable storage medium stores a set of instructions for an electronic device. The set of instructions, when executed, can cause the electronic device 200 to implement a method for configuring hardware resources consistent with the present disclosure, such as the exemplary method described above (eg, the method 400 shown in FIG. 4 ). I won't repeat them here.

本实施例的计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The computer-readable medium in this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

上述对本公开特定实施例进行了描述。其他实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present disclosure. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.

所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本公开的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本公开的不同方面的许多其它变化,为了简明它们没有在细节中提供。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is exemplary only, and is not intended to imply that the scope of the present disclosure (including claims) is limited to these examples; under the idea of the present disclosure, the above embodiments or Combinations between technical features in different embodiments are also possible, steps may be performed in any order, and there are many other variations of the different aspects of the disclosure as described above, which are not presented in detail for the sake of brevity.

另外,为简化说明和讨论,并且为了不会使本公开难以理解,在所提供的附图中可以示出或可以不示出与集成电路(IC)芯片和其它部件的公知的电源/接地连接。此外,可以以框图的形式示出装置,以便避免使本公开难以理解,并且这也考虑了以下事实,即关于这些框图装置的实施方式的细节是高度取决于将要实施本公开的平台的(即,这些细节应当完全处于本领域技术人员的理解范围内)。在阐述了具体细节(例如,电路)以描述本公开的示例性实施例的情况下,对本领域技术人员来说显而易见的是,可以在没有这些具体细节的情况下或者这些具体细节有变化的情况下实施本公开。因此,这些描述应被认为是说明性的而不是限制性的。In addition, well-known power/ground connections to integrated circuit (IC) chips and other components may or may not be shown in the figures provided, for simplicity of illustration and discussion, and so as not to obscure the present disclosure. . Furthermore, devices may be shown in block diagram form in order to avoid obscuring the disclosure, and this also takes into account the fact that details regarding the implementation of these block diagram devices are highly dependent on the platform on which the disclosure is to be implemented (i.e. , these details should be well within the understanding of those skilled in the art). Where specific details (eg, circuits) have been set forth to describe example embodiments of the present disclosure, it will be apparent to those skilled in the art that other applications may be made without or with variations from these specific details. The present disclosure is implemented below. Accordingly, these descriptions should be regarded as illustrative rather than restrictive.

尽管已经结合了本公开的具体实施例对本公开进行了描述,但是根据前面的描述,这些实施例的很多替换、修改和变型对本领域普通技术人员来说将是显而易见的。例如,其它存储器架构(例如,动态RAM(DRAM))可以使用所讨论的实施例。Although the disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications and variations of those embodiments will be apparent to those of ordinary skill in the art from the foregoing description. For example, other memory architectures such as dynamic RAM (DRAM) may use the discussed embodiments.

本公开旨在涵盖落入所附权利要求的宽泛范围之内的所有这样的替换、修改和变型。因此,凡在本公开的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本公开的保护范围之内。The present disclosure is intended to embrace all such alterations, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present disclosure shall fall within the protection scope of the present disclosure.

Claims (9)

1.一种配置硬件资源的方法,包括:1. A method for configuring hardware resources, comprising: 获取第一配置文件,所述第一配置文件描述多个外围组件和硬件仿真工具的连接关系;Obtaining a first configuration file, the first configuration file describes the connection relationship between a plurality of peripheral components and a hardware emulation tool; 接收用户编辑所述第一配置文件的编辑指令;receiving an editing instruction from a user to edit the first configuration file; 根据所述编辑指令修改所述第一配置文件以生成第二配置文件;modifying the first configuration file according to the editing instruction to generate a second configuration file; 发送所述第二配置文件至所述硬件仿真工具以使得所述硬件仿真工具根据所述第二配置文件配置所述多个外围组件中的至少一部分。sending the second configuration file to the hardware emulation tool so that the hardware emulation tool configures at least a portion of the plurality of peripheral components according to the second configuration file. 2.根据权利要求1所述的方法,其中,获取所述第一配置文件进一步包括:2. The method according to claim 1, wherein obtaining the first configuration file further comprises: 获取连接到所述硬件仿真工具的所述多个外围组件的资源信息;acquiring resource information of the plurality of peripheral components connected to the hardware emulation tool; 根据所述资源信息生成第一配置文件。A first configuration file is generated according to the resource information. 3.根据权利要求2所述的方法,其中,所述资源信息包括所述多个外围组件的名称、类型、或连接关系的至少一个,根据所述资源生成第一配置文件进一步包括:3. The method according to claim 2, wherein the resource information includes at least one of the names, types, or connection relationships of the plurality of peripheral components, and generating the first configuration file according to the resources further comprises: 根据所述资源信息生成图形界面,所述图形界面包括所述多个外围组件和所述硬件仿真工具的第一拓扑图,所述第一拓扑图对应于所述第一配置文件。A graphical interface is generated according to the resource information, the graphical interface includes the plurality of peripheral components and a first topology map of the hardware simulation tool, and the first topology map corresponds to the first configuration file. 4.根据权利要求3所述的方法,其中,接收用户编辑所述第一配置文件的编辑指令以生成第二配置文件进一步包括:4. The method according to claim 3, wherein receiving an editing instruction from a user to edit the first configuration file to generate a second configuration file further comprises: 经由所述图形界面接收所述编辑指令;receiving the editing instruction via the graphical interface; 根据所述编辑指令编辑所述第一拓扑图以得到第二拓扑图;Editing the first topology graph according to the editing instruction to obtain a second topology graph; 基于所述第二拓扑图生成所述第二配置文件。The second configuration file is generated based on the second topology map. 5.根据权利要求4所述的方法,其中,所述编辑指令包括移除一个外围组件、增加一个外围组件、或改变一个外围组件的连接关系的至少一个。5. The method according to claim 4, wherein the editing instruction comprises at least one of removing a peripheral component, adding a peripheral component, or changing a connection relationship of a peripheral component. 6.根据权利要求1所述的方法,其中,所述第一配置文件由用户编写,所述方法进一步包括:6. The method according to claim 1, wherein the first configuration file is written by a user, the method further comprising: 获取连接到所述硬件仿真工具的所述多个外围组件的资源信息;acquiring resource information of the plurality of peripheral components connected to the hardware emulation tool; 确定所述第一配置文件是否与所述资源信息匹配;determining whether the first configuration file matches the resource information; 响应于所述第一配置文件与所述资源信息不匹配,突出显示不匹配的外围组件。In response to the first configuration file not matching the resource information, the mismatching peripheral components are highlighted. 7.根据权利要求4所述的方法,进一步包括:7. The method of claim 4, further comprising: 确定所述第二配置文件是否与所述资源信息匹配;determining whether the second configuration file matches the resource information; 响应于所述第二配置文件与所述资源信息不匹配,突出显示不匹配的外围组件。In response to the second configuration file not matching the resource information, the mismatching peripheral components are highlighted. 8.一种电子设备,包括:8. An electronic device comprising: 接口,连接到硬件仿真工具;Interface, connected to the hardware simulation tool; 存储器,用于存储一组指令;以及memory for storing a set of instructions; and 至少一个处理器,配置为执行所述一组指令以使得所述电子设备执行如权利要求1至7任一项所述的方法。At least one processor configured to execute the set of instructions to cause the electronic device to execute the method according to any one of claims 1-7. 9.一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储电子设备的一组指令,所述一组指令在被执行时使得所述电子设备执行权利要求1至7任一项所述方法。9. A non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores a set of instructions of an electronic device, and when executed, the set of instructions causes the electronic device to perform claims 1 to 10. 7. The method described in any one.
CN202210692574.4A 2022-06-17 2022-06-17 Method for configuring hardware resources, electronic device and storage medium Active CN115291963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210692574.4A CN115291963B (en) 2022-06-17 2022-06-17 Method for configuring hardware resources, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210692574.4A CN115291963B (en) 2022-06-17 2022-06-17 Method for configuring hardware resources, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN115291963A true CN115291963A (en) 2022-11-04
CN115291963B CN115291963B (en) 2025-03-04

Family

ID=83821059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210692574.4A Active CN115291963B (en) 2022-06-17 2022-06-17 Method for configuring hardware resources, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN115291963B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117951853A (en) * 2024-03-27 2024-04-30 广东采日能源科技有限公司 Energy storage system and configuration method and device thereof

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354966A (en) * 2016-09-06 2017-01-25 芯海科技(深圳)股份有限公司 Method for converting chip IDE project files and rapidly configuring simulation debugging environment
US20170024508A1 (en) * 2015-07-23 2017-01-26 Synopsys, Inc System and method for managing and composing verification engines
CN106648859A (en) * 2016-12-01 2017-05-10 北京奇虎科技有限公司 Task scheduling method and device
CN106682096A (en) * 2016-12-01 2017-05-17 北京奇虎科技有限公司 Method and device for log data management
CN107368331A (en) * 2017-06-26 2017-11-21 聚好看科技股份有限公司 The configuration file update method and device of application program
CN107688681A (en) * 2016-12-23 2018-02-13 北京国睿中数科技股份有限公司 A kind of hardware accelerator verification method that dynamic configuration parameters are provided
US20180373961A1 (en) * 2017-06-26 2018-12-27 Nicira, Inc. System and method for deploying graphical diagram topologies
CN109408103A (en) * 2018-09-17 2019-03-01 西安闻泰电子科技有限公司 Setting method, device, equipment and the medium of configuration file
CN109861869A (en) * 2019-03-12 2019-06-07 新华三技术有限公司 A kind of generation method and device of configuration file
CN112632880A (en) * 2020-12-28 2021-04-09 芯华章科技股份有限公司 Compiling method for logic system design, electronic device, and storage medium
CN113283203A (en) * 2021-07-21 2021-08-20 芯华章科技股份有限公司 Method, electronic device and storage medium for simulating logic system design
CN113377597A (en) * 2021-06-28 2021-09-10 芯华章科技股份有限公司 Simulation system and method for storing and reading simulation data
CN113947050A (en) * 2021-08-27 2022-01-18 芯华章科技股份有限公司 Method, electronic device, and storage medium for generating formal verification environment
CN114239477A (en) * 2021-12-09 2022-03-25 海光信息技术股份有限公司 Hardware connection checking method, device, storage medium and electronic device

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170024508A1 (en) * 2015-07-23 2017-01-26 Synopsys, Inc System and method for managing and composing verification engines
CN106354966A (en) * 2016-09-06 2017-01-25 芯海科技(深圳)股份有限公司 Method for converting chip IDE project files and rapidly configuring simulation debugging environment
CN106648859A (en) * 2016-12-01 2017-05-10 北京奇虎科技有限公司 Task scheduling method and device
CN106682096A (en) * 2016-12-01 2017-05-17 北京奇虎科技有限公司 Method and device for log data management
CN107688681A (en) * 2016-12-23 2018-02-13 北京国睿中数科技股份有限公司 A kind of hardware accelerator verification method that dynamic configuration parameters are provided
US20180373961A1 (en) * 2017-06-26 2018-12-27 Nicira, Inc. System and method for deploying graphical diagram topologies
CN107368331A (en) * 2017-06-26 2017-11-21 聚好看科技股份有限公司 The configuration file update method and device of application program
CN109408103A (en) * 2018-09-17 2019-03-01 西安闻泰电子科技有限公司 Setting method, device, equipment and the medium of configuration file
CN109861869A (en) * 2019-03-12 2019-06-07 新华三技术有限公司 A kind of generation method and device of configuration file
CN112632880A (en) * 2020-12-28 2021-04-09 芯华章科技股份有限公司 Compiling method for logic system design, electronic device, and storage medium
CN113377597A (en) * 2021-06-28 2021-09-10 芯华章科技股份有限公司 Simulation system and method for storing and reading simulation data
CN113283203A (en) * 2021-07-21 2021-08-20 芯华章科技股份有限公司 Method, electronic device and storage medium for simulating logic system design
CN113947050A (en) * 2021-08-27 2022-01-18 芯华章科技股份有限公司 Method, electronic device, and storage medium for generating formal verification environment
CN114239477A (en) * 2021-12-09 2022-03-25 海光信息技术股份有限公司 Hardware connection checking method, device, storage medium and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117951853A (en) * 2024-03-27 2024-04-30 广东采日能源科技有限公司 Energy storage system and configuration method and device thereof

Also Published As

Publication number Publication date
CN115291963B (en) 2025-03-04

Similar Documents

Publication Publication Date Title
CN109558525B (en) Test data set generation method, device, equipment and storage medium
CN111459835B (en) Service debugging method and device, electronic equipment and computer readable storage medium
CN109324991B (en) Hot plug device, method, medium and system of PCIE (peripheral component interface express) equipment
CN112287569B (en) Method, electronic device and storage medium for simulating logic system design
CN109451098A (en) FPGA accelerator card MAC Address configuration method, device and accelerator card
CN119005109B (en) Method and device for generating circuit schematic diagram of board card, electronic device and storage medium
CN115291963A (en) Method for configuring hardware resources, electronic device and storage medium
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN113641628B (en) Data quality detection method, device, equipment and storage medium
CN117172207B (en) System bus interconnection verification method, device, electronic equipment, storage medium
CN117787153B (en) Hardware design verification method, device and storage medium
CN114546823B (en) Method for reproducing debug scenario of logic system design and related equipment
CN117931404A (en) Multi-application switching method, device, equipment and medium based on FPGA
CN113608089B (en) SOA test method, system and device for switching power supply MOS tube and readable storage medium
WO2023197851A1 (en) Abnormal component identification method and apparatus, device, storage medium, and program product
CN116956797A (en) Power integrity simulation method and device and electronic equipment
CN114328062A (en) Method, device and storage medium for checking cache consistency
CN116431270A (en) Method and device for transmitting configuration data, electronic equipment and readable storage medium
CN117194388B (en) Data management method, device, electronic equipment and storage medium
CN117931096B (en) Information providing method and device applied to servers of edge computing cluster
CN119576301B (en) Processor test system integration method, device, computer equipment and storage medium
CN117130946B (en) A test scenario generation method, device, electronic device and readable storage medium
CN115186017A (en) Method, device and storage medium for reading and writing waveform file in target waveform format
CN119179653A (en) Writing method of battery management system communication protocol, electronic equipment and storage medium
CN116069391A (en) Pin state reading method, device, equipment and medium of CPLD

Legal Events

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