latchor1.vhd
来自「多个Verilog和vhdl程序例子」· VHDL 代码 · 共 18 行
VHD
18 行
library ieee;
use ieee.std_logic_1164.all;
entity latchor1 is
port (a, b, clk : in std_logic;
-- q has mode buffer so it can be read inside architecture
q: buffer std_logic );
end latchor1;
architecture behave of latchor1 is
begin
q <= a or b when clk = '1' else q;
end behave;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?