diff options
author | Matt Ettus <matt@ettus.com> | 2010-02-18 18:04:24 -0800 |
---|---|---|
committer | Matt Ettus <matt@ettus.com> | 2010-02-18 18:04:24 -0800 |
commit | 7c31f8d25d563b9f2795914f8ea0f3e49b214c56 (patch) | |
tree | bae2a09c22506698e929e30baf35e2ebbee184cf | |
parent | e56b4767451dcdca41512faba634b812e44d2e1d (diff) | |
download | uhd-7c31f8d25d563b9f2795914f8ea0f3e49b214c56.tar.gz uhd-7c31f8d25d563b9f2795914f8ea0f3e49b214c56.tar.bz2 uhd-7c31f8d25d563b9f2795914f8ea0f3e49b214c56.zip |
allow default uart clock divider
-rw-r--r-- | usrp2/control_lib/simple_uart.v | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/usrp2/control_lib/simple_uart.v b/usrp2/control_lib/simple_uart.v index 22f0e70a2..0dd58b5f5 100644 --- a/usrp2/control_lib/simple_uart.v +++ b/usrp2/control_lib/simple_uart.v @@ -1,11 +1,12 @@ module simple_uart #(parameter TXDEPTH = 1, - parameter RXDEPTH = 1) - (input clk_i, input rst_i, - input we_i, input stb_i, input cyc_i, output reg ack_o, - input [2:0] adr_i, input [31:0] dat_i, output reg [31:0] dat_o, - output rx_int_o, output tx_int_o, output tx_o, input rx_i, output baud_o); + parameter RXDEPTH = 1, + parameter CLKDIV_DEFAULT = 16'd0) + (input clk_i, input rst_i, + input we_i, input stb_i, input cyc_i, output reg ack_o, + input [2:0] adr_i, input [31:0] dat_i, output reg [31:0] dat_o, + output rx_int_o, output tx_int_o, output tx_o, input rx_i, output baud_o); // Register Map localparam SUART_CLKDIV = 0; @@ -30,7 +31,7 @@ module simple_uart always @(posedge clk_i) if (rst_i) - clkdiv <= 0; + clkdiv <= CLKDIV_DEFAULT; else if (wb_wr) case(adr_i) SUART_CLKDIV : clkdiv <= dat_i[15:0]; |