- 0
- 0
- 约6.27千字
- 约 25页
- 2020-01-29 发布于辽宁
- 举报
11.2 VHDL simulation of dataflow code VHDL simulation uses an infinitesimal time intervalδto keep track of the delays that happen to signals as they are assigned. At time 10+δ, n1 takes its new value, which triggers: sum = cin XOR n1; Time = 10+δ * 11.2 VHDL simulation of dataflow code At time 10+2δ,sum takes its new value. Time = 10+2δ There are no statements with sum on the RHS, so no further statements are triggered. * 11.3 Simulation of structural VHDL The VHDL code for the adder is LIBRARY ieee; USE ieee.std_logic_1164.ALL; ENTITY adder IS PORT ( x, y: IN STD_LOGIC_VECTOR(3 DOWNTO 0); cin: IN STD_LOGIC; sum: OUT STD_LOGIC_VECTOR(3 DOWNTO 0); cout: OUT STD_LOGIC); END ENTITY adder; ARCHITECTURE structural OF adder IS SIGNAL carry: STD_LOGIC_VECTOR(4 DOWNTO 0); BEGIN c0: entity work.fulladd(dataflow) PORT MAP (x(0),y(0),cin,sum(0),carry(1)); * 11.3 Simulation of structural VHDL c1: entity work.fulladd(dataflow) PORT MAP (x(1),y(1),carry(1),sum(1),carry(2)); c2: entity work.fulladd(dataflow) PORT MAP (x(2),y(2),carry(2),sum(2),carry(3)); c3: entity work.fulladd(dataflow) PORT MAP (x(3),y(3),carry(3),sum(3),cout); END ARCHITECTURE structural; Continued During simulation all statements are active at the same time, and will be triggered to execute and re-compute their output values if any of their input signals changes. * 11.4 The uninitialized logic value When a digital electronic device is switched on, all bits stored in flip-flops and memory will initially go to a random value which could be a 1 and could be a 0. This is the value that VHDL refers to as ‘U’. It is important for simulation to verify that these random initialization values do not corrupt the subsequent behavior of the device. Normally, the simulator will initialize all internal signals to ‘U’ instead of 0 and trigger an event on all signals. 1. The uninitialized logic valu
您可能关注的文档
- 数字化摄影技术007第七章 影像的清晰度.ppt
- 数字化摄影技术009第九章 数字摄影的其他技术.ppt
- 数字化摄影技术011第十一章 摄影构图.ppt
- 数字化摄影技术013第十三章 专题摄影.ppt
- 数字化摄影技术014第十四章 艺术摄影.ppt
- 数字化摄影技术015第十五章 新闻摄影.ppt
- 数字化摄影技术017第十七章 体育摄影.ppt
- 数字化摄影技术018第十八章 科技摄影.ppt
- 数字逻辑第1章(2014).ppt
- 数字逻辑第2章(2014).ppt
- 25-26学年政治(部编版)选择性必修第二册课件:第1单元 周清1 民法中的人身权及财产权.pptx
- 25-26学年政治(部编版)选择性必修第二册课件:1.4.1 权利保障 于法有据.pptx
- 2025北京丰台区高二(上)期中地理(A卷)含答案.docx
- 2025北京三帆中学初三(上)开学考英语试题含答案.docx
- 2025北京一零一中初三9月月考语文试题含答案.docx
- 2025北京海淀区初三(上)期中道法试题含答案.docx
- 2025北京丰台区高一(上)期中政治(A卷)含答案.docx
- 25-26学年政治统编版必修4课件:3.3 唯物辩证法的实质与核心.pptx
- 25-26学年政治统编版必修4课件:7.2 正确认识中华传统文化.pptx
- 湖北省部分高中2026届高三上学期二模联考 历史试卷.docx
原创力文档

文档评论(0)