Advertisement
AbraaoAllysson

aafafasfasf

May 11th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. int Q(old_clk, clk, rst, en, d, q)
  2. {
  3.     if(old_clk == 0 && clk == 1)
  4.     {
  5.         if (rst == 1 )
  6.         {
  7.             q = 0;  
  8.             return q;
  9.         }
  10.         if(en == 1)
  11.         {
  12.             q = d;
  13.             return q;      
  14.         }
  15.         else
  16.         {
  17.             return q;  
  18.         }
  19.     }
  20.     return q;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement