Advertisement
Briotar

Shema

Apr 17th, 2021
218
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. entity shema is
  5.      port(
  6.          Ra : in STD_LOGIC;
  7.          C : in STD_LOGIC;
  8.          D : in STD_LOGIC;
  9.          Sa : in STD_LOGIC;
  10.          Q : out STD_LOGIC;
  11.          neQ : out STD_LOGIC
  12.          );
  13. end shema;
  14.  
  15. --}} End of automatically maintained section
  16.  
  17. architecture shema of shema is
  18. signal Q1, Q2, Q3, Q4, s5, s6: STD_LOGIC;
  19.  
  20. component \log_&\ is
  21.     port(
  22.          A : in STD_LOGIC;
  23.          B : in STD_LOGIC;
  24.          C : in STD_LOGIC;
  25.          Y : out STD_LOGIC
  26.          );
  27. end component \log_&\;
  28.        
  29. begin
  30.  
  31.     element1: \log_&\ port map (Ra, Q4, Q2, Q1);
  32.     element2: \log_&\ port map (Q1, C, Sa, Q2);
  33.     element3: \log_&\ port map (Q2, C, Q4, Q3);
  34.     element4: \log_&\ port map (Q3, D, Sa, Q4);
  35.     element5: \log_&\ port map (Ra, Q2, s6, s5);
  36.     element6: \log_&\ port map (s5, Q3, Sa, s6);
  37.    
  38.     neQ <= s6;
  39.     Q <= s5;
  40.  
  41. end shema;
  42.  
Advertisement
RAW Paste Data Copied
Advertisement