以上代码分别在test.sv和Utp_tx.sv中。运行时会报错:
** Error: D:/Project/self_study/SV/interface/test_prg.sv(6): Illegal declaration after the statement near line '4'. Declarations must precede statements. Look for stray semicolons.
就是在虚接口声名那一块。我试过在文件开头加`include "Utp_tx.sv",调整编译顺序等,都不行。用的是questasim 10.1破解版。
请问这是错在哪儿了?