qq_31156045 2016-09-08 08:33 采纳率: 0%
浏览 1380
已结题

ISE编程遇到一些问题,新手求问

提示错误ERROR:HDLParsers:164 - "G:/040141/a/top.vhd" Line 610. parse error, unexpected IF, expecting PROCESS
代码如下:

 process(clk3,timer,reset,change)
begin
if reset='1' then
dis2<="0001";
dis3<="0000"; ----------dis2,dis3 表示1 分钟


elsif rising_edge(clk3) then
if timer='1' then

if ifstart='1' then

if dis0="0000" and dis1="0000" then

if dis2="0000" then
dis2<="1001";
if dis3="0000" then
dis3<="0101";
else
dis3<=dis1-'1';
end if;

else
dis2<=dis2-'1';
end if;

end if;

end if;


 -------自定义的倒计时时间
elsif change='1' and rising_edge(clk3) then

if dis2="1001" then
dis2<="0000";

if dis3="0101" then
dis3<="0000";
else
dis3<=dis3+1;
end if ;

else
dis2<=dis2+1;
end if;

end if;

end if;

end if;
end if;
end process;

  • 写回答

1条回答

报告相同问题?

悬赏问题

  • ¥15 运筹学中在线排序的时间在线排序的在线LPT算法
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