Add files via upload

This commit is contained in:
Ikatono
2017-09-06 20:49:31 -04:00
committed by GitHub
parent 70e5eb0ddc
commit 0803783a02
16 changed files with 582 additions and 0 deletions

15
comparator8.vhd Normal file
View File

@@ -0,0 +1,15 @@
library ieee;
use ieee.std_logic_1164.all;
entity comparator8 is
port( a: in std_logic_vector(7 downto 0);
b: in std_logic_vector(7 downto 0);
o: out std_logic
);
end comparator8;
architecture behav of comparator8 is
begin
o <= (a(0) xnor b(0)) and (a(1) xnor b(1)) and (a(2) xnor b(2)) and (a(3) xnor b(3)) and (a(4) xnor b(4)) and (a(5) xnor b(5)) and (a(6) xnor b(6)) and (a(7) xnor b(7));
end behav;