AdrianMadajewski

Untitled

Dec 22nd, 2020
905
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. LIBRARY IEEE;
  2.  
  3. USE ieee.std_logic_1164.ALL;
  4.  
  5. -- JEDNOSTKA SUMATORA JEDNOBITOWEGO PELNEGO
  6. -- FA = FULL ADDER
  7. ENTITY FA IS
  8. PORT
  9. (
  10.     a, b, cin : in std_logic;
  11.     s, cout     : out std_logic
  12. );
  13. END FA;
  14.  
  15. -- ARCHITEKTURA SUMATORA JEDNOBITOWEGO PELNEGO
  16. ARCHITECTURE strukturalna OF FA IS
  17. BEGIN
  18.     s <= (a XOR b) XOR cin;
  19.     cout <= ((a XOR b) AND cin) or (a AND b);
  20. END ARCHITECTURE;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×