📄 counter_using_multiple_wait.vhd
字号:
--Counter using Multiple Wait Statements--This example shows an inefficient way of describing a counter.--vhdl model of a 3-state counter illustrating the use--of the WAIT statement to suspend a process.At each wait--statement the simulation time is updated one cycle,transferring--the driver value to the output count.--This architecture shows that there is no difference between--WAIT UNTIL (clock'EVENT AND clock = '1') and WAIT UNTIL clock = '1'ENTITY cntr3 ISPORT(clock : IN BIT; count : OUT NATURAL);END cntr3;ARCHITECTURE using_wait OF cntr3 ISBEGINPROCESSBEGIN--WAIT UNTIL (clock'EVENT AND clock = '1');WAIT UNTIL clock = '1';count <= 0;--WAIT UNTIL (clock'EVENT AND clock = '1');WAIT UNTIL clock = '1';count <= 1;--WAIT UNTIL (clock'EVENT AND clock = '1');WAIT UNTIL clock = '1';count <= 2;END PROCESS;END using_wait;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -