马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
×
always@(posedge clk)
begin
if(key)
begin
SSEL<=0;
end
else if(cnt==8)//发完8个数据后片选拉高
SSEL<=1;
end always@(posedge SCK)
begin
if(cnt==8||SSEL==1)
begin
cnt<=0;
end
else if(!SSEL)
begin
cnt<=cnt+1;
end
end |