From 808618d2ca5628d5e173ade378dc12d60dceda2e Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Thu, 12 Nov 2015 16:46:39 -0500 Subject: 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, -- cgit v1.2.3