From 4770a2bd9cd747921943db512ce43eb0789c11f5 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 29 Dec 2018 10:11:22 -0800 Subject: [PATCH] TinyFPGA/btled: a comment. --- fpga/tinyfpga/btled/top.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fpga/tinyfpga/btled/top.v b/fpga/tinyfpga/btled/top.v index cce9ea9..da97773 100644 --- a/fpga/tinyfpga/btled/top.v +++ b/fpga/tinyfpga/btled/top.v @@ -15,6 +15,8 @@ module top ( reg pressed = 0; assign LED = state; + + // I found the negedge was better for debouncing. always @(negedge PIN_6) state <= !state;