diff options
author | fahim | 2015-02-05 17:46:55 +0530 |
---|---|---|
committer | fahim | 2015-02-05 17:46:55 +0530 |
commit | ad36bcd34ffe111f2981936ac44cd007dbe483de (patch) | |
tree | 0565d9e40eb7992063465aeed415bce23c558540 /Example/2-bit-inverter/inverter.vhdl | |
parent | 15e75633d9d30330f7d74a3c6e639458ad09dd0b (diff) | |
download | nghdl-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/2-bit-inverter/inverter.vhdl')
-rw-r--r-- | Example/2-bit-inverter/inverter.vhdl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Example/2-bit-inverter/inverter.vhdl b/Example/2-bit-inverter/inverter.vhdl new file mode 100644 index 0000000..9d65b8d --- /dev/null +++ b/Example/2-bit-inverter/inverter.vhdl @@ -0,0 +1,14 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity inverter is + port ( i: in std_logic_vector(1 downto 0); + o: out std_logic_vector(1 downto 0)); +end inverter; + +architecture inverter_beh of inverter is +begin + o <= not i; +end architecture; + + |