文件名称:vhdl
-
所属分类:
- 标签属性:
- 上传时间:2013-06-11
-
文件大小:369.47kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
library ieee
use ieee.std_logic_1164.all
entity decoder is
port (clk:in std_logic
clr:in std_logic
data_in:in std_logic --待解码信元输入端;
data_out:out std_logic) --解码信元输出端;
end decoder
architecture behave of decoder is
component dff2 --上升沿D 触发器;
port(d,clk,clr:in std_logic
q:out std_logic)
end component
component xor2 --两输入异或门;
port (a,b:in std_logic
y:out std_logic)
end component
--一输入两输出电子开关;
component switch21
port (clk,d,clr:in std_logic
y:out std_logic)
end component
component emendation --校正电路;
port (d,clk,clr:in std_logic
y:out std_logic)
end component
signal s1,s2,s3,s4,s5: std_logic
begin
u0:switch21 port map (data_in ,clk,clr,s1,s2)
u1: emendation port map (s1,clk,clr,s3)
u2: dff2 port map (s2,clk,clr,s4)
u3: xor2 port map (s3,s4,s5)
data_out <= s5
end -library ieee use ieee.std_logic_1164.all entity decoder is port (clk: in std_logic clr: in std_logic data_in: in std_logic - be decoded cell inputs data_out: out std_logic) - Decoding Cell output end decoder architecture behave of decoder is component dff2- edge D flip-flop port (d, clk, clr: in std_logic q: out std_logic) end component component xor2- two input XOR gate port (a, b: in std_logic y: out std_logic) end component - an input two output electronic switch component switch21 port (clk, d, clr: in std_logic y: out std_logic) end component component emendation- correction circuit port (d, clk, clr: in std_logic y: out std_logic) end component signal s1, s2, s3, s4, s5: std_logic begin u0: switch21 port map (data_in, clk , clr, s1, s2) u1: emendation port map (s1, clk, clr, s3) u2: dff2 port map (s2, clk, clr, s4) u3: xor2 port map (s3, s4, s5) data_out < = s5 end
use ieee.std_logic_1164.all
entity decoder is
port (clk:in std_logic
clr:in std_logic
data_in:in std_logic --待解码信元输入端;
data_out:out std_logic) --解码信元输出端;
end decoder
architecture behave of decoder is
component dff2 --上升沿D 触发器;
port(d,clk,clr:in std_logic
q:out std_logic)
end component
component xor2 --两输入异或门;
port (a,b:in std_logic
y:out std_logic)
end component
--一输入两输出电子开关;
component switch21
port (clk,d,clr:in std_logic
y:out std_logic)
end component
component emendation --校正电路;
port (d,clk,clr:in std_logic
y:out std_logic)
end component
signal s1,s2,s3,s4,s5: std_logic
begin
u0:switch21 port map (data_in ,clk,clr,s1,s2)
u1: emendation port map (s1,clk,clr,s3)
u2: dff2 port map (s2,clk,clr,s4)
u3: xor2 port map (s3,s4,s5)
data_out <= s5
end -library ieee use ieee.std_logic_1164.all entity decoder is port (clk: in std_logic clr: in std_logic data_in: in std_logic - be decoded cell inputs data_out: out std_logic) - Decoding Cell output end decoder architecture behave of decoder is component dff2- edge D flip-flop port (d, clk, clr: in std_logic q: out std_logic) end component component xor2- two input XOR gate port (a, b: in std_logic y: out std_logic) end component - an input two output electronic switch component switch21 port (clk, d, clr: in std_logic y: out std_logic) end component component emendation- correction circuit port (d, clk, clr: in std_logic y: out std_logic) end component signal s1, s2, s3, s4, s5: std_logic begin u0: switch21 port map (data_in, clk , clr, s1, s2) u1: emendation port map (s1, clk, clr, s3) u2: dff2 port map (s2, clk, clr, s4) u3: xor2 port map (s3, s4, s5) data_out < = s5 end
(系统自动生成,下载前可以参看下载内容)
下载文件列表
vhdl.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.