




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、七段数码管译码器library ieee;entity seg7_1 isport(a: in std_logic_vector(3 downto 0;b: out std_logic_vector(6 downto 0;end entity seg7_1;architecture one of seg7_1 isbegin process(abegin case a iswhen"0000" => b<="1111110"when"0001" => b<="0110000"when&quo
2、t;0010" => b<="1101101"when"0011" => b<="1111001"when"0100" => b<="0110011"when"0101" => b<="1011011"when"0110" => b<="1011111"when"0111" => b<="0001111&q
3、uot;when"1000" => b<="1111111"when"1001" => b<="1111011"when others => b<="0000000"end case;end process;end ;表决器library ieee;entity vote isport(I: in std_logic_vector(3 downto 0;Y: out std_logic;end entity vote;architecture one of v
4、ote isbeginY<=(I(2 and I(1 and I(0 or (I(3 and I(2 and I(0 or (I(3 and I(1 and I(0 or (I(3 and I(2 and I(1;end one;半加器library ieee;entity hadder isport(a,b: in std_logic;s,co: out std_logic;end entity hadder;architecture one of hadder isbegins<=a xor b;co<=a and b;end one;全加器library ieee;en
5、tity fadder isport(ain,bin,cin: in std_logic;cout,sum: out std_logic;end entity fadder;architecture one of fadder iscomponent hadderport(a,b:in std_logic;co,s:out std_logic;end component ;signal d,e,f:std_logic;beginu1:hadder port map (a=>ain,b=>bin,co=>d,s=>e; u2:hadder port map (a=>
6、e,b=>cin,co=>f,s=>sum; cout<=d or f;end;四位串型加法器library ieee;entity adder4 isport(A,B: in std_logic_vector(3 downto 0;M: in std_logic;R:in std_logic;S: out std_logic_vector(3 downto 0;C: out std_logic;end entity adder4;architecture a of adder4 iscomponent fadderport(ain,bin,cin:in std_log
7、ic;cout,sum:out std_logic;end component ;signal D,F:std_logic_vector(3 downto 0;beginD(0<=M xor B(0;D(1<=M xor B(1;D(2<=M xor B(2;D(3<=M xor B(3;F(0<=M xor R;u1:fadder port map (ain=>A(0,bin=>D(0,cin=>F(0,cout=>F(1,sum=>S(0; u2:fadder port map (ain=>A(1,bin=>D(1,cin=>F(1,cout=>F(2,sum=>S(1; u3:fadder port map (ain=>A(2,bin=>D(2,cin=&g
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 租房给卖炮的人合同协议
- 指标房购房合同转让协议
- 旅行社合同终止协议范本
- 新版的无息借款合同范本
- 服装联营合同协议书范本
- 抖音短视频推广合同范本
- 重庆山城课件
- 暑假复习:带电粒子在电场中的运动(学生版) -2025人教版新高二物理暑假专项提升
- 老年人误吸的预防课件
- 《英语专业毕业实习》课程简介与教学大纲
- 建筑安全员c2考试题库及答案
- 2025广东惠州惠城区招聘社区工作站工作人员66人笔试备考试题及答案解析
- 2025年中学教师资格考试《综合素质》核心考点特训题库(含答案)之教育文化素养论述题库
- 2025海南省老干部服务管理中心招聘事业编制人员6人(第1号)笔试参考题库附答案解析
- 2025-2026人教版(2024)二年级上册数学教学计划
- 湖北省利川市2025年上半年公开招聘辅警试题含答案分析
- 八年级历史上学期 导言课 课件(内嵌视频)
- 1.1.2 生物的特征 同步练习(含解析)人教版(2024)初中生物学七年级上册
- 2025云南玉溪国润建筑有限责任公司招聘工作人员10人笔试备考题库及答案解析
- 2025云南省腾冲市边防办招聘边境专职联防员(10人)笔试备考试题及答案解析
- 湘教版七年级地理上册同步课时教学设计
评论
0/150
提交评论