程序:
always @ (posedge clk_in or negedge reset)
begin
if(!reset)
begin
cnt_clk_in <= 0;
state_w <= stept0;
{w1,w2} <=2'bol;
end
else
begin
cnt_clk_in <= cnt_clk_in + l;
cnt_ww <= cnt_ww + 1;
case(state_w)
stept0:
begin
state_w <= steptl;
w1 <= 1;
w2 <= 0;
end
stept1:
begin
case(cnt_clk_in)
s2:
begin
w1 <= 0;
w2 <= l;
end
150:
begin
state_w <= stept2;
cnt_clk_in <= 0;
w1 <= 1;
w2 <= 0;
end
endcase
end
stept2:
begin
if(cnt_ww == s3)
begin
cnt_ww <= 0;
state_w <= stept0;
cnt_clk_in <= 0;
end
else
if(cnt_elk_in == s2)
begin
cnt_clk_in <= 0;
w1 <=~w1;
w2 <=~w2;
end
end
endcase
end
end
verilog hdl 怎么转换成vhdl
答案:2 悬赏:70 手机版
解决时间 2021-01-03 10:02
- 提问者网友:遮云壑
- 2021-01-03 06:28
最佳答案
- 五星知识达人网友:不想翻身的咸鱼
- 2021-01-03 07:54
搜索 X-HDL
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