commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6906 - gnuradio/branches/developers/matt/u2f/control_


From: matt
Subject: [Commit-gnuradio] r6906 - gnuradio/branches/developers/matt/u2f/control_lib
Date: Wed, 14 Nov 2007 16:28:54 -0700 (MST)

Author: matt
Date: 2007-11-14 16:28:53 -0700 (Wed, 14 Nov 2007)
New Revision: 6906

Modified:
   gnuradio/branches/developers/matt/u2f/control_lib/settings_bus.v
Log:
cleaned up processing of strobe and ack


Modified: gnuradio/branches/developers/matt/u2f/control_lib/settings_bus.v
===================================================================
--- gnuradio/branches/developers/matt/u2f/control_lib/settings_bus.v    
2007-11-14 23:10:24 UTC (rev 6905)
+++ gnuradio/branches/developers/matt/u2f/control_lib/settings_bus.v    
2007-11-14 23:28:53 UTC (rev 6906)
@@ -9,13 +9,13 @@
      input [DWIDTH-1:0] wb_dat_i,
      input wb_stb_i,
      input wb_we_i,
-     output wb_ack_o,
+     output reg wb_ack_o,
      input sys_clk,
-     output reg strobe,
+     output strobe,
      output reg [7:0] addr,
      output reg [31:0] data);
 
-   reg             stb_int;
+   reg             stb_int, stb_int_d1;
    
    always @(posedge wb_clk)
      if(wb_rst)
@@ -33,10 +33,16 @@
      else
        stb_int <= 1'b0;
 
-   assign wb_ack_o = stb_int;
+   always @(posedge wb_clk)
+     if(wb_rst)
+       wb_ack_o <= 0;
+     else
+       wb_ack_o <= wb_stb_i & ~wb_ack_o;
 
    always @(posedge sys_clk)
-     strobe <= stb_int;
+     stb_int_d1 <= stb_int;
+
+   assign strobe = stb_int & ~stb_int_d1;
           
 endmodule // settings_bus
 





reply via email to

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