Q2 (80 points)/ Design a synchronous counter, which counts in the sequence 0–1 2–4–70. The counter counts the clock puls
Posted: Tue Apr 26, 2022 2:56 pm
Q2 (80 points)/ Design a synchronous counter, which counts in the sequence 0–1 2–4–70. The counter counts the clock pulses if its enable input, w, is equal to 1. If w is equal to 0, the counter stops counting. Using D flip-flops in your FSM, answer the following questions: 1- Draw the state diagram. I 2- Write the state table. 3- Using K-map, implement a suitable circuit for the counter. 4. Is your FSM a Moore- or a Mealy-type machine? 5- Write and simulate the Verilog code for the FSM using Vivado. Show your code, test bench code, and screenshots of your simulation results. Label clearly the inputs and outputs on the screenshots.