复件 (5) cnt_test.txt

来自「仅为VHDL语言的测试程序」· 文本 代码 · 共 1,000 行 · 第 1/2 页

TXT
1,000
字号
entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;

entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;

entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;

entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;

entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;

entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;



entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin
 if clk'event and clk='1' then
	dm<=dm+1;
end if;
dout<=dm;
end process;
end cnt_arc;


entity cnt is
port(clk:in std_logic;
	din:in std_logic_vector(3 downto 0);
	dout:out std_logic_vector(3 downto 0));
end cnt;
architecture cnt_arc of cnt is
signal dm:std_logic_vector(3 downto 0);
begin
process(clk)
begin

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?