版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、电子科技大学数字设计原理与实践课程设计报题目:自动洗衣机控制器姓名:魏玉峰学号: 2012171010009一、任务与要求设计内容: 1)进行需求分析,确定总体框架;2 )画出逻辑电路图;3 )对设计电路进行仿真; 设计要求:假设自动洗衣机的定时操作顺序是,洗衣 10min,排水 2min,脱水 3min,然后停止。设计出这个自动洗衣机的控制器。设计提示:本设计有 4 个状态,分别为初始状、洗衣系统、排水系统、和脱水状 态。当有复位信号时,系统进入循环控制状态,依次执行操作,可从信号灯观察 到所处状态。二、设计思路的介绍分析:洗衣机开机后, 自动进入循环状态, 分别进行洗衣 10min,排水
2、2min, 脱水 3min 的操作,然后回到待机状态。任意期间输入复位信号都会重新开始进 入循环控制状态。 LED指示灯与当前操作对应,处于发光状态。由以上要求可知, 所有状态共 4 种,分别为初始状态、 洗衣状态、 排水状态、 和脱水状态,即用 1个 74163计时器,输出的状态与上面一一对应, 具体见下表:0000待机0001洗衣状态0010洗衣状态0011洗衣状态0100洗衣状态0101洗衣状态0110洗衣状态0111洗衣状态1000洗衣状态1001洗衣状态1010洗衣状态1011排水状态1100排水状态1101脱水状态1110脱水状态1111脱水状态故可根据上表分别选择输出时的 741
3、63 对应输出接口三、总体方案的选择经过多次选择与比较最终选择 74163,7400 来完成电路实现计时功能。将时 钟信号设为 1/60hz,即每分钟一个上升沿。电路中采用 16个 4输入与非门, 1 个 12 输入与非门, 1 个 2 输入与非门, 1 个 3 输入与非门。 把每一个 4 输入与非 门的四个角分别于 74163的 Qd、Qc、Qb、Qa相连,而每一个 4输入与非门分 别对应一个 74163 的输出状态。当所输出状态对应了洗衣机状态时, 总输出状态 将产生变化,从而进行当前操作,具体电路图设计如下:Clk 为时钟信号 1/60hzInput 为开关按钮Clr 为复位按钮Stan
4、dby代表当前为待机状态Washing代表当前为洗衣状态Drainage代表当前为排水状态Dehydration 代表当前为洗衣状态四、Verilog HDL 代码module try3(wireSYNTHESIZED_WIRE_39;clk,wireSYNTHESIZED_WIRE_42;input,wireSYNTHESIZED_WIRE_43;clr,wireSYNTHESIZED_WIRE_44;Standby,wireSYNTHESIZED_WIRE_51;Washing,wireSYNTHESIZED_WIRE_53;Drainage,wireSYNTHESIZED_WIRE_78
5、;DehydrationwireSYNTHESIZED_WIRE_84;);wireSYNTHESIZED_WIRE_85;wireSYNTHESIZED_WIRE_86;wireSYNTHESIZED_WIRE_88;inputclk;wireSYNTHESIZED_WIRE_90;inputinput;wireSYNTHESIZED_WIRE_91;inputclr;wireSYNTHESIZED_WIRE_118;outputStandby;wireSYNTHESIZED_WIRE_95;outputWashing;wireSYNTHESIZED_WIRE_96;outputDraina
6、ge;wireSYNTHESIZED_WIRE_97;outputDehydration;wireSYNTHESIZED_WIRE_98;wireSYNTHESIZED_WIRE_99;wireSYNTHESIZED_WIRE_114;wireSYNTHESIZED_WIRE_100;wireSYNTHESIZED_WIRE_115;wireSYNTHESIZED_WIRE_101;wireSYNTHESIZED_WIRE_2;wireSYNTHESIZED_WIRE_102;wireSYNTHESIZED_WIRE_116;wireSYNTHESIZED_WIRE_103;wireSYNTH
7、ESIZED_WIRE_117;wireSYNTHESIZED_WIRE_104;wireSYNTHESIZED_WIRE_5;wireSYNTHESIZED_WIRE_105;wireSYNTHESIZED_WIRE_6;wireSYNTHESIZED_WIRE_106;wireSYNTHESIZED_WIRE_7;wireSYNTHESIZED_WIRE_107;wireSYNTHESIZED_WIRE_8;wireSYNTHESIZED_WIRE_108;wireSYNTHESIZED_WIRE_9;wireSYNTHESIZED_WIRE_112;wireSYNTHESIZED_WIR
8、E_10;wireSYNTHESIZED_WIRE_113;wireSYNTHESIZED_WIRE_12;74163 b2v_inst(wireSYNTHESIZED_WIRE_13;wireSYNTHESIZED_WIRE_16;wireSYNTHESIZED_WIRE_17;wireSYNTHESIZED_WIRE_18;.ENT(input),wireSYNTHESIZED_WIRE_23;wireSYNTHESIZED_WIRE_24;.CLRN(clr),wireSYNTHESIZED_WIRE_25;.CLK(clk),wireSYNTHESIZED_WIRE_34;.ENP(i
9、nput),wireSYNTHESIZED_WIRE_36;.LDN(input),wireSYNTHESIZED_WIRE_38;.QA(SYNTHESIZED_WIRE_115),.QB(SYNTHESIZED_WIRE_116),.QC(SYNTHESIZED_WIRE_117),.QD(SYNTHESIZED_WIRE_114);assign SYNTHESIZED_WIRE_105 = (SYNTHESIZED_WIRE_114 & SYNTHESIZED_WIRE_115 & SYNTHESIZED_WIRE_2 & SYNTHESIZED_WIRE_116
10、);assign SYNTHESIZED_WIRE_2 = SYNTHESIZED_WIRE_117;assign SYNTHESIZED_WIRE_113 = (SYNTHESIZED_WIRE_5 & SYNTHESIZED_WIRE_6 & SYNTHESIZED_WIRE_7 & SYNTHESIZED_WIRE_8);assign SYNTHESIZED_WIRE_100 = (SYNTHESIZED_WIRE_9 & SYNTHESIZED_WIRE_10 & SYNTHESIZED_WIRE_117 & SYNTHESIZED_WI
11、RE_12);assign SYNTHESIZED_WIRE_102 = (SYNTHESIZED_WIRE_13 & SYNTHESIZED_WIRE_115 & SYNTHESIZED_WIRE_117 & SYNTHESIZED_WIRE_16);assign SYNTHESIZED_WIRE_101 = (SYNTHESIZED_WIRE_17 & SYNTHESIZED_WIRE_18 & SYNTHESIZED_WIRE_117 & SYNTHESIZED_WIRE_116);assign SYNTHESIZED_WIRE_118 =
12、 (SYNTHESIZED_WIRE_114 & SYNTHESIZED_WIRE_115 & SYNTHESIZED_WIRE_23 & SYNTHESIZED_WIRE_24);assign SYNTHESIZED_WIRE_103 = (SYNTHESIZED_WIRE_25 & SYNTHESIZED_WIRE_115 & SYNTHESIZED_WIRE_117 & SYNTHESIZED_WIRE_116);assign SYNTHESIZED_WIRE_108 = (SYNTHESIZED_WIRE_114 & SYNTHE
13、SIZED_WIRE_115 & SYNTHESIZED_WIRE_117 & SYNTHESIZED_WIRE_116);assign SYNTHESIZED_WIRE_104 = (SYNTHESIZED_WIRE_114 & SYNTHESIZED_WIRE_34 & SYNTHESIZED_WIRE_117 & SYNTHESIZED_WIRE_36);assign SYNTHESIZED_WIRE_96 = (SYNTHESIZED_WIRE_114 & SYNTHESIZED_WIRE_38 & SYNTHESIZED_WIR
14、E_39 & SYNTHESIZED_WIRE_116);assign SYNTHESIZED_WIRE_95 = (SYNTHESIZED_WIRE_114 & SYNTHESIZED_WIRE_42 & SYNTHESIZED_WIRE_43 & SYNTHESIZED_WIRE_44);assign SYNTHESIZED_WIRE_7 = SYNTHESIZED_WIRE_117;assign SYNTHESIZED_WIRE_8 = SYNTHESIZED_WIRE_116;assign SYNTHESIZED_WIRE_6 = SYNTHESIZED
15、_WIRE_115;assign SYNTHESIZED_WIRE_90 = SYNTHESIZED_WIRE_117;assign SYNTHESIZED_WIRE_91 = SYNTHESIZED_WIRE_116;assign SYNTHESIZED_WIRE_97 = (SYNTHESIZED_WIRE_51 & SYNTHESIZED_WIRE_115 & SYNTHESIZED_WIRE_53 & SYNTHESIZED_WIRE_116);assign SYNTHESIZED_WIRE_88 = SYNTHESIZED_WIRE_114;assign SY
16、NTHESIZED_WIRE_84 = SYNTHESIZED_WIRE_114;assign SYNTHESIZED_WIRE_86 = SYNTHESIZED_WIRE_117;assign SYNTHESIZED_WIRE_85 = SYNTHESIZED_WIRE_115;assign SYNTHESIZED_WIRE_51 = SYNTHESIZED_WIRE_114;assign SYNTHESIZED_WIRE_53 = SYNTHESIZED_WIRE_117;assign SYNTHESIZED_WIRE_9 = SYNTHESIZED_WIRE_114;assign SYN
17、THESIZED_WIRE_12 = SYNTHESIZED_WIRE_116;assign SYNTHESIZED_WIRE_10 = SYNTHESIZED_WIRE_115;assign SYNTHESIZED_WIRE_13 = SYNTHESIZED_WIRE_114;assign SYNTHESIZED_WIRE_16 = SYNTHESIZED_WIRE_116;assign SYNTHESIZED_WIRE_17 = SYNTHESIZED_WIRE_114;assign SYNTHESIZED_WIRE_18 = SYNTHESIZED_WIRE_115;assign SYN
18、THESIZED_WIRE_25 = SYNTHESIZED_WIRE_114;assign SYNTHESIZED_WIRE_43 = SYNTHESIZED_WIRE_117;assign SYNTHESIZED_WIRE_42 = SYNTHESIZED_WIRE_115;assign SYNTHESIZED_WIRE_23 = SYNTHESIZED_WIRE_117;assign SYNTHESIZED_WIRE_112 = SYNTHESIZED_WIRE_116;assign SYNTHESIZED_WIRE_24 = SYNTHESIZED_WIRE_116;assign SY
19、NTHESIZED_WIRE_39 = SYNTHESIZED_WIRE_117;assign SYNTHESIZED_WIRE_38 = SYNTHESIZED_WIRE_115;assign SYNTHESIZED_WIRE_107 = (SYNTHESIZED_WIRE_114 & SYNTHESIZED_WIRE_78 & SYNTHESIZED_WIRE_117 & SYNTHESIZED_WIRE_116);assign SYNTHESIZED_WIRE_36 = SYNTHESIZED_WIRE_116;assign SYNTHESIZED_WIRE_34
20、 = SYNTHESIZED_WIRE_115;assign SYNTHESIZED_WIRE_78 = SYNTHESIZED_WIRE_115;assign SYNTHESIZED_WIRE_98 = (SYNTHESIZED_WIRE_84 & SYNTHESIZED_WIRE_85 & SYNTHESIZED_WIRE_86 & SYNTHESIZED_WIRE_116);assign SYNTHESIZED_WIRE_99 = (SYNTHESIZED_WIRE_88 & SYNTHESIZED_WIRE_115 & SYNTHESIZED_W
21、IRE_90 & SYNTHESIZED_WIRE_91);assign Washing = (SYNTHESIZED_WIRE_118 & SYNTHESIZED_WIRE_118 & SYNTHESIZED_WIRE_118 & SYNTHESIZED_WIRE_95 & SYNTHESIZED_WIRE_96 & SYNTHESIZED_WIRE_97 & SYNTHESIZED_WIRE_98 & SYNTHESIZED_WIRE_99 & SYNTHESIZED_WIRE_100 & SYNTHESIZED_WIRE_101 & SYNTHESIZED_WIRE_102 & SYNTHESIZED_WIRE_103);assign Drainage = (SYNTHESIZED_WIRE_104 & SYNTHESIZED_WIRE_105)
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 浣溪沙晏殊课件第一
- 大学班长管理
- 店铺会议管理
- 职业规划护理大专
- 妊娠期高血压医疗护理查房60
- 医院护士个人年终总结范文3篇
- 简单辞职报告(10篇)
- 德育干事工作总结
- 第一季度工作总结
- 重症肺炎护理查房中医
- ☆问题解决策略:直观分析 教案 2024-2025学年北师大版七年级数学上册
- 生物脊椎动物-鱼课件 2024-2025学年人教版生物七年级上册
- Revision Lesson 2(教案)-2024-2025学年人教PEP版(2024)英语三年级上册
- 福建省公路水运工程试验检测费用参考指标
- 创新实践(理论)学习通超星期末考试答案章节答案2024年
- 译林版(2024年新版)七年级上册英语 Unit 7单元测试卷(含答案)
- DB65-T 4784-2024 冰川范围调查技术规范
- 药物化学智慧树知到答案2024年徐州医科大学
- 期末+(试题)+-2024-2025学年人教PEP版英语六年级上册
- 《物流信息技术与应用》期末考试复习题库(含答案)
- LNG加气站运营与维护方案
评论
0/150
提交评论