WO2023165059A1 - Scoreboard implementation method and apparatus, scoreboard, electronic device, and storage medium - Google Patents

Scoreboard implementation method and apparatus, scoreboard, electronic device, and storage medium Download PDF

Info

Publication number
WO2023165059A1
WO2023165059A1 PCT/CN2022/101759 CN2022101759W WO2023165059A1 WO 2023165059 A1 WO2023165059 A1 WO 2023165059A1 CN 2022101759 W CN2022101759 W CN 2022101759W WO 2023165059 A1 WO2023165059 A1 WO 2023165059A1
Authority
WO
WIPO (PCT)
Prior art keywords
verification
scoreboard
instructions
functional
sub
Prior art date
Application number
PCT/CN2022/101759
Other languages
French (fr)
Chinese (zh)
Inventor
金鑫
Original Assignee
北京百度网讯科技有限公司
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 北京百度网讯科技有限公司 filed Critical 北京百度网讯科技有限公司
Publication of WO2023165059A1 publication Critical patent/WO2023165059A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

A scoreboard implementation method and apparatus, a scoreboard, an electronic device, and a storage medium, which relate to artificial intelligence fields such as artificial intelligence chips and intelligent speech. The method comprises: separately constructing M functional layers, where M is a positive integer greater than one, and different functional layers are respectively used for implementing different scoreboard functions (101); and using the M functional layers to form a scoreboard (102). The method is simple to implement and facilitates management and maintenance.

Description

