기본 정보
- 저자
- DOI
- 10.34768/amcs-2020-0055
- 저널
- International Journal of Applied Mathematics and Computer Science
- 발행년도
- 2020
- 발행기관
- De Gruyter Open
- 피인용수
- 40
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.34768/amcs-2020-0055
- 토픽
- Advancements in Photolithography Techniques
- OpenAlex ID
- W3118742228
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (14) 드라이 필름(포토레지스트)
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 드라이 필름(포토레지스트)' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 79,920자
본문 펼치기
섹션 본문 133문단 · 40,622자
(제목 없음)
1Practically, any digital system includes sequential blocks represented using a model of finite state machine (FSM).It is very important to improve such FSM characteristics as the number of logic elements used, operating frequency and consumed energy.The paper proposes a novel technology-dependent design method targeting a decrease in the number of look-up table (LUT) elements and their levels in logic circuits of FPGA-based Mealy FSMs.It produces FSM circuits having three levels of logic blocks.Also, it produces circuits with regular systems of interconnections between the levels of logic.The method is based on dividing the set of internal states into two subsets.Each subset corresponds to a unique part of an FSM circuit.Only a single LUT is required for implementing each function generated by the first part of the circuit.The second part is represented by a multi-level circuit.The proposed method belongs to the group of two-fold state assignment methods.Each internal state is encoded as an element of the set of states and as an element of some of its subsets.A binary state assignment is used for states corresponding to the first part of the FSM circuit.The one-hot assignment is used for states corresponding to the second part.An example of FSM synthesis with the proposed method is shown.The experiments with standard benchmarks are conducted to analyze the efficiency of the proposed method.The results of experiments show that the proposed approach leads to diminishing the number of LUTs in the circuits of rather complex Mealy FSMs having more than 15 internal states.The positive property of this method is a reduction in energy consumption (without any overhead cost) and an increase in operating frequency compared with other investigated methods.
Introduction
2Various sequential blocks are widely used in modern digital systems (Gajski et al., 2009;Micheli, 1994).Very often, sequential blocks are represented using models of finite state machines (FSMs) (Baranov, 2008;Micheli, 1994).For example, FSMs are used for implementing: (i) hardware-software interfaces of embedded systems (Gajski et al., 2009), (ii) complex functions such as hyper-tangent and exponentiation functions (Brown and Card, 2001;Li et al., 2014), (iii) activation functions in deep neural networks (Li et al., 2017;Xie et al., 2017), (iv) some blocks for integral stochastic computing (Ardakani et al., 2017), (v) different stages of cascaded digital processing systems (Rafla and Gauba, 2010;Glaser et al., 2011;Das and Priya, 2018).Also, they are used for the synthesis of control units of digital systems (Czerwiński and Kania, 2013;Sklyarov et al., * Corresponding author 2014; Baranov, 1994;Kubica et al., 2019;Opara et al., 2019;Kubica and Kania, 2017;Opara and Kania, 2010;Nowicka et al., 1999;Barkalov and Barkalov Jr., 2005).An analysis of the literature (Sutter et al., 2002;Cong and Yan, 2000;Sklyarov, 2000;Garcia-Vargas et al., 2007;Tiwari and Tomko, 2004) shows that Mealy FSMs are used very often in logic design.Based on this analysis, we choose this model in our current research.
3Nowadays, the field programmable gate arrays (FPGAs) are widely used for implementing FSM logic circuits (Maxfield, 2004;Grout, 2008).The majority of FPGAs are based on look-up table (LUT) elements connected with programmable flip-flops (Altera, 2020;Xilinx, 2015).
4To compare outcomes of different FSM-based design methods, basically, three metrics are used.These are (i) the chip area occupied by an FSM circuit, (ii) the performance and (iii) the consumed energy (Barkalov et al., 2020b;Czerwiński and Kania, 2013).In the case of LUT-based FSMs, the chip area is proportional to the number of LUTs in the circuit.We use the number of LUTs to compare different solutions.
5As a rule, the number of inputs S L of a LUT is rather small (S L ≤ 6) (Altera, 2020;Xilinx, 2015).It leads to the necessity of functional decomposition for Boolean functions representing the FSM logic circuit (Scholl, 2001;Kam et al., 2010;Nowicka et al., 1999).It results in an increase of the number in layers of LUTs in the circuit and in complication for interconnections.In turn, it results in increasing the propagation time and power consumption (Sutter et al., 2002;Wu et al., 2000).
6The functional decomposition (Rawski et al., 2005;Michalski and Kokosiński, 2016) leads to multi-level FSM circuits with irregular connections, when the same variables appear at different levels of a circuit.This complicates the process of routing and may lead to an increase in the overall length of interconnections.In fact, this leads to an increase in power consumption (Sklyarov et al., 2014).To make the interconnections more regular, it is possible to use methods of structural decomposition (Barkalov et al., 2020b).
7In this article, we propose a design method for hardware reduction in FPGA-based Mealy FSMs.The method is based on the joint use of two-fold state assignment (Barkalov et al., 2020b) and one-hot state assignment (Kubatova and Becvar, 2002;Kołopieńczyk et al., 2017).The main contribution of the article is a novel approach extending the scope of Mealy FSM synthesis methods based on two-fold state assignment (Barkalov et al., 2018;2020b).Our experiments with standard benchmarks (LGSynth93, 1993) show that this approach allows improving all three main characteristics of LUT-based Mealy FSMs compared with FSM circuits obtained using other known design methods.
Background of Mealy FSMs
8A Mealy FSM is defined as the sextuple S = (X, Y, A, δ, λ, a 1 ) (Baranov, 2008;Micheli, 1994), where X = {x 1 , . . ., x L } is a finite set of inputs, Y = {y 1 , . . ., y N } is a finite set of outputs, A = {a 1 , . . ., a M } is a finite set of states, δ : A × X → A is the transition function, λ : A × X → Y is the output function, a 1 ∈ A is the "reset" state.
9A Mealy FSM can be represented using different approaches.They include state transition graphs, state transition tables (Baranov, 1994;Micheli, 1994), binary decision diagrams (Opara et al., 2019;Kubica and Kania, 2017), and-inversion graphs (Testa et al., 2019;Mishchenko and Brayton, 2006;2007) used in ABC systems (Brayton and Mishchenko, 2010).To explain our approach, we choose state transition tables (STT).This form of representation is the closest to the KISS2 format (Barkalov et al., 2015) used in our investigations.
10An STT includes the following columns (Baranov, 1994): a m is the current state; a s is the state of transition (a next state); X h is a conjunction of inputs (or their compliments) determining a transition from a m to a s ; h is a transition number (h ∈ {1, . . ., H}).For example, the STT (Table 1) represents some Mealy FSM S 1 .
11Using Table 1, the following parameters of S 1 can be found: the number of inputs L = 10, the number of outputs N = 11, the number of states M = 10, the number of transitions H = 23.
12When the set of states is constructed, the step of state assignment should be executed (Micheli, 1994).During this step, each state a m ∈ A is represented by its code K(a m ) having R bits.The variables T r ∈ T are used for state assignment, where T is a set of state variables.The method of one-hot state assignment is very popular in the FPGA-based design of FSMs (Kubatova and Becvar, 2002).But very often, a binary state assignment is more preferable, in which
13(1)
14A special register (RG) is used to keep the state codes.It includes R flip-flops with mutual synchronization pulse Clock and mutual clearing pulse Start.As a rule, D flip-flops are used for implementing RGs (Baranov, 2008;Czerwiński and Kania, 2013).To change the content of the RG, input memory functions D r ∈ Φ are used, where Φ = {D 1 , . . ., D R }.To design a logic circuit of a Mealy FSM, a structure table (ST) should be constructed (Baranov, 1994).It is an expansion of an STT by the columns with codes of current and next states (K(a m ) and K(a s ), respectively).Also, an ST includes a column Φ h with symbols D r ∈ Φ corresponding to 1's in the code K(a s ) from the h-th row of ST (h ∈ {1,. . . ,H}).
15This table forms a basis for deriving functions
16The functions (2) and ( 3) are used for implementing the FSM logic circuit.
State-of-the-art
17The trivial structural diagram of Mealy FSM U 1 is shown in Fig. 1.Here the symbol LUTer determines a circuit implemented with LUTs.
18In FSM U 1 , the LUTerΦ implements the system (2), and the LUTerY the system (3).If a function D r is generated as the output of some LUT, then this output is connected with a flip-flop.These flip-flops form a state register RG distributed among the logic elements.This explains the presence of pulses Clock and Start as inputs of LUTerΦ.
19The process of FSM design has always been associated with the necessity of solving optimization problems (Micheli, 1994).As a rule, when designing FPGA-based FSMs, four basic optimization problems arise (Barkalov et al., 2015;Khatri and Gulati, 2011).They are (i) a decrease in the chip area occupied by an FSM circuit (hardware reduction), (ii) the reduction in the signal propagation time (an increase in the clock frequency); (iii) reduction in power consumption, and (iv) an improvement of testability.In this article, we consider the first of these problems.
20The main disadvantage of U 1 is the following: each function D r ∈ Φ and y n ∈ Y could depend on up to L + R arguments.The analysis of the library of LGSynth93 (LGSynth93, 1993) shows that for some benchmark FSMs we have L + R ≥ 20.At the same time, for modern LUTs S L ≤ 6 (Altera, 2020;Xilinx, 2015).Thus, the following condition very often takes place:
21If ( 4) is satisfied for some FSM, then the problem of hardware reduction arises.
22There are four main approaches to solving this problem, namely:
23(a) optimal state assignment (Baranov, 2008;Micheli, 1994;Kam et al., 2010), (b) functional decomposition of Boolean functions representing an FSM circuit (Scholl, 2001;Nowicka et al., 1999;Rawski et al., 2005;Machado and Cortadella, 2020), (c) the replacement of LUTs by embedded memory blocks (EMB) (Sklyarov et al., 2014;Sutter et al, 2002;Cong and Yan, 2000;Sklyarov, 2000;Garcia-Vargas and Senhadji-Navarro, 2015;Tiwari and Tomko, 2004;Barkalov et al., 2015;2020a;Rawski et al., 2011;Kołopieńczyki et al., 2017), (d) structural decomposition of an FSM circuit (Sklyarov et al., 2014;Barkalov and Titarenko, 2009;Kołopieńczyk et al., 2017;Barkalov et al., 2020b).
24We shall understand the optimal state assignment as a process of obtaining state codes allowing to reduce the number of arguments in functions (2) and (3).These functions are represented as sum-of-products (SOP) (Micheli, 1994).Each product term F h is represented as
. , H}).
25(5)
26In ( 5), the symbol A m stands for the conjunction of state variables corresponding to the state code K(a m ) from the h-th row of ST.
27The number of bits in K(a m ) can range from log 2 M to M .If R = M , it is a one-hot state assignment (Sutter et al., 2002).When the one-hot method is used, only a single state variable forms a conjunction A m (m ∈ {1, . . ., M}).It allows decreasing the number of arguments in terms (5).This leads to circuits with fewer LUTs and layers of logic than in the case of binary encoding.This approach is used in the ABC system by Berkeley (Brayton and Mishchenko, 2010;ABC System, 2020).The results of Sutter et al. (2002) show that one-hot is "attractive for large FSMs, but a better implementation of small machines can be obtained using binary encoding."The results of investigations reported by Sklyarov (2000) show that binary encoding gives better results if L > 10.
28One of the most popular state assignment algorithms is JEDI, which is distributed with the system SIS (Sentowich et al., 1992).It targets a multi-level logic implementation.It maximizes either the size of common cubes in logic functions (the input dominant algorithm) or the number of common cubes in a logic function (the output dominant algorithm).
29Modern industrial packages use a lot of different state assignment strategies.For example, the following methods are used in the design tool XST of Xilinx (Xilinx, 2020a): the automatic state assignment, one-hot, compact, Gray codes, Johnson codes, speed encoding.Also, all these methods are implemented in the CAD tool Vivado of Xilinx (Vivado, 2020).
30Therefore, there are a lot of state assignment methods.It is really difficult to say which is the best for a particular FSM.
31Functional decomposition is very popular in the FSM design (Scholl, 2001;Rawski et al., 2005;Rawski et al., 2011;Machado and Cortadella, 2020).If the number of arguments for some function exceeds S L , then the original function is broken down into smaller and smaller components.There are three basic approaches in this area: serial, parallel and balanced decompositions.In each step of the serial decomposition, the numbers of circuit levels and input-output delays are increasing.In the parallel decomposition, these characteristics are minimized.The balanced decomposition allows finding a solution which maximizes advantages and minimizes disadvantages of two previous strategies (Michalski and Kokosiński, 2016).These approaches are used, for example, in the systems DEMAIN (Rawski et al., 1997) or PKmin (PKmin, 2020).Obviously, there are program tools for functional decomposition in any CAD targeting FPGA-based design.
32Modern FPGAs have a lot of embedded memory blocks (Altera, 2020;Xilinx, 2015).Using EMBs allows for an improvement of main characteristics of FSM circuits (Sklyarov, 2000).Because of this, there are many design methods targeting EMB-based FSMs (Sklyarov et al., 2014;Baranov, 1994;Cong and Yan, 2000;Sklyarov, 2000;Garcia-Vargas et al., 2007;Tiwari and Tomko, 2004;Rawski et al., 2011;Kołopieńczyk et al., 2017;Barkalov et al., 2020a;Borowik, 2018).
33The EMBs have a property of configurability.This means that parameters such as the number of cells and their outputs could be changed by a designer (Grout, 2008).Typical configurations of EMBs are the following: 32K×1, 16K×2, 8K×4, 4K×8, 2K×16, 1K×32, 512×64, 256×128 (bits) (Altera, 2020;Xilinx, 2015).Thus, modern EMBs are very flexible and can be tuned to meet a particular FSM.
34A survey of different approaches to EMB-based design can be found in the work of Garcia-Vargas and Senhadji-Navarro (2015).Let us point out that these methods could be used only if there are "free" EMBs, which are not used for implementation of other parts of a digital system.
35In the case of structural decomposition, an FSM circuit is represented by several blocks (Barkalov et al., 2020b).Each block implements additional functions different from ( 2) and ( 3).The methods of structural decomposition are characterized by the following: systems of additional functions are implemented as separate blocks of FSM circuits.Each block has its own inputs and outputs different from the inputs and outputs of other blocks.This allows obtaining FSM circuits with more regular interconnections than for their counterparts based on functional decomposition.
36Let us point out that the methods of structural decomposition are not widely used in FPGA-based design.But we think that this approach has a good potential.They can be used together with methods of functional decomposition and resynthesis (Testa et al., 2019;Mishchenko and Brayton, 2006;2011).These three groups of methods complement each other.Using them together can improve the characteristics of FSM circuits.
37In this article we propose a design method targeting LUT-based Mealy FSMs.The method is based on a structural decomposition of the FSM circuit.It is a technology-dependent method because it takes into account the number of LUT's inputs S L .
38The proposed method is an evolution of ideas from (Barkalov et al., 2020b;2018).We divide an initial FSM in two parts.The two-fold state assignment (Barkalov et al., 2020b) is used in the first part.The one-hot state assignment and functional decomposition are used in the second part.This leads to a Mealy FSM U 2 discussed in the next section.
Main idea of the proposed method
39Let a Mealy FSM S be presented by its STT.Encode states a m ∈ A by binary codes K(a m ) having R = log 2 M bits.Transform the STT into an ST of Mealy FSM S.
40Let X(a m ) ⊆ X be a set of inputs determining transitions from a state a m ∈ A. Represent the set A as
41Construct a partition Π A = {A 1 , . . ., A I } of the set A R such that the following condition takes place:
42In ( 6), the symbol R i stands for the number of state variables necessary to encode the states a m ∈ A i , the symbol L i is the number of inputs x e ∈ X i determining transitions from the states a m ∈ A i .
749
43Encode the states a m ∈ A i by binary codes C R (a m ) having R i bits:
44Use the state variables τ r ∈ τ = {τ 1 , . . ., τ RA } to encode the states a m ∈ A i .The following relation takes place:
45) and Φ i ⊆ Φ (input memory functions written in the column Φ i h ).Each state a m ∈ A has two state codes.The code K(a m ) identifies the state a m as an element of the set A. The code C 0 (a m ) identifies the state a m as an element of the set A 0 , the code C R (a m ) as an element of the set A R .
46Each subtable ST i corresponds to a block LUTeri.From ( 6) it follows that it is sufficient to have only a single LUT having S L inputs for implementing any function
. , I}).
47Based on this preliminary information, we propose the structural diagram of Mealy FSM U 2 (Fig. 2).
48The block LUTeri implements functions
49The block LUTer0 implements functions
50In ( 8) and (9), the symbol τ i stands for the subset of T whose variables are used to create codes C R (a m ), where a m ∈ A i .
51The block LUTerOR generates outputs y n ∈ Y and state variables T r ∈ T .This block includes the distributed register RG keeping state codes K(a m ).As a result, pulses Start and Clock enter the LUTerOR.
LUTerOR
52The block LUTerC transforms state codes K(a m ) into state codes C 0 (a m ) and C R (a m ).As a result, variables τ r ∈ T and β r ∈ B are generated.This means that the LUTerC implements the functions:
53At each time instant, only a single LUTeri is "active."It means that there are ones on some outputs of this block.There are only zeros on outputs of other blocks.These blocks are "idle."Use the codes C r (a m ) with all zeros to show that a block is idle.This explains the presence of 1 in ( 7)
54The analysis of FSM U 2 (Fig. 2) shows that its circuit has the following specifics.Firstly, it has exactly three levels of logic blocks.Secondly, each level of blocks has its own unique input and output variables.The variables x e ∈ X, τ r ∈ T and β r ∈ B enter only blocks of the first level.Their outputs enter only the block LUTerOR.The same is true for the pulses Start and Clock.The variables T r ∈ T (outputs of LUTerOR) enter only the third level of the FSM circuit.In addition, state variables τ r ∈ T i enter only the block LUTeri (i = 1, I).Thus, the proposed approach leads to LUT-based FSM circuits with regular systems of interconnections.
55The condition ( 6) is violated for states a m ∈ A 0 .Therefore, the circuit of block LUTer0 includes more than a single level of logic.To implement the circuit of LUTer0, it is necessary to apply methods of functional decomposition.
56Let the symbol U i (S j ) mean that: (i) an FSM S j is represented by an STT and (ii) the model U i is used to synthesize an FSM circuit.In this article, we propose a design method for Mealy FSM U 2 (S j ).The method includes the following steps:
571. Finding the set A from the initial STT.Partitioning the set A into sets A 0 and A R using the value of S L and sets X(a m ) ⊆ X.
Encoding of states a
583. Constructing the structure table of Mealy FSM S j .This step is executed using the rules from (Baranov, 1994).12) and ( 13).
Constructing the partition
5911. Implementing the FSM circuit with particular LUTs.
60We discuss this method in detail in Sections 5 and 6.We use LUTs with S L = 5.In Section 5 we show how to use this method for the synthesis of Mealy FSM U 2 (S 1 ).
61In Section 6 we discuss how to construct the partition Π A with a minimum number of classes.
Example of synthesis
62As can be seen from the STT (Table 1), the set A includes M = 10 elements.Transitions from states a 1 , . . ., a 9 ∈ A depend on up to 3 inputs.Transitions from the state a 10 ∈ A depend on 5 inputs.Because S L = 5, the set A R includes all states except the state a 10 .It gives the sets A R = {a 1 , . . ., a 9 } and A 0 = {a 10 }.
63Using (1) gives R = 4, T = {T 1 , . . ., T 4 } and Φ = {D 1 , . . ., D 4 }.Encode the states a m ∈ A in the trivial way: K(a 1 ) = 0000, K(a 2 ) = 0001, . . ., K(a 10 ) = 1001.Now, we can construct the structure table of FSM S 1 (Table 2).To this end, we use Table 1 and the rules from (Baranov, 1994).
64Step 4 is the most important stage of the proposed design method.It determines the hardware amount in the resulting circuit.We discuss this step in the next section.In this section, we just use a partition
65Using Table 2, the following sets could be found:
66Obviously, there is no influence of the outcome of state encoding on the hardware amount in blocks LUTer1-LUTer3.Therefore, we can encode the states in the following way:
67To construct subtables ST i (i ∈ {1, 2, 3}), we should (i) take the corresponding rows of ST and (ii) replace codes K(a m ) by codes C R (a m ).For example, the LUTer1 is represented by Table 3.To construct Table 3, we use rows 1-5 and 9 of the structure table (Table 2).The superscript 1 in Table 3 means that the corresponding functions are generated by LUTer1.The subtables ST 2 and ST 3 are constructed in the same manner.
68Using Table 3, the equations for functions y 1 n ∈ Y 1 and D 1 r ∈ Φ 1 can be found.In these equations, the conjunctions A m in (5) depend on variables τ r ∈ T 1 .For example, the following equations can be derived from Table 3:
69. Acting in the same manner, it is possible to find all functions (8) and ( 9).
70The presence of Step 8 is the main difference between the proposed approach and our previous methods (Barkalov et al., 2018;Barkalov et al., 2020b).Let us discuss this step for a given example.
71We have A 0 = {a 10 }.This gives R 0 = 1 and the set B = {β 1 }.Using Table 2, we can get sets X 0 = {x 3 , x 7 , . . ., x 10 }, Y 0 = {y 2 , y 3 , y 4 , y 7 , y 9 , y 10 , y 11 } and Φ 0 = Φ.The state encoding is trivial in the discussed case: C 0 (a 10 ) = 1.
72To construct the subtable ST 0 , we should use rows 11-23 of the ST (Table 2).Replacing K(a 10 ) = 1001 by C 0 (a 10 ) = 1 gives ST 0 (Table 4).We hope that the connection between Tables 2 and 4 is transparent.
73Using Table 4, we can derive the following system of Boolean functions:
74We have S L = 5 for our example.There are 6 arguments in terms corresponding to rows 1 and 2 of Table 4. Thus, it is necessary more than a single LUT to implement circuits for functions from columns Y 0 and Φ 0 written in rows 1 and 2. This means that two levels of logic are necessary in circuits for functions y 0 3 , y 0 4 , y 0 7 , y 0 9 and D 0 3 .Only a single LUT is sufficient to implement each of functions y 0 2 , y 0 10 , y 0 11 , D 0 1 , D 0 2 and D 0 4 .To implement multi-level circuits, the methods of functional decomposition should be used.This results in the following transformed equations of the system (14):
75The circuit of LUTer0 is shown in Fig. 3.It includes 15 LUTs with S L = 5.The circuit is based on ( 14) and ( 15).
76As can be seen from Fig. 2, functions generated by LUTer0 are used as arguments of functions generated by LUTerOR.But functions y 9 -y 11 are generated only by LUTer0.This means that the circuit of LUTerOR does not contain LUTs with outputs y 9 -y 11 .Only outputs y 1 -y 8 are generated by LUTerOR.
77To find equations representing LUTerOR, it is necessary to analyse sets Y i and Φ i .For example, we have the relation
78Acting in the same way, it is possible to find equations for all functions generated by LUTerOR.If a function D r is generated by some LUTeri, then pulses Clock and Start should be connected with the corresponding LUT of LUTeri.
79The table of LUTerC has M rows.It includes columns a m , K(a m ), C 0 (a m ), C R (a m ), B m , τ m , m.The meaning of these columns is clear from Table 5.
80Using Table 5, we can find equations ( 12) and (13).For example, we can find that β 1 = T 1 T 4 , and τ 1 = T1 T2 T 4 .To get these equations, we use some rules of minimizing Boolean functions (Micheli, 1994).
81To implement an FSM circuit, it is necessary to use standard CAD tools (Altera, 2020;Xilinx, 2015).They Table 3. Table ST1 form bit-streams for each LUT.Also, they execute the technology mapping of FSM circuit.We do not discuss this step for our example.
Constructing partition for a set of states
82We should find a partition Π A of the set A R with a minimum number of blocks I and such that restriction (6) takes place for each block A i ∈ Π A .To solve this problem, we propose a simple sequential algorithm for finding a partition Π A .
83Each state a m ∈ A is characterized by two sets.The set X(a m ) includes input variables determining transitions from state a m ∈ A. The set Y (a m ) includes outputs generated during transitions from state a m ∈ A.
84We use two evaluations to find the partition.The first of them determines how many new input variables will be added to the set X i due to including the state a m into the class A i ∈ Π A .The second of them determines the number of outputs common for both sets Y (a m ) and Y i .Let us denote these evaluations by the symbols N (a m , X i ) and N (a m , Y i ), respectively.They are calculated as follows:
85)
86In ( 16), the symbol "\" means the subtraction of sets.Each block A i ∈ Π A is generated in two stages.At the first stage, we take the state a m ∈ A * as a basic element (BE) of A i .Here A * is a set of states which were not distributed after forming the block A i−1 ∈ Π A .The BE should satisfy to the following relation:
87If condition (18) takes place for states a m and a s , we will choose the state a m if m > s.
88The second stage is a multistep one.At each step, the next state is successively added to the block A i in accordance with the rules given below.The process of forming block A i is terminated when all states are already distributed among the blocks or when it is not possible to include any state in A i without violation of (6).
89There are the following rules for including the next successive state in A i .Let A * include all unallocated states a m ∈ A. Choose all states a m ∈ A * whose inclusion into A i does not violate the restriction (6).Place them in a set P (A i ).Select a state a m ∈ P (A i ) with the minimum value of evaluation ( 16).It is the first rule.
90If there are more than one such state, then choose a state having maximum value of evaluation (17).If more than one state has such a property, then one of them is included into A i .Next, all elements are eliminated from P (A i ).It is the second rule.Let us discuss an example of forming the partition Π A for a Mealy FSM represented by an STT (Table 1).The process is shown in Table 6.We assume that S L = 5.Hence, the following pairs L i , R i are possible: 0, 5 , 1, 4 , 2, 3 , 3, 2 , 4, 1 .
91Let us explain the columns of Table 6.The column a m contains states of the FSM.There are numbers of input variables in column |X(a m )|.The columns BE i (i = 1, 2, 3) contain basic elements for Step i.The symbol "I" stands for N (a m , X i ), the symbol "II" for N (a m , Y i ).The sign ⊕ means that the state in the corresponding row is included in the set A i .The sign "-" means that a m / ∈ A * , where a m is the state from the corresponding row.There are states a m ∈ A i in the row A i .They are shown in the order of selecting.
92As can be seen from Table 6, the process of selection includes 9 steps.As a result, we obtain the following partition Π A = {A 1 , A 2 , A 3 } with I = 3 blocks: A 1 = {a 1 , a 2 , a 4 }, A 2 = {a 3 , a 5 , a 8 }, A 3 = {a 6 , a 8 , a 9 }.As can be seen, this partition is the same as that used in Section 5.
93Using the first rule allows decreasing the number of the same variables x e ∈ X in different blocks A i ∈ Π A .In turn, this leads to a decrease in the number of LUTs compared with the situation when the inputs x e ∈ X are duplicated in different blocks A i ∈ Π A .This also leads to further regularization of the system of interconnections.
94Using the second rule allows decreasing the number of the same variables y n ∈ Y in different blocks A i ∈ Π A .It could lead to a decrease in the number of LUTs compared with the situation when the outputs y n ∈ Y are duplicated in different blocks A i ∈ Π A .This also reduces the number of interconnections between blocks LUTeri (i = 1, I) and the block LUTerOR.Obviously, the fewer such interblock connections, the more likely is that there is only a single level of LUTs in the circuit of LUTerOR.
753
95Table 6.Forming of partition ΠA.
am X(am) BE1
96a2 a1 a4 a3 a5 a8 a6 a8 a9
Experimental results
97To investigate the efficiency of the proposed method, we use standard benchmarks from the LGSynth93 library (LGSynth93, 1993).It includes 48 benchmarks appearing in the practice of FSM design.These benchmarks are Mealy FSMs presented in the KISS2 format.
98To work with these benchmarks, we used the CAD tool named K2F.It translates the KISS2 file into a VHDL model of an FSM.To synthesize and simulate the FSM, we use the Active-HDL environment.To get the FSM circuit, we use Xilinx CAD tool Vivado 2019.1 (Vivado, 2020).The investigation path used in our system is shown in Fig. 4.
99The target platform was the FPGA device Xilinx Virtex-7 (XC7VX690tffg1761-2, Virtex-7 VC709 Evaluation platform).It includes LUTs having S L = 6.
100We compared our approach with four other methods: (i) Auto of Vivado 2019.1, (ii) One-hot of Vivado 2019.1, (iii) JEDI, (iv) DEMAIN.In all these cases, the model of U 1 (Fig. 1) is used.The results of experiments are shown in Table 7 (for the number of LUTs), Table 8 (for the operating frequency), and Table 9 (for the consumed energy).
101All tables are organized in the same order.Their rows are marked with the names of benchmarks, the columns with design methods.The rows "Total" include results of summation for the corresponding values.We have included the summarized characteristics of U 2 as 100%.The rows "Percentage" show the percentage of the summarized characteristics with respect to the benchmarks synthesized as U 2 .
102As can be seen from Table 7, the proposed method allows minimizing the number of LUTs in U 2 -based circuits in comparison with other investigated methods.There is the following savings: (i) 34.7% regarding Auto, (ii) 58.2% regarding to the One-hot, (iii) 12.8% regarding the JEDI-based FSMs and (iv) 20.4% regarding DEMAIN.
103The following conclusion can be made.Our approach gives better results for FSMs having more than 15 states.If M < 15, then JEDI-based FSMs require fewer LUTs.DEMAIN sometimes produces better circuits than JEDI (for rather simple FSMs).
104In all investigated cases, our approach produces FSM circuits having exactly three levels of logic.This is because
105for all benchmarks from LGSynth93 (LGSynth93, 1993).
106Our approach allows obtaining FSM circuits with more regular interconnections than for other investigated methods.Accordingly, U 2 -based FSMs yield better results for both the operating frequency (Table 8) and the power consumption (Table 9).
107As can be seen from Table 8, our approach gives the following gain in the operating frequency: (i) 12% in comparison with both Auto and DEMAIN, (ii) 11% in comparison with One-hot, (iii) 5% in comparison with JEDI-based FSMs.Table 8 demonstrates that the following gains in the consumed energy: (i) 45.7% in comparison with Auto, (ii) 52.7% in comparison with One-hot, (iii) 12.4% in comparison with JEDI and (iv) 16.8% in comparison with DEMAIN.
108Let us point out that reducing power consumption, in our case, is not associated with additional overhead costs.The known methods in this area are connected to: (i) the representation of the initial FSM as a network of interacting automata (Chow et al., 1996;Liu et al., 2005), or (ii) the special state assignment (Benini and De Micheli, 1995;Benini et al., 2001;Agrawal et al., 2019), or (iii) the clock gating (Nag et al., 2018) or (iv) the power gating (Pradhan et al., 2011;Choudhury and Pradhan, 2012;Benini et al., 2000).We do not discuss these methods in detail.Note only that they are associated with the use of additional circuits and the introduction of a delay in the clock cycle.Our method is free from these drawbacks.
109As can be seen from Tables 8 and 9, our approach gives better results for FSM, with M > 15.For simpler FSMs, better results are produced either by JEDI or DEMAIN.Of course, all these conditions are valid only for the benchmarks (LGSynth93, 1993) and the device XC7VX690tffy1761-2.It is almost impossible to make similar conclusions for the general case.However, it follows from our experiments that our approach gives good results for the cases when (i) the condition ( 19) takes place and (ii) the number of FSM states exceeds 15.
110This conclusion is supported by comparison of our approach with some other methods when the Virtex 5 family of Xilinx is used.In this case, we used the benchmarks (LGSynth93, 1993), the device XC5VLX30FF324 and the Xilinx ISE 14.1 package (Xilinx, 2020b) instead of Vivado.We compared our approach with U 1 -based FSMs implemented using: (i) Auto of ISE, (ii) One-hot of ISE, (iii) JEDI and (iv) DEMAIN.
111As it is for Vivado-based research, our approach allows minimizing the number of LUTs in FSM circuits in comparison with other investigated methods.We got the following savings: (i) 23% in comparison with Auto, (ii) 29% in comparison with One-hot, (iii) 9% in comparison with JEDI and (iv) 14% in comparison with DEMAIN.Again our approach gives better results for FSMs having M > 15.The same is true for the operating frequency.
112Next, we compared FSMs U 2 and PY Mealy FSMs based on two-fold state assignment and encoding of collections of outputs (Barkalov et al., 2018).
113The comparison was performed using the CAD tool Vivado 2019.1, standard benchmarks (LGSynth93, 1993) and the FPGA device XC7VX690tffy1761-2 by Xilinx (Virtex 7).The results of comparison showed that both approaches lead to FSM circuits with better characteristics than for Auto, One-hot, JEDI and DEMAIN.At the same time, the PY-based FSMs had better characteristics for numbers of LUTs and consumed energy.However, the U 2 -based Mealy FSMs had better performance.
114To investigate the effect of the number of inputs (S L ) on the efficiency of the proposed method, we use the FPGA chips of Virtex-4 (Xilinx, 2010).To get the FSM circuits, we use Xilinx CAD tool ISE 14.1 (Xilinx, 2020b).The chip XC4VLX40FF668-12 was used at this stage.It includes LUTs having S L = 4.
115We compared our approach with three other methods: Auto of ISE 14.1, One-hot of ISE 14.1, PY Mealy FSM (Barkalov et al., 2018).We used the model U 1 (Fig. 1) to get the results for Auto and One-hot.The following conclusion can be made on the base of these investigations.
116The method of Barkalov et al. (2018) cannot be used for the most complex benchmarks of the LGsynth93 library (ex1, keyb, kirkman, planet, planet1, s1488, s1494, s208, sand, s420, s510, s820, s832).This means that the condition ( 6) is violated for these benchmarks.Our approach produced circuits for all benchmarks.Therefore, the proposed approach allows using two-fold state assignment (Barkalov et al., 2020b) for any Mealy FSM.The proposed method is free from the limitations inherent to the method (Barkalov et al., 2020b).
117As it is for circuits based on LUTs with S L = 6, our approach allows minimizing the number of LUTs with S L = 4 in comparison with other investigated methods.But if S L = 4, then one-hot-based FSMs and U 2 -based FSMs have almost the same number of LUTs for complex benchmarks having more than either 15 states or 10 inputs.The library LGSynth includes 23 benchmarks with such characteristics.
118We think that this phenomenon is related to the following: the more states and inputs an FSM has, the more states the class A 0 includes.We use the one-hot state assignment for states a m ∈ A 0 .Therefore, as the ratio of |A 0 | to M grows, more states have one-hot codes.
Conclusion
119The paper presents an original approach targeting FPGA-based Mealy FSMs.The proposed design method leads to FSM circuits having exactly three levels of logic and regular interconnections between these levels.It is based on the representation of an FSM as two interconnected parts.The first of these parts is synthesized based on the states for which |X(a m )| < S L .The second part is synthesized based on states for which |X(a m )| ≥ S L .This representation allows overcoming the main drawback of the methods (Barkalov et al., 2020b), which cannot be used if there is at least a single state violating the condition (6).In consequence, the proposed method can be applied to arbitrary Mealy FSMs.
120The experiments clearly show that our approach leads to a reduction in the number of LUTs in comparison with circuits obtained by Xilinx Vivado 2019.1,JEDI-based FSMs and DEMAIN.It is also worth pointing that it allows obtaining higher operating frequency and consuming less power than for FSMs designed using the above-mentioned methods.Thus, our approach allows improving all three main characteristics of FSM circuits.
121In conclusion, it should be noted that our approach gives good results for rather complex FSMs having more than 15 internal states.The best results can be achieved if the number of LUTers for the first level does not exceed the number of LUT inputs.
122Note that the smaller the ratio |A 0 |/M , the better the characteristics of U 2 -based FSMs (compared with the characteristics of FSM circuits based on other investigated methods).
123There are two directions for our future research.The first direction is related to the research of the applicability of our approach to FSMs implemented with FPGAs by Intel (Altera).Next, we will try to use this approach for improving characteristics of LUT-based Moore FSMs.Benini, L., De Micheli, G. and Macii, E. (2001).Designing low-power circuits: Practical recipes, IEEE Circuits and Systems Magazine 1(1): 6-25.bbara 193,39 193,39 212,21 198,46 210,37 bbsse 157,06 169,12 182,34 178,91 198,65 bbtas 204,16 204,16 206,12 208,32 200,38 beecount 166,61 166,61 187,32 184,21 201,43 cse 146,43 163,64 178,12 174,19 206,56 dk14 191,64 172,65 193,85 187,32 186,53 dk15 192,53 185,36 194,87 188,54 189,14 dk16 169,72 174,79 197,13 189,83 211,52 dk17 199,28 167 199,39 172,19 199,87 dk27 206,02 201,9 204,18 205,1 196,65 dk512 196,27 196,27 199,75 197,49 208,17 donfile 184,03 184 203,65 194,83 231,63 ex1 150,94 139,76 176,87 186,14 212,93 ex2 198,57 198,57 200,14 199,75 201,34 ex3 194,86 194,86 195,76 193,43 201,12 ex4 180,96 177,71 192,83 178,14 197,76 ex5 180,25 180,25 181,16 181,76 182,01 ex6 169,57 163,8 176,59 174,12 198,65 ex7 200,04 200,84 200,6 200,32 200,69 keyb 156,45 143,47 168,43 157,16 187,48 kirkman 141,38 154 156,68 143,76 174,73 lion 202,43 204 202,35 201,32 200,18 lion9 205,3 185,22 206,38 205,86 207,13 mark1 162,39 162,39 176,18 169,65 189,58 mc 196,66 195,47 196,87 192,53 196,12 modulo12 207 207 207,13 207,37 208,12 opus 166,2 166,2 178,32 168,79 177,84 planet 132,71 132,71 187,14 185,73 193,49 planet1 132,71 132,71 187,14 185,73 193,49 pma 146,18 146,18 169,83 153,57 184,45 s1 146,41 135,85 157,16 149,17 170,19 s1488 138,5 131,94 157,18 153,12 187,95 s1494 149,39 145,75 164,34 159,42 186,22 s1a 153,37 176,4 169,17 158,12 178,84 s208 174,34 176,46 178,76 172,87 196,37 s27 198,73 191,5 199,13 198,43 198,76 s386 168,15 173,46 179,15 169,21 182,63 s420 173,88 176,46 177,25 172,87 181,62 s510 177,65 177,65 198,32 183,18 209,36 s8 180,02 178,95 181,23 180,39 178,32 s820 152 153,16 176,58 166,29 192,14 s832 145,71 153,23 173,78 160,03 192,87 sand 115,97 115,97 126,82 120,63 163,18 shiftreg 262,67 263,57 276,26 276,14 256,69 sse 157,06 169,12 174,63 169,69 189,64 styr 137,61 129,92 145,64 138,83 178,65 tma 163,88 147,8 164,14 168,19 181,22 Total 8126,95 8173,06 8719,07 8103,27
Fig. 3 .
124Fig. 3. Logic circuit of LUTer0.
Fig. 4 .
125Fig. 4. Typical investigation path based on the K2F tool.
Table 1 .
126Structure table of the Mealy FSM corresponding to GSA Γ1.
127Π A for the set A R .
1285. Executing the state encoding for states a m ∈ A i (i ∈ {1, . . ., I}). 6. Constructing subtables ST i for states a m ∈ A i (i ∈ {1, . . ., I}).The subtables are extracted from the structure table of the Mealy FSM. 7. Deriving systems (8) and (9) from subtables ST i representing blocks LUTer1-LUTerI.
Table 2 .
129Structure table of Mealy FSM S1.
Table 5 .
130Table of LUTerC for Mealy FSM U2(S1)
Table 7 .
131Experimental results (the number of LUTs).
Table 8 .
132Experimental results (the consumed power, Watts).Benini, L. and De Micheli, G. (1995).State assignment for low power dissipation, IEEE Journal of Solid-State Circuits 30(3): 258-268.
Table 9 .
133Experimental results (the operating frequency, MHz).
참고문헌 57건
- 5 Logic Synthesis Method of Digital Circuits Designed for Implementation with Embedded Memory Blocks of FPGAs Lecture notes in electrical engineering · Springer Science+Business Media · 2011 10.1007/978-3-642-17545-9_5
- Scalable Logic Synthesis using a Simple Circuit Structure 2006
- Power Modeling of Power Gated FSM and Its Low Power Realization by Simultaneous Partitioning and State Encoding Using Genetic Algorithm Lecture notes in computer science · Springer Science+Business Media · 2012 10.1007/978-3-642-31494-0_3
- The Design Warrior's Guide to FPGAs Elsevier eBooks · Elsevier BV · 2004 10.1016/b978-0-7506-7604-5.x5000-4
- Logic Synthesis for FSM-Based Control Units Lecture notes in electrical engineering · Springer Science+Business Media · 2009 10.1007/978-3-642-04309-3
- Advanced Techniques in Logic Synthesis, Optimizations and Applications Springer eBooks · Springer Nature · 2010 10.1007/978-1-4419-7518-8
- Synthesis and Optimization of FPGA-Based Systems Lecture notes in electrical engineering · Springer Science+Business Media · 2014 10.1007/978-3-319-04708-9
- Digital Systems Design with FPGAs and CPLDs Elsevier eBooks · Elsevier BV · 2008 10.1016/b978-0-7506-8397-5.x0001-3
- Finite State Machine Logic Synthesis for Complex Programmable Logic Devices Lecture notes in electrical engineering · Springer Science+Business Media · 2013 10.1007/978-3-642-36166-1
- SIS : A System for Sequential Circuit Synthesis CTIT technical reports series · University of Twente · 1992
- Low-Power FSMs in FPGA: Encoding Alternatives Lecture notes in computer science · Springer Science+Business Media · 2002 10.1007/3-540-45716-x_36
- Synthesis of Finite State Machines : Functional Optimization 2013
- ABC: An Academic Industrial-Strength Verification Tool Lecture notes in computer science · Springer Science+Business Media · 2010 10.1007/978-3-642-14295-6_5
- TR-FSM ACM Transactions on Reconfigurable Technology and Systems · Association for Computing Machinery · 2011 10.1145/2000832.2000835
- Synthesis for FPGAs with embedded memory blocks 2000 10.1145/329166.329183
- Low power finite state machine synthesis using power-gating Integration · Elsevier BV · 2011 10.1016/j.vlsi.2011.03.003
- Scalable don't-care-based logic optimization and resynthesis ACM Transactions on Reconfigurable Technology and Systems · Association for Computing Machinery · 2011 10.1145/2068716.2068720
- Designing low-power circuits: practical recipes IEEE Circuits and Systems Magazine · Institute of Electrical and Electronics Engineers · 2001 10.1109/7384.928306
- An application of functional decomposition in ROM-based FSM implementation in FPGA devices Journal of Systems Architecture · Elsevier BV · 2004 10.1016/j.sysarc.2004.07.004
- Finite State Machines With Input Multiplexing: A Performance Study IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2015 10.1109/tcad.2015.2406859
- Synthesis of finite state machines: Functional optimization Microelectronics Journal · 1998 10.1016/s0026-2692(97)00075-x
- Low power realization of finite state machines—a decomposition approach ACM Transactions on Design Automation of Electronic Systems · Association for Computing Machinery · 1996 10.1145/234860.234862
- Decomposition-based logic synthesis for PAL-based CPLDs International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2010 10.2478/v10006-010-0027-1
- A reconfigurable pattern matching hardware implementation using on-chip RAM-based FSM 2010 10.1109/mwscas.2010.5548558
- Functional decomposition with application to FPGA synthesis 2001
- State assignment for low power dissipation IEEE Journal of Solid-State Circuits · Institute of Electrical and Electronics Engineers · 1995 10.1109/4.364440
- Logical Computation on Stochastic Bit Streams with Linear Finite-State Machines IEEE Transactions on Computers · Institute of Electrical and Electronics Engineers · 2012 10.1109/tc.2012.231
- Saving power by mapping finite-state machines into embedded memory blocks in FPGAs Design, Automation, and Test in Europe · 2004 10.5555/968879.969129
- Multi-code state assignment for low power design IEE Proceedings - Circuits Devices and Systems · Institution of Engineering and Technology · 2000 10.1049/ip-cds:20000671
- Synthesis and optimization of digital circuits Choice Reviews Online · Association of College and Research Libraries · 1994 10.5860/choice.32-0950
- DESIGN OF MEALY FINITE-STATE MACHINES WITH THE TRANSFORMATION OF OBJECT CODES International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2005
- A survey of design techniques for system-level dynamic power management IEEE Transactions on Very Large Scale Integration (VLSI) Systems · Institute of Electrical and Electronics Engineers · 2000 10.1109/92.845896
- ROM-Based Finite State Machine Implementation in Low Cost FPGAs 2007 10.1109/isie.2007.4374972
- Stochastic neural computation. I. Computational elements IEEE Transactions on Computers · Institute of Electrical and Electronics Engineers · 2001 10.1109/12.954505
- VLSI Implementation of Deep Neural Network Using Integral Stochastic Computing IEEE Transactions on Very Large Scale Integration (VLSI) Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tvlsi.2017.2654298
- Design of EMB-Based Moore FSMs Studies in systems, decision and control · Springer International Publishing · 2015 10.1007/978-3-319-24202-6_8
- Logic Synthesis for FPGA-Based Finite State Machines Studies in systems, decision and control · Springer International Publishing · 2015 10.1007/978-3-319-24202-6
- FSM Decomposition for Power Gating Design Automation in Sequential Circuits 2006 10.1109/icasic.2005.1611463
- Non-disjoint decomposition of Boolean functions and its application in FPGA-oriented technology mapping 2002 10.1109/eurmic.1997.617211
- Area–Oriented Technology Mapping for LUT–Based Logic Blocks International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2017 10.1515/amcs-2017-0015
- Functional decomposition of combinational logic circuits with PKmin Czasopismo Techniczne. Elektrotechnika · 2016 10.4467/2353737xct.16.257.6056
- Fully-Parallel Area-Efficient Deep Neural Network Design Using Stochastic Computing IEEE Transactions on Circuits & Systems II Express Briefs · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcsii.2017.2746749
- FPGA Implementation of Reconfigurable Finite State Machine with Input Multiplexing Architecture Using Hungarian Method International Journal of Reconfigurable Computing · Hindawi Publishing Corporation · 2018 10.1155/2018/6831901
- Low-Power FSM Synthesis Based on Automated Power and Clock Gating Technique Journal of Circuits Systems and Computers · World Scientific · 2018 10.1142/s0218126619200032
- Hardware Reduction for Lut–Based Mealy FSMs International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2018 10.2478/amcs-2018-0046
- Support-Reducing Decomposition for FPGA Mapping IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2018 10.1109/tcad.2018.2878187
- Optimization on the Complementation Procedure Towards Efficient Implementation of the Index Generation Function International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2018 10.2478/amcs-2018-0061
- A Technology Mapping of FSMs Based on a Graph of Excitations and Outputs IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2895206
- Methods of Improving Time Efficiency of Decomposition Dedicated at FPGA Structures and Using BDD in the Process of Cyber-Physical Synthesis IEEE Access · Institute of Electrical and Electronics Engineers · 2019 10.1109/access.2019.2898230
- Scalable Boolean Methods in a Modern Synthesis Flow Design, Automation & Test in Europe Conference & Exhibition (DATE), 2015 · 2019 10.23919/date.2019.8714776
- A State Encoding Methodology for Side-Channel Security vs. Power Trade-off Exploration 2019 10.1109/vlsid.2019.00031
- Logic Synthesis for FPGA-Based Control Units: Structural Decomposition in Logic Design 2020
- Encoding of Terms in EMB-Based Mealy FSMs Applied Sciences · Multidisciplinary Digital Publishing Institute · 2020 10.3390/app10082762
- Embedded System Design: Modeling, Synthesis and Verification 2009
- Logic Synthesis for Control Automata Springer eBooks · Springer Nature · 1994 10.1007/978-1-4615-2692-6
- Saving power by mapping finite-state machines into embedded memory blocks in FPGAs Proceedings Design, Automation and Test in Europe Conference and Exhibition · 2004 10.1109/date.2004.1269007
- Design of EMB-Based Moore FSMs Journal of Circuits Systems and Computers · World Scientific · 2017 10.1142/s0218126617501250