|  | 
 
| 
module bt(xin,clk,fdata,start);
×
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册  
 input clk;
 input[1:0] xin;
 input start;
 output fdata;
 
 wire[1:0] xin;
 reg fdata;
 
 integer qx=0;
 
 always @(start or clk)
 begin
 if(!start)
 fdata<=0;
 else
 begin
 if(clk==1)
 begin
 fdata<=xin[qx];
 qx<=(qx+1)%2;
 end
 end
 end
 
 endmodule
 
 
 出错结果 现象: 输出串行数据一部分为未知数据XXXX?请高手看看哪里出问题了
 | 
 |