计分板实现方法、装置、计分板、电子设备及存储介质Scoreboard realization method, device, scoreboard, electronic equipment and storage medium
本申请要求了申请日为2022年03月01日,申请号为202210195437.X发明名称为“计分板实现方法、装置、计分板、电子设备及存储介质”的中国专利申请的优先权。This application claims the priority of the Chinese patent application whose application date is March 1, 2022, and whose application number is 202210195437.X.
技术领域technical field
本公开涉及人工智能技术领域,特别涉及人工智能芯片以及智能语音等领域的计分板实现方法、装置、计分板、电子设备及存储介质。The present disclosure relates to the technical field of artificial intelligence, and in particular to a scoreboard implementation method, device, scoreboard, electronic equipment, and storage medium in the fields of artificial intelligence chips and intelligent voice.
背景技术Background technique
计分板(Scordboard)是芯片验证的关键组件,其功能是比较被测设备(DUT,Device Under Test)实际输出的数据与理论结果数据是否一致,以此验证芯片功能。所述芯片可为智能语音芯片等。The scoreboard (Scordboard) is a key component of chip verification. Its function is to compare whether the actual output data of the device under test (DUT, Device Under Test) is consistent with the theoretical result data, so as to verify the chip function. The chip can be an intelligent voice chip or the like.
发明内容Contents of the invention
本公开提供了计分板实现方法、装置、计分板、电子设备及存储介质。The present disclosure provides a scoreboard realization method, device, scoreboard, electronic equipment and storage medium.
一种计分板实现方法,包括:A method for implementing a scoreboard, comprising:
分别构建M个功能层,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能;Construct M functional layers respectively, M is a positive integer greater than one, and different functional layers are used to realize different scoreboard functions;
利用所述M个功能层组成所述计分板。The scoreboard is composed of the M functional layers.
一种计分板实现装置,包括:第一处理单元以及第二处理单元;A scoreboard implementation device, comprising: a first processing unit and a second processing unit;
所述第一处理单元,用于分别构建M个功能层,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能;The first processing unit is used to construct M functional layers respectively, where M is a positive integer greater than one, and different functional layers are respectively used to realize different scoreboard functions;
所述第二处理单元,用于利用所述M个功能层组成所述计分板。The second processing unit is configured to use the M functional layers to form the scoreboard.
一种计分板,包括:M个功能层,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能。A scoreboard includes: M functional layers, where M is a positive integer greater than one, and different functional layers are used to realize different functions of the scoreboard.
一种电子设备,包括:An electronic device comprising:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如以上所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform the method as described above.
一种存储有计算机指令的非瞬时计算机可读存储介质,所述计算机指令用于使计算机执行如以上所述的方法。A non-transitory computer-readable storage medium storing computer instructions, the computer instructions are used to cause a computer to execute the method as described above.
一种计算机程序产品,包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现如以上所述的方法。A computer program product, comprising computer programs/instructions, when executed by a processor, implements the method as described above.
上述公开中的一个实施例具有如下优点或有益效果:将计分板进行了层次化处理,即采用了分层设计架构,各层次功能明确简单,易于实现,且便于进行管理和维护。An embodiment in the above disclosure has the following advantages or beneficial effects: the scoreboard is layered, that is, a layered design architecture is adopted, and the functions of each layer are clear and simple, easy to implement, and easy to manage and maintain.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution, and do not constitute a limitation to the present disclosure. in:
图1为本公开所述计分板实现方法实施例的流程图;FIG. 1 is a flow chart of an embodiment of a method for implementing a scoreboard described in the present disclosure;
图2为本公开所述计分板的组成结构第一示意图;FIG. 2 is a first schematic diagram of the composition structure of the scoreboard described in the present disclosure;
图3为本公开所述计分板的组成结构第二示意图;3 is a second schematic diagram of the composition structure of the scoreboard described in the present disclosure;
图4为本公开所述计分板实现装置实施例400的组成结构示意图;FIG. 4 is a schematic diagram of the composition and structure of an embodiment 400 of the scoreboard implementation device described in the present disclosure;
图5为本公开所述计分板实施例500的组成结构示意图;FIG. 5 is a schematic diagram of the composition and structure of the scoreboard embodiment 500 of the present disclosure;
图6示出了可以用来实施本公开的实施例的电子设备600的示意性框图。FIG. 6 shows a schematic block diagram of an electronic device 600 that may be used to implement embodiments of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
另外,应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关 联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, it should be understood that the term "and/or" in this article is only an association relationship describing associated objects, which means that there may be three relationships, for example, A and/or B may mean: A exists alone, and A exists at the same time and B, there are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
图1为本公开所述计分板实现方法实施例的流程图。如图1所示,包括以下具体实现方式。FIG. 1 is a flow chart of an embodiment of a method for implementing a scoreboard in the present disclosure. As shown in FIG. 1 , the following specific implementation manners are included.
在步骤101中,分别构建M个功能层,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能。In step 101, M functional layers are respectively constructed, where M is a positive integer greater than one, and different functional layers are used to implement different scoreboard functions.
在步骤102中,利用所述M个功能层组成所述计分板。In step 102, the scoreboard is formed by using the M functional layers.
目前的计分板通常采用单层设计方式,实现复杂,且不便于进行管理和维护,上述方法实施例所述方案中,将计分板进行了层次化处理,即采用了分层设计架构,各层次功能明确简单,易于实现,且便于进行管理和维护。The current scoreboard usually adopts a single-layer design method, which is complex to implement and inconvenient to manage and maintain. In the scheme described in the above method embodiment, the scoreboard is hierarchically processed, that is, a layered design architecture is adopted. The functions of each level are clear and simple, easy to implement, and easy to manage and maintain.
本公开的一个实施例中,M的取值可为3,相应地,3个不同的功能层可分别为:底层(scoreboard_base)、中间层(scoreboard_proc)和顶层(scoreboard_top)。In an embodiment of the present disclosure, the value of M may be 3, and accordingly, three different functional layers may be respectively: bottom layer (scoreboard_base), middle layer (scoreboard_proc) and top layer (scoreboard_top).
其中,底层可用于存储封装的计分板的基础功能,顶层可用于实现功能指令的调度管理,中间层可用于继承所述基础功能、完成调度来的功能指令的验证。Among them, the bottom layer can be used to store the basic functions of the encapsulated scoreboard, the top layer can be used to realize the scheduling management of functional instructions, and the middle layer can be used to inherit the basic functions and complete the verification of the scheduled functional instructions.
通过上述方式,将复杂的计分板功能进行了分解,不同层次分别用于实现不同的计分板功能,层次清晰分工明确,易于实现,且便于进行管理和维护,并可支持层次嵌套,非常的灵活方便。Through the above method, the complex scoreboard function is decomposed, and different levels are used to realize different scoreboard functions. The level is clear and the division of labor is clear, easy to implement, easy to manage and maintain, and supports hierarchical nesting. Very flexible and convenient.
以下分别对各层次的具体实现进行说明。The specific implementation of each level is described below.
1)顶层1) top layer
顶层可用于实现功能指令的调度管理,即完成各类功能指令的调度工作,具体地,可根据总线上提取的信息,解析出功能指令(可包括指令和数据等),调度(即分配)给中间层进行处理。The top layer can be used to realize the scheduling management of functional instructions, that is, to complete the scheduling work of various functional instructions. Specifically, according to the information extracted from the bus, the functional instructions (including instructions and data, etc.) can be parsed out, and dispatched (that is, assigned) to The middle layer is processed.
本公开的一个实施例中,顶层可采用树形结构的逐级调度方式。比如,若识别出功能指令为复杂指令集(csic)指令或精简指令集(rsic)指令,可分配给scoreboard_top_csic或scoreboard_top_rsic模块进行处理,以scoreboard_top_csic指令为例,可进一步识别出是计算指令还是数据搬移指令等。In an embodiment of the present disclosure, the top layer may adopt a tree-structured level-by-level scheduling manner. For example, if the functional instruction is recognized as a complex instruction set (csic) instruction or a reduced instruction set (rsic) instruction, it can be assigned to the scoreboard_top_csic or scoreboard_top_rsic module for processing. Taking the scoreboard_top_csic instruction as an example, it can further identify whether it is a calculation instruction or a data transfer instructions etc.
通过上述方式,可提升功能指令的调度效率及调度效果等。Through the above method, the scheduling efficiency and scheduling effect of the functional instructions can be improved.
2)中间层2) middle layer
中间层可用于继承所述基础功能、完成调度来的功能指令的验证。The middle layer can be used to inherit the basic functions and complete the verification of the dispatched function instructions.
本公开的一个实施例中,中间层中可包括N个功能指令验证模块,N为正整数,即可以仅包括一个功能指令验证模块,也可以包括多个功能指令验证模块,当N大于一时,不同的功能指令验证模块可分别用于实现不同类型的功能指令的验证。In an embodiment of the present disclosure, the middle layer may include N functional instruction verification modules, and N is a positive integer, that is, it may include only one functional instruction verification module, or may include multiple functional instruction verification modules. When N is greater than one, Different functional instruction verification modules can be respectively used to realize the verification of different types of functional instructions.
N的具体取值可根据实际需要而定。图2为本公开所述计分板的组成结构第一示意图。如图2所示,假设N的取值为2,即中间层中包括2个功能指令验证模块,不同的功能指令验证模块分别用于实现不同类型的功能指令的验证,如功能指令验证模块a用于实现a类功能指令验证,功能指令验证模块b用于实现b类功能指令验证,其中,a类功能指令可为计算类功能指令,b类功能指令可为数据搬移类功能指令等。The specific value of N can be determined according to actual needs. FIG. 2 is a first schematic diagram of the composition structure of the scoreboard of the present disclosure. As shown in Figure 2, assuming that the value of N is 2, that is, the middle layer includes two functional instruction verification modules, and different functional instruction verification modules are used to verify different types of functional instructions, such as the functional instruction verification module a It is used to verify the functional instructions of type a, and the functional instruction verification module b is used to verify the functional instructions of type b, wherein the functional instructions of type a can be computing functional instructions, and the functional instructions of type b can be data moving functional instructions.
通过设置多个功能指令验证模块,可实现不同模块的分工处理,从而提升验证效率。By setting multiple functional instruction verification modules, the division of labor between different modules can be realized, thereby improving verification efficiency.
本公开的一个实施例中,对于任一功能指令验证模块来说,其中可包括:一个调度子模块以及P个验证子模块,P为大于一的正整数,调度子模块可用于将调度来的功能指令解析为至少两个子指令,并可将每个子指令分别调度给对应的验证子模块,相应地,验证子模块可用于完成调度来的子指令的验证。In an embodiment of the present disclosure, for any function instruction verification module, it may include: a scheduling sub-module and P verification sub-modules, P is a positive integer greater than one, and the scheduling sub-module can be used to schedule the The functional instruction is parsed into at least two sub-instructions, and each sub-instruction can be dispatched to a corresponding verification sub-module. Correspondingly, the verification sub-module can be used to complete the verification of the dispatched sub-instructions.
P的具体取值可根据实际需要而定。比如,对于计算类功能指令,其中可能存在加减乘除等多种计算功能,相应地,可利用调度子模块将其解析为多个子指令,并可将每个子指令分别调度给对应的验证子模块进行处理。The specific value of P can be determined according to actual needs. For example, for calculation-type functional instructions, there may be various calculation functions such as addition, subtraction, multiplication, and division. Correspondingly, it can be parsed into multiple sub-instructions by using the scheduling sub-module, and each sub-instruction can be dispatched to the corresponding verification sub-module to process.
比如,对于a类功能指令,调度子模块可将其解析为a1和a2两个子指令,并假设P的取值为2,即存在两个验证子模块,分别为验证子模块a1和验证子模块a2,那么可将子指令a1调度给验证子模块a1,将子指令a2调度给验证子模块a2。For example, for a type of functional instruction, the scheduling sub-module can parse it into two sub-instructions a1 and a2, and assuming that the value of P is 2, there are two verification sub-modules, namely verification sub-module a1 and verification sub-module a2, then the sub-command a1 can be dispatched to the verification sub-module a1, and the sub-command a2 can be dispatched to the verification sub-module a2.
采用上述处理方式,可实现功能指令的进一步细化处理,从而进一步提升了验证效率。By adopting the above processing method, further detailed processing of functional instructions can be realized, thereby further improving verification efficiency.
3)底层3) bottom layer
底层可用于存储封装的计分板的基础功能,即可将一些基本操作/基本功能进行封装,如可包括:直接编程接口(DPI,Direct Programming Interface)接口调用、寄存器/存储器模型例化、寄存器/存储器读写操作、通信接口例化以及接收数据的解析等。The bottom layer can be used to store the basic functions of the encapsulated scoreboard, that is, some basic operations/basic functions can be encapsulated, such as: direct programming interface (DPI, Direct Programming Interface) interface call, register/memory model instantiation, register /Memory read and write operations, communication interface instantiation, and analysis of received data, etc.
中间层可继承底层的基础功能,可直接调用已经封装好的任务(task)和函数(function)等。The middle layer can inherit the basic functions of the bottom layer, and can directly call already encapsulated tasks (tasks) and functions (functions).
本公开的一个实施例中,底层中可包括:一个基础功能库,相应地,中间层中的不同功能指令验证模块均可继承该基础功能库中的基础功能。In an embodiment of the present disclosure, the bottom layer may include: a basic function library, and correspondingly, different functional instruction verification modules in the middle layer may inherit the basic functions in the basic function library.
另外,本公开的一个实施例中,底层中还可包括:L个基础功能库,L为大于一的正整数,中间层中的不同功能指令验证模块可分别继承对应的基础功能库中的基础功能。In addition, in an embodiment of the present disclosure, the bottom layer may further include: L basic function libraries, L is a positive integer greater than one, and different function instruction verification modules in the middle layer may respectively inherit the basic functions in the corresponding basic function libraries. Function.
L的具体取值可根据实际需要而定,比如,可等于中间层中的功能指令验证模块的数量,相应地,每个功能指令验证模块可分别对应各自的基础功能库。The specific value of L can be determined according to actual needs, for example, it can be equal to the number of functional instruction verification modules in the middle layer. Correspondingly, each functional instruction verification module can correspond to its own basic function library.
基于上述介绍,图3为本公开所述计分板的组成结构第二示意图。如图3所示,假设中间层中包括2个功能指令验证模块,分别为功能指令验证模块a和功能指令验证模块b,其中,功能指令验证模块a用于实现a类功能指令验证,功能指令验证模块b用于实现b类功能指令验证。Based on the above introduction, FIG. 3 is a second schematic diagram of the composition structure of the scoreboard in the present disclosure. As shown in Figure 3, it is assumed that the middle layer includes two functional instruction verification modules, namely functional instruction verification module a and functional instruction verification module b, wherein functional instruction verification module a is used to implement functional instruction verification of type a, and functional instruction The verification module b is used to realize the verification of class b functional instructions.
如图3所示,假设功能指令验证模块a中包括一个调度子模块a和2个验证子模块,分别为验证子模块a1和验证子模块a2,那么调度子模块a可将顶层调度来的功能指令解析为a1和a2两个子指令,并可将子指令a1调度给验证子模块a1,将子指令a2调度给验证子模块a2。As shown in Figure 3, assuming that the functional instruction verification module a includes a scheduling sub-module a and two verification sub-modules, namely the verification sub-module a1 and the verification sub-module a2, then the scheduling sub-module a can schedule the top-level function The command is parsed into two sub-commands a1 and a2, and the sub-command a1 can be dispatched to the verification sub-module a1, and the sub-command a2 can be dispatched to the verification sub-module a2.
如图3所示,假设功能指令验证模块b中包括一个调度子模块b和2个验证子模块,分别为验证子模块b1和验证子模块b2,那么调度子模块b可将顶层调度来的功能指令解析为b1和b2两个子指令,并可将子指令b1调度给验证子模块b1,将子指令b2调度给验证子模块b2。As shown in Figure 3, assuming that the functional command verification module b includes a scheduling sub-module b and 2 verification sub-modules, namely the verification sub-module b1 and the verification sub-module b2, then the scheduling sub-module b can schedule the top-level functions The instruction is parsed into two sub-instructions b1 and b2, and the sub-instruction b1 can be dispatched to the verification sub-module b1, and the sub-instruction b2 can be dispatched to the verification sub-module b2.
底层中可包括一个基础功能库,如基础功能库A,功能指令验证模块a和功能指令验证模块b均可继承该基础功能库中的基础功能。The bottom layer may include a basic function library, for example, the basic function library A, the functional instruction verification module a and the functional instruction verification module b can all inherit the basic functions in the basic function library.
或者,假设功能指令验证模块a对应的为计算类功能指令,功能指 令验证模块b对应的为数据搬移类功能指令,如图2所示,底层中可包括基础功能库B和基础功能库C,功能指令验证模块a可继承基础功能库B,功能指令验证模块b可继承基础功能库C。Alternatively, it is assumed that the functional instruction verification module a corresponds to a calculation-type functional instruction, and the functional instruction verification module b corresponds to a data-moving functional instruction. As shown in Figure 2, the bottom layer may include a basic function library B and a basic function library C. The functional instruction verification module a can inherit the basic function library B, and the functional instruction verification module b can inherit the basic function library C.
对于基础功能库B来说,其中可包括各类通用的基础功能以及计算类所需的基础功能,对于基础功能库C来说,其中可包括各类通用的基础功能以及数据搬移类所需的基础功能。若只有基础功能库A,那么可将所需用到的各基础功能均封装在基础功能库A中,各功能指令验证模块可按照自身需要使用其中的全部或部分基础功能。For the basic function library B, it can include all kinds of common basic functions and basic functions required by the calculation class; for the basic function library C, it can include all kinds of general basic functions and the basic functions required by the data movement class basic function. If there is only the basic function library A, then all required basic functions can be encapsulated in the basic function library A, and each functional instruction verification module can use all or part of the basic functions according to its own needs.
需要说明的是,对于前述的方法实施例,为了简单描述,将其表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开并不受所描述的动作顺序的限制,因为依据本公开,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本公开所必须的。It should be noted that, for the aforementioned method embodiments, for the sake of simple description, it is expressed as a series of action combinations, but those skilled in the art should know that the present disclosure is not limited by the described action sequence, because according to this It is disclosed that certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present disclosure.
总之,采用本公开方法实施例所述方案,将复杂的计分板功能进行了分解,不同层次分别用于实现不同的计分板功能,层次清晰分工明确,易于实现,且便于进行管理和维护,并可支持层次嵌套,支持设计的快速开发优化迭代,不同功能设计更新优化仅需优化相应层次即可,提升了验证效率等。In short, by adopting the scheme described in the disclosed method embodiment, the complex scoreboard function is decomposed, and different levels are used to realize different scoreboard functions. The levels are clear and the division of labor is clear, easy to implement, and easy to manage and maintain , and can support hierarchical nesting, support rapid development and optimization iterations of design, design update and optimization of different functions only need to optimize the corresponding level, which improves the verification efficiency, etc.
以上是关于方法实施例的介绍,以下通过装置实施例,对本公开所述方案进行进一步说明。The above is the introduction of the method embodiments, and the solution of the present disclosure will be further described through the device embodiments below.
图4为本公开所述计分板实现装置实施例400的组成结构示意图。如图4所示,包括:第一处理单元401以及第二处理单元402。FIG. 4 is a schematic diagram of the composition and structure of an embodiment 400 of an apparatus for implementing a scoreboard according to the present disclosure. As shown in FIG. 4 , it includes: a first processing unit 401 and a second processing unit 402 .
第一处理单元401,用于分别构建M个功能层,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能。The first processing unit 401 is configured to construct M functional layers respectively, where M is a positive integer greater than one, and different functional layers are used to implement different scoreboard functions.
第二处理单元402,用于利用所述M个功能层组成所述计分板。The second processing unit 402 is configured to use the M functional layers to form the scoreboard.
上述实施例所述方案中,将计分板进行了层次化处理,即采用了分层设计架构,各层次功能明确简单,易于实现,且便于进行管理和维护。In the solutions described in the above embodiments, the scoreboard is hierarchically processed, that is, a layered design architecture is adopted, and the functions of each layer are clear and simple, easy to implement, and easy to manage and maintain.
本公开的一个实施例中,M的取值可为3,相应地,3个不同的功能层可分别为:底层、中间层和顶层。In an embodiment of the present disclosure, the value of M may be 3, and accordingly, the three different functional layers may be respectively: the bottom layer, the middle layer and the top layer.
其中,底层可用于存储封装的计分板的基础功能,顶层可用于实现 功能指令的调度管理,中间层可用于继承所述基础功能、完成调度来的功能指令的验证。Among them, the bottom layer can be used to store the basic functions of the encapsulated scoreboard, the top layer can be used to realize the scheduling management of functional instructions, and the middle layer can be used to inherit the basic functions and complete the verification of the scheduled functional instructions.
本公开的一个实施例中,顶层可采用树形结构的逐级调度方式。In an embodiment of the present disclosure, the top layer may adopt a tree-structured level-by-level scheduling manner.
中间层可用于继承所述基础功能、完成调度来的功能指令的验证。本公开的一个实施例中,中间层中可包括N个功能指令验证模块,N为正整数,即可以仅包括一个功能指令验证模块,也可以包括多个功能指令验证模块,当N大于一时,不同的功能指令验证模块可分别用于实现不同类型的功能指令的验证。The middle layer can be used to inherit the basic functions and complete the verification of the dispatched function instructions. In an embodiment of the present disclosure, the middle layer may include N functional instruction verification modules, and N is a positive integer, that is, it may include only one functional instruction verification module, or may include multiple functional instruction verification modules. When N is greater than one, Different functional instruction verification modules can be respectively used to realize the verification of different types of functional instructions.
本公开的一个实施例中,对于任一功能指令验证模块来说,其中可包括:一个调度子模块以及P个验证子模块,P为大于一的正整数,调度子模块可用于将调度来的功能指令解析为至少两个子指令,并可将每个子指令分别调度给对应的验证子模块,相应地,验证子模块可用于完成调度来的子指令的验证。In an embodiment of the present disclosure, for any function instruction verification module, it may include: a scheduling sub-module and P verification sub-modules, P is a positive integer greater than one, and the scheduling sub-module can be used to schedule the The functional instruction is parsed into at least two sub-instructions, and each sub-instruction can be dispatched to a corresponding verification sub-module. Correspondingly, the verification sub-module can be used to complete the verification of the dispatched sub-instructions.
比如,对于计算类功能指令,其中可能存在加减乘除等多种计算功能,相应地,可利用调度子模块将其解析为多个子指令,并可将每个子指令分别调度给对应的验证子模块进行处理。For example, for calculation-type functional instructions, there may be various calculation functions such as addition, subtraction, multiplication, and division. Correspondingly, it can be parsed into multiple sub-instructions by using the scheduling sub-module, and each sub-instruction can be dispatched to the corresponding verification sub-module to process.
底层可用于存储封装的计分板的基础功能,即可将一些基本操作/基本功能进行封装,如可包括:直接编程接口调用、寄存器/存储器模型例化、寄存器/存储器读写操作、通信接口例化以及接收数据的解析等。The bottom layer can be used to store the basic functions of the encapsulated scoreboard, that is, some basic operations/basic functions can be encapsulated, such as: direct programming interface call, register/memory model instantiation, register/memory read and write operations, communication interface Instantiation and analysis of received data, etc.
本公开的一个实施例中,底层中可包括:一个基础功能库,相应地,中间层中的不同功能指令验证模块均可继承该基础功能库中的基础功能。In an embodiment of the present disclosure, the bottom layer may include: a basic function library, and correspondingly, different functional instruction verification modules in the middle layer may inherit the basic functions in the basic function library.
另外,本公开的一个实施例中,底层中还可包括:L个基础功能库,L为大于一的正整数,中间层中的不同功能指令验证模块可分别继承对应的基础功能库中的基础功能。In addition, in an embodiment of the present disclosure, the bottom layer may further include: L basic function libraries, L is a positive integer greater than one, and different function instruction verification modules in the middle layer may respectively inherit the basic functions in the corresponding basic function libraries. Function.
图5为本公开所述计分板实施例500的组成结构示意图。如图5所示,包括:M个功能层,如图中所示的功能层1~功能层M,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能。FIG. 5 is a schematic diagram of the composition and structure of the scoreboard embodiment 500 of the present disclosure. As shown in Figure 5, it includes: M functional layers, as shown in the figure, functional layer 1 to functional layer M, where M is a positive integer greater than 1, and different functional layers are used to implement different scoreboard functions.
上述实施例所述方案中,将计分板进行了层次化处理,即采用了分层设计架构,各层次功能明确简单,易于实现,且便于进行管理和维护。In the solutions described in the above embodiments, the scoreboard is hierarchically processed, that is, a layered design architecture is adopted, and the functions of each layer are clear and simple, easy to implement, and easy to manage and maintain.
本公开的一个实施例中,M的取值可为3,相应地,3个不同的功能 层可分别为:底层、中间层和顶层。In an embodiment of the present disclosure, the value of M can be 3, and correspondingly, the three different functional layers can be respectively: the bottom layer, the middle layer and the top layer.
其中,底层可用于存储封装的计分板的基础功能,顶层可用于实现功能指令的调度管理,中间层可用于继承所述基础功能、完成调度来的功能指令的验证。Among them, the bottom layer can be used to store the basic functions of the encapsulated scoreboard, the top layer can be used to realize the scheduling management of functional instructions, and the middle layer can be used to inherit the basic functions and complete the verification of the scheduled functional instructions.
本公开的一个实施例中,顶层可采用树形结构的逐级调度方式。In an embodiment of the present disclosure, the top layer may adopt a tree-structured level-by-level scheduling manner.
中间层可用于继承所述基础功能、完成调度来的功能指令的验证。本公开的一个实施例中,中间层中可包括N个功能指令验证模块,N为正整数,即可以仅包括一个功能指令验证模块,也可以包括多个功能指令验证模块,当N大于一时,不同的功能指令验证模块可分别用于实现不同类型的功能指令的验证。The middle layer can be used to inherit the basic functions and complete the verification of the dispatched function instructions. In an embodiment of the present disclosure, the middle layer may include N functional instruction verification modules, and N is a positive integer, that is, it may include only one functional instruction verification module, or may include multiple functional instruction verification modules. When N is greater than one, Different functional instruction verification modules can be respectively used to realize the verification of different types of functional instructions.
本公开的一个实施例中,对于任一功能指令验证模块来说,其中可包括:一个调度子模块以及P个验证子模块,P为大于一的正整数,调度子模块可用于将调度来的功能指令解析为至少两个子指令,并可将每个子指令分别调度给对应的验证子模块,相应地,验证子模块可用于完成调度来的子指令的验证。In an embodiment of the present disclosure, for any function instruction verification module, it may include: a scheduling sub-module and P verification sub-modules, P is a positive integer greater than one, and the scheduling sub-module can be used to schedule the The functional instruction is parsed into at least two sub-instructions, and each sub-instruction can be dispatched to a corresponding verification sub-module. Correspondingly, the verification sub-module can be used to complete the verification of the dispatched sub-instructions.
比如,对于计算类功能指令,其中可能存在加减乘除等多种计算功能,相应地,可利用调度子模块将其解析为多个子指令,并可将每个子指令分别调度给对应的验证子模块进行处理。For example, for calculation-type functional instructions, there may be various calculation functions such as addition, subtraction, multiplication, and division. Correspondingly, it can be parsed into multiple sub-instructions by using the scheduling sub-module, and each sub-instruction can be dispatched to the corresponding verification sub-module to process.
底层可用于存储封装的计分板的基础功能。本公开的一个实施例中,底层中可包括:一个基础功能库,相应地,中间层中的不同功能指令验证模块均可继承该基础功能库中的基础功能。The bottom layer can be used to store the underlying functionality of the encapsulated scoreboard. In an embodiment of the present disclosure, the bottom layer may include: a basic function library, and correspondingly, different functional instruction verification modules in the middle layer may inherit the basic functions in the basic function library.
另外,本公开的一个实施例中,底层中还可包括:L个基础功能库,L为大于一的正整数,中间层中的不同功能指令验证模块可分别继承对应的基础功能库中的基础功能。In addition, in an embodiment of the present disclosure, the bottom layer may further include: L basic function libraries, L is a positive integer greater than one, and different function instruction verification modules in the middle layer may respectively inherit the basic functions in the corresponding basic function libraries. Function.
图4和图5所示实施例的具体工作流程可参照前述方法实施例中的相关说明。For the specific work flow of the embodiments shown in FIG. 4 and FIG. 5 , reference may be made to relevant descriptions in the foregoing method embodiments.
总之,采用上述实施例所述方案,将复杂的计分板功能进行了分解,不同层次分别用于实现不同的计分板功能,层次清晰分工明确,易于实现,且便于进行管理和维护,并可支持层次嵌套,支持设计的快速开发优化迭代,不同功能设计更新优化仅需优化相应层次即可,提升了验证效率等。In short, using the solution described in the above-mentioned embodiment, the complex scoreboard function is decomposed, and different levels are used to realize different scoreboard functions. It can support hierarchical nesting, support rapid development and optimization iterations of design, and design update and optimization of different functions only needs to optimize the corresponding levels, which improves the verification efficiency, etc.
本公开所述方案可应用于人工智能领域,特别涉及人工智能芯片以及智能语音等领域。人工智能是研究使计算机来模拟人的某些思维过程和智能行为(如学习、推理、思考、规划等)的学科,既有硬件层面的技术也有软件层面的技术,人工智能硬件技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理等技术,人工智能软件技术主要包括计算机视觉技术、语音识别技术、自然语言处理技术以及机器学习/深度学习、大数据处理技术、知识图谱技术等几大方向。The solution described in the present disclosure can be applied to the field of artificial intelligence, and particularly relates to fields such as artificial intelligence chips and intelligent voice. Artificial intelligence is a discipline that studies how to make computers simulate certain human thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level technology and software-level technology. Artificial intelligence hardware technology generally includes such Sensors, special artificial intelligence chips, cloud computing, distributed storage, big data processing and other technologies, artificial intelligence software technology mainly includes computer vision technology, speech recognition technology, natural language processing technology and machine learning/deep learning, big data processing technology, Several major directions such as knowledge graph technology.
本公开的技术方案中,所涉及的用户个人信息的收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In the technical solution of this disclosure, the collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved are all in compliance with relevant laws and regulations, and do not violate public order and good customs.
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to the embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
图6示出了可以用来实施本公开的实施例的电子设备600的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字助理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG. 6 shows a schematic block diagram of an electronic device 600 that may be used to implement embodiments of the present disclosure. Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图6所示,设备600包括计算单元601,其可以根据存储在只读存储器(ROM)602中的计算机程序或者从存储单元608加载到随机访问存储器(RAM)603中的计算机程序,来执行各种适当的动作和处理。在RAM 603中,还可存储设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, the device 600 includes a computing unit 601 that can execute according to a computer program stored in a read-only memory (ROM) 602 or loaded from a storage unit 608 into a random-access memory (RAM) 603. Various appropriate actions and treatments. In the RAM 603, various programs and data necessary for the operation of the device 600 can also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to the bus 604 .
设备600中的多个部件连接至I/O接口605,包括:输入单元606,例如键盘、鼠标等;输出单元607,例如各种类型的显示器、扬声器等;存储单元608,例如磁盘、光盘等;以及通信单元609,例如网卡、调制解调器、无线通信收发机等。通信单元609允许设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。Multiple components in the device 600 are connected to the I/O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a magnetic disk, an optical disk, etc. ; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 609 allows the device 600 to exchange information/data with other devices over a computer network such as the Internet and/or various telecommunication networks.
计算单元601可以是各种具有处理和计算能力的通用和/或专用处理 组件。计算单元601的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理,例如本公开所述的方法。例如,在一些实施例中,本公开所述的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行本公开所述的方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行本公开所述的方法。 Computing unit 601 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing units 601 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc. The calculation unit 601 executes the various methods and processes described above, such as the methods described in this disclosure. For example, in some embodiments, the methods described in the present disclosure may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608 . In some embodiments, part or all of the computer program may be loaded and/or installed on the device 600 via the ROM 602 and/or the communication unit 609. When a computer program is loaded into RAM 603 and executed by computing unit 601, one or more steps of the methods described in this disclosure may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured in any other appropriate way (for example, by means of firmware) to execute the methods described in the present disclosure.
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、复杂可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), complex programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置 或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide for interaction with the user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加 或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The specific implementation manners described above do not limit the protection scope of the present disclosure. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims (21)

  1. 一种计分板实现方法,包括:A method for implementing a scoreboard, comprising:
    分别构建M个功能层,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能;Construct M functional layers respectively, M is a positive integer greater than one, and different functional layers are used to realize different scoreboard functions;
    利用所述M个功能层组成所述计分板。The scoreboard is composed of the M functional layers.
  2. 根据权利要求1所述的方法,其中,The method according to claim 1, wherein,
    所述M个功能层包括:底层、中间层和顶层;The M functional layers include: bottom layer, middle layer and top layer;
    所述底层用于存储封装的所述计分板的基础功能;The bottom layer is used to store the basic functions of the packaged scoreboard;
    所述顶层用于实现功能指令的调度管理;The top layer is used to realize the scheduling management of functional instructions;
    所述中间层用于继承所述基础功能、完成调度来的功能指令的验证。The middle layer is used to inherit the basic functions and complete the verification of the dispatched function instructions.
  3. 根据权利要求2所述的方法,其中,所述顶层采用树形结构的逐级调度方式。The method according to claim 2, wherein the top layer adopts a tree-structured step-by-step scheduling method.
  4. 根据权利要求2或3所述的方法,其中,The method according to claim 2 or 3, wherein,
    所述中间层中包括N个功能指令验证模块,N为正整数,当N大于一时,不同的功能指令验证模块分别用于实现不同类型的功能指令的验证。The middle layer includes N functional instruction verification modules, where N is a positive integer. When N is greater than 1, different functional instruction verification modules are used to verify different types of functional instructions.
  5. 根据权利要求4所述的方法,其中,The method according to claim 4, wherein,
    所述功能指令验证模块中包括:调度子模块以及P个验证子模块,P为大于一的正整数;The functional instruction verification module includes: a scheduling submodule and P verification submodules, where P is a positive integer greater than one;
    所述调度子模块用于将调度来的功能指令解析为至少两个子指令,并将每个子指令分别调度给对应的验证子模块;The scheduling sub-module is used to parse the scheduled functional instruction into at least two sub-instructions, and dispatch each sub-instruction to the corresponding verification sub-module;
    所述验证子模块用于完成调度来的子指令的验证。The verification sub-module is used to complete the verification of the dispatched sub-instructions.
  6. 根据权利要求4所述的方法,其中,The method according to claim 4, wherein,
    所述底层中包括:一个基础功能库,不同的功能指令验证模块均继承所述基础功能库中的基础功能;The bottom layer includes: a basic function library, and different functional instruction verification modules inherit the basic functions in the basic function library;
    或者,所述底层中包括:L个基础功能库,L为大于一的正整数,不同的功能指令验证模块分别继承对应的基础功能库中的基础功能。Alternatively, the bottom layer includes: L basic function libraries, where L is a positive integer greater than one, and different functional instruction verification modules inherit the basic functions in the corresponding basic function libraries.
  7. 一种计分板实现装置,包括:第一处理单元以及第二处理单元;A scoreboard implementation device, comprising: a first processing unit and a second processing unit;
    所述第一处理单元,用于分别构建M个功能层,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能;The first processing unit is used to construct M functional layers respectively, where M is a positive integer greater than one, and different functional layers are respectively used to realize different scoreboard functions;
    所述第二处理单元,用于利用所述M个功能层组成所述计分板。The second processing unit is configured to use the M functional layers to form the scoreboard.
  8. 根据权利要求7所述的装置,其中,The apparatus according to claim 7, wherein,
    所述M个功能层包括:底层、中间层和顶层;The M functional layers include: bottom layer, middle layer and top layer;
    所述底层用于存储封装的所述计分板的基础功能;The bottom layer is used to store the basic functions of the packaged scoreboard;
    所述顶层用于实现功能指令的调度管理;The top layer is used to realize the scheduling management of functional instructions;
    所述中间层用于继承所述基础功能、完成调度来的功能指令的验证。The middle layer is used to inherit the basic functions and complete the verification of the dispatched function instructions.
  9. 根据权利要求8所述的装置,其中,所述顶层采用树形结构的逐级调度方式。The device according to claim 8, wherein the top layer adopts a tree-structured step-by-step scheduling method.
  10. 根据权利要求8或9所述的装置,其中,Apparatus according to claim 8 or 9, wherein,
    所述中间层中包括N个功能指令验证模块,N为正整数,当N大于一时,不同的功能指令验证模块分别用于实现不同类型的功能指令的验证。The middle layer includes N functional instruction verification modules, where N is a positive integer. When N is greater than 1, different functional instruction verification modules are used to verify different types of functional instructions.
  11. 根据权利要求10所述的装置,其中,The apparatus of claim 10, wherein,
    所述功能指令验证模块中包括:调度子模块以及P个验证子模块,P为大于一的正整数;The functional instruction verification module includes: a scheduling submodule and P verification submodules, where P is a positive integer greater than one;
    所述调度子模块用于将调度来的功能指令解析为至少两个子指令,并将每个子指令分别调度给对应的验证子模块;The scheduling sub-module is used to parse the scheduled functional instruction into at least two sub-instructions, and dispatch each sub-instruction to the corresponding verification sub-module;
    所述验证子模块用于完成调度来的子指令的验证。The verification sub-module is used to complete the verification of the dispatched sub-instructions.
  12. 根据权利要求10所述的装置,其中,The apparatus of claim 10, wherein,
    所述底层中包括:一个基础功能库,不同的功能指令验证模块均继承所述基础功能库中的基础功能;The bottom layer includes: a basic function library, and different functional instruction verification modules inherit the basic functions in the basic function library;
    或者,所述底层中包括:L个基础功能库,L为大于一的正整数,不同的功能指令验证模块分别继承对应的基础功能库中的基础功能。Alternatively, the bottom layer includes: L basic function libraries, where L is a positive integer greater than one, and different functional instruction verification modules inherit the basic functions in the corresponding basic function libraries.
  13. 一种计分板,包括:M个功能层,M为大于一的正整数,不同的功能层分别用于实现不同的计分板功能。A scoreboard includes: M functional layers, where M is a positive integer greater than one, and different functional layers are used to realize different functions of the scoreboard.
  14. 根据权利要求13所述的计分板,其中,The scoreboard of claim 13, wherein:
    所述M个功能层包括:底层、中间层和顶层;The M functional layers include: bottom layer, middle layer and top layer;
    所述底层用于存储封装的所述计分板的基础功能;The bottom layer is used to store the basic functions of the packaged scoreboard;
    所述顶层用于实现功能指令的调度管理;The top layer is used to realize the scheduling management of functional instructions;
    所述中间层用于继承所述基础功能、完成调度来的功能指令的验证。The middle layer is used to inherit the basic functions and complete the verification of the dispatched function instructions.
  15. 根据权利要求14所述的计分板,其中,所述顶层采用树形结构 的逐级调度方式。The scoreboard according to claim 14, wherein the top layer adopts a tree-structured scheduling method step by step.
  16. 根据权利要求14或15所述的计分板,其中,A scoreboard according to claim 14 or 15, wherein:
    所述中间层中包括N个功能指令验证模块,N为正整数,当N大于一时,不同的功能指令验证模块分别用于实现不同类型的功能指令的验证。The middle layer includes N functional instruction verification modules, where N is a positive integer. When N is greater than 1, different functional instruction verification modules are used to verify different types of functional instructions.
  17. 根据权利要求16所述的计分板,其中,The scoreboard of claim 16, wherein:
    所述功能指令验证模块中包括:调度子模块以及P个验证子模块,P为大于一的正整数;The functional instruction verification module includes: a scheduling submodule and P verification submodules, where P is a positive integer greater than one;
    所述调度子模块用于将调度来的功能指令解析为至少两个子指令,并将每个子指令分别调度给对应的验证子模块;The scheduling sub-module is used to parse the scheduled functional instruction into at least two sub-instructions, and dispatch each sub-instruction to the corresponding verification sub-module;
    所述验证子模块用于完成调度来的子指令的验证。The verification sub-module is used to complete the verification of the dispatched sub-instructions.
  18. 根据权利要求16所述的计分板,其中,The scoreboard of claim 16, wherein:
    所述底层中包括:一个基础功能库,不同的功能指令验证模块均继承所述基础功能库中的基础功能;The bottom layer includes: a basic function library, and different functional instruction verification modules inherit the basic functions in the basic function library;
    或者,所述底层中包括:L个基础功能库,L为大于一的正整数,不同的功能指令验证模块分别继承对应的基础功能库中的基础功能。Alternatively, the bottom layer includes: L basic function libraries, where L is a positive integer greater than one, and different functional instruction verification modules inherit the basic functions in the corresponding basic function libraries.
  19. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-6中任一项所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can perform any one of claims 1-6. Methods.
  20. 一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使计算机执行权利要求1-6中任一项所述的方法。A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to any one of claims 1-6.
  21. 一种计算机程序产品,包括计算机程序/指令,所述计算机程序/指令被处理器执行时实现权利要求1-6中任一项所述的方法。A computer program product, comprising computer programs/instructions, when the computer program/instructions are executed by a processor, the method according to any one of claims 1-6 is implemented.
PCT/CN2022/101759 2022-03-01 2022-06-28 Scoreboard implementation method and apparatus, scoreboard, electronic device, and storage medium WO2023165059A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210195437.XA CN114896114B (en) 2022-03-01 2022-03-01 Score board implementation method and device, score board, electronic equipment and storage medium
CN202210195437.X 2022-03-01

Publications (1)

Publication Number Publication Date
WO2023165059A1 true WO2023165059A1 (en) 2023-09-07

Family

ID=82716419

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/101759 WO2023165059A1 (en) 2022-03-01 2022-06-28 Scoreboard implementation method and apparatus, scoreboard, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114896114B (en)
WO (1) WO2023165059A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077172A (en) * 2013-03-28 2014-10-01 安凯(广州)微电子技术有限公司 Method for verifying AXI (advanced extensible interface) read-write video data and VMM (verification methodology manual) verifying platform
WO2016197768A1 (en) * 2016-01-04 2016-12-15 中兴通讯股份有限公司 Chip verification method, device, and system
CN109933529A (en) * 2019-03-12 2019-06-25 苏州中晟宏芯信息科技有限公司 Verification method and verification platform based on computing unit
CN111353266A (en) * 2020-05-22 2020-06-30 北京燧原智能科技有限公司 Verification system and verification method for cooperative work among integrated circuit modules
CN112597719A (en) * 2020-12-28 2021-04-02 海光信息技术股份有限公司 Data network design verification method and device and verification equipment
CN113297017A (en) * 2021-05-07 2021-08-24 杭州德旺信息技术有限公司 SOC verification system and method based on UVM

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1578939A (en) * 2001-08-29 2005-02-09 格鲁斯番维拉塔公司 Key interface for secure object manipulation
CN106326046B (en) * 2015-06-30 2019-10-01 上海华虹集成电路有限责任公司 The verification environment platform of Memory Controller
CN112074020B (en) * 2019-05-25 2024-03-26 华为技术有限公司 Communication method suitable for multiple links and related equipment
CN114036013A (en) * 2021-10-22 2022-02-11 北京全路通信信号研究设计院集团有限公司 UVM-based transponder chip multi-module synchronous verification platform and verification method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077172A (en) * 2013-03-28 2014-10-01 安凯(广州)微电子技术有限公司 Method for verifying AXI (advanced extensible interface) read-write video data and VMM (verification methodology manual) verifying platform
WO2016197768A1 (en) * 2016-01-04 2016-12-15 中兴通讯股份有限公司 Chip verification method, device, and system
CN109933529A (en) * 2019-03-12 2019-06-25 苏州中晟宏芯信息科技有限公司 Verification method and verification platform based on computing unit
CN111353266A (en) * 2020-05-22 2020-06-30 北京燧原智能科技有限公司 Verification system and verification method for cooperative work among integrated circuit modules
CN112597719A (en) * 2020-12-28 2021-04-02 海光信息技术股份有限公司 Data network design verification method and device and verification equipment
CN113297017A (en) * 2021-05-07 2021-08-24 杭州德旺信息技术有限公司 SOC verification system and method based on UVM

