- 1
- 0
- 约3.75千字
- 约 15页
- 2020-01-29 发布于辽宁
- 举报
* * * * * * * * * * * * * * * 12. Describe sequential systems in VHDL 12.1 Defining clocks, flip-flops and registers 12.2 Register Transfer Level (RTL) Coding 12.3 Sequential logic * 12.1 Defining clocks, flip-flops registers 1. Defining a clock signal PROCESS BEGIN clock = ‘0’; WAIT FOR 10 NS; clock = ‘1’ WAIT FOR 10 NS; END PROCESS; There are many ways to define a clock. For example: Simulation waveform * 12.1 Defining clocks, flip-flops registers 2. The D-type flip-flop LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; ENTITY dff IS PORT ( d, clock: IN STD_LOGIC; Q: OUT STD_LOGIC); END ENTITY dff; ARCHITECTURE correct OF dff IS BEGIN PROCESS (clock) BEGIN IF ( rising_edge(clock) ) THEN q = d; END IF; END PROCESS; END ARCHITECTURE correct; * 12.1 Defining clocks, flip-flops registers 3. The D-type flip-flop with reset If the Reset is synchronous, then it is ignored until the rising edge of the clock. When the rising edge comes, if Reset=’1’ then q goes to ‘0’. If Reset=’0’, then the flip-flop exhibits normal behavior, i.e. q=d. (1)If the Reset is synchronous * 12.1 Defining clocks, flip-flops registers LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; -- D-type flip-flop ENTITY dff IS PORT ( d : IN STD_LOGIC; -- Data input clock: IN STD_LOGIC; -- Clock input reset: IN STD_LOGIC; -- Reset input Q : OUT STD_LOGIC); -- Output END ENTITY dff; ENTITY definition * 12.1 Defining clocks, flip-flops registers ARCHITECTURE synch_reset OF dff IS BEGIN PROCESS (clock) BEGIN IF ( rising_edge(clock) ) THEN IF ( reset=’1’ ) THEN q = ‘0’; ELSE q = d; END IF; END IF; END PROCESS; END ARCHITECTURE synch_reset; Architecture declaration * 12.1 Defining clocks, flip-flops registers If the Reset is asynchronous, then it takes immediate effect, no matter what
您可能关注的文档
- 数字化摄影技术009第九章 数字摄影的其他技术.ppt
- 数字化摄影技术011第十一章 摄影构图.ppt
- 数字化摄影技术013第十三章 专题摄影.ppt
- 数字化摄影技术014第十四章 艺术摄影.ppt
- 数字化摄影技术015第十五章 新闻摄影.ppt
- 数字化摄影技术017第十七章 体育摄影.ppt
- 数字化摄影技术018第十八章 科技摄影.ppt
- 数字逻辑第1章(2014).ppt
- 数字逻辑第2章(2014).ppt
- 数字逻辑第4章-1.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)