marcoshuck

Comparador binario (4 bits)

Jun 3rd, 2016
5,827
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VHDL 0.86 KB | None | 0 0
  1. -- Declaramos librerías
  2. library IEEE;
  3. use IEEE.STD_LOGIC_1164.ALL;
  4. use IEEE.STD_LOGIC_ARITH.ALL;
  5. use IEEE.STD_LOGIC_UNSIGNED.ALL;
  6.  
  7. -- Definimos la entidad
  8. entity base is
  9.     Port (
  10.         A0, A1, A2, A3 : in std_logic; -- Entradas A
  11.         B0, B1, B2, B3 : in std_logic; -- Entradas B
  12.         mayor, menor, igual : out std_logic -- Salidas
  13.         );
  14. end base;
  15.  
  16. -- Definimos la arquitectura
  17. architecture behavioral of base is
  18. signal A: std_logic_vector(3 downto 0); -- Vector A
  19. signal B: std_logic_vector(3 downto 0); -- Vector B
  20. begin
  21.     process(A3, A2, A1, A0)
  22.     begin
  23.         A(3) <= A3;
  24.         A(2) <= A2;
  25.         A(1) <= A1;
  26.         A(0) <= A0;
  27.     end process;
  28.    
  29.     process(B3, B2, B1, B0)
  30.     begin
  31.         B(3) <= B3;
  32.         B(2) <= B2;
  33.         B(1) <= B1;
  34.         B(0) <= B0;
  35.     end process;
  36.    
  37.     mayor <= '1' when(A>B) else '0';
  38.     menor <= '1' when(A<B) else '0';
  39.     igual <= '1' when(A=B) else '0';
  40.    
  41. end behavioral;
Advertisement
Comments
  • Lernodorn
    218 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment