Advertisement
Guest User

Untitled

a guest
Apr 11th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  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. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement