summaryrefslogtreecommitdiff
path: root/Example/xor/myxor.vhdl
diff options
context:
space:
mode:
authorfahim2015-02-05 17:46:55 +0530
committerfahim2015-02-05 17:46:55 +0530
commitad36bcd34ffe111f2981936ac44cd007dbe483de (patch)
tree0565d9e40eb7992063465aeed415bce23c558540 /Example/xor/myxor.vhdl
parent15e75633d9d30330f7d74a3c6e639458ad09dd0b (diff)
downloadnghdl-ad36bcd34ffe111f2981936ac44cd007dbe483de.tar.gz
nghdl-ad36bcd34ffe111f2981936ac44cd007dbe483de.tar.bz2
nghdl-ad36bcd34ffe111f2981936ac44cd007dbe483de.zip
Subject: Added example
Description: Added two example xor and 2-bit inverter
Diffstat (limited to 'Example/xor/myxor.vhdl')
-rw-r--r--Example/xor/myxor.vhdl15
1 files changed, 15 insertions, 0 deletions
diff --git a/Example/xor/myxor.vhdl b/Example/xor/myxor.vhdl
new file mode 100644
index 0000000..b49f3ca
--- /dev/null
+++ b/Example/xor/myxor.vhdl
@@ -0,0 +1,15 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity myxor is
+ port (a : in std_logic_vector(0 downto 0);
+ b : in std_logic_vector(0 downto 0);
+ c : out std_logic_vector(0 downto 0));
+ end myxor;
+
+ architecture rtl of myxor is
+ begin
+
+ c <= a xor b;
+
+ end rtl;