This repository has been archived by the owner on Feb 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
md_selector.vhd
48 lines (40 loc) · 1.27 KB
/
md_selector.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
-------------------------------------------------------------------------------
--
-- Title : md_selector
-- Design : CRCmd
-- Author : Giuliano
-- Company : La mia
--
-------------------------------------------------------------------------------
--
-- File : md_selector.vhd
-- Generated : Thu Dec 27 17:11:25 2012
-- From : interface description file
-- By : Itf2Vhdl ver. 1.22
--
-------------------------------------------------------------------------------
--
-- Description : it implements the logic function
--
-- output = ((in_a & in_d) | !in_b) & in_c
--
-------------------------------------------------------------------------------
--{{ Section below this comment is automatically maintained
-- and may be overwritten
--{entity {md_selector} architecture {behave_md_selector}}
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity md_sel is
port(
in_a : in STD_LOGIC;
in_b : in STD_LOGIC;
in_c : in STD_LOGIC;
in_d : in STD_LOGIC;
output : out STD_LOGIC
);
end md_sel;
--}} End of automatically maintained section
architecture behave_md_selector of md_sel is
begin
output <= in_c and ((not in_b) or (in_a and in_d));
end behave_md_selector;