|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
module test_top;
test_if u1_test_if();
test_int u_test_int();
assign u1_test_if.u_test_if1.abc=1'b0;
endmodule
module test_int;
test_if u2_test_if();
assign u2_test_if.u_test_if1.abc=1'b1;
endmodule
interface test_if();
test_if1 u_test_if1();
endinterface
interface test_if1();
logic abc;
endinterface
编译上面的代码后报错:
Error-[ICSD] Combination of structural drivers
test_top.sv, 18
Invalid combination of structural drivers
Variable "abc" is driven by multiple structural drivers.
"test_top.sv", 18: logic abc;
"test_top.sv", 5: assign u1_test_if.u_test_if1.abc=1'b0;
"test_top.sv", 10: assign u2_test_if.u_test_if1.abc=1'b1;
求解~~~ |
|