- 77
- 0
- 约2.96千字
- 约 7页
- 2017-01-19 发布于重庆
- 举报
VHDL四位加法器實验报告
硬件描述语言实验:四位加法器实验
实验人姓名: 王 昭
学号: 2010482062
实验地点: B3-216
实验三:
-- Quartus II VHDL Template
-- Basic Shift Register
library ieee;
use ieee.std_logic_1164.all;
entity adder4 is
port
(
a ,b : in std_logic_vector (3 downto 0);
ci : in std_logic;
s : out std_logic_vector (3 downto 0);
co :out std_logic
);
end entity;
architecture rtl of adder4 is
signal c0,c1,c2 : std_logic;
begin
s(0) = a (0) xor b(0) xor ci;
c0= (a(0) and b(0)) or (a(0) and ci) or (b(0) and ci);
s(1)=a(1) xor b(1) xor c0;
c1=(a(1) and b(1)) or (a(1) and c0) or (b(1) and c0
您可能关注的文档
最近下载
- 魔兽世界所有烹饪图纸.doc VIP
- 中国公民康素养66条.doc VIP
- 2026中国口腔护理高端化趋势与细分赛道机会识别报告.docx
- 《危机应对与舆情管理》课程大纲(本科).pdf VIP
- 高中数学 第二章 空间向量与立体几何 2 空间向量的运算课件 北师大版选修2-1.ppt VIP
- 空间向量的运算[北师大].doc VIP
- 公共关系口才重点.doc VIP
- 2006年7月全国自考03292《公共关系口才》-济南自考网.doc VIP
- AP英语语言与写作 2015年真题 附答案和评分标准 AP English Language and Composition 2015 Exam with Answers.pdf VIP
- 石门揭煤防突专项设计.pdf VIP
原创力文档

文档评论(0)