This code was developed using Microsoft Visual Studio Code using a Windows 11 platform, and has been compiled and tested using the ESP-IDF extension for VSC. The latest stable version of the ESP IDF ...
reg [19:0] ctr_d; // 20 bit counter to increment when button is pressed or released reg [19:0] ctr_q; // 20 bit counter to increment when button is pressed or released reg [1:0] sync_d; // button flip ...