dff_ors.vhd
来自「多个Verilog和vhdl程序例子」· VHDL 代码 · 共 38 行
VHD
38 行
library ieee;
use ieee.std_logic_1164.all;
entity dff_or is
port (a, b, clk: in std_logic;
q: out std_logic);
end dff_or;
architecture sensitivity_list of dff_or is
begin
process (clk) -- clock name is in sensitivity list
begin
if rising_edge(clk) then
q <= a or b;
end if;
end process;
end sensitivity_list ;
architecture wait_statement of dff_or is
begin
process -- note the absence of a sensitivity list.
begin
-- the process waits here until the condition becomes true
wait until rising_edge(clk);
q <= a or b;
end process;
end wait_statement ;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?