miyago

Labb3 överkurs 1

Dec 5th, 2017
5,602
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VHDL 2.39 KB | None | 0 0
  1. LIBRARY ieee;
  2. USE ieee.std_logic_1164.ALL;
  3.  
  4. ENTITY twolights IS
  5.     PORT( R, G, Reset, CLOCK : IN std_logic;
  6.         Red, Green : OUT std_logic);
  7. END ENTITY twolights;
  8.  
  9. ARCHITECTURE fencer OF twolights IS
  10.  
  11.     TYPE tillstand IS (Start, Oavgjort, Rtrettio, Rtjugo, Rtio, Rvinst, Gtrettio, Gtjugo, Gtio, Gvinst);
  12.     SIGNAL nuvarande, nasta : tillstand;
  13.  
  14. BEGIN
  15. PROCESS(R, G, Reset, nuvarande)
  16.  
  17. BEGIN
  18.             IF Reset = '1' THEN
  19.                 nasta <= Start;
  20.             END IF;
  21.  
  22.     CASE nuvarande IS
  23.         WHEN Start => -- Startbubblans fyra pilar
  24.             IF (R = '1' AND G = '0') THEN
  25.                 nasta <= Rtio;
  26.             ELSIF (R = '0' AND G = '1') THEN
  27.                 nasta <= Gtio;
  28.             ELSIF (R = '1' AND G = '1') THEN
  29.                 nasta <= Oavgjort;
  30.             ELSIF (R = '0' AND G = '0') THEN
  31.                 nasta <= Start;
  32.             END IF;
  33.  
  34.    
  35.         WHEN Rtio => -- Röd träff
  36.             IF G = '1' THEN
  37.                 nasta <= Oavgjort;
  38.             ELSIF G = '0' THEN
  39.                 nasta <= Rtjugo;
  40.             END IF;
  41.  
  42.         WHEN Rtjugo => -- Röd träff 20 ms
  43.             IF G = '1' THEN
  44.                 nasta <= Oavgjort;
  45.             ELSIF G = '0' THEN
  46.                 nasta <= Rtrettio;
  47.             END IF;
  48.  
  49.         WHEN Rtrettio => -- Röd träff 30ms
  50.             IF G = '1' THEN
  51.                 nasta <= Oavgjort;
  52.             ELSIF G = '0' THEN
  53.                 nasta <= Rvinst;
  54.             END IF;
  55.  
  56.         WHEN Gtio => -- Grön träff
  57.             IF R = '1' THEN
  58.                 nasta <= Oavgjort;
  59.             ELSIF R = '0' THEN
  60.                 nasta <= Gtjugo;
  61.             END IF;
  62.         WHEN Gtjugo => -- Grön träff 20 ms
  63.             IF R = '1' THEN
  64.                 nasta <= Oavgjort;
  65.             ELSIF R = '0' THEN
  66.                 nasta <= Gtrettio;
  67.             END IF;
  68.         WHEN Gtrettio => -- Grön träff 30 ms
  69.             IF R = '1' THEN
  70.                 nasta <= Oavgjort;
  71.             ELSIF R = '0' THEN
  72.                 nasta <= Gvinst;
  73.             END IF;
  74.         WHEN OTHERS => NULL;
  75.     END CASE;
  76. END PROCESS;
  77.  
  78. PROCESS (nuvarande, CLOCK)
  79. BEGIN
  80.     IF rising_edge(CLOCK) THEN
  81.         nuvarande <= nasta;
  82.     END IF;
  83. END PROCESS;
  84.  
  85. PROCESS(nuvarande)
  86. BEGIN
  87.     Red <= '0';
  88.     Green <= '0';
  89.     CASE nuvarande IS
  90.         WHEN Oavgjort => -- Oavgjort är båda lamporna tända
  91.             Red <= '1';
  92.             Green <= '1';
  93.         WHEN Rtio =>
  94.             Red <= '1';
  95.         WHEN Rtjugo =>
  96.             Red <= '1';
  97.         WHEN Rtrettio =>
  98.             Red <= '1';
  99.         WHEN Rvinst => -- Röd vinner och röd lampa tänds
  100.             Red <= '1';
  101.         WHEN Gtio =>
  102.             Green <= '1';
  103.         WHEN Gtjugo =>
  104.             Green <= '1';
  105.         WHEN Gtrettio =>
  106.             Green <= '1';
  107.         WHEN Gvinst => -- Grön vinner och grön lampa tänds
  108.             Green <= '1';
  109.         WHEN OTHERS => NULL; -- Lamporna tänds och släcks endast i de övre tillstånden
  110.     END CASE;
  111. END PROCESS;
  112. END ARCHITECTURE fencer;
Advertisement
Comments
  • Lernodorn
    206 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