pros_com.vhd
来自「大家一定要看 哦 程序在与多看多练 我找了好久才找到呢」· VHDL 代码 · 共 27 行
VHD
27 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity pros_com is
port(event_a:in bit);
end pros_com;
architecture catch_ball of pros_com is
signal to_a,to_b: bit :='0';
begin
a:
process(event_a,to_a)
begin
if(event_a'event and event_a='1')then
to_b<='1' after 20 ns;
to_b<='0' after 30 ns;
end if;
end process a;
b:
process(to_b)
begin
if(to_b'event and to_b='1')then
to_a<='1' after 10 ns;
to_a<='0' after 20 ns;
end if;
end process b;
end catch_ball;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?