aboutsummaryrefslogtreecommitdiff
path: root/src/and2gate_equation.vhd
diff options
context:
space:
mode:
Diffstat (limited to 'src/and2gate_equation.vhd')
-rw-r--r--src/and2gate_equation.vhd35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/and2gate_equation.vhd b/src/and2gate_equation.vhd
new file mode 100644
index 0000000..9c7f0f2
--- /dev/null
+++ b/src/and2gate_equation.vhd
@@ -0,0 +1,35 @@
+-------------------------------------------------------------------------------
+-- Module : and2gate
+-------------------------------------------------------------------------------
+-- Author : Johann Faerber
+-- Company : University of Applied Sciences Augsburg
+-------------------------------------------------------------------------------
+-- Description: 2-input AND Gate
+-- function modelled by logic equation
+-------------------------------------------------------------------------------
+-- Revisions : see end of file
+-------------------------------------------------------------------------------
+LIBRARY IEEE;
+USE IEEE.std_logic_1164.ALL;
+
+ENTITY and2gate IS
+ PORT (a_i : IN std_ulogic; -- data input a
+ b_i : IN std_ulogic; -- data input b
+ y_o : OUT std_ulogic -- data output y
+ );
+END and2gate;
+
+ARCHITECTURE equation OF and2gate IS
+
+BEGIN
+
+ y_o <= a_i AND b_i;
+
+END equation;
+
+-------------------------------------------------------------------------------
+-- Revisions:
+-- ----------
+-- $Id:$
+-------------------------------------------------------------------------------
+