10
Jul.2008
library a40mx;
use a40mx.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
entity test is port(qout:out std_logic; clkin,clrin:in std_logic);
end test;
architecture structual of test is component dfcib port(d:in std_logic; clk:in std_logic; clr:in std_logic; q:out std_logic);
end component;
component xnor2 port(a:in std_logic; b:in std_logic; y:out std_logic);
end component;
signal q1:std_logic;
signal q2:std_logic;
signal q3:std_logic;
signal q4:std_logic;
signal y1:std_logic;
begin qout<=q4;
u1:dfcib port map (y1,clkin,clrin,q1);
u2:dfcib port map (q1,clkin,clrin,q2);
u3:dfcib port map (q2,clkin,clrin,q3);
u4:dfcib port map (q3,clkin,clrin,q4);
u5:xnor2 port map (q3,q4,y1);
end structual;
use a40mx.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
entity test is port(qout:out std_logic; clkin,clrin:in std_logic);
end test;
architecture structual of test is component dfcib port(d:in std_logic; clk:in std_logic; clr:in std_logic; q:out std_logic);
end component;
component xnor2 port(a:in std_logic; b:in std_logic; y:out std_logic);
end component;
signal q1:std_logic;
signal q2:std_logic;
signal q3:std_logic;
signal q4:std_logic;
signal y1:std_logic;
begin qout<=q4;
u1:dfcib port map (y1,clkin,clrin,q1);
u2:dfcib port map (q1,clkin,clrin,q2);
u3:dfcib port map (q2,clkin,clrin,q3);
u4:dfcib port map (q3,clkin,clrin,q4);
u5:xnor2 port map (q3,q4,y1);
end structual;
作者:菜鸟学编程@Bo-Blog
地址:http://www.node-net.org/read.php?14
版权所有©转载时必须以链接形式注明作者和原始出处及本声明!
ch168
2008/11/18 20:30
这个程序library a40mx; 是你自己定义的吧。。放出这个程序我们也不明白啊。。
分页: 1/1
1
1














vhdl 7输入并入串出


