aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/lib/control/serial_to_settings_tb.v
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2013-12-03 10:35:35 -0800
committerBen Hilburn <ben.hilburn@ettus.com>2013-12-03 10:35:35 -0800
commit4b4365a517938b365af57674a3ab1462432c2c3a (patch)
tree04386aca95f77810f8127067d05a1dd60356044a /fpga/usrp3/lib/control/serial_to_settings_tb.v
parentabc682eda8d84d5a366ca32ca87e81e0890e69e2 (diff)
downloaduhd-4b4365a517938b365af57674a3ab1462432c2c3a.tar.gz
uhd-4b4365a517938b365af57674a3ab1462432c2c3a.tar.bz2
uhd-4b4365a517938b365af57674a3ab1462432c2c3a.zip
b2xx: Updating FPGA source with recent bugfixes.
Diffstat (limited to 'fpga/usrp3/lib/control/serial_to_settings_tb.v')
-rw-r--r--fpga/usrp3/lib/control/serial_to_settings_tb.v54
1 files changed, 54 insertions, 0 deletions
diff --git a/fpga/usrp3/lib/control/serial_to_settings_tb.v b/fpga/usrp3/lib/control/serial_to_settings_tb.v
new file mode 100644
index 000000000..8111c115e
--- /dev/null
+++ b/fpga/usrp3/lib/control/serial_to_settings_tb.v
@@ -0,0 +1,54 @@
+
+
+module serial_to_settings_tb();
+
+
+
+ reg clk;
+ reg reset;
+
+ wire scl;
+ wire sda;
+ wire set_stb;
+ wire [7:0] set_addr;
+ wire [31:0] set_data;
+
+ //
+ // These registers optionaly used
+ // to drive nets through procedural assignments in test bench.
+ // These drivers default to tri-stated.
+ //
+ reg scl_r;
+ reg sda_r;
+
+ assign scl = scl_r;
+ assign sda = sda_r;
+
+ initial
+ begin
+ scl_r <= 1'bz;
+ sda_r <= 1'bz;
+ end
+
+
+
+ serial_to_settings serial_to_settings_i
+ (
+ .clk(clk),
+ .reset(reset),
+ // Serial signals (async)
+ .scl(scl),
+ .sda(sda),
+ // Settngs bus out
+ .set_stb(set_stb),
+ .set_addr(set_addr),
+ .set_data(set_data)
+ );
+
+
+ //
+ // Bring in a simulation script here
+ //
+ `include "simulation_script.v"
+
+endmodule \ No newline at end of file