New! View global litigation for patent families

CN103559028A - Method and device for achieving optical transport network (OTN) series chip software kit framework - Google Patents

Method and device for achieving optical transport network (OTN) series chip software kit framework Download PDF

Info

Publication number
CN103559028A
CN103559028A CN 201310506495 CN201310506495A CN103559028A CN 103559028 A CN103559028 A CN 103559028A CN 201310506495 CN201310506495 CN 201310506495 CN 201310506495 A CN201310506495 A CN 201310506495A CN 103559028 A CN103559028 A CN 103559028A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
software
read
type
mapping
according
Prior art date
Application number
CN 201310506495
Other languages
Chinese (zh)
Other versions
CN103559028B (en )
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

Links

Abstract

The invention discloses a method and device for achieving an optical transport network (OTN) series chip software kit framework and relates to the field of software development. The method comprises the steps of refining register types of a module into header files arranged according to an order of a warning read-only type, a state read-only type, a counting read-only type, a configuration read-write type and an indirect addressing read-write type, enabling every register to form a correlated split domain according to the G.709 specification, establishing classified software configuration file lists and corresponding function marks, and forming a unified operation interface; obtaining a reused abstract structure according to the header files, and performing instantiation; establishing a corresponding mapping path linked list according to a business mapping path of an OTN chip, and enabling nodes in the mapping linked list to point to the module of the mapping path one by one. According to the method and device for achieving the OTN series chip software kit framework, unified operation of the module interface, software development kit (SDK) reuse of identical or similar modules and a mapping structure of OTN series chips based on module reuse can be provided, and a simple and convenient software framework base is provided for secondary application and development.

Description

OTN系列芯片软件工具包架构的实现方法及装置 OTN implementation method and device software toolkit series chip architecture

技术领域 FIELD

[0001] 本发明涉及软件开发领域,特别是涉及一种0TN(0ptical Transport Network,光传送网)系列芯片软件工具包架构的实现方法及装置。 [0001] The present invention relates to the field of software development, particularly to a 0TN (0ptical Transport Network, OTN network) chips implemented method and device architecture software toolkit.

背景技术 Background technique

[0002] 通常情况下,伴随着芯片发布的SDK (Software Development Kit,软件开发工具包)是为了便于软件工程师进行二次开发,这样可以快速地构建基于芯片的应用系统,省去编写硬件底层代码的过程。 [0002] Typically, along with the chip released SDK (Software Development Kit, Software Development Kit) in order to facilitate the secondary development software engineer, so that the system can quickly build applications based on chip, eliminating the need for the underlying code to write hardware the process of. 然而,随着芯片复杂度的提高和关联硬件模块的增多,常规的SDK提供的基于寄存器或独立硬件模块的编程接口使得二次开发相关模块的应用变得极其困难,关联模块较多的复杂芯片的二次应用开发也变得极其困难,模块的异同操作接口也增加了应用的复杂性,并且同系列芯片的相同或类似硬件模块的SDK的非重用性不仅增加了底层开发的任务量,而且导致较差的可移植性。 However, with the increase in the complexity of the chip increases and associated hardware modules, conventional SDK provides a register-based or standalone hardware module such that the application programming interface module is related to the development of the secondary becomes extremely difficult, more complex chips association module secondary application development becomes extremely difficult, the similarities and differences between user interface module also increases the complexity of the application, and the same family of chips with the SDK or non-reusable similar hardware modules not only increases the amount of low-level development tasks, and resulting in poor portability. 上述不足在OTN系列芯片中体现得尤为明显,主要是由于映射结构中相关硬件模块较多,相同或类似的硬件模块在同一芯片或系列芯片的映射结构中大量复用。 In the above-mentioned lack of OTN series chips was especially evident, mainly due to a mapping structure more relevant hardware modules, hardware modules of the same or similar large number of multiplexed on the same chip or chips in the mapping structure.

发明内容 SUMMARY

[0003] 本发明的目的是为了克服上述背景技术的不足,提供一种OTN系列芯片软件工具包架构的实现方法及装置,能提供模块接口的统一操作、相同或类似模块的SDK重用以及基于模块重用的建立OTN系列芯片的映射结构,为二次应用开发提供简单方便的软件架构基础。 [0003] The object of the present invention is to overcome the deficiencies of the background art, there is provided a software toolkit chips OTN architecture implemented method and apparatus that provides a unified interface module operation, the same or similar reusable modules and module-based SDK reuse of a mapping structure OTN series chips, software architecture provides a simple and convenient basis for secondary application development.

[0004] 本发明提供一种OTN系列芯片软件工具包架构的实现方法,包括以下步骤: [0004] The present invention provides a series of OTN chip package of software tools architecture implemented method, comprising the steps of:

