task shift_in;
output[7:0] shift_t;
begin
@(posedge SCL) shift_t[7] = SDA;
@(posedge SCL) shift_t[6] = SDA;
@(posedge SCL) shift_t[5] = SDA;
@(posedge SCL) shift_t[4] = SDA;
@(posedge SCL) shift_t[3] = SDA;
@(posedge SCL) shift_t[2] = SDA;
@(posedge SCL) shift_t[1] = SDA;
@(posedge SCL) shift_t[0] = SDA;
。。。。。。。。。。。。。。。。。。。。。
这个代码段在ise中编译不过
|