diff options
| author | Josh Blum <josh@joshknows.com> | 2010-05-18 18:12:14 -0700 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2010-05-18 18:12:14 -0700 | 
| commit | 4db60e8d0e2cd227308a401fa185f209ea61ab6b (patch) | |
| tree | 0a4afbf77861438eb4df2f782b14ab89d381c3b3 /fpga/usrp2/control_lib | |
| parent | bea1c582491d71bf90e240be345a32ba77028460 (diff) | |
| parent | 7ea3d80ec7a75c827274aff209f9d7a9cd554806 (diff) | |
| download | uhd-4db60e8d0e2cd227308a401fa185f209ea61ab6b.tar.gz uhd-4db60e8d0e2cd227308a401fa185f209ea61ab6b.tar.bz2 uhd-4db60e8d0e2cd227308a401fa185f209ea61ab6b.zip | |
Merge branch 'udp' of git@ettus.sourcerepo.com:ettus/fpga into work
Diffstat (limited to 'fpga/usrp2/control_lib')
| -rw-r--r-- | fpga/usrp2/control_lib/settings_bus.v | 1 | ||||
| -rw-r--r-- | fpga/usrp2/control_lib/settings_bus_crossclock.v | 20 | 
2 files changed, 20 insertions, 1 deletions
| diff --git a/fpga/usrp2/control_lib/settings_bus.v b/fpga/usrp2/control_lib/settings_bus.v index d01a30ab4..fc960e456 100644 --- a/fpga/usrp2/control_lib/settings_bus.v +++ b/fpga/usrp2/control_lib/settings_bus.v @@ -10,7 +10,6 @@ module settings_bus       input wb_stb_i,       input wb_we_i,       output reg wb_ack_o, -     input sys_clk,       output strobe,       output reg [7:0] addr,       output reg [31:0] data); diff --git a/fpga/usrp2/control_lib/settings_bus_crossclock.v b/fpga/usrp2/control_lib/settings_bus_crossclock.v new file mode 100644 index 000000000..b043aa0ad --- /dev/null +++ b/fpga/usrp2/control_lib/settings_bus_crossclock.v @@ -0,0 +1,20 @@ + + +// This module takes the settings bus on one clock domain and crosses it over to another domain +// Typically it will be used with the input settings bus on the wishbone clock, and either  +// the system or dsp clock on the output side + +module settings_bus_crossclock +  (input clk_i, input rst_i, input set_stb_i, input [7:0] set_addr_i, input [31:0] set_data_i, +   input clk_o, input rst_o, output set_stb_o, output [7:0] set_addr_o, output [31:0] set_data_o); + +   wire  full, empty; +    +   fifo_xlnx_16x40_2clk settings_fifo +     (.rst(rst_i), +      .wr_clk(clk_i), .din({set_addr_i,set_data_i}), .wr_en(set_stb_i & ~full), .full(full), +      .rd_clk(clk_o), .dout({set_addr_o,set_data_o}), .rd_en(~empty), .empty(empty)); + +   assign set_stb_o = ~empty; + +endmodule // settings_bus_crossclock | 
