CN115291963A - Method for configuring hardware resources, electronic device and storage medium - Google Patents
Method for configuring hardware resources, electronic device and storage medium Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000002093 peripheral effect Effects 0.000 claims abstract description 95
- 238000004088 simulation Methods 0.000 claims abstract description 42
- 230000004044 response Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 22
- 238000012795 verification Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 9
- 238000013461 design Methods 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000001413 cellular effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 241000699666 Mus <mouse, genus> Species 0.000 description 1
- 241000699670 Mus sp. Species 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution 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
Description
技术领域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
如上所述,目前,管理硬件资源需要用户以代码的形式编写硬件资源配置文件。如图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
电子设备200例如可以是主机计算机。电子设备200可以包括:处理器202、存储器204、网络接口206、外围接口208和总线210。其中处理器202、存储器204、网络接口206和外围接口208可以通过总线210实现彼此之间在电子设备200内部的通信连接。
处理器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)、闪存、存储棒等。
网络接口206可以配置为使电子设备200能够经由网络与一个或多个其他外部装置进行通信。该网络可以是能够传输和/或接收数据的任何有线或无线的网络。例如,该网络可以是有线网络、本地无线网络(例如,蓝牙、WiFi、近场通信(NFC)等)、蜂窝网络、因特网、或上述的组合。可以理解的是,网络的类型不限于上述具体示例。在一些实施例中,网络接口206可以包括任意数量的网络接口控制器(NIC)、射频模块、接收发器、调制解调器、路由器、网关、适配器、蜂窝网络芯片等的任意组合。The
外围接口208可以配置为将电子设备200与一个或多个外围装置连接,以实现信息输入及输出。例如,外围装置可以包括键盘、鼠标、触摸板、触摸屏、麦克风、各类传感器等输入装置以及显示器、扬声器、振动器、指示灯等输出装置。The
总线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,
在一些实施例中,除了图2所示出的以及上述所描述的处理器202、存储器204、网络接口206、外围接口208和总线210之外,电子设备200还可以包括实现正常运行所需的一个或多个其他组件和/或实现本公开的实施例的解决方案所必需的一个或多个其他组件。在一些实施例中,电子设备200可能不包含图2中所示的一个或多个组件。In some embodiments, in addition to the processor 202,
需要说明的是,尽管上述电子设备200的构成架构仅示出了处理器202、存储器204、网络接口206、外围接口208和总线210,但是在具体实施过程中,该电子设备200的构成架构还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述电子设备200的构成架构中也可以仅包含实现本公开实施例方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the structure of the
电子设备200可以运行调试工具(例如,芯华章科技股份有限公司出品的FusionDebug工具)来实施本公开实施例的方法。The
图3A示出了根据本公开实施例的示例性硬件连接关系300的示意图。FIG. 3A shows a schematic diagram of an exemplary
电子设备200可以通过外围接口208与硬件仿真工具302连接。这里的硬件仿真工具302例如可以是芯华章科技股份有限公司出品的桦捷(HuaPro-P1)仿真工具。硬件仿真工具302可以接收逻辑系统设计304进行仿真验证。在仿真验证的过程中,硬件仿真工具302可以与外围组件3062通过接口3082连接、与外围组件3064通过接口3084连接、与外围组件3066通过接口3086连接。这里的外围组件可以包括FPGA、子卡、电缆、网卡、存储卡等。The
在一些实施例中,电子设备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
硬件仿真工具302可以接收逻辑系统设计304,并使用外围组件对逻辑系统设计304进行仿真验证。The
在一些实施例中,拓扑图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
图3B示出了根据本公开实施例的示例性编辑后的拓扑图320的示意图。FIG. 3B shows a schematic diagram of an exemplary edited
经过上述编辑操作,图形界面中可以显示编辑后的拓扑图320。硬件仿真工具302与外围组件3062通过接口3082连接、与外围组件3064通过接口3084连接、与外围组件3068通过接口3088连接。与图3A中所示的拓扑图310相比,拓扑图320中的外围组件3068取代了外围组件3066执行对逻辑系统设计304的仿真验证。如上所述,在图3B中,外围组件3068及其连接以突出显示(例如,加粗)的方式来显示。After the above editing operations, the edited
可以理解的是,除了移除外围组件3066或增加外围组件3068,用户还可以对拓扑图310进行其他编辑操作以满足仿真验证过程的需要,本公开对于用户的编辑操作不作限制,例如,用户可以编辑拓扑图310以改变外围组件的连接关系。It can be understood that, in addition to removing the
拓扑图对于用户来说,是友好且易于编辑的,但是却无法直接被硬件仿真工具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
图3C示出了根据本公开实施例的示例性配置文件322的示意图。FIG. 3C shows a schematic diagram of an
配置文件322可以是用芯华章的资源规范语言(resource specificationlanguage)编写的。如图3C所示,配置文件322可以直接使用“+”或“-”表示添加或移除外围组件。配置文件322可以使用JSON格式来描述资源信息,而JSON格式是一种对用户和电子设备200都友好的代码格式。The
在一些实施例中,电子设备200可以向用户提供命令行工具,并生成一份描述资源信息的文本文件。与图形界面类似,用户可以根据仿真验证过程的需要对该文本文件进行裁剪、补充或修改,例如可以通过VI、Emacs等编辑器对该文本文件进行编辑以得到满足用户需求的新的文本文件。电子设备200可以基于该新的文本文件生成配置文件,供硬件仿真工具302读取。In some embodiments, the
可以理解的是,这里的图形界面和命令行工具仅仅是示例,电子设备200也可以根据资源信息生成其他可视化或易于用户编辑的格式供用户进行编辑。It can be understood that the graphical interface and the command line tool here are only examples, and the
如上所述,修改后的配置文件322可能与当前实际的外围组件连接方式不同。为了匹配配置文件322,需要用户调整外围组件的实际连接,而这个过程是可能出现操作错误的(例如,接口连接错误之类)。因此,在一些实施例中,电子设备200可以确定配置文件322是否与连接到硬件仿真工具302的多个外围组件的资源信息匹配。例如,电子设备200执行核验机制,将配置文件322中要求配置的外围组件与获取到的实际连接到硬件仿真工具302的外围组件3062、3064、3068的资源信息进行匹配。响应于配置文件322与资源信息不匹配,电子设备200可以突出显示不匹配的外围组件。例如,电子设备200可以在配置文件322或拓扑图320中突出显示(例如,高亮显示)不匹配的外围组件。通过上述核验机制以及突出显示,本公开实施例的电子设备200可以确保外围组件的实际连接与配置文件对应。即使出现操作失误,也可以及时发现错误进行调整。As mentioned above, the modified
回到图3A,在另一些实施例中,配置文件312可以由用户编写,而不是由电子设备200根据外围组件3062、3064、3066的资源信息来生成。用户编写的配置文件312中涉及的外围组件可能与实际的外围组件有所区别,例如缺少某个外围组件或某个外围组件的连接关系不一致,这些情况都可能会导致配置文件无法运行。用户编写的配置文件312中所提供的某些外围组件情况也可能无法自动检测出来,从而对外围组件情况的自动核实机制产生影响。与电子设备200确定配置文件322是否与连接到硬件仿真工具302的多个外围组件的资源信息匹配相类似,电子设备200可以确定用户编写的配置文件312是否与获取到的外围组件的资源信息匹配。响应于用户编写的配置文件312与资源信息不匹配,电子设备200可以突出显示不匹配的外围组件。Returning to FIG. 3A , in some other embodiments, the
这样,电子设备200通过图形界面的方式与用户进行交互,使得用户可以直观地对硬件资源进行配置修改,生成新的配置文件。硬件仿真工具302可以根据新的配置文件进行硬件资源的管理和配置。电子设备200还可以将配置文件与实际连接的硬件资源进行匹配,并突出显示不匹配的硬件资源。通过本公开提供的方法,使得用户可以更简便、更直观地编辑硬件资源配置,也能更快的找到硬件资源配置中不匹配的部分,改善用户体验,提高仿真验证的效率。In this way, the
图4示出了根据本公开实施例的示例性配置硬件资源的方法400的流程图。方法400可以由图2的电子设备200执行,更具体地,由在电子设备200上运行的调试工具执行。方法400可以包括如下步骤。FIG. 4 shows a flowchart of an
在步骤S402,电子设备200可以获取第一配置文件(例如,图3A中的配置文件312),该第一配置文件可以描述多个外围组件(例如,图3A中的外围组件3062、3064和3066)和硬件仿真工具(例如,图3A中的硬件仿真工具302)的连接关系。In step S402, the
在一些实施例中,电子设备200可以获取连接到该硬件仿真工具的多个外围组件(例如,图3A中的外围组件3062、3064和3066)的资源信息,并根据该资源信息生成第一配置文件(例如,图3A中的配置文件312)。In some embodiments, the
在一些实施例中,该资源信息可以包括该多个外围组件的名称(例如,“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
在步骤S404,电子设备200可以接收用户编辑该第一配置文件的编辑指令。In step S404, the
在步骤S406,电子设备200可以根据该编辑指令修改该第一配置文件以生成第二配置文件(例如,图3B中的配置文件322)。In step S406, the
在一些实施例中,电子设备200可以经由该图形界面接收该编辑指令。该编辑指令可以包括移除一个外围组件(例如,移除外围组件3066)、增加一个外围组件(例如,增加外围组件3068)、或改变一个外围组件的连接关系的至少一个。电子设备200根据该编辑指令可以编辑该第一拓扑图以得到第二拓扑图(例如,图3B中的拓扑图320)。电子设备200基于该第二拓扑图可以生成该第二配置文件(例如,图3B中的配置文件322)。该配置文件可以是用芯华章的资源规范语言(resource specification language)编写的(例如,图3C所示的配置文件322)。In some embodiments, the
在步骤S408,电子设备200可以发送该第二配置文件至该硬件仿真工具302以使得该硬件仿真工具302根据该第二配置文件(例如,图3B中的配置文件322)配置该多个外围组件中的至少一部分(例如,图3B中的外围组件3062、3064和3068)。In step S408, the
在一些实施例中,电子设备200可以进一步确定该第二配置文件是否与该资源信息匹配,响应于该第二配置文件与该资源信息不匹配,可以突出显示不匹配的外围组件(例如,在配置文件322或拓扑图320中高亮显示不匹配的外围组件)。In some embodiments, the
在另一些实施例中,该第一配置文件(例如,图3A中的配置文件312)可以由用户编写。电子设备200可以获取连接到该硬件仿真工具的该多个外围组件(例如,图3A中的外围组件3062、3064和3066)的资源信息。因为用户编写的该第一配置文件中涉及的外围组件可能与实际的外围组件有所区别,从而导致该第一配置文件无法运行或影响外围组件情况的自动核实机制。类似地,电子设备200可以确定该第一配置文件是否与该资源信息匹配;响应于该第一配置文件与该资源信息不匹配,突出显示不匹配的外围组件。In other embodiments, the first configuration file (eg,
本公开还提供了一种配置硬件资源的电子设备。该电子设备可以是图2所示的电子设备200。电子设备200可以包括接口,连接到硬件仿真工具;存储器,用于存储一组指令;以及至少一个处理器,被配置为执行存储在存储器204中的计算机程序以实现与本公开一致的配置硬件资源的方法,诸如上述示例性方法(例如,图4中所示的方法400)。此处不再赘述。The present disclosure also provides an electronic device for configuring hardware resources. The electronic device may be the
本公开还提供了一种非暂态计算机可读存储介质。非暂态计算机可读存储介质存储电子设备的一组指令。该组指令在被执行时,可以使得电子设备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
本实施例的计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(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)
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)
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)
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 |
-
2022
- 2022-06-17 CN CN202210692574.4A patent/CN115291963B/en active Active
Patent Citations (14)
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)
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 |