博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【verilog_4】: 设计一个 16 选 1 选择器 Design a 16-to-1 selector
阅读量:3940 次
发布时间:2019-05-24

本文共 766 字,大约阅读时间需要 2 分钟。

设计一个 16 选 1 选择器 Design a 16-to-1 selector

法一

author : Mr.Maoe-mail : 2458682080@qq.commodule mux16_1(	input [3:0] sel,	input [15:0] D,	output Y);assign Y = D[sel];endmodule

法二

author : Mr.Maoe-mail : 2458682080@qq.commodule MUX16_1(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,s0,s1,s2,s3,y);input a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p;input s0,s1,s2,s3;output y;reg y;always@(*)begin   case({s0,s1,s2,s3})     4'b0000 : y <= a ;	  4'b0001 : y <= b ;	  4'b0010 : y <= c ;	  4'b0011 : y <= d ;	  4'b0100 : y <= e ;	  4'b0101 : y <= f ;	  4'b0110 : y <= g ;	  4'b0111 : y <= h ;	  4'b1000 : y <= i ;	  4'b1001 : y <= j ;	  4'b1010 : y <= k ;	  4'b1011 : y <= l ;	  4'b1100 : y <= m ;	  4'b1101 : y <= n ;	  4'b1110 : y <= o ;	  4'b1111 : y <= p ;	  default : y <= a ;	endcaseendendmodule

转载地址:http://fyiwi.baihongyu.com/

你可能感兴趣的文章
J2ME游戏源代码免费下载——国外Digiment公司商业化代码
查看>>
手机银行技术应用探讨
查看>>
角色扮演游戏引擎的设计原理
查看>>
j2me开发FAQ整理
查看>>
J2ME程序开发新手入门九大要点
查看>>
双向搜索算法
查看>>
日本GAME製作方式
查看>>
移动行业术语资料
查看>>
3G到来将全面颠覆SP、CP游戏规则
查看>>
射击游戏中跟踪弹及小角度移动的开发
查看>>
完美的软件项目开发团队结构
查看>>
数学的重要性
查看>>
how Google routed around Sun’s IP-based licensing restrictions on Java ME
查看>>
JAVA面试题最全集
查看>>
JAVA面试题集
查看>>
Embedded System Interview Questions:
查看>>
The Standalone Programmer:Tips from the trenches
查看>>
优化C代码常用的几招
查看>>
Embedded firmware interview questions
查看>>
一道微软亚洲工程院C语言笔试题的解答
查看>>