5) STATE Diagram
5) STATE Diagram
AIM:
To design, Simulate and Implement STATEMACHINE using XILINX ISE Software
and FPGA Board.
TOOLS REQUIRED:
1. Personal Computer
2. XILINX Software
3. FPGA Spartan-3E Starter Board(XC3S250E TQ144)
PROCEDURE
1. Open xilinx and create new project.
2. Add source and select state diagram, add state machine diagram.
3. Set shape as geometric and add transitions for every state.
4. In every transitions of the state double click it and edit the condition.
5. Edit the condition for input and output.
6. Save the state diagram and click generate HDL.
7. Add source and add the saved diagram and the program is generated.
8. And we can do further simulation using Xilinx Software.
STATE DIAGRAM(STATEMACHINE):
Reg.No:61072112113
SIMULATION PROGRAM(STATE MACHINE):
module machine1(CLK,RESET,xin,z);
input CLK;
input RESET,xin;
output z;
reg z,next_z;
reg STATE0,next_STATE0,STATE1,next_STATE1;
if ( ~RESET & xin & STATE0 | ~RESET & ~xin & STATE1 )
next_STATE1=1;
else next_STATE1=0;
if ( ~RESET & xin & STATE0 | ~RESET & ~xin & STATE1 ) next_z=1;
else next_z=0;
end
endmodule
Reg.No:61072112113
RTL SCHEMATIC(STATE MACHINE):
Reg.No:61072112113
SYNTHESIS SUMMARY(STATE MACHINE):
Device utilization summary:
---------------------------
Number of IOs: 4
---------------------------
---------------------------
---------------------------
=========================================================================
TIMING REPORT
Clock Information:
Reg.No:61072112113
------------------
-----------------------------------+------------------------+-------+
-----------------------------------+------------------------+-------+
CLK | BUFGP |2 |
-----------------------------------+------------------------+-------+
----------------------------------------
Timing Summary:
---------------
Speed Grade: -4
Timing Detail:
--------------
=========================================================================
Reg.No:61072112113
-------------------------------------------------------------------------
Source: z (FF)
Gate Net
---------------------------------------- ------------
----------------------------------------
=========================================================================
-------------------------------------------------------------------------
Destination: z (FF)
Gate Net
Reg.No:61072112113
Cell:in->out fanout Delay Delay Logical Name (Net Name)
---------------------------------------- ------------
FDRE:R 0.911 z
----------------------------------------
=========================================================================
-------------------------------------------------------------------------
Source: z (FF)
Destination: z (PAD)
Data Path: z to z
Gate Net
---------------------------------------- ------------
----------------------------------------
=========================================================================
Reg.No:61072112113
Total REAL time to Xst completion: 4.00 secs
-->
Reg.No:61072112113
SIMULATION OUTPUT:
RESULT:
Thus Statemachine is designed and Simulation is done using XILINX ISE
Software and Implementation is done using FPGA Spartan-3E Starter Board.
Reg.No:61072112113