|  | 
 
| 
如题,按照夏宇闻书上的eeprom的读写例子编写,出现了如下错误,求高手指导一下!!万分感谢!!
×
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册  
 Error (10856): Verilog HDL error at eeprom.v(115): multiple event control statements not supported for synthesis
 
 出错部分程序如下:
 task shift_in;
 output[7:0] shift;
 begin
 @(posedge scl) shift[7]=sda;
 @(posedge scl) shift[6]=sda;
 @(posedge scl) shift[5]=sda;
 @(posedge scl) shift[4]=sda;
 @(posedge scl) shift[3]=sda;
 @(posedge scl) shift[2]=sda;
 @(posedge scl) shift[1]=sda;
 @(posedge scl) shift[0]=sda;
 @(negedge scl)
 begin
 #100;
 out_flag=1;
 sda_buf=0;
 end
 @ (negedge scl)
 #100 out_flag=0;
 end
 endtask
 | 
 |