SHARE
TWEET

Untitled

jimangel2001 Feb 21st, 2020 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. library IEEE;
  2. use IEEE.STD_LOGIC_1164.ALL;
  3.  
  4.  
  5.  
  6. entity equations is
  7. port(
  8.     A : in std_logic;
  9.     B : in std_logic;
  10.     C0 : in std_logic;
  11.     C1 : in std_logic;
  12.     C2 : in std_logic;
  13.     C3 : in std_logic;
  14.     C4 : in std_logic;
  15.     C5 : in std_logic;
  16.     Result : out std_logic_vector(5 downto 0));
  17.    
  18. end equations;
  19.  
  20. architecture Behavioral of equations is
  21.  
  22. begin
  23.     Result(0) <= (A NAND B) AND C0;
  24.     Result(1) <= (A NOR B) AND C1;
  25.     Result(2) <= (A AND B) AND C2;
  26.     Result(3) <= (A XOR B) AND C3;
  27.     Result(4) <= ((A AND B) OR ((NOT A) AND (NOT B))) AND C4;
  28.     Result(5) <= (((NOT A) AND B) XOR ((NOT A) OR B)) AND C5;
  29.    
  30. end Behavioral;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top