module pmodenc( clk, rst_n, A, B, BTN,// A_Debounce,// B_Debounce,// BTN_Debounce,// Rotary_right,// Rotary_left LED); input wire clk,rst_n; input wire A,B,BTN;// output wire A_Debounce,B_Debounce,BTN_Debounce;// output wire Rotary_right,Rotary_left;…