diff options
Diffstat (limited to 'i2c/rtl')
-rw-r--r-- | i2c/rtl/novena_i2c.v | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/i2c/rtl/novena_i2c.v b/i2c/rtl/novena_i2c.v index f6230a0..db2c203 100644 --- a/i2c/rtl/novena_i2c.v +++ b/i2c/rtl/novena_i2c.v @@ -67,9 +67,14 @@ module novena_top // and implement the reset logic. // ---------------------------------------------------------------- wire sys_clk; - wire sys_rst; + wire sys_rst_n; - novena_clkmgr clkmgr + novena_clkmgr # + ( + .CLK_OUT_MUL (2), // 2..32 + .CLK_OUT_DIV (2) // 1..32 + ) + clkmgr ( .gclk_p(gclk_p_pin), .gclk_n(gclk_n_pin), @@ -77,7 +82,7 @@ module novena_top .reset_mcu_b(reset_mcu_b_pin), .sys_clk(sys_clk), - .sys_rst(sys_rst) + .sys_rst_n(sys_rst_n) ); @@ -96,7 +101,6 @@ module novena_top wire sda_int; wire clk = sys_clk; - wire reset_n = ~sys_rst; // Coretest connections. wire coretest_reset_n; @@ -127,7 +131,7 @@ module novena_top i2c_core i2c_core ( .clk(clk), - .reset(sys_rst), + .reset(~sys_rst_n), // active-high reset for this third-party module // External data interface .SCL(i2c_scl), @@ -149,7 +153,7 @@ module novena_top coretest coretest ( .clk(clk), - .reset_n(reset_n), + .reset_n(sys_rst_n), .rx_syn(i2c_rxd_syn), .rx_data(i2c_rxd_data), @@ -184,7 +188,7 @@ module novena_top core_selector cores ( .sys_clk(clk), - .sys_rst(sys_rst), + .sys_rst_n(sys_rst_n), .sys_eim_addr(sys_eim_addr), .sys_eim_wr(sys_eim_wr), |