async.vhd
来自「多个Verilog和vhdl程序例子」· VHDL 代码 · 共 47 行
VHD
47 行
-- Asynchronous state machines (small ones)
-- Do not give these designs to a synthesis tool because the
-- optimizer will remove the gates you put in for hazard suppression.
--
-- Synplify-Lite correctly gives a "Found combinational loop"
-- error message for these designs to remind you that you should
-- not design asynchronous state machines with a synthesis tool
-- unless you explicitly instantiate technology primitives from
-- your target library. (They are not optimized out of the netlist).
library ieee;
use ieee.std_logic_1164.all;
entity async is
-- output is a buffer mode so that it can be read
port (output : buffer std_logic ;
g, d : in std_logic ) ;
end async ;
architecture async1 of async is
begin
output <= (((((g and d) or (not g)) and output)or d) and output) ;
end async1;
architecture async2 of async is
begin
process (g, d, output)
begin
output <= (((((g and d) or (not g)) and output) or d) and output) ;
end process;
end async2;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?