[0005] A:模块操作接口重用化抽象及实例化:读取芯片逻辑设计阶段各模块的寄存器定义文件,将模块的寄存器类型细化为符合规定的按照告警只读类、状态只读类、计数只读类、配置读写类和间址读写类顺序编排的头文件,并且每个寄存器按照G.709规范形成相关拆分域,根据上述分类的寄存器建立各个分类的软件配置文件表和对应的功能标志,该标志为后续模块的重用配置标志,同时依据分类形成模块的统一操作接口;根据上述编排且带有相关拆分域的头文件,得到重用化抽象结构;对现有模块的新功能进行添加,对现有模块没有的功能采用功能标志进行使能;完成所有模块的抽象之后,按照所有芯片的实际拥有模块的模块数进行实例化; [0005] A: user interface modules and the reuse of abstract examples of: reading chip logic design stages of the register definition file module, the module register type refinement to comply with CD-type in accordance with the alarm status read-only type, count of CD-type, disposed between the write address and the read class class header file organized in the order, and each register is formed according to the relevant resolving domain G.709 standards and a software profile table based on the classification of each category and register function corresponding to a flag module for subsequent reuse configuration flag while forming a unified user interface module based on the classification; and the above-described arrangement associated with the first file splitting domain, the abstract structure to be reused; existing modules to add new features, functions without using the existing function modules enable flag; abstract after completion of all the modules, the module is instantiated in accordance with the actual number of modules has all of the chips;

[0006] B:建立嵌入模块的OTN芯片映射路径:根据OTN芯片的业务映射路径,建立对应的映射路径链表,每一个业务映射路径都对应建立一个映射路径链表,完成映射路径链表后,将映射链表中的节点逐一指向映射路径的模块,至此完成嵌入模块的OTN芯片映射路径,此后对业务映射模块的操作将完全转化为对链表和链表节点的统一操作。 [0006] B: establishing an embedded module to OTN chip map path: according to the service mapping path OTN chip, a mapping path list corresponding to each service is mapped paths associating a map path list, the mapping path list, mapped linked list node pointing module individually mapped path, thereby completing a path OTN mapping chip embedded module, the mapping module after the operation of the service will be completely converted to the unified operation list and the list of nodes.

[0007] 在上述技术方案的基础上,步骤A中所述统一操作接口包括[配置读(配置类型,读配置值)]/ [配置写(配置类型,写配置值)]、[计数读(读指针)]/ [告警读(读指针)]/[状态读(读指针)]/[间址读(配置类型,读配置值)]/[间址写(配置类型,写配置值)]。 [0007] Based on the above technical solution, said step A unified user interface that includes [Read Configuration (configuration type, reads the configuration value)] / [Write Configuration (configuration type, write configuration value)], [read count ( read pointer)] / [alarm read (read pointer)] / [the state of the read (read pointer)] / [inter-access read (configuration type, reads the configuration value)] / [inter-access write (configuration type, write configuration value)] . [0008] 在上述技术方案的基础上,步骤A还包括以下步骤:如果某个模块在之前的芯片软件中存在相同或者类似的模块接口,那么就只需采用直接或继承的方式使用原有模块接口,继承使用;否则,按照规则对模块新建接口重用化抽象结构。 [0008] Based on the foregoing technical solution, the step A further comprises the step of: the presence of the same or similar to the interface module if a module in the previous chip in the software, then the only way to direct succession or to use the original module interfaces, inheritance use; otherwise, in accordance with the rules of the New Interface module reuse of abstract structures.

[0009] 在上述技术方案的基础上,步骤A还包括以下步骤:如果某个模块抽象在芯片中对应多个模块,则对该模块抽象进行多次实例化。 [0009] Based on the foregoing technical solution, the step A further comprises the step of: if a plurality of modules corresponding to the abstract modules in the chip, the module then multiple instances of the abstract.

[0010] 在上述技术方案的基础上,步骤B还包括以下步骤:如果某个业务有多个映射路径,则该映射路径链表根据路径变化进行动态的调整。 [0010] Based on the foregoing technical solution, the step B further comprises the step of: if a plurality of mapping traffic path, the path list mapped dynamically adjusted according to changes in the path.

[0011] 本发明还提供一种OTN系列芯片软件工具包架构的实现装置,包括模块操作接口重用化抽象及实例化单元和嵌入模块的OTN芯片映射路径建立单元,其中: [0011] The present invention also provides a series of OTN device chip package software tools to implement the architecture, including an interface module reuse of abstract operations and the instances of the module unit and the embedded chip OTN mapping path establishing unit, wherein:

[0012] 所述模块操作接口重用化抽象及实例化单元,用于:读取芯片逻辑设计阶段各模块的寄存器定义文件,将模块的寄存器类型细化为符合规定的按照告警只读类、状态只读类、计数只读类、配置读写类和间址读写类顺序编排的头文件,并且每个寄存器按照G.709规范形成相关拆分域,根据上述分类的寄存器建立各个分类的软件配置文件表和对应的功能标志,该标志为后续模块的重用配置标志,同时依据分类形成模块的统一操作接口;根据上述编排且带有相关拆分域的头文件,得到重用化抽象结构;对现有模块的新功能进行添力口,对现有模块没有的功能采用功能标志进行使能;完成所有模块的抽象之后,按照所有芯片的实际拥有模块的模块数进行实例化; [0012] The operation of the interface modules and the reuse of abstract examples unit, configured to: register definition file reading chip logic design stage of each module, the module register type refinement to comply with CD-type alarm according to a predetermined state read-only type, read-only-based counting, arranged between the read address and write class class header file organized in the order, and each register is formed according to the relevant resolving domain G.709 standards and a software classification based on the classification of each register profile table and the corresponding functions a flag module for subsequent reuse configuration flag while forming module according to the classification of a unified user interface; and the above-described arrangement associated with the first file splitting domain, the abstract structure to be reused; of the new functionality of the existing port modules is added force without using the functions of existing function modules enable flag; abstract after completion of all the modules, the module is instantiated in accordance with the actual number of modules has all of the chips;

[0013] 所述嵌入模块的OTN芯片映射路径建立单元,用于:根据OTN芯片的业务映射路径,建立对应的映射路径链表,每一个业务映射路径都对应建立一个映射路径链表,完成映射路径链表后,将映射链表中的节点逐一指向映射路径的模块,至此完成嵌入模块的OTN芯片映射路径,此后对业务映射模块的操作将完全转化为对链表和链表节点的统一操作。 [0013] The embedded chip module OTN mapping path establishing unit, configured to: according to the service path OTN mapping chip, a mapping list corresponding to the path, each path corresponds to a mapping service to establish a path mapping list, the mapping list path after the nodes in the list one by one mapping module mapping point path, thereby completing a path OTN mapping chip embedded module, the mapping module after the operation of the service will be completely converted to the unified operation list and the list of nodes.

[0014] 在上述技术方案的基础上,所述统一操作接口包括[配置读(配置类型,读配置值)]/[配置写(配置类型,写配置值)]、[计数读(读指针)]/[告警读(读指针)]/[状态读(读指针)]/[间址读(配置类型,读配置值)]/[间址写(配置类型,写配置值)]。 [0014] Based on the foregoing technical solution, the unified user interface comprising [Read Configuration (configuration type, reads the configuration value)] / [Write Configuration (configuration type, write configuration value)], [the read count (read pointer) ] / [alarm read (read pointer)] / [the read state (read pointer)] / [inter-read address (configuration type, reads the configuration value)] / [inter-write access (configuration type, write configuration values)].

[0015] 在上述技术方案的基础上,所述模块操作接口重用化抽象及实例化单元还用于:如果某个模块在之前的芯片软件中存在相同或者类似的模块接口,那么就只需采用直接或继承的方式使用原有模块接口,继承使用;否则,按照规则对模块新建接口重用化抽象结构。 [0015] Based on the foregoing technical solution, the user interface module and the reuse of abstract examples unit is further configured to: present the same or similar to the interface module if a module in the previous chip software, then simply use direct or inherited way to use the existing module interface, the use of inheritance; otherwise, in accordance with the rules of the New Interface module reuse of abstract structures.

[0016] 在上述技术方案的基础上,所述模块操作接口重用化抽象及实例化单元还用于:如果某个模块抽象在芯片中对应多个模块,则对该模块抽象进行多次实例化。 [0016] Based on the foregoing technical solution, the user interface module and the reuse of abstract examples unit is further configured to: if a plurality of modules corresponding to the abstract modules in the chip, the module is instantiated abstract multiple .

[0017] 在上述技术方案的基础上,所述嵌入模块的OTN芯片映射路径建立单元还用于:如果某个业务有多个映射路径,则该映射路径链表根据路径变化进行动态的调整。 [0017] Based on the foregoing technical solution, the chip is embedded OTN mapping module path establishing unit is further configured to: if a plurality of mapping traffic path, the path list mapped dynamically adjusted according to changes in the path.

[0018] 与现有技术相比,本发明的优点如下: [0018] Compared with the prior art, advantages of the present invention are as follows:

[0019] ( I)本发明为所有模块提供统一操作接口的软件架构支持。 To provide a unified operator interface [0019] (I) of the present invention, all modules support the software architecture.

[0020] (2)本发明为同一芯片或者同系列芯片中相同或者类似模块提供了高度重用性的软件架构支持。 [0020] (2) The present invention provides a highly reusable software architecture of the same or similar modules support the same chip or chips in the same series.

[0021] (3)本发明为OTN芯片复杂的映射路径提供了动态链表和模块对应的等同操作的软件架构支持。 Providing equivalent operations software architecture supports dynamic module list and the corresponding [0021] (3) The present invention is a complex path OTN mapping chip.

[0022] (4)本发明为多款OTN系列芯片提供统一的软件架构支持。 [0022] (4) The present invention provides a variety of OTN chips to provide a unified software architecture supports. 附图说明 BRIEF DESCRIPTION

[0023] 图1是本发明实施例中OTN系列芯片软件工具包架构的实现方法的示例。 [0023] FIG. 1 is an example of software tools to implement OTN series chip package architecture method in the embodiment of the present invention.

[0024] 图2是本发明实施例中模块接口重用化结构抽象示例。 [0024] FIG. 2 is a diagram of the module interface structure Abstract reuse exemplary embodiment of the present invention.

[0025] 图3是本发明实施例中类似模块的接口重用化结构抽象示例。 [0025] FIG. 3 is the interface structure reuse exemplary embodiment similar abstraction module embodiment of the present invention.

[0026] 图4是本发明实施例中建立嵌入模块的OTN芯片映射路径示例。 [0026] FIG. 4 is an example of a path mapping chip embedded module to establish OTN embodiment of the present invention.

具体实施方式 detailed description

[0027] 下面结合附图及具体实施例对本发明作进一步的详细描述。 [0027] Specific embodiments of the present invention will be further described in detail below and the accompanying drawings.

[0028] 参见图1所示,本发明实施例提供一种OTN系列芯片软件工具包架构的实现方法,包括以下步骤: [0028] Referring to Figure 1, the embodiment of the present invention provides a series of OTN chip package of software tools architecture implemented method, comprising the steps of:

[0029] A:模块操作接口重用化抽象及实例化:参见图2所示,读取芯片逻辑设计阶段各模块的寄存器定义文件,通过人工方法,将模块的寄存器类型细化为符合规定的按照告警只读类、状态只读类、计数只读类、配置读写类和间址读写类顺序编排的头文件,并且每个寄存器按照G.709规范形成相关拆分域,根据上述分类的寄存器建立各个分类的软件配置文件表和对应的功能标志,该标志为后续模块的重用配置标志,同时依据分类形成模块的统一操作接口[配置读(配置类型,读配置值)]config_read(config_type_n,pvalue)/[配置写(配置类型,写配置值)]config_write (config_type_n, value)、[计数读(读指针)]counter (pvalue)/[告警读(读指针)]alarm (pvalue) / [状态读(读指针)]state (pvalue)/[间址读(配置类型,读配置值)]indirect_read (indirect_type_n,pvalue)/[间址写(配置类型,写配置值)]indirect_write (indire [0029] A: user interface modules and the reuse of abstract instantiation: Referring shown below, the logic chip design phase of each module definition file register 2, by artificial means, to refine the type of registers according compliant CD-type alarm, status read only type, read-only-based counting, arranged between the read address and write class class header file organized in the order, and each register is formed in accordance with G.709 specifications relevant domain resolution, based on the classification register established each category software profile table and the corresponding functions a flag for subsequent modules reuse configuration flag while forming a module of a unified user interface based classification [configuration read (configuration type, reads the configuration value)] config_read (config_type_n, pvalue) / [configuration write (configuration type, write configuration value)] config_write (config_type_n, value), [count read (read pointer)] counter (pvalue) / [alarm read (read pointer)] alarm (pvalue) / [status read (read pointer)] state (pvalue) / [inter-read address (configuration type, reads the configuration value)] indirect_read (indirect_type_n, pvalue) / [inter-write access (configuration type, write configuration value)] indirect_write (indire ct_type_n, value);根据上述编排且带有相关拆分域的头文件,得到重用化抽象结构。 ct_type_n, value); and the above-described arrangement associated with the first file splitting domain structure abstraction reused.

[0030] 如果某个模块在之前的芯片软件中存在相同或者类似的模块接口,那么就只需采用直接或继承的方式使用原有模块接口,继承使用,参见图3所示;否则,按照规则对模块新建接口重用化抽象结构;对现有模块的新功能进行添加,对现有模块没有的功能采用功能标志进行使能。 [0030] The presence of the same or similar to the interface module if a previous software modules in the chip, then only direct way to use existing or inherited module interface, using inheritance, see Fig. 3; otherwise, according to the rules new Interface module reuse abstract structure; new features to add to the existing modules, without using the functions of existing function modules enable flag. 完成所有模块的抽象之后,按照所有芯片的实际拥有模块的模块数进行实例化;如果某个模块抽象在芯片中对应多个模块则应对该模块抽象进行多次实例化。 After completion of the abstract all modules, the number of modules according to instantiate actual module has all the chips; if a plurality of modules in the module corresponding to the abstract chips should be the abstract modules instantiated multiple times.

[0031] B:建立嵌入模块的OTN芯片映射路径:参见图4所示,根据OTN芯片的业务映射路径,建立对应的映射路径链表。 [0031] B: establishing mapping chip embedded module OTN path: Referring to FIG. 4, according to the service path OTN mapping chip, a mapping list corresponding to the path. 每一个业务映射路径都对应建立一个映射路径链表,如果某个业务有多个映射路径,则该映射路径链表根据路径变化进行动态的调整;完成映射路径链表后,将映射链表中的节点逐一指向映射路径的模块,至此完成嵌入模块的OTN芯片映射路径,此后对业务映射模块的操作将完全转化为对链表和链表节点的统一操作。 Each path corresponds to a mapping service to establish a path mapping list, if a plurality of mapping service path, the path list mapped dynamically adjusted according to changes in the path; path after the mapping list, the mapping list of nodes one by one point path mapping module, thereby completing the path OTN mapping chip embedded module, the mapping module after the operation of the service will be completely converted to the unified operation list and the list of nodes.

[0032] 本发明实施例还提供一种OTN系列芯片软件工具包架构的实现装置,包括模块操作接口重用化抽象及实例化单元和嵌入模块的OTN芯片映射路径建立单元,其中: [0032] Embodiments of the present invention further provides a series of OTN device chip package software tools to implement the architecture includes user interface module and the reuse of abstract example of an embedded module unit and OTN mapping chip path establishing unit, wherein:

[0033] 模块操作接口重用化抽象及实例化单元,用于:参见图2所示,读取芯片逻辑设计阶段各模块的寄存器定义文件,通过人工方法,将模块的寄存器类型细化为符合规定的按照告警只读类、状态只读类、计数只读类、配置读写类和间址读写类顺序编排的头文件,并且每个寄存器按照G.709规范形成相关拆分域,根据上述分类的寄存器建立各个分类的软件配置文件表和对应的功能标志,该标志为后续模块的重用配置标志,同时依据分类形成模块的统一操作接口[配置读(配置类型,读配置值)]config_read(config_type_n, pvalue)/[配置写(配置类型,写配置值)]conf ig_write (conf ig_type_n, value)、[计数读(读指针)]counter (pvalue)/[告警读(读指针)]alarm (pvalue) / [状态读(读指针)]state (pvalue)/[间址读(配置类型,读配置值)]indirect_read (indirect_type_n,pvalue)/[间址写(配置类型,写配置值)]indire [0033] The operation of the interface modules and the reuse of abstract examples unit, configured to: refer to FIG. 2, the read logic chip module design phase of each register definition file, by artificial means, the module register type refinement to comply the alarm according to the read-only type, status read only type, read-only-based counting, arranged between the read address and write class class header file organized in the order, and each register is formed according to the relevant resolving domain specifications G.709, according to the above classification of registers to establish respective classification software profile table and the corresponding functions a flag for subsequent modules reuse configuration flag, while based on a unified operator interface classification formed modules [configuration read (configuration type, reads the configuration value)] config_read ( config_type_n, pvalue) / [configuration write (configuration type, write configuration value)] conf ig_write (conf ig_type_n, value), [count read (read pointer)] counter (pvalue) / [alarm read (read pointer)] alarm (pvalue ) / [the read state (read pointer)] state (pvalue) / [inter-read address (configuration type, reads the configuration value)] indirect_read (indirect_type_n, pvalue) / [inter-write access (configuration type, write configuration value)] indire ct_write (indirect_type_n, value);根据上述编排且带有相关拆分域的头文件,得到重用化抽象结构。 ct_write (indirect_type_n, value); According to the above-described arrangement and the header file associated with a split field, abstract structure to be reused. 如果某个模块在之前的芯片软件中存在相同或者类似的模块接口,那么就只需采用直接或继承的方式使用原有模块接口,继承使用,参见图3所示;否则,按照规则对模块新建接口重用化抽象结构;对现有模块的新功能进行添加,对现有模块没有的功能采用功能标志进行使能。 If a module is present to the same or similar chip module interface software before, then only direct way to use existing or inherited module interface, using inheritance, see Fig. 3; otherwise, according to the rules of the new module reuse of the interface abstractions; new features to add to the existing modules, without using the functions of existing function modules enable flag. 完成所有模块的抽象之后,按照所有芯片的实际拥有模块的模块数进行实例化;如果某个模块抽象在芯片中对应多个模块则应对该模块抽象进行多次实例化。 After completion of the abstract all modules, the number of modules according to instantiate actual module has all the chips; if a plurality of modules in the module corresponding to the abstract chips should be the abstract modules instantiated multiple times.

[0034] 嵌入模块的OTN芯片映射路径建立单元,用于:参见图4所示,根据OTN芯片的业务映射路径,建立对应的映射路径链表。 [0034] Embed module OTN mapping chip path establishing unit, configured to: refer to FIG. 4, according to the service path OTN mapping chip, a mapping list corresponding to the path. 每一个业务映射路径都对应建立一个映射路径链表,如果某个业务有多个映射路径,则该映射路径链表根据路径变化进行动态的调整;完成映射路径链表后,将映射链表中的节点逐一指向映射路径的模块,至此完成嵌入模块的OTN芯片映射路径,此后对业务映射模块的操作将完全转化为对链表和链表节点的统一操作。 Each path corresponds to a mapping service to establish a path mapping list, if a plurality of mapping service path, the path list mapped dynamically adjusted according to changes in the path; path after the mapping list, the mapping list of nodes one by one point path mapping module, thereby completing the path OTN mapping chip embedded module, the mapping module after the operation of the service will be completely converted to the unified operation list and the list of nodes.

[0035] 图1为OTN系列芯片软件工具包架构的实现方法的示例。 [0035] Figure 1 is an example implementation of a chip family OTN architecture software toolkit. 已经存在的某个OTN芯片0TN_CHIP_1是已完成芯片的软件工具包,其包括a/b/c/…/n模块,映射路径包括a<->c<->n和a〈->b〈->c〈->n ;现即将为另外一个OTN芯片0TN_CHIP_2芯片设计软件工具包,其包括a/b' /d/…/n模块,a/b/c/…/n表示芯片0TN_CHIP_1里面的模块名,映射路径包括a〈->屮<->n和a〈->屮<->d〈->n。 Existing OTN chip 0TN_CHIP_1 a completed chip is software kit, which comprises a / b / c / ... / n module, a mapping path comprises a <-> c <-> n and a <-> b <- > c <-> n; now about to another OTN chip 0TN_CHIP_2 chip design software kit, which comprises a / b '/ d / ... / n module, a / b / c / ... / n represents the chip 0TN_CHIP_1 inside the module name mapping path comprises a <-> Che <-> n and a <-> Che <-> d <-> n. b'表示另外一个芯片0TN_CHIP_2的模块,并且与已经存在的芯片0TN_CHIP_1中的b模块类似。 b 'represents a further 0TN_CHIP_2 chip module, and similarly to the already existing chips 0TN_CHIP_1 b in module.

[0036] 在开发0TN_CHIP_2芯片设计软件工具包时,首先对模块进行结构化抽象及实例化,模块a/n可以直接使用0`TN_CHIP_1芯片的抽象,模块b'采用继承模块b的方式进行抽象,现在只需要对模块d进行新的结构化抽象,全部抽象完成后再对模块a/b' /d/…/n进行实例化,构成0TN_CHIP_2的模块实体,接下来建立0TN_CHIP_2的映射路径a〈->b' <->n和a〈->b ' <->d<->n链表并将链表的节点逐一指向已经实体化的模块,就得到了0ΤΝ_CHIP_2的软件工具包。 [0036] In the development of chip design software toolkit 0TN_CHIP_2 first module structured abstract and instantiated module a / n may be used directly abstract 0`TN_CHIP_1 chip module b 'inherited module b uses abstract manner, now only needs a new module d abstract structure, after the entire complete abstraction module a / b '/ d / ... / n instantiated, the configuration module 0TN_CHIP_2 entity, then a mapping of a path 0TN_CHIP_2 a <- > b '<-> n and a <-> b' <-> d <-> n nodes one by one list and the list has been materialized point module, 0ΤΝ_CHIP_2 get a software toolkit.

[0037] 本领域的技术人员可以对本发明实施例进行各种修改和变型,倘若这些修改和变型在本发明权利要求及其等同技术的范围之内,则这些修改和变型也在本发明的保护范围之内。 [0037] Those skilled in the art can implement embodiments of the present invention that various modifications and variations, protected if these modifications and variations within the claims of the invention and the scope of equivalents thereof, the such modifications and variations are also within the present invention. within range.

[0038] 说明书中未详细描述的内容为本领域技术人员公知的现有技术。 [0038] SUMMARY specification not described in detail known to those skilled in the art.

Claims (10)

