Sommatore 1
This commit is contained in:
20
AddSub.vhd
Normal file
20
AddSub.vhd
Normal file
@@ -0,0 +1,20 @@
|
||||
library IEEE;
|
||||
use IEEE.STD_LOGIC_1164.ALL;
|
||||
|
||||
|
||||
entity AddSub is
|
||||
generic( BITCOUNT: integer := 8 );
|
||||
port(
|
||||
X, Y: in std_logic_vector((BITCOUNT-1) downto 0);
|
||||
isSub: in std_logic := 0;
|
||||
result: out std_logic_vector((BITCOUNT-1) downto 0)
|
||||
);
|
||||
end AddSub;
|
||||
|
||||
architecture CLAAddSubArch of AddSub is
|
||||
|
||||
begin
|
||||
|
||||
|
||||
end CLAAddSubArch;
|
||||
|
||||
Reference in New Issue
Block a user