I programmed all night.
Through the window, on my screen,
The rising sun shined.
编程一整夜,
透过窗户,照在屏幕上。
初升的太阳。
计算机科学里的宏是一种抽象(Abstraction),它根据一系列预定义的规则替换一定的文本模式。解释器或编译器在遇到宏时会自动进行这一模式替换。对于编译语言,宏展开在编译时发生,进行宏展开的工具常被称为宏展开器。宏的用途在于自动化频繁使用的序列或者是获得一种更强大的抽象能力。uvm_marcos包含了UVM中所有的宏定义。
文件:
$UVM_HOME/src/uvm_macros.svh
类:
无
`ifndef UVM_MACROS_SVH `define UVM_MACROS_SVH // // Any vendor specific defines go here. // `ifdef MODEL_TECH `ifndef QUESTA `define QUESTA `endif `endif `ifndef UVM_USE_STRING_QUEUE_STREAMING_PACK `defi