This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 11th, 2013  |  syntax: None  |  size: 0.21 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2. self.sync += [
  3. If(scl & (counter != 20),
  4.         counter.eq(counter + 1)
  5. ).ElIf(~scl & (counter != 0),
  6.         counter.eq(counter - 1)
  7. ),
  8. If(counter < 5,
  9.         scl_filtered.eq(0)
  10. ).ElIf(counter > 15,
  11.         scl_filtered.eq(1)
  12. )
  13. ]
clone this paste RAW Paste Data