aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/top/x300/bus_int_tb.v
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2014-02-14 12:05:07 -0800
committerBen Hilburn <ben.hilburn@ettus.com>2014-02-14 12:05:07 -0800
commitff1546f8137f7f92bb250f685561b0c34cc0e053 (patch)
tree7fa6fd05c8828df256a1b20e2935bd3ba9899e2c /fpga/usrp3/top/x300/bus_int_tb.v
parent4f691d88123784c2b405816925f1a1aef69d18c1 (diff)
downloaduhd-ff1546f8137f7f92bb250f685561b0c34cc0e053.tar.gz
uhd-ff1546f8137f7f92bb250f685561b0c34cc0e053.tar.bz2
uhd-ff1546f8137f7f92bb250f685561b0c34cc0e053.zip
Pushing the bulk of UHD-3.7.0 code.
Diffstat (limited to 'fpga/usrp3/top/x300/bus_int_tb.v')
-rw-r--r--fpga/usrp3/top/x300/bus_int_tb.v32
1 files changed, 32 insertions, 0 deletions
diff --git a/fpga/usrp3/top/x300/bus_int_tb.v b/fpga/usrp3/top/x300/bus_int_tb.v
new file mode 100644
index 000000000..70103c3bf
--- /dev/null
+++ b/fpga/usrp3/top/x300/bus_int_tb.v
@@ -0,0 +1,32 @@
+`timescale 1ns/1ps
+
+module bus_int_tb();
+
+ wire GSR, GTS;
+ xlnx_glbl glbl( );
+
+ reg clk = 0;
+ reg reset = 1;
+
+ always #10 clk = ~clk;
+
+ initial $dumpfile("bus_int_tb.vcd");
+ initial $dumpvars(0,bus_int_tb);
+
+ initial
+ begin
+ #1000 reset = 0;
+ #2000000;
+ $finish;
+ end
+
+ wire sen, sclk, mosi, miso;
+ wire scl, sda;
+
+ bus_int bus_int
+ (.clk(clk), .reset(reset),
+ .sen(sen), .sclk(sclk), .mosi(mosi), .miso(miso),
+ .scl(scl), .sda(sda)
+ );
+
+endmodule // bus_int_tb