📄 altera epld
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0075)http://202.106.168.89/~edworld/design_tools/muxplusii/tutorial/maxplus5.htm -->
<HTML><HEAD><TITLE>Altera EPLD教程</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content=none name="Microsoft Border">
<META content="MSHTML 5.00.2014.210" name=GENERATOR></HEAD>
<BODY>
<P><I><FONT color=#ff0000><A
href="http://202.106.168.89/~edworld/design_tools/muxplusii/tutorial/maxplus4.htm">上一页</A></FONT></I></P>
<P><FONT size=6><I>仿真</I></FONT></P>
<P>设计已经完成,但功能是否完全正确呢?只要进行一下仿真就能知道</P>
<P>首先,要编辑一个波形文件,打开MAX+plus II->Waveform Editor</P>
<P><IMG border=0 height=280 src="Altera EPLD教程5.files/maxj.gif" width=493></P>
<P>然后确定仿真的时长,选择File->End Time,输入100us,确定</P>
<P><IMG border=0 height=92 src="Altera EPLD教程5.files/maxk.gif" width=200></P>
<P>还需要确定仿真的最小时间单位,选择Option->Grid Size,输入50ns,确定</P>
<P><IMG border=0 height=88 src="Altera EPLD教程5.files/maxl.gif" width=185></P>
<P>下面开始输入要仿真的信号名称,选择Node->Enter Node From
SNF,在弹出的对话框中按List按钮,可以看到我们前面定义的I/O:in、out</P>
<P><IMG border=0 height=314 src="Altera EPLD教程5.files/maxm.gif" width=555></P>
<P>按=>选择要增加的Nodes,把in、out都加入,确定,in、out出现在Wave Editor中</P>
<P><IMG border=0 height=280 src="Altera EPLD教程5.files/maxn.gif" width=493></P>
<P>按in的图标,选中信号in,在左侧的工具按钮上选择时钟工具</P>
<P><IMG border=0 height=483 src="Altera EPLD教程5.files/maxo.gif" width=642></P>
<P>在弹出的对话框中按确认</P>
<P><IMG border=0 height=136 src="Altera EPLD教程5.files/maxp.gif" width=312></P>
<P>用左侧工具调整显示比例,得到以下波形</P>
<P><IMG border=0 height=280 src="Altera EPLD教程5.files/maxq.gif" width=493></P>
<P>这就在in脚上加入了一个周期是100ns的信号</P>
<P>将波形文件存盘为myfirst.scf,选择MAX+plus II->Simulator调入仿真器</P>
<P><IMG border=0 height=280 src="Altera EPLD教程5.files/maxr.gif" width=493></P>
<P>直接按Start启动仿真,仿真结束后按Open SCF,可以看到仿真结果</P>
<P><IMG border=0 height=280 src="Altera EPLD教程5.files/maxs.gif" width=493></P>
<P>可以看出out脚输出正确,实现了二分频,另外,输出和输入之间的实际时延也被仿真出来了</P>
<P><I><FONT color=#ff0000><A
href="http://202.106.168.89/~edworld/design_tools/muxplusii/tutorial/maxplus6.htm">下一页</A></FONT></I></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -