在I2C
仿真的时候,怎么可以将数据同时赋值给sdat_in,没理解
wand sdad; //
reg sdat_in;
assign sdad = sdat_in;
begin
#1000 sdat_in <= data[7];
#1000 sdat_in <= data[6];
#1000 sdat_in <= data[5];
#1000 sdat_in <= data[4];
#1000 sdat_in <= data[3];
#1000 sdat_in <= data[2];
#1000 sdat_in <= data[1];
#1000 sdat_in <= data[0];
end
原来是这样子啊,谢谢了啊,理解了
一周热门 更多>