当我们把变量声明在这里时: 编译会报下面的error: ** at /home/verifier/project/ahb2apb/dv/vip/user_ahb_mst/ahb_transfer.sv(93): Illegal declaration after the statement near line ‘90’. Declarations must precede statements. Look for stray semicolons.
questasim编译报error: Declarations must precede statements. Look for stray semicolons.
error原因当我们把变量声明在这里时:编译会报下面的error:** at /home/verifier/project/ahb2apb/dv/vip/user_ahb_mst/ahb_transfer.sv(93): Illegal declaration after the statement near line ‘90’. Declarations must precede statements. Look for stray semicolons.解决方法将变量声明放在funct