cout10.txt
来自「梁祝乐曲演奏电路设计」· 文本 代码 · 共 42 行
TXT
42 行
library ieee;
use ieee.std_logic_1164.all;
package my_pkg_1 is
component cnt10_1
port(clk,clrn,ena,ldn:in std_logic;
d:in std_logic_vector(3 downto 0);
q:out std_logic_vector(3 downto 0);
cout:out std_logic);
end component;
component cnt6_1
port(clk,clrn,ena,ldn:in std_logic;
d:in std_logic_vector(3 downto 0);
q:out std_logic_vector(3 downto 0);
cout:out std_logic);
end component;
component and2_1
port(a,b:in std_logic;
y:out std_logic);
end component;
end my_pkg_1;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity and2_1 is
port (a,b: in std_logic;
y:out std_logic);
end and2_1;
architecture one of and2_1 is
begin
y<=a and b;
end one;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?