1.一种OTN系列芯片软件工具包架构的实现方法,其特征在于,包括以下步骤: A:模块操作接口重用化抽象及实例化:读取芯片逻辑设计阶段各模块的寄存器定义文件,将模块的寄存器类型细化为符合规定的按照告警只读类、状态只读类、计数只读类、配置读写类和间址读写类顺序编排的头文件,并且每个寄存器按照G.709规范形成相关拆分域,根据上述分类的寄存器建立各个分类的软件配置文件表和对应的功能标志,该标志为后续模块的重用配置标志,同时依据分类形成模块的统一操作接口;根据上述编排且带有相关拆分域的头文件,得到重用化抽象结构;对现有模块的新功能进行添加,对现有模块没有的功能采用功能标志进行使能;完成所有模块的抽象之后,按照所有芯片的实际拥有模块的模块数进行实例化; B:建立嵌入模块的OTN芯片映射路径:根据OTN An OTN series chip package of software tools architecture implemented method, characterized by comprising the steps of: A: an interface module reuse of abstract operations and examples of: reading chip logic design stages of the register definition file module, the module register type refinement to comply with CD-type in accordance with the alarm status read-only type, read-only-based counting, arranged between the read address and write class class header file organized in the order, and each register in accordance with G.709 specifications forming a split domain correlation, and establish a software profile table corresponding to each classified feature flags register according to the above classification, the module for subsequent reuse flag sign configuration, while according to the classification module is formed of a unified user interface; and the above-described arrangement with split related header field, abstract structure to be reused; new features to add to the existing modules, without using the functions of existing function modules enable flag; abstract after completion of all modules, in accordance with all the chips the actual number of modules has a module is instantiated; B: establishing mapping chip embedded module OTN path: the OTN 芯片的业务映射路径,建立对应的映射路径链表,每一个业务映射路径都对应建立一个映射路径链表,完成映射路径链表后,将映射链表中的节点逐一指向映射路径的模块,至此完成嵌入模块的OTN芯片映射路径,此后对业务映射模块的操作将完全转化为对链表和链表节点的统一操作。 Chip service mapping path, create a corresponding mapping path list, each service is mapped paths associating module after a mapped path list, the mapping path list, the mapping list of nodes one by one point mapped path, thereby completing the embedded module OTN mapping chip path, mapping module after the operation of the service will be completely converted to the unified operation list and the list of nodes.
2.如权利要求1所述的OTN系列芯片软件工具包架构的实现方法,其特征在于:步骤A中所述统一操作接口包括[配置读(配置类型,读配置值)]/[配置写(配置类型,写配置值)]、[计数读(读指针)]/[告警读(读指针)]/[状态读(读指针)]/[间址读(配置类型,读配置值)]/ [间址写(配置类型,写配置值)]。 2. OTN chips software tools to implement the method of claim 1 packet architecture, wherein: said step A unified user interface that includes [Read Configuration (configuration type, reads the configuration value)] / [Configuration Write ( configuration type, write configuration value)], [count read (read pointer)] / [alarm read (read pointer)] / [the state of the read (read pointer)] / [inter-access read (configuration type, reads the configuration value)] / [inter-access write (configuration type, write configuration values)].
3.如权利要求1所述的OTN系列芯片软件工具包架构的实现方法,其特征在于:步骤A还包括以下步骤:如果某个模块在之前的芯片软件中存在相同或者类似的模块接口,那么就只需采用直接或继承的方式使用原有模块接口,继承使用;否则,按照规则对模块新建接口重用化抽象结构。 3. OTN chips software tools to implement the method of claim 1 packet architecture, wherein: the step A further comprises the step of: the presence of the same or similar to the interface module before a module if the software in the chip, then it simply direct or inherited way to use the existing module interface, the use of inheritance; otherwise, in accordance with the rules of the New Interface module reuse of abstract structures.
4.如权利要求1所述的OTN系列芯片软件工具包架构的实现方法,其特征在于:步骤A还包括以下步骤:如果某个模块抽象在芯片中对应多个模块,则对该模块抽象进行多次实例化。 4. OTN chips software tools to implement the method of claim 1 packet architecture, wherein: the step A further comprises the step of: if a plurality of modules corresponding to the abstract modules in the chip, then the module abstractions instantiated multiple times. ` `
5.如权利要求1至4中任一项所述的OTN系列芯片软件工具包架构的实现方法,其特征在于:步骤B还包括以下步骤:如果某个业务有多个映射路径,则该映射路径链表根据路径变化进行动态的调整。 1 to 5. The series of chips implemented method OTN architecture software kit of any one of claim 4, wherein: the step B further comprises the step of: if a plurality of mapping traffic paths, the mapping path list dynamically adjusted according to changes in the path.
6.一种OTN系列芯片软件工具包架构的实现装置,其特征在于:包括模块操作接口重用化抽象及实例化单元和嵌入模块的OTN芯片映射路径建立单元,其中: 所述模块操作接口重用化抽象及实例化单元,用于:读取芯片逻辑设计阶段各模块的寄存器定义文件,将模块的寄存器类型细化为符合规定的按照告警只读类、状态只读类、计数只读类、配置读写类和间址读写类顺序编排的头文件,并且每个寄存器按照G.709规范形成相关拆分域,根据上述分类的寄存器建立各个分类的软件配置文件表和对应的功能标志,该标志为后续模块的重用配置标志,同时依据分类形成模块的统一操作接口;根据上述编排且带有相关拆分域的头文件,得到重用化抽象结构;对现有模块的新功能进行添加,对现有模块没有的功能采用功能标志进行使能;完成所有模块的抽象之后,按照 A series of chips OTN device architecture implemented software kit, which is characterized in that: the module comprises a user interface abstraction and reusability Examples of embedding module unit and OTN mapping chip path establishing unit, wherein: the re-use user interface module and examples abstraction unit, configured to: register definition file reading chip logic design stage of each module, the module register type refinement to comply with CD-type in accordance with the alarm status read-only type, read-only counting, configuration, class and read between write access class header file organized in the order, and each register is formed according to the relevant resolving domain G.709 standards and a software profile table and classification functions corresponding to each flag register according to the above classification, the flag module for subsequent reuse configuration flag while forming module according to the classification of a unified user interface; and the above-described arrangement associated with the first file splitting domain, the abstract structure to be reused; existing modules for new features to add, to function module does not use the conventional function enable flag; abstract after completion of all modules, in accordance with 有芯片的实际拥有模块的模块数进行实例化; 所述嵌入模块的OTN芯片映射路径建立单元,用于:根据OTN芯片的业务映射路径,建立对应的映射路径链表,每一个业务映射路径都对应建立一个映射路径链表,完成映射路径链表后,将映射链表中的节点逐一指向映射路径的模块,至此完成嵌入模块的OTN芯片映射路径,此后对业务映射模块的操作将完全转化为对链表和链表节点的统一操作。 Actual number of modules has a chip module is instantiated; the chip embedded module OTN mapping path establishing unit, configured to: according to the service path OTN mapping chip, a mapping list corresponding to the path, each path corresponds to a mapping service after establishing a mapping path list, the mapping path list, the mapping list of nodes one by one pointing module mapped path, thereby completing OTN chips mapped path embedded module, after the operation of the service mapping module will complete conversion of the list, and the list unified operation node.
7.如权利要求6所述的OTN系列芯片软件工具包架构的实现装置,其特征在于:所述统一操作接口包括[配置读(配置类型,读配置值)]/[配置写(配置类型,写配置值)]、[计数读(读指针)]/ [告警读(读指针)]/ [状态读(读指针)]/ [间址读(配置类型,读配置值)]/ [间址写(配置类型,写配置值)]。 OTN chips as claimed in claim 6 software tool apparatus for implementing packet architecture claims, characterized in that: the unified user interface comprising [Read Configuration (configuration type, reads the configuration value)] / [Write Configuration (configuration type, write configuration value)], [count read (read pointer)] / [alarm read (read pointer)] / [the state of the read (read pointer)] / [inter-access read (configuration type, reads the configuration value)] / [inter access write (configuration type, write configuration values)].
8.如权利要求6所述的OTN系列芯片软件工具包架构的实现装置,其特征在于:所述模块操作接口重用化抽象及实例化单元还用于:如果某个模块在之前的芯片软件中存在相同或者类似的模块接口,那么就只需采用直接或继承的方式使用原有模块接口,继承使用;否则,按照规则对模块新建接口重用化抽象结构。 8. chips OTN architecture implemented software toolkit apparatus according to claim 6, wherein: the user interface module and the reuse of abstract examples unit further configured to: if a previous software modules in the chip presence of the same or similar module interface, then the only way to direct succession or to use the original module interface, the use of inheritance; otherwise, New Interface module according to the rules of reusable abstractions.
9.如权利要求6所述的OTN系列芯片软件工具包架构的实现装置,其特征在于:所述模块操作接口重用化抽象及实例化单元还用于:如果某个模块抽象在芯片中对应多个模块,则对该模块抽象进行多次实例化。 9. The apparatus for implementing OTN architecture software toolkit chips according to claim 6, wherein: the user interface module and the reuse of abstract examples unit is further configured to: if a module in the corresponding abstract multi chip module, the module then multiple instances of the abstract.
10. 如权利要求6至9中任一项所述的OTN系列芯片软件工具包架构的实现装置,其特征在于:所述嵌入模块的OTN芯片映射路径建立单元还用于:如果某个业务有多个映射路径,则该映射路径链表根据路径变化进行动态的调整。 6 to 10. The chips OTN architecture implemented software toolkit device according to any one of claims 9, wherein: said embedded chip module OTN mapping path establishing unit is further configured to: if a business is mapping a plurality of paths, the path list mapped dynamically adjusted according to changes in the path.
CN 201310506495 2013-10-24 2013-10-24 Implementation method and device software toolkit Otn series chip architecture CN103559028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310506495 CN103559028B (en) 2013-10-24 2013-10-24 Implementation method and device software toolkit Otn series chip architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201310506495 CN103559028B (en) 2013-10-24 2013-10-24 Implementation method and device software toolkit Otn series chip architecture

Publications (2)

Publication Number Publication Date
CN103559028A true true CN103559028A (en) 2014-02-05
CN103559028B CN103559028B (en) 2016-08-24

Family

ID=50013284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310506495 CN103559028B (en) 2013-10-24 2013-10-24 Implementation method and device software toolkit Otn series chip architecture

Country Status (1)

Country Link
CN (1) CN103559028B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7487500B1 (en) * 2003-10-09 2009-02-03 Nortel Networks Limited System and method for installing and configuring software for a network element in an optical communications network
CN102201972A (en) * 2010-03-25 2011-09-28 中兴通讯股份有限公司 Multi-level reuse route computation method based on G.709 and path computation apparatus
CN102238439A (en) * 2010-04-30 2011-11-09 中兴通讯股份有限公司 Control method and system of business mapping process based on G.709

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7487500B1 (en) * 2003-10-09 2009-02-03 Nortel Networks Limited System and method for installing and configuring software for a network element in an optical communications network
CN102201972A (en) * 2010-03-25 2011-09-28 中兴通讯股份有限公司 Multi-level reuse route computation method based on G.709 and path computation apparatus
CN102238439A (en) * 2010-04-30 2011-11-09 中兴通讯股份有限公司 Control method and system of business mapping process based on G.709

Also Published As

Publication number Publication date Type
CN103559028B (en) 2016-08-24 grant

Similar Documents

Publication Publication Date Title
US20020069400A1 (en) System for reusable software parts for supporting dynamic structures of parts and methods of use
US20080109780A1 (en) Method of and apparatus for optimal placement and validation of i/o blocks within an asic
US8209675B2 (en) Method and system for customizing a software application
US5848236A (en) Object-oriented development framework for distributed hardware simulation
US20080120617A1 (en) Systems and Methods for Constructing Change Plans from Component Interactions
US20140115161A1 (en) Method and system for migration of multi-tier virtual application across different clouds hypervisor platforms
Christensen et al. Towards a modular analysis of coloured Petri nets
US6421634B1 (en) Interface independent test system
US20020174082A1 (en) Reusable parts for assembled software systems
US7711740B2 (en) Data access layer design and code generation
US20150020053A1 (en) Integration of a software content space with test planning and test case generation
US20090171484A1 (en) Self-describing device module and system and computer-readable medium for the production thereof
US20070157167A1 (en) Service adaptation of the enterprise services framework
US20060212473A1 (en) Resource management method and system enabling identity mapping between resources and objects
US7363434B2 (en) Method, system, and computer-readable medium for updating memory devices in a multi-processor computer system
CN101739453A (en) Method and device for carrying out condition query on database table
US20150106793A1 (en) Detecting Byte Ordering Type Errors in Software Code
CN102122247A (en) Automatic code generating system and method
US20060036999A1 (en) System and method for managing test and measurement components
US20080155572A1 (en) Simplifying generation of device drivers for different user systems to facilitate communication with a hardware device
US6618833B1 (en) Maintenance of a system model
Gao et al. Applying Aspect-Orientation in Designing Security Systems: A Case Study.
CN101901148A (en) Generation method of ECU parameter configuration interface based on AUTOSAR standard
US20150378702A1 (en) Deploying an application across multiple deployment environments
US20100153918A1 (en) Compound versioning and identification scheme for composite application development

Legal Events

Date Code Title Description
C06 Publication
C14 Grant of patent or utility model
TR01
TR01