commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7161 - usrp2/trunk/fpga/control_lib


From: matt
Subject: [Commit-gnuradio] r7161 - usrp2/trunk/fpga/control_lib
Date: Thu, 13 Dec 2007 18:41:24 -0700 (MST)

Author: matt
Date: 2007-12-13 18:41:24 -0700 (Thu, 13 Dec 2007)
New Revision: 7161

Modified:
   usrp2/trunk/fpga/control_lib/strobe_gen.v
Log:
starts countdown at max, not zero, so we don't get an immediate strobe


Modified: usrp2/trunk/fpga/control_lib/strobe_gen.v
===================================================================
--- usrp2/trunk/fpga/control_lib/strobe_gen.v   2007-12-14 01:37:30 UTC (rev 
7160)
+++ usrp2/trunk/fpga/control_lib/strobe_gen.v   2007-12-14 01:41:24 UTC (rev 
7161)
@@ -31,8 +31,10 @@
    assign    strobe = ~|counter && enable && strobe_in;
    
    always @(posedge clock)
-     if(reset | ~enable)
-       counter <= 8'd0;
+     if(reset)
+       counter <= 8'd0; 
+     else if (~enable)
+       counter <= rate;
      else if(strobe_in)
        if(counter == 0)
         counter <= rate;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]