数字逻辑chapter5_b概要1.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
数字逻辑chapter5_b概要1

5.3.8 The Time Dimension VHDL allows you to specify a time delay using the keyword After in any signal-assignment statement (sequentical, concurrent, conditional or selected). Example of the use of after: Z = ‘1’ after 4 ns when X=‘1’ and Y=‘0’ else ‘0’ after 3 ns; To model an inhibit gate that has 4ns of delay on a 0-to-1 output transition and only 3 ns on a 1-to-0 output transition . VHDL wait statement The sequential statement wait suspends a process for a specified time period. Example: to generate input waveform architecture InhibitTB_arch of InhibitTestBench is component Inhibit port (X,Y: in BIT; Z: out BIT); end component; signal XT,YT,ZT: BIT; begin U1: Inhibit port map (XT,YT,ZT) process begin XT = 0; YT = ‘0; wait for 10 ns; XT = 0; YT = ‘1; wait for 10 ns; XT = ‘1; YT = ‘0; wait for 10 ns; XT = ‘1; YT = ‘1; wait ; -- this suspends the process indefinitely end process; end InhibitTB_arch; 5.3.9 Simulation We can use simulator to observe VHDL program’s operation. With a time-based event list and a signal-sensitivity matrix based on the signal-sensitivity lists of all the processes, the simulator can finish the simulation. Simulator operation begins at simulation time of zero. Then it begins the execution of all the processes and concurrent statements in the design. Simulation cycle: at simulation time zero, one of the processes is executed. When it is completed, another one is selected for execution, and so on, until all of the processes have been executed. 5.3.10 Test Benches Test Bench specifies a sequence of inputs to be applied by the simulator to an HDL-based design ,such as a VHDL entity. The basic parts of a VHDL test-bench program: There is an entity declaration , it has no inputs or outputs. Architecture definition makes a component declaration for the UUT, the UUT is instantiated using local signals for its inputs and outputs. A process with no sensitivity list starts at simulation tim

文档评论(0)

yaocen + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档