Presentation is loading. Please wait.

Presentation is loading. Please wait.

Instructor Student Dr. Hassan Farhat Sukesh Kumar Chinni.

Similar presentations


Presentation on theme: "Instructor Student Dr. Hassan Farhat Sukesh Kumar Chinni."— Presentation transcript:

1 Instructor Student Dr. Hassan Farhat Sukesh Kumar Chinni

2 What is FSM A model of computation consisting of a set of states, a start state, an input alphabet, and a transition function that maps input symbols and current states to a next state. Computation begins in the start state with an input string. It changes to new states depending on the transition function

3 What is FPGA A Field-programmable Gate Array (FPGA) is an integrated circuit designed to be configured by the customer or designer after manufacturing—hence "field-programmable". The FPGA configuration is generally specified using a hardware description language (HDL)

4 We have compared eight coding methods: “one-hot”, binary, Johnson and Gray, Fan-in and Fan-out oriented algorithms and the algorithm “FAN” connecting Fan-in and Fan-out ones, and our original method called “own” that will be presented in this paper. The second group of our experiments has been directed to the decompositions of the FSM. The final results (number of the CLB blocks and maximal frequency) were obtained for concrete FPGA implementation

5 FSM State DiagramDesign

6 State Diagram One Hot Method

7 One hot” method uses the same number of bits as the number of internal states - the great number of internal variables is the main disadvantage of this method The states, that have the same next state for a given input, should be given adjacent assignments ("Fan-out oriented"). The states, that are the next states of the same state, should be given adjacent assignments ("Fan-in oriented").

8 Global Algorithm This method combines the “one-hot” and binary coding methods. It is based on the partially FSM internal state decomposition.

9 The global algorithm could be described as follows: All FSM internal states Qi are placed to the set S0 – not yet classified states All FSM internal states Qj are placed to the set S0 – not yet classified states S0 = {st0, st1, st2, st3}

10  Construct the set of neighbour internal states of all members of S1 – Sneighbour: S0 = {st0, st2, st3}, S1 = {st1}, Sneighbour = {st0, st2}  Construct the set of neighbour internal states of all members of Sgroup – Sneighbour. Compute the score that expresses the placement suitability for a state Qj into Sgroup, for all states from Sneighbour. The state with the highest score add to Sgroup

11 For all S0 elements compute the number of transitions to the another disjoint states from S0 (st0…1, st1…2, st2…2, st3…1). Choose the state with the highest value and construct the new set S1: S0 = {st0, st2, st3}, S1 = {st1} From all S0 elements select the state Qi with the most number of transitions to the another disjoint states from S0. This state Qi is taken away from S0 and becomes the first member of the new set Sgroup

12  The number of the transitions from Qj to all states from Sgroup multiplied by the constant 10; st0 --- 1 st1 ----1 The number of such states from Sgroup the transition exists from Qj into those ones multiplied by the constant 20; st0 --- 1 st1 ----1 The number of the transitions from Qj to all neighbour internal states from Sgroup (i.e. to all states from Sneighbour ) multiplied by the constant 3; st0 --- 2 st1 ----1

13 The number of such states from Sneighbour the transition exists from Qj to those ones multiplied by the constant 6; st0 --- 1 st1 ----1 The number of the transitions from all internal states from Sgroup to Qj multiplied by the constant 10; st0 --- 1 st1 ----1 The number of such states from Sgroup the transition exists from those ones into Qj multiplied by the constant 20; st0 --- 1 st1 ----1

14 The number of the transitions from all neighbour states of Sgroup (placed in Sneighbour) to Qj multiplied by the constant 3; st0 --- 2 st1 ----1 The number of the neighbour states in Sneighbour the transition exists from those ones to Qj multiplied by the constant 6; st0 --- 1 st1 ----1

15 st0 score = 1.10+1.20+2.3+1.6+1.10+1.20+2.3+1.6 = 84 st2 score = 1.10+1.20+1.3+1.6+1.10+1.20+1.3+1.6 = 78 Choose the state with the highest score and add it to S1: S0 = {st2, st3}, S1 = {st0, st1}, Sneighbour = {st2}

16 Compute the AN (1) ratio for the elements from S1: AN = 1.0. AN is grater then 0.7, Therefore the state Qj becomes the real member of S1. Try to add the state st2 into S1 and compute the AN. AN = 0.66 state st2 is discarded from the S1 and this set is closed. At the end all internal states are placed into 2 groups: S1 = {st0, st1}, S2 = {st2, st3}

17 Now internal state code is connected from the one bit binary part and the two bits one-hot parts: st0 … 0/01 st1 … 1/01 st2 … 0/10 st3 … 1/10

18 Thank you. Questions?


Download ppt "Instructor Student Dr. Hassan Farhat Sukesh Kumar Chinni."

Similar presentations


Ads by Google