Method and device for automatically inserting specific code into register transfer level design file

The invention provides a method for automatically inserting a specific code into a register transfer level (RTL) design file, which comprises the following steps of: reading in an RTL file, and obtaining storage information according to the RTL file; reading insertion information, wherein the insert...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: WANG TAO, JU NUOXUAN, LI PENGTAO
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a method for automatically inserting a specific code into a register transfer level (RTL) design file, which comprises the following steps of: reading in an RTL file, and obtaining storage information according to the RTL file; reading insertion information, wherein the insertion information comprises a to-be-inserted code and an absolute path of a module corresponding to the to-be-inserted code in the RTL file; obtaining a module instantiated name from the absolute path, and storing the module instantiated name into a queue; executing an insertion program to obtain a final module definition statement; and inserting the to-be-inserted code into the final module definition statement. 本发明提出一种自动在寄存器传输级(Register Transfer Level,RTL)设计文件中插入特定代码的方法,包括:读入一RTL文件,并根据上述RTL文件取得一储存信息;读入一插入信息,其中上述插入信息包括一待插入代码及上述待插入代码所对应一模块在上述RTL文件中的一绝对路径;由上述绝对路径中取得模块实例化名称,并将上述模块实例化名称存入一队列中;执行一插入程序,以取得一最终模块定义语句;以及在上述最终模块定义语句中插入上述待插入代码。