Advertisement
SallatielFernandes

sete_seg_dataflow_sem_vetor

Nov 22nd, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VHDL 0.92 KB | None | 0 0
  1. -- PROJETO: sete_seg_dataflow_sem_vetor
  2. -- ENTRADA A, B, C, D (tipo bit)
  3. -- SAIDA: SA, SA, SC, SD, SD, SF, SG (tipo bit)
  4. -- AUTORES: MARCOS MEIRA, JOAO VITOR, SALLATIEL TERFERNANDES
  5. -- CRIACAO: 05/12/2018
  6. -- ALTERACAO: 22/11/2019
  7. ----------------------------------------------------------
  8.  
  9. entity sete_seg_dataflow_sem_vetor is
  10.     Port ( A, B, C, D : in bit;    
  11.            SA, SB, SC, SD, SE, SF, SG : out bit);
  12. end sete_seg_dataflow_sem_vetor;
  13.  
  14. architecture decodificador of sete_seg_dataflow_sem_vetor is
  15. begin
  16.     SA <= not (A or C or (B xnor D));
  17.     SB <= not ((not B) or (C xnor D));
  18.     SC <= not (B or (not C) or D);
  19.     SD <= not (A or ((not B) and (not D)) or ((not B) and C) or (C and (not D)) or (B and (not C) and D));
  20.     SE <= not (((not B) and (not D)) or (C and (not D)));
  21.     SF <= not (A or ((not C) and (not D)) or (B and (not C)) or (B and (not D)));
  22.     SG <= not (A or (B xor C) or (C and (not D)));
  23. end decodificador;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement