--
-- Title : Mahoa
-- Design : baithuchanh1
-- Author : phamthanh1992@hotmail.com
-- Company : homes
--
-------------------------------------------------------------------------------
--
-- File : Mahoa.vhd
-- Generated : Thu May 2 21:36:17 2013
-- From : interface description file
-- By : Itf2Vhdl ver. 1.22
--
-------------------------------------------------------------------------------
--
-- Description :
--
-------------------------------------------------------------------------------
--{{ Section below this comment is automatically maintained
-- and may be overwritten
--{entity {Mahoa} architecture {Mahoa}}
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity Mahoa is
port(
A : in STD_LOGIC_VECTOR(3 downto 0);
G : out STD_LOGIC_VECTOR(3 downto 0)
);
end Mahoa;
--}} End of automatically maintained section
architecture Mahoa of Mahoa is
begin
with A select
G<= "0000" when "0000",
"0001" when "0001",
"0010" when "0011",
"0011" when "0010",
"0100" when "0110",
"0101" when "0111",
"0110" when "0101",
"0111" when "0100",
"1000" when "1100",
"1001" when "1101",
"1010" when "1111",
"1011" when "1110",
"1100" when "1010",
"1101" when "1011",
"1110" when "1001",
"1111" when "1000",
"XXXX" when others;
-- enter your statements here --
end Mahoa;
Không có nhận xét nào:
Đăng nhận xét