- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ibrary ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity FullAdd is port (
A, B, Cin: in std_logic;
Sum, Cout: out std_logic
);
end FullAdd;
architecture behavioral of FullAdd is
signal ans:std_logic_vector(1 downto 0) := "00";
begin
process(a,b,cin)
begin
ans <= "0"&a+b+cin;
sum <= ans(0);
cout <= ans(1);
end process;
end behavioral;
- Tags:
- Vhdl
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page