aboutsummaryrefslogtreecommitdiff
path: root/i2c
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2015-11-12 16:48:01 -0500
committerPaul Selkirk <paul@psgd.org>2015-11-12 16:48:01 -0500
commit2b374d2b124d073e37708843cf599256b2cd9aa1 (patch)
treed3513a5a435f550e3ec2b46587c4a9be43b9c87c /i2c
parent4cfd0c3dbe688960f6b7e7285b7a14cebb1586a3 (diff)
Change reset to active-low.
Diffstat (limited to 'i2c')
-rw-r--r--i2c/rtl/novena_i2c.v11
1 files changed, 5 insertions, 6 deletions
diff --git a/i2c/rtl/novena_i2c.v b/i2c/rtl/novena_i2c.v
index c70f691..4ea6f82 100644
--- a/i2c/rtl/novena_i2c.v
+++ b/i2c/rtl/novena_i2c.v
@@ -67,7 +67,7 @@ module novena_top
// and implement the reset logic.
// ----------------------------------------------------------------
wire sys_clk;
- wire sys_rst;
+ wire sys_rst_n;
novena_clkmgr #
(
@@ -82,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)
);
@@ -101,7 +101,6 @@ module novena_top
wire sda_int;
wire clk = sys_clk;
- wire reset_n = ~sys_rst;
// Coretest connections.
wire coretest_reset_n;
@@ -132,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),
@@ -154,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),
@@ -189,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),