FSM + Counter

  1. Core가 IDLE인지 확인합니다.
  2. i_run신호와 counting 할  숫자를 core에 전달합니다.
  3. DONE이 될때까지 기다립니다.

 

 

- Verilog Code

* https://github.com/Vamosssss/Basic/tree/main/07.%20FSM/02.%20FSM%20%2B%20Counter


FSM(Traffic Light)

  1. RED will go to YELLOW after 30 cycles.
  2. YELLOW will go to GREEN after 5 cycles.
  3. GREEN will go RED after 20 cycles.
  4. The light color will be output.

 

- Verilog Code

* https://github.com/Vamosssss/Basic/tree/main/07.%20FSM/03.%20FSM(Traffic%20Light)

+ Recent posts