⽤选择信号赋值语句(with-lect)和移位操作符来实现38译码
VHDL实现如下:
LIBRARY IEEE;
USE IEEE.STD_LOGIC_;
ENTIDY Trans38 IS
PORT(
A:IN STD_LOGIC_VECTOR(2 DOWNTO 0);
Y:OUT STD蚯蚓 _LOGIC_VECTOR(7 DOWNTO 0)
)标题分级 ;
END Trans38;
ARCHITECTURE behav OF trans38 IS
BEGIN
WITH A SELECT
Y<= "00000000" SLL CONV_INTEGER(A) when "0001",
美国女明星 "00000000" SLL CONV_INTEGER(A) when "001" , --有效输出为⾼电平
"00000000" SLL CONV_INTEGER(A) when "010" ,
"00000000" SLL CONV_INTEGER(A) when "011" ,
"00000000" SLL CONV_INTEGER(A) when "100" ,
"00000000" SLL CONV_INTEGER(A) when "1海峡两岸关系 01" ,
"00000000" SLL CONV_INTEGER(A) wh疝气治疗 看见柴静 en "110" ,
"00000000" SLL CONV_INTEGER(A) when "111" ;
END behav;
注:来⾃互联⽹,未经实机测试,谨慎使⽤;
器
本文发布于:2023-04-22 21:32:03,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/fan/82/509844.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |