aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/lib/control/serial_to_settings_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/lib/control/serial_to_settings_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/lib/control/serial_to_settings_tb.v')
-rw-r--r--fpga/usrp3/lib/control/serial_to_settings_tb.v28
1 files changed, 28 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
index 8111c115e..adaa2c985 100644
--- a/fpga/usrp3/lib/control/serial_to_settings_tb.v
+++ b/fpga/usrp3/lib/control/serial_to_settings_tb.v
@@ -45,6 +45,34 @@ module serial_to_settings_tb();
.set_data(set_data)
);
+ // Nasty HAck to convert settings to wishbone crudely.
+ reg wb_stb;
+ wire wb_ack_o;
+
+
+ always @(posedge clk)
+ if (reset)
+ wb_stb <= 0;
+ else
+ wb_stb <= set_stb ? 1 : ((wb_ack_o) ? 0 : wb_stb);
+
+ simple_uart debug_uart
+ (
+ .clk_i(clk),
+ .rst_i(reset),
+ .we_i(wb_stb),
+ .stb_i(wb_stb),
+ .cyc_i(wb_stb),
+ .ack_o(wb_ack_o),
+ .adr_i(set_addr[2:0]),
+ .dat_i(set_data[31:0]),
+ .dat_o(),
+ .rx_int_o(),
+ .tx_int_o(),
+ .tx_o(txd),
+ .rx_i(rxd),
+ .baud_o()
+ );
//
// Bring in a simulation script here