Verilog Analysis on Mealy and Moore Finite State Machine and Hardware Design Alexios Kotsis
University of California Santa Cruz USA November 2018
Abstract— this paper begins with the basic concepts of Verilog language, its use in Finite Sate Machines, and then performs a Verilog analysis of two synchronous sequential circuit Finite State Machines with one input X and one output Z. One FSM is Mealy type and the other one is Moore type. The paper describes the implementation of the sequential circuit using logic gates and D Flip Flops. The behavior of the circuits and timing diagrams is described by using Modelsim program, and four system Verilog programs one for the actual circuit and one used for test benching for both the Mealy and Moore cases. An analysis was made in the state sequence, the reduction using Karnaugh maps and finally hardware designing the Finite state Machine using D flip-flops, AND, OR and INVERTER gates. The paper is addressed to those with an elementary to medium knowledge of Verilog who are interested following the run procedure and code writing of a project. The project is made in order to demonstrate how a state machine behaves with fetch, decode and writeback using Verilog. The software used was System Verilog which is a combination of C/C++, Verilog and also Co-Design Automation Superlog language and was run in a home PC. Finally, a timing diagram was made demonstrating how the Finite Machines behave under clock pulses. .
1