[Cryptech-Commits] [user/js/test/novena_eim_base] 01/02: Add missing register definition.

git at cryptech.is git at cryptech.is
Wed Jan 21 14:08:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch master
in repository user/js/test/novena_eim_base.

commit 1d51b9f7f548d83efd80f21a4459ecde53ea23a1
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Wed Jan 21 15:07:47 2015 +0100

    Add missing register definition.
---
 src/rtl/novena_fpga.v | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/rtl/novena_fpga.v b/src/rtl/novena_fpga.v
index 90379d1..ea73c04 100644
--- a/src/rtl/novena_fpga.v
+++ b/src/rtl/novena_fpga.v
@@ -59,6 +59,7 @@ module novena_fpga(
   //----------------------------------------------------------------
   // Registers.
   //----------------------------------------------------------------
+  reg [23 : 0] counter_reg;
 
 
   //----------------------------------------------------------------
@@ -119,10 +120,11 @@ module novena_fpga(
   //
   // Should always run.
   //----------------------------------------------------------------
-   always @(posedge clk50) begin
-      counter <= counter + 1;
-   end
-   assign FPGA_LED2 = counter[23];
+  always @(posedge clk50) begin
+    counter_reg <= counter_reg + 1'b1;
+  end
+
+  assign FPGA_LED2 = counter_reg[23];
 
 
 //  wire [15:0] 		      eim_dout;



More information about the Commits mailing list