博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
1. 38译码器
阅读量:6932 次
发布时间:2019-06-27

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

38译码器


1 library IEEE; 2 use IEEE.STD_LOGIC_1164.ALL; 3 use ieee.std_logic_signed.all; 4  5  6 entity top is 7 port ( 8         sel: in std_logic_vector (2 downto 0); 9         y: out std_logic_vector(7 downto 0)10 --    sel : in bit;11 --    y : out bit12     13 );14 end top;15 16 architecture Behavioral of top is17 18 begin19 process (sel)20 21 begin22 --if(sel='0') then y<='0';23 --else y<='1';24 --end if;25     case sel is26         when "000" => y<="00000001";27         when "001" => y<="00000010";28         when "010" => y<="00000100";29         when "011"  => y<="00001000";30         when "100"=> y<="00011000";31         when "101" => y<="00100000";32         33         when "110" => y<="01000000";34         when "111" => y<="10000000";35         when others =>null;36     end case;37 end process;38 end Behavioral;

 

转载于:https://www.cnblogs.com/584709796-qq-com/p/5149861.html

你可能感兴趣的文章
js 验证表单 js提交验证类
查看>>
MySQL--query-cache
查看>>
Android使用XML全攻略(2)
查看>>
[USACO08FEB]酒店Hotel
查看>>
卫生纸效果,哈哈
查看>>
mysql导入excel数据
查看>>
Java中写入文件时换行符用"\r\n"、"\n"、"\r"?
查看>>
AIX 命令
查看>>
安装终端服务和终端服务授权,激活终端服务授权
查看>>
朋友,别在降低别人底线或被别人降低底线了!
查看>>
先考学历还是先提升能力?
查看>>
软件项目开发无成熟框架套路之成本代价
查看>>
设计模式(3)-装扮你的类(装饰模式)
查看>>
Android 数字签名学习笔记
查看>>
Linux下Gedit + Gmate ,实用的编辑器
查看>>
OO学习之二——面向对象分析(OOD)的介绍
查看>>
深入python3 (Dive Into Python 3) 在线阅读与下载
查看>>
linux 更改服务的启动顺序
查看>>
【数据结构】除去线性表中的重复数字
查看>>
[原]IE9 DOM的自定义属性问题
查看>>