Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. always @(posedge UsClk)
  2. begin
  3.     if (PPMIN) begin
  4.         if (CurrentCount > 2500) begin
  5.             CurrentCount = 0;
  6.             ChannelSelect = 0;
  7.         end
  8.         else begin
  9.             CurrentCount = 0;
  10.             ChannelSelect = ChannelSelect + 1;
  11.         end
  12.     end
  13.     else begin
  14.         CurrentCount = CurrentCount + 1;
  15.     end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement