questasim下面仿真systemverilog,出现Error: Top-level design unit 'bus_if' must be an ENTITY, CONFIGURATION, MODULE or PROGRAM.
层次如下:
top
|--test
|--bus_if
bus_if是接口,top、test都是模块。
是SV for verification 第二版第四章第四节的一段代码。
PS1: 我试着仿真时不加上 arb_if,错误如下:
Fatal: (vsim-3695) */test.sv(0): The interface port 'arbif' must be passed an actual interface.