Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library IEEE;
- use IEEE.STD_LOGIC_1164.ALL;
- entity operaciones is
- Port ( x : in std_logic;
- y : in std_logic;
- Carry_in : in std_logic;
- Sum : out std_logic;
- Carry_out : out std_logic);
- end operaciones;
- architecture Behavioral of operaciones is
- begin
- Carry_out <= ((x and y) or (Carry_in and y) or (Carry_in and x));
- Sum <= ((x xor y) xor Carry_in);
- end Behavioral;
Add Comment
Please, Sign In to add comment