diff options
author | Paul Selkirk <paul@psgd.org> | 2015-11-12 16:46:20 -0500 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2015-11-12 17:18:43 -0500 |
commit | a2b7e6a544562fbe48814feedebd9119b92cea57 (patch) | |
tree | 89437b9fdcc428479f8472a3753e56e70f6269f7 /src/rtl/eim_indicator.v | |
parent | 9ed8ee7596023a6f4e43d8468bbdd0473c6570ed (diff) |
Change reset to active-low.
Diffstat (limited to 'src/rtl/eim_indicator.v')
-rw-r--r-- | src/rtl/eim_indicator.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rtl/eim_indicator.v b/src/rtl/eim_indicator.v index cf9751d..b665ea5 100644 --- a/src/rtl/eim_indicator.v +++ b/src/rtl/eim_indicator.v @@ -39,7 +39,7 @@ module eim_indicator ( input wire sys_clk, - input wire sys_rst, + input wire sys_rst_n, input wire eim_active, output wire led_out ); @@ -56,7 +56,7 @@ module eim_indicator always @(posedge sys_clk) // - if (sys_rst) cnt <= {CNT_BITS{1'b0}}; + if (!sys_rst_n) cnt <= {CNT_BITS{1'b0}}; else if (cnt > {CNT_BITS{1'b0}}) cnt <= cnt - 1'b1; else if (eim_active) cnt <= {CNT_BITS{1'b1}}; |