[Cryptech-Commits] [core/comm/fmc] 02/03: Change reset to active-low.
git at cryptech.is
git at cryptech.is
Mon Nov 16 21:37:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
paul at psgd.org pushed a commit to branch master
in repository core/comm/fmc.
commit 808618d2ca5628d5e173ade378dc12d60dceda2e
Author: Paul Selkirk <paul at psgd.org>
Date: Thu Nov 12 16:46:39 2015 -0500
Change reset to active-low.
---
src/rtl/fmc_indicator.v | 4 ++--
src/rtl/fmc_regs.v | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/rtl/fmc_indicator.v b/src/rtl/fmc_indicator.v
index a802a59..b687cac 100644
--- a/src/rtl/fmc_indicator.v
+++ b/src/rtl/fmc_indicator.v
@@ -39,7 +39,7 @@
module fmc_indicator
(
input wire sys_clk,
- input wire sys_rst,
+ input wire sys_rst_n,
input wire fmc_active,
output wire led_out
);
@@ -56,7 +56,7 @@ module fmc_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 (fmc_active) cnt <= {CNT_BITS{1'b1}};
diff --git a/src/rtl/fmc_regs.v b/src/rtl/fmc_regs.v
index 8f740e3..0e50f2c 100644
--- a/src/rtl/fmc_regs.v
+++ b/src/rtl/fmc_regs.v
@@ -40,7 +40,7 @@ module comm_regs
(
// Clock and reset.
input wire clk,
- input wire rst,
+ input wire reset_n,
// Control.
input wire cs,
More information about the Commits
mailing list