X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/f97d4e2378e04397b3c884d10acb79725dee4e06..5bc3841ad1463e52834ee6e4a9afc5c4a98a2920:/fpga/min_max_tracker.v?ds=sidebyside

diff --git a/fpga/min_max_tracker.v b/fpga/min_max_tracker.v
index 8abd40fb..c47cfd3d 100644
--- a/fpga/min_max_tracker.v
+++ b/fpga/min_max_tracker.v
@@ -25,7 +25,7 @@ module min_max_tracker(input clk, input [7:0] adc_d, input [7:0] threshold,
 	always @(posedge clk)
 	begin
 		case (state)
-		0:
+		0: // initialize
 			begin
 				if (cur_max_val >= ({1'b0, adc_d} + threshold))
 					state <= 2;
@@ -36,7 +36,7 @@ module min_max_tracker(input clk, input [7:0] adc_d, input [7:0] threshold,
 				else if (adc_d <= cur_min_val)
 					cur_min_val <= adc_d;					
 			end
-		1:
+		1: // high phase
 			begin
 				if (cur_max_val <= adc_d)
 					cur_max_val <= adc_d;
@@ -46,7 +46,7 @@ module min_max_tracker(input clk, input [7:0] adc_d, input [7:0] threshold,
 					max_val <= cur_max_val;
 				end
 			end
-		2:
+		2: // low phase
 			begin
 				if (adc_d <= cur_min_val)
 					cur_min_val <= adc_d;