FPGA Verilog代码编写问题
答案:1 悬赏:10 手机版
解决时间 2021-04-04 23:47
- 提问者网友:情歌越听越心酸
- 2021-04-04 04:16
FPGA Verilog代码编写问题
最佳答案
- 五星知识达人网友:空山清雨
- 2021-04-04 05:04
always @(posedge keydone, posedge reset) begin
if (reset)
{SH,SL,FH,FL} <= 0;
count <= 0;
else
{SH,SL,FH,FL} <= {SL,FH,FL,data_in};
if (count == 5)
count <= 1;
else
count <= count + 1;
end
assign data_ready = count == 4;
if (reset)
{SH,SL,FH,FL} <= 0;
count <= 0;
else
{SH,SL,FH,FL} <= {SL,FH,FL,data_in};
if (count == 5)
count <= 1;
else
count <= count + 1;
end
assign data_ready = count == 4;
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