Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1011450
  • 博文数量: 159
  • 博客积分: 4079
  • 博客等级: 上校
  • 技术积分: 2373
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-24 13:35
个人简介

诚实守信!

文章分类

全部博文(159)

文章存档

2015年(2)

2014年(18)

2013年(9)

2012年(57)

2011年(31)

2009年(42)

分类:

2009-09-08 14:31:04

// MUX2_1.v
/********************************文件信息***********************************
**文件名字: MUX_2.v
**创建日期: 2008.07.10
**版本号: v1.0
**功能描述: 二选一两路选择器
**
****************************************************************************/
module MUX_2(
out,
cnt,
a,
b
);
output out; //输出端口
input cnt; //选择端口
input a; //端口1
input b; //端口2
wire aval; //门与门之间的信号线
wire bval;
wire cntbar;
not(cntbar,cnt);
and(aval,cntbar,a);
and(bval,cnt,b);
or(out,aval,bval);
endmodule
阅读(1071) | 评论(0) | 转发(0) |
0

上一篇:流水灯4

下一篇:或非门

给主人留下些什么吧!~~