Also Published As

Publication number Publication date
CN114896114B (en) 2023-03-24
CN114896114A (en) 2022-08-12

Similar Documents

Publication Publication Date Title
US10628212B2 (en) Incremental parallel processing of data
EP3913545A2 (en) Method and apparatus for updating parameter of multi-task model, and electronic device
US11928432B2 (en) Multi-modal pre-training model acquisition method, electronic device and storage medium
US20220114343A1 (en) Method of training model, device, and storage medium
US10977076B2 (en) Method and apparatus for processing a heterogeneous cluster-oriented task
US20230034881A1 (en) Scheduling method and device based on deep learning node computation, and storage medium
US20230020324A1 (en) Task Processing Method and Device, and Electronic Device
EP4287074A1 (en) Mixture-of-experts model implementation method and system, electronic device, and storage medium
CN109063204A (en) Log inquiring method, device, equipment and storage medium based on artificial intelligence
US20230013796A1 (en) Method and apparatus for acquiring pre-trained model, electronic device and storage medium
CN115062617A (en) Task processing method, device, equipment and medium based on prompt learning
WO2024040844A1 (en) Model debugging method and apparatus, electronic device, and storage medium
WO2023165059A1 (en) Scoreboard implementation method and apparatus, scoreboard, electronic device, and storage medium
WO2023165058A1 (en) Method and apparatus for implementing mirror image storage of memory model, and storage medium
CN113408304B (en) Text translation method and device, electronic equipment and storage medium
CN116030235A (en) Target detection model training method, target detection device and electronic equipment
CN113722037A (en) User interface refreshing method and device, electronic equipment and storage medium
US20230004717A1 (en) Method and apparatus for acquiring pre-trained model, electronic device and storage medium
CN112632293B (en) Industry map construction method and device, electronic equipment and storage medium
CN111724767A (en) Spoken language understanding method based on Dirichlet variational self-encoder and related equipment
US20230297420A1 (en) Method, electronic device, and computer program product for scheduling computing resources
CN114218026B (en) Score board generation method and device, electronic equipment and storage medium
CN113360624B (en) Training method, response device, electronic device and storage medium
TWI803875B (en) Modeling device and modeling method of business logic representation model
CN114331379B (en) Method for outputting task to be handled, model training method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22929493

Country of ref document: EP

Kind code of ref document: A1