원시데이터 수집 시스템
선정목록으로

Improving characteristics of LUT-based Mealy FSMs

관련 필름·전자재료 · (14) 드라이 필름(포토레지스트)

기본 정보

저자
  1. Alexander Barkalov — Institute of Metrology, Electronics and Computer Science, University of Zielona Góra
  2. Larysa Titarenko — Institute of Metrology, Electronics and Computer Science, University of Zielona Góra
  3. Kamil Mielcarek — Institute of Metrology, Electronics and Computer Science, University of Zielona Góra
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 활용 포인트
–
평가 입력
–

초록

Practically, 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.

본문 79,920자

본문 펼치기
Int. J. Appl. Math. Comput. Sci., 2020, Vol. 30, No. 4, 745–759 <u>DOI: 10.34768/amcs-2020-0055</u> IMPROVING CHARACTERISTICS OF LUT–BASED MEALY FSMS ALEXANDER BARKALOV <sup>_a_</sup>, LARYSA TITARENKO <sup>_a_</sup>, KAMIL MIELCAREK <sup>_a,_</sup> <sup>*</sup> _a_ Institute of Metrology, Electronics and Computer Science University of Zielona Góra ul. Szafrana 2, 65-516 Zielona Góra, Poland e-mail: [{A.Barkalov,L.Titarenko,K.Mielcarek}@imei.uz.zgora.pl](mailto:{A.Barkalov, L.Titarenko, K.Mielcarek}@imei.uz.zgora.pl) Practically, 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. Keywords: FPGA, LUT, Mealy FSM, structural decomposition, two-fold state assignment, energy consumption. 1. Introduction Various 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´nski and Kania, 2013; Sklyarov _et_ _al_ ., *Corresponding author © 2020 A. Barkalov et al. This is an open access article distributed under 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. Nowadays, 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). To 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´nski and Kania, 2013). In the case <u>A. Barkalov</u> _<u>et al.</u>_ 74 ~~6~~ 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. As a rule, the number of inputs _SL_ of a LUT is rather small ( _SL_ _≤_ 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). The functional decomposition (Rawski _et_ _al_ ., 2005; Michalski and Kokosi´nski, 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). In 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´nczyk _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. 2. Background of Mealy FSMs A Mealy FSM is defined as the sextuple _S_ = ( _X, Y, A, δ, λ, a_ 1) (Baranov, 2008; Micheli, 1994), where _X_ = _{x_ 1 _, . . ., xL}_ is a finite set of inputs, _Y_ = _{y_ 1 _, . . ., yN_ _}_ is a finite set of outputs, _A_ = _{a_ 1 _, . . ., aM_ _}_ 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. A 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. An STT includes the following columns (Baranov, 1994): _am_ is the current state; _as_ is the state of transition (a next state); _Xh_ is a conjunction of inputs (or their compliments) determining a transition from _am_ to _as_ ; _h_ is a transition number ( _h_ _∈{_ 1 _, . . ., H}_ ). For example, the STT (Table 1) represents some Mealy FSM _S_ 1. Using 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. When the set of states is constructed, the step of state assignment should be executed (Micheli, 1994). During this step, each state _am_ _∈_ _A_ is represented by its code _K_ ( _am_ ) having _R_ bits. The variables _Tr_ _∈_ _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 _R_ = _⌈_ log2 _M_ _⌉._ (1) A 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´nski and Kania, 2013). To change the content of the RG, input memory functions _Dr_ _∈_ Φ are used, where Φ = _{D_ 1 _, . . ., DR}_ . Table 1. Structure table of the Mealy FSM corresponding to GSA Γ1. _am_ _as_ _Xh_ _Yh_ _h_ _a_ 1 _a_ 2 1 _y_ 1 _y_ 2 1 _a_ 2 _a_ 3 _x_ 1 _x_ 2 _y_ 1 2 _a_ 3 _x_ 1 _x_ ¯2 _y_ 2 _y_ 3 3 _a_ 3 _x_ ¯1 _x_ 3 _y_ 3 _y_ 4 4 _a_ 3 _x_ ¯1 _x_ ¯3 _y_ 5 5 _a_ 4 _x_ 3 _y_ 6 _y_ 7 6 _a_ 3 _a_ 4 _x_ ¯3 _x_ 4 _y_ 3 _y_ 5 7 _a_ 3 _x_ ¯3 _x_ ¯4 _y_ 5 8 _a_ 4 _a_ 5 1 _y_ 2 _y_ 3 9 _a_ 6 _x_ 7 _y_ 3 _y_ 6 10 _a_ 5 _a_ 3 _x_ ¯7 _y_ 5 11 _a_ 7 _x_ 5 _y_ 1 _y_ 7 12 _a_ 6 _a_ 7 _x_ ¯5 _y_ 8 13 _a_ 8 _x_ 6 _y_ 7 _y_ 8 14 _a_ 7 _a_ 7 _x_ ¯6 _y_ 8 15 _a_ 8 _a_ 9 1 _y_ 7 16 _a_ 9 _a_ 10 1 _y_ 1 17 _a_ 10 _a_ 3 _x_ 3 _x_ 7 _x_ 8 _x_ 9 _x_ 10 _y_ 3 _y_ 4 18 _a_ 1 _x_ 2 _x_ 7 _x_ 8 _x_ 9 _x_ ¯10 _y_ 7 _y_ 9 19 _a_ 5 _x_ 3 _x_ 7 _x_ 8 _x_ ¯9 _y_ 10 _y_ 11 20 _a_ 8 _x_ 3 _x_ 7 _x_ ¯8 _y_ 2 _y_ 3 21 _a_ 9 _x_ 3 _x_ ¯7 _y_ 11 22 _a_ 1 _x_ ¯3 - 23 <u>Improving characteristics of LUT-based Mealy FSMs</u> ~~74~~ 7 X <u>Clock</u> <u>Start</u> LUTerΦ LUTerY T Y Fig. 1. Structural diagram of Mealy FSM _U_ 1. 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_ ( _am_ ) and _K_ ( _as_ ), respectively). Also, an ST includes a column Φ _h_ with symbols _Dr_ _∈_ Φ corresponding to 1’s in the code _K_ ( _as_ ) from the _h_ -th row of ST ( _h ∈{_ 1 _, . . ., H}_ ). This table forms a basis for deriving functions Φ = Φ( _T, X_ ) _,_ (2) _Y_ = _Y_ ( _T, X_ ) _._ (3) The functions (2) and (3) are used for implementing the FSM logic circuit. 3. State-of-the-art The trivial structural diagram of Mealy FSM _U_ 1 is shown in Fig. 1. Here the symbol LUTer determines a circuit implemented with LUTs. In FSM _U_ 1, the LUTerΦ implements the system (2), and the LUTerY the system (3). If a function _Dr_ 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Φ. The 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. The main disadvantage of _U_ 1 is the following: each function _Dr_ _∈_ Φ and _yn_ _∈_ _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 _SL_ _≤_ 6 (Altera, 2020; Xilinx, 2015). Thus, the following condition very often takes place: _L_ + _R ≫_ _SL._ (4) If (4) is satisfied for some FSM, then the problem of hardware reduction arises. There are four main approaches to solving this problem, namely: (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´nczyki _et al._, 2017), (d) structural decomposition of an FSM circuit (Sklyarov _et_ _al_ ., 2014; Barkalov and Titarenko, 2009; Kołopie´nczyk _et al_ ., 2017; Barkalov _et al._, 2020b). We 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 _Fh_ is represented as _Fh_ = _AmXh,_ ( _h ∈{_ 1 _, . . ., H}_ ) _._ (5) In (5), the symbol _Am_ stands for the conjunction of state variables corresponding to the state code _K_ ( _am_ ) from the _h_ -th row of ST. The number of bits in _K_ ( _am_ ) can range from _⌈_ log2 _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 _Am_ ( _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. One of the most popular state assignment algorithms is JEDI, which is distributed with the system SIS <u>A. Barkalov</u> _<u>et al.</u>_ 74 ~~8~~ (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). Modern 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). Therefore, there are a lot of state assignment methods. It is really difficult to say which is the best for a particular FSM. Functional 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 _SL_, 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´nski, 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. Modern 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´nczyk _et al_ ., 2017; Barkalov _et al._, 2020a; Borowik, 2018). The 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. A 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. In 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. Let 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. In 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 _SL_ . The 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. 4. Main idea of the proposed method Let a Mealy FSM _S_ be presented by its STT. Encode states _am_ _∈_ _A_ by binary codes _K_ ( _am_ ) having _R_ = _⌈_ log2 _M_ _⌉_ bits. Transform the STT into an ST of Mealy FSM _S_ . Let _X_ ( _am_ ) _⊆_ _X_ be a set of inputs determining transitions from a state _am_ _∈_ _A_ . Represent the set _A_ as _A_ 0 _∪_ _AR_ where _A_ 0 _∩_ _AR_ = _∅_ . If _|X_ ( _am_ ) _|_ is less than _SL_, then _am_ _∈_ _AR_ ; otherwise, _am_ _∈_ _A_ 0 Encode states _am_ _∈_ _A_ 0 by one-hot codes _C_ 0( _am_ ) having _R_ 0 = _|A_ 0 _|_ bits. Use variables _βr_ _∈_ _B_ = _{β_ 1 _, . . ., βR_ 0 _}_ to encode these states. Construct a partition Π _A_ = _{A_ <sup>1</sup> _, . . ., A_ <sup>_I_</sup> _}_ of the set _AR_ such that the following condition takes place: _Ri_ + _Li_ _≤_ _SL_ ( _i ∈{_ 1 _, . . ., I}_ ) _._ (6) In (6), the symbol _Ri_ stands for the number of state variables necessary to encode the states _am_ _∈_ _A_ <sup>_i_</sup>, the symbol _Li_ is the number of inputs _xe_ _∈_ _X_ <sup>_i_</sup> determining transitions from the states _am_ _∈_ _A_ <sup>_i_</sup> . <u>Improving characteristics of LUT-based Mealy FSMs</u> ~~74~~ 9 Encode the states _am_ _∈_ _A_ <sup>_i_</sup> by binary codes _CR_ ( _am_ ) having _Ri_ bits: The block LUTerC transforms state codes _K_ ( _am_ ) into state codes _C_ 0( _am_ ) and _CR_ ( _am_ ). As a result, variables _τr_ _∈T_ and _βr_ _∈_ _B_ are generated. This means that the LUTerC implements the functions: _Tr_ = _Tr_ ( _T_ ) ( _r_ _∈{_ 1 _, . . ., RA}_ ) _,_ (12) _βr_ = _βr_ ( _T_ ) ( _r_ _∈{_ 1 _, . . ., R_ 0 _}_ ) _._ (13) At 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 _Cr_ ( _am_ ) with all zeros to show that a block is idle. This explains the presence of 1 in (7) The 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 _xe_ _∈_ _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 _Tr_ _∈_ _T_ (outputs of LUTerOR) enter only the third level of the FSM circuit. In addition, state variables _τr_ _∈T_ <sup>_i_</sup> enter only the block LUTeri ( _i_ = 1 _, I_ ). Thus, the proposed approach leads to LUT-based FSM circuits with regular systems of interconnections. The condition (6) is violated for states _am_ _∈_ _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. Let the symbol _Ui_ ( _Sj_ ) mean that: (i) an FSM _Sj_ is represented by an STT and (ii) the model _Ui_ is used to synthesize an FSM circuit. In this article, we propose a design method for Mealy FSM _U_ 2( _Sj_ ). The method includes the following steps: 1. Finding the set _A_ from the initial STT. Partitioning the set _A_ into sets _A_ 0 and _AR_ using the value of _SL_ and sets _X_ ( _am_ ) _⊆_ _X_ . 2. Encoding of states _am_ _∈_ _A_ by codes _K_ ( _am_ ). 3. Constructing the structure table of Mealy FSM _Sj_ . This step is executed using the rules from (Baranov, 1994). 4. Constructing the partition Π _A_ for the set _AR_ . 5. Executing the state encoding for states _am_ _∈_ _A_ <sup>_i_</sup> ( _i ∈_ _{_ 1 _, . . ., I}_ ). 6. Constructing subtables _STi_ for states _am_ _∈_ _A_ <sup>_i_</sup> ( _i_ _∈_ _{_ 1 _, . . ., I}_ ). The subtables are extracted from the structure table of the Mealy FSM. 7. Deriving systems (8) and (9) from subtables _STi_ representing blocks LUTer1–LUTerI. - <sup>�</sup> ( _i ∈{_ 1 _, . . ., I}_ ) _._ (7) _Ri_ = log2 _|A_ <sup>_i_</sup> _|_ + 1 Use the state variables _τr_ _∈_ _τ_ = _{τ_ 1 _, . . ., τRA_ _}_ to encode the states _am_ _∈_ _A_ <sup>_i_</sup> . The following relation takes place: _RA_ = _R_ 1 + _R_ 2 + _· · ·_ + _RI_ . The set _A_ 0 determines a subtable _ST_ 0 of the initial ST. Each class _A_ <sup>_i_</sup> _∈_ Π _A_ determines a subtable _STi_ of the initial ST. Using tables _ST_ 0– _STI_, we can find sets _X_ <sup>_i_</sup> _⊆_ _X_ (inputs written in the column _Xh_ <sup>_i_</sup> <sup>),</sup> <sup>_Y_</sup> <sup>_i_</sup> <sup>_⊆_</sup> <sup>_Y_</sup> <sup>(outputs</sup> _X_ (inputs written in the column _Xh_ <sup>_i_</sup> <sup>),</sup> <sup>_Y_</sup> <sup>_i_</sup> <sup>_⊆_</sup> <sup>_Y_</sup> <sup>(outputs</sup> written in the column _Yh_ <sup>_i_</sup> <sup>)</sup> <sup>and</sup> <sup>Φ</sup> <sup>_i_</sup> <sup>_⊆_</sup> <sup>Φ</sup> <sup>(input</sup> <sup>memory</sup> written in the column _Yh_ <sup>_i_</sup> <sup>)</sup> <sup>and</sup> <sup>Φ</sup> <sup>_i_</sup> <sup>_⊆_</sup> <sup>Φ</sup> <sup>(input</sup> <sup>memory</sup> functions written in the column Φ <sup>_i_</sup> _h_ <sup>).</sup> Each state _am_ _∈_ _A_ has two state codes. The code _K_ ( _am_ ) identifies the state _am_ as an element of the set _A_ . The code _C_ 0( _am_ ) identifies the state _am_ as an element of the set _A_ 0, the code _CR_ ( _am_ ) as an element of the set _AR_ . Each subtable _STi_ corresponds to a block LUTeri. From (6) it follows that it is sufficient to have only a single LUT having _SL_ inputs for implementing any function _Dr_ _∈_ Φ <sup>_i_</sup> and _yn_ _∈_ _Y_ <sup>_i_</sup> ( _i ∈{_ 1 _, . . ., I}_ ). Based on this preliminary information, we propose the structural diagram of Mealy FSM _U_ 2 (Fig. 2). The block LUTeri implements functions _Y_ <sup>_i_</sup> = _Y_ <sup>_i_</sup> ( _T_ <sup>_i_</sup> _, X_ <sup>_i_</sup> ) ( _i ∈{_ 1 _, . . ., I}_ ) _,_ (8) Φ <sup>_i_</sup> = Φ <sup>_i_</sup> ( _T_ <sup>_i_</sup> _, X_ <sup>_i_</sup> ) ( _i ∈{_ 1 _, . . ., I}_ ) _._ (9) The block LUTer0 implements functions _Y_ <sup>0</sup> = _Y_ <sup>0</sup> ( _B, X_ <sup>0</sup> ) _,_ (10) Φ <sup>0</sup> = Φ <sup>0</sup> ( _B, X_ <sup>0</sup> ) _._ (11) In (8) and (9), the symbol _τ_ <sup>_i_</sup> stands for the subset of _T_ whose variables are used to create codes _CR_ ( _am_ ), where _am_ _∈_ _A_ <sup>_i_</sup> . The block LUTerOR generates outputs _yn_ _∈_ _Y_ and state variables _Tr_ _∈_ _T_ . This block includes the distributed register RG keeping state codes _K_ ( _am_ ). As a result, pulses _Start_ and _Clock_ enter the LUTerOR. X0 X1 0 X1 �1 XI �I XI I LUTer0 LUTer1 LUTerI I Y0 Φ0 Y1 0 Φ0 Y1 Φ1 Φ0 Y1 Φ1 0 Y1 Φ1 YI ΦI I Y1 YI <u>Clock</u> <u>Start</u> LUTerOR Y T LUTerC B Fig. 2. Structural diagram of Mealy FSM _U_ 2. <u>A. Barkalov</u> _<u>et al.</u>_ 75 ~~0~~ 8. Design of the block LUTer0: (a) Executing the state encoding for states _am_ _∈_ _A_ 0. (b) Constructing a subtable _ST_ 0 using states _am_ _∈_ _A_ 0 and the structure table of Mealy FSM. (c) Deriving systems (10) and (11) from the subtable _ST_ 0. (d) Implementing the circuit of LUTer0. 9. Constructing the systems representing LUTerOR. 10. Constructing the table of LUTerC and deriving the systems (12) and (13). 11. Implementing the FSM circuit with particular LUTs. We discuss this method in detail in Sections 5 and 6. We use LUTs with _SL_ = 5. In Section 5 we show how to use this method for the synthesis of Mealy FSM _U_ 2( _S_ 1). In Section 6 we discuss how to construct the partition Π _A_ with a minimum number of classes. 5. Example of synthesis As 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 _SL_ = 5, the set _AR_ includes all states except the state _a_ 10. It gives the sets _AR_ = _{a_ 1 _, . . ., a_ 9 _}_ and _A_ 0 = _{a_ 10 _}_ . Using (1) gives _R_ = 4, _T_ = _{T_ 1 _, . . ., T_ 4 _}_ and Φ = _{D_ 1 _, . . ., D_ 4 _}_ . Encode the states _am_ _∈_ _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). Step 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 Π _A_ = _{A_ <sup>1</sup> _, A_ <sup>2</sup> _, A_ <sup>3</sup> _}_ with classes _A_ <sup>1</sup> = _{a_ 1 _, a_ 2 _, a_ 4 _}_, _A_ <sup>2</sup> = _{a_ 3 _, a_ 5 _, a_ 8 _}_ and _A_ <sup>3</sup> = _{a_ 6 _, a_ 7 _, a_ 9 _}_ . Using Table 2, the following sets could be found: _X_ <sup>1</sup> = _{x_ 1 _, x_ 2 _, x_ 3 _}_, _Y_ <sup>1</sup> = _{y_ 1 _, . . ., y_ 5 _}_, Φ <sup>1</sup> = _{D_ 2 _, D_ 3 _, D_ 4 _}_, _X_ <sup>2</sup> = _{x_ 3 _, x_ 4 _, x_ 7 _}_, _Y_ <sup>2</sup> = _{y_ 3 _, y_ 5 _, y_ 6 _, y_ 7 _}_, Φ <sup>2</sup> = _{D_ 1 _, . . ., D_ 4 _}_, _X_ <sup>3</sup> = _{x_ 5 _, x_ 6 _}_, _Y_ <sup>3</sup> = _{y_ 1 _, y_ 7 _, y_ 8 _}_, Φ <sup>3</sup> = _{D_ 2 _, D_ 3 _, D_ 4 _}_ . Using (7), we can find _R_ 1 = _R_ 2 = _R_ 3 = 2. This yields _R_ 0 = 6 and _T_ = _{τ_ 1 _, . . ., τ_ 6 _}_ . Let _T_ <sup>1</sup> = _{τ_ 1 _, τ_ 2 _}, T_ <sup>2</sup> = _{τ_ 3 _, τ_ 4 _}_ and _T_ <sup>3</sup> = _{τ_ 5 _, τ_ 6 _}_ . For each class _A_ <sup>_i_</sup> _∈_ Π _A_, the condition (6) takes place. Obviously, 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: _CR_ ( _a_ 1) = _CR_ ( _a_ 3) = _CR_ ( _a_ 6) = 01, _CR_ ( _a_ 2) = _CR_ ( _a_ 5) = _CR_ ( _a_ 7) = 10 and _CR_ ( _a_ 4) = _CR_ ( _a_ 8) = _CR_ ( _a_ 9) = 11. To construct subtables _STi_ ( _i ∈{_ 1 _,_ 2 _,_ 3 _}_ ), we should (i) take the corresponding rows of ST and (ii) replace codes _K_ ( _am_ ) by codes _CR_ ( _am_ ). 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. Using Table 3, the equations for functions _yn_ <sup>1</sup> and _Dr_ <sup>1</sup> <sup>_∈_</sup> <sup>Φ1</sup> <sup>can</sup> <sup>be</sup> <sup>found.</sup> In these equations, the conjunctions _Am_ in (5) depend on variables _τr_ _∈T_ <sup>1</sup> . For example, the following equations can be derived from Table 3: _y_ 3 <sup>1</sup> <sup>=</sup> <sup>_τ_</sup> <sup>1</sup> <sup>_τ_</sup> <sup>¯2</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>¯2</sup> <sup>_∨_</sup> <sup>_τ_</sup> <sup>1</sup> <sup>_τ_</sup> <sup>2;</sup> <sup>_D_</sup> 3 <sup>1</sup> <sup>=</sup> <sup>_τ_</sup> <sup>1</sup> <sup>_τ_</sup> <sup>¯2.</sup> <sup>Acting</sup> <sup>in</sup> and _Dr_ <sup>1</sup> _n_ <sup>1</sup> <sup>_∈_</sup> <sup>_Y_</sup> <sup>1</sup> Table 3: _y_ 3 <sup>1</sup> <sup>=</sup> <sup>_τ_</sup> <sup>1</sup> <sup>_τ_</sup> <sup>¯2</sup> <sup>_x_</sup> <sup>1</sup> <sup>_x_</sup> <sup>¯2</sup> <sup>_∨_</sup> <sup>_τ_</sup> <sup>1</sup> <sup>_τ_</sup> <sup>2;</sup> <sup>_D_</sup> 3 <sup>1</sup> <sup>=</sup> <sup>_τ_</sup> <sup>1</sup> <sup>_τ_</sup> <sup>¯2.</sup> <sup>Acting</sup> <sup>in</sup> the same manner, it is possible to find all functions (8) and (9). The 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. We have _A_ 0 = _{a_ 10 _}_ . This gives _R_ 0 = 1 and the set _B_ = _{β_ 1 _}_ . Using Table 2, we can get sets _X_ <sup>0</sup> = _{x_ 3 _, x_ 7 _, . . ., x_ 10 _}_, _Y_ <sup>0</sup> = _{y_ 2 _, y_ 3 _, y_ 4 _, y_ 7 _, y_ 9 _, y_ 10 _, y_ 11 _}_ and Φ <sup>0</sup> = Φ. The state encoding is trivial in the discussed case: _C_ 0( _a_ 10) = 1. To construct the subtable _ST_ 0, we should use rows 11-23 of the ST (Table 2). Replacing _K_ ( _a_ 10) = 1001 Table 2. Structure table of Mealy FSM _S_ 1. _am_ _K_ ( _am_ ) _as_ _K_ ( _as_ ) _Xh_ _Yh_ Φ _h_ _h_ _a_ 1 0000 _a_ 2 0001 1 _y_ 1 _y_ 2 _D_ 4 1 _a_ 2 0001 _a_ 3 0010 _x_ 1 _x_ 2 _y_ 1 _D_ 3 2 _a_ 3 0010 _x_ 1 _x_ ¯2 _y_ 2 _y_ 3 _D_ 3 3 _a_ 3 0010 _x_ ¯1 _x_ 3 _y_ 3 _y_ 4 _D_ 3 4 _a_ 3 0010 _x_ ¯1 _x_ ¯3 _y_ 5 _D_ 3 5 _a_ 4 0011 _x_ 3 _y_ 6 _y_ 7 _D_ 3 _D_ 4 6 _a_ 3 0010 _a_ 4 0011 _x_ ¯3 _x_ 4 _y_ 3 _y_ 5 _D_ 3 _D_ 4 7 _a_ 3 0010 _x_ ¯3 _x_ ¯4 _y_ 5 _D_ 3 8 _a_ 4 0011 _a_ 5 0100 1 _y_ 2 _y_ 3 _D_ 2 9 _a_ 6 0101 _x_ 7 _y_ 3 _y_ 6 _D_ 2 _D_ 4 10 _a_ 5 0100 _a_ 3 0010 _x_ ¯7 _y_ 5 _D_ 3 11 _a_ 7 0110 _x_ 5 _y_ 1 _y_ 7 _D_ 2 _D_ 3 12 _a_ 6 0101 _a_ 7 0110 _x_ ¯5 _y_ 8 _D_ 2 _D_ 3 13 _a_ 8 0111 _x_ 6 _y_ 7 _y_ 8 _D_ 2 _D_ 3 _D_ 4 14 _a_ 7 0110 _a_ 7 0110 _x_ ¯6 _y_ 8 _D_ 2 _D_ 3 15 _a_ 8 0111 _a_ 9 1000 1 _y_ 7 _D_ 1 16 _a_ 9 1000 _a_ 10 1001 1 _y_ 1 _D_ 1 _D_ 4 17 _a_ 10 1001 _a_ 3 0010 _x_ 3 _x_ 7 _x_ 8 _x_ 9 _x_ 10 _y_ 3 _y_ 4 _D_ 3 18 _a_ 1 0000 _x_ 3 _x_ 7 _x_ 8 _x_ 9 _x_ ¯10 _y_ 7 _y_ 9 - 19 _a_ 5 0100 _x_ 3 _x_ 7 _x_ 8 _x_ ¯9 _y_ 10 _y_ 11 _D_ 2 20 _a_ 8 0111 _x_ 3 _x_ 7 _x_ ¯8 _y_ 2 _y_ 3 _D_ 2 _D_ 3 _D_ 4 21 _a_ 9 1000 _x_ 3 _x_ ¯7 _y_ 11 _D_ 1 22 _a_ 1 0000 _x_ ¯3 - - 23 <u>Improving characteristics of LUT-based Mealy FSMs</u> ~~75~~ 1 β1 x3 x7 x8 LUT1 y20 (15) β1 β1 x3 x3 x7 x8 β1 x3 x7 x8 x9 LUT4 x10 LUT5 β1 x3 x7 x8 x9 LUT6 x10 LUT7 the following transformed equations of the system (14): _y_ 3 <sup>0</sup> <sup>= (</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>9)</sup> <sup>_x_</sup> <sup>10</sup> <sup>_∨_</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>¯8</sup> <sup>_,_</sup> _y_ 4 <sup>0</sup> <sup>= (</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>9)</sup> <sup>_x_</sup> <sup>10</sup> <sup>_,_</sup> _y_ 7 <sup>0</sup> <sup>=</sup> <sup>_y_</sup> 9 <sup>0</sup> <sup>= (</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>9)</sup> _x_ <sup>¯</sup> 10 _,_ LUT2 x7 x9 x8 LUT2 y40 β1 x3 x7 LUT10 70 y90 y y90 β1 x3 x7 x8 x9 LUT8 y30 β1 x3 x7 x8 x9 LUT9 y110 β1 x3 x7 x8 LUT13 x10 D10 β1 x3 x7 x8 LUT15 D40 β1 x3 x7 x8 x9 LUT11 D20 y100 β1 x3 x7 x8 x9 LUT12 LUT14 D30 Fig. 3. Logic circuit of LUTer0. by _C_ 0( _a_ 10) = 1 gives _ST_ 0 (Table 4). We hope that the connection between Tables 2 and 4 is transparent. Using Table 4, we can derive the following system of Boolean functions: _y_ 2 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>¯8</sup> <sup>_,_</sup> _y_ 3 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>9</sup> <sup>_x_</sup> <sup>10</sup> <sup>_∨_</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>¯8</sup> <sup>_,_</sup> _y_ 4 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>9</sup> <sup>_x_</sup> <sup>10</sup> <sup>_,_</sup> _D_ 3 <sup>0</sup> <sup>= (</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>9)</sup> <sup>_x_</sup> <sup>10</sup> <sup>_∨_</sup> <sup>(</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8)</sup> <sup>_._</sup> The circuit of LUTer0 is shown in Fig. 3. It includes 15 LUTs with _SL_ = 5. The circuit is based on (14) and (15). As 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. To find equations representing LUTerOR, it is necessary to analyse sets _Y_ <sup>_i_</sup> and Φ <sup>_i_</sup> . For example, we have the relation _y_ 1 _∈/_ _Y_ <sup>0</sup> _∪_ _Y_ <sup>2</sup>, so that _y_ 1 = _y_ 1 <sup>1</sup> <sup>_∨_</sup> <sup>_y_</sup> 1 <sup>3.</sup> Next, _D_ 1 _∈/_ Φ <sup>1</sup> _∪_ Φ <sup>3</sup> . Consequently, _D_ 1 = _D_ 1 <sup>0</sup> <sup>_∨_</sup> <sup>_D_</sup> 1 <sup>2.</sup> Acting in the same way, it is possible to find equations for all functions generated by LUTerOR. If a function _Dr_ is generated by some LUTeri, then pulses _Clock_ and _Start_ should be connected with the corresponding LUT of LUTeri. The table of LUTerC has _M_ rows. It includes columns _am_, _K_ ( _am_ ), _C_ 0( _am_ ), _CR_ ( _am_ ), _Bm_, _τm_, _m_ . The meaning of these columns is clear from Table 5. Using Table 5, we can find equations (12) and (13). For example, we can find that _β_ 1 = _T_ 1 _T_ 4, and _τ_ 1 = _T_ ¯1 _T_ ¯2 _T_ 4. To get these equations, we use some rules of minimizing Boolean functions (Micheli, 1994). To implement an FSM circuit, it is necessary to use standard CAD tools (Altera, 2020; Xilinx, 2015). They have the relation _y_ 1 _∈/_ _Y_ <sup>0</sup> _∪_ _Y_ <sup>2</sup>, so that _y_ 1 = _y_ 1 <sup>1</sup> <sup>_∨_</sup> <sup>_y_</sup> 1 <sup>3.</sup> Next, _D_ 1 _∈/_ Φ <sup>1</sup> _∪_ Φ <sup>3</sup> . Consequently, _D_ 1 = _D_ 1 <sup>0</sup> <sup>_∨_</sup> <sup>_D_</sup> 1 <sup>2.</sup> _y_ 7 <sup>0</sup> 7 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>9</sup> _x_ <sup>¯</sup> 10 = _y_ 9 <sup>0</sup> 9 <sup>0</sup> <sup>_,_</sup> _y_ 10 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>¯9</sup> <sup>_,_</sup> _y_ 11 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>¯9</sup> <sup>_∨_</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>¯7</sup> <sup>_,_</sup> (14) Table 3. Table _ST_ 1 of Mealy FSM _U_ 2( _S_ 1). _am_ _CR_ ( _am_ ) _as_ _K_ ( _as_ ) _Xh_ <sup>1</sup> _Yh_ <sup>1</sup> Φ <sup>1</sup> _h_ _D_ 1 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>¯7</sup> <sup>_,_</sup> _h_ <sup>1</sup> _Yh_ <sup>1</sup> _h_ <sup>1</sup> Φ <sup>1</sup> _h_ <sup>1</sup> _h_ _h_ 4 <sup>1</sup> 1 _D_ 2 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>¯9</sup> <sup>_∨_</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>¯8</sup> <sup>_,_</sup> _a_ 1 01 _a_ 2 0001 1 _y_ 1 <sup>1</sup> _y_ 1 <sup>1</sup> <sup>_y_</sup> 2 <sup>1</sup> _D_ 4 <sup>1</sup> _D_ 3 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>8</sup> <sup>_x_</sup> <sup>9</sup> <sup>_x_</sup> <sup>10</sup> <sup>_∨_</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>¯8</sup> <sup>_,_</sup> _a_ 2 10 _a_ 3 0010 _x_ 1 _x_ 2 _y_ 1 <sup>1</sup> 1 <sup>1</sup> _D_ 3 <sup>1</sup> _a_ 3 0010 _x_ 1 _x_ 2 _y_ 1 <sup>1</sup> _D_ 3 <sup>1</sup> 2 _a_ 3 0010 _x_ 1 _x_ ¯2 _y_ 2 <sup>1</sup> <sup>_y_</sup> 3 <sup>1</sup> _D_ 3 <sup>1</sup> 3 _a_ 3 0010 _x_ ¯1 _x_ 3 _y_ 3 <sup>1</sup> <sup>_y_</sup> 4 <sup>1</sup> _D_ 3 <sup>1</sup> 4 _a_ 3 0010 _x_ ¯1 _x_ ¯3 _y_ 5 <sup>1</sup> _D_ 3 <sup>1</sup> 5 _y_ 2 <sup>1</sup> <sup>_y_</sup> 3 <sup>1</sup> _D_ 3 <sup>1</sup> _y_ 3 <sup>1</sup> <sup>_y_</sup> 4 <sup>1</sup> _D_ 3 <sup>1</sup> _D_ 4 <sup>0</sup> <sup>=</sup> <sup>_β_</sup> <sup>1</sup> <sup>_x_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_x_</sup> <sup>¯8</sup> <sup>_._</sup> 5 <sup>1</sup> _D_ 3 <sup>1</sup> We have _SL_ = 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_ <sup>0</sup> and Φ <sup>0</sup> written in rows 1 and 2. This means that two levels of logic are necessary in circuits for functions _y_ 3 <sup>0</sup> <sup>_, y_</sup> 4 <sup>0</sup> <sup>_, y_</sup> 7 <sup>0</sup> <sup>_, y_</sup> 9 <sup>0</sup> _a_ 3 0010 _x_ ¯1 _x_ ¯3 _y_ 5 <sup>1</sup> _D_ 3 <sup>1</sup> 5 _a_ 4 11 _a_ 5 0100 1 _y_ 2 <sup>1</sup> <sup>_y_</sup> 3 <sup>1</sup> _D_ 2 <sup>1</sup> 6 _y_ 2 <sup>1</sup> <sup>_y_</sup> 3 <sup>1</sup> _D_ 2 <sup>1</sup> 2 <sup>1</sup> 6 Table 4. Table _ST_ 0 of Mealy FSM _U_ 2( _S_ 1). _am_ _C_ 0( _am_ ) _as_ _K_ ( _as_ ) _Xh_ <sup>0</sup> _Yh_ <sup>0</sup> Φ <sup>0</sup> _h_ _h_ _h_ <sup>0</sup> _Yh_ <sup>0</sup> _h_ <sup>0</sup> Φ <sup>0</sup> _h_ logic are necessary in circuits for functions _y_ 3 <sup>0</sup> <sup>_, y_</sup> 4 <sup>0</sup> <sup>_, y_</sup> 7 <sup>0</sup> <sup>_, y_</sup> 9 <sup>0</sup> and _D_ 3 <sup>0.</sup> <sup>Only</sup> <sup>a</sup> <sup>single</sup> <sup>LUT</sup> <sup>is</sup> <sup>sufficient</sup> <sup>to</sup> <sup>implement</sup> each of functions _y_ 2 <sup>0</sup> <sup>_, y_</sup> 10 <sup>0</sup> <sup>_, y_</sup> 11 <sup>0</sup> <sup>_, D_</sup> 1 <sup>0</sup> <sup>_, D_</sup> 2 <sup>0</sup> <sup>and</sup> <sup>_D_</sup> 4 <sup>0.</sup> _a_ 3 0010 _x_ 3 _x_ 7 _x_ 8 _x_ 9 _x_ 10 _y_ 3 <sup>0</sup> _a_ 3 0010 _x_ 3 _x_ 7 _x_ 8 _x_ 9 _x_ 10 _y_ 3 <sup>0</sup> <sup>_y_</sup> 4 <sup>0</sup> _D_ 3 <sup>0</sup> 1 _a_ 1 0000 _x_ 3 _x_ 7 _x_ 8 _x_ 9 _x_ ¯10 _y_ 7 <sup>0</sup> <sup>_y_</sup> 9 <sup>0</sup> - 2 3 <sup>0</sup> <sup>_y_</sup> 4 <sup>0</sup> _D_ 3 <sup>0</sup> _a_ 1 0000 _x_ 3 _x_ 7 _x_ 8 _x_ 9 _x_ ¯10 _y_ 7 <sup>0</sup> <sup>_y_</sup> 9 <sup>0</sup> - 2 _a_ 5 0100 _x_ 3 _x_ 7 _x_ 8 _x_ ¯9 _y_ 10 <sup>0</sup> <sup>_y_</sup> 11 <sup>0</sup> _D_ 2 <sup>0</sup> 3 _a_ 8 0111 _x_ 3 _x_ 7 _x_ ¯8 _y_ 2 <sup>0</sup> <sup>_y_</sup> 3 <sup>0</sup> _D_ 2 <sup>0</sup> <sup>_D_</sup> 3 <sup>0</sup> <sup>_D_</sup> 4 <sup>0</sup> <sup>4</sup> _a_ 8 0111 _x_ 3 _x_ 7 _x_ ¯8 _y_ 2 <sup>0</sup> <sup>_y_</sup> 3 <sup>0</sup> _D_ 2 <sup>0</sup> <sup>_D_</sup> 3 <sup>0</sup> <sup>_D_</sup> 4 <sup>0</sup> <sup>4</sup> _a_ 9 1000 _x_ 3 _x_ ¯7 _y_ 11 <sup>0</sup> _D_ 1 <sup>0</sup> 5 _a_ 1 0000 _x_ ¯3 - - 6 10 <sup>0</sup> <sup>_y_</sup> 11 <sup>0</sup> _D_ 2 <sup>0</sup> 2 <sup>0</sup> <sup>_y_</sup> 3 <sup>0</sup> _D_ 2 <sup>0</sup> each of functions _y_ 2 <sup>0</sup> <sup>_, y_</sup> 10 <sup>0</sup> <sup>_, y_</sup> 11 <sup>0</sup> <sup>_, D_</sup> 1 <sup>0</sup> <sup>_, D_</sup> 2 <sup>0</sup> <sup>and</sup> <sup>_D_</sup> 4 <sup>0.</sup> To implement multi-level circuits, the methods of functional decomposition should be used. This results in _a_ 10 1 _y_ 11 <sup>0</sup> _D_ 1 <sup>0</sup> <u>A. Barkalov</u> _<u>et al.</u>_ 75 ~~2~~ Table 5. Table of LUTerC for Mealy FSM _U_ 2( _S_ 1) _am_ _K_ ( _am_ ) _C_ 0( _am_ ) _CR_ ( _am_ ) _Bm_ _τm_ _m_ _a_ 1 0000 0 01 00 00 - _τ_ 2 1 _a_ 2 0001 0 10 00 00 - _τ_ 1 2 _a_ 3 0010 0 00 01 00 - _τ_ 4 3 _a_ 4 0011 0 11 00 00 - _τ_ 1 _τ_ 2 4 _a_ 5 0100 0 00 10 00 - _τ_ 3 5 _a_ 6 0101 0 00 00 01 - _τ_ 6 6 _a_ 7 0110 0 00 00 10 - _τ_ 5 7 _a_ 8 0111 0 00 11 00 - _τ_ 3 _τ_ 4 8 _a_ 9 1000 0 00 00 11 - _τ_ 5 _τ_ 6 9 _a_ 10 1001 1 00 00 00 _β_ 1 - 10 form bit-streams for each LUT. Also, they execute the technology mapping of FSM circuit. We do not discuss this step for our example. 6. Constructing partition for a set of states We should find a partition Π _A_ of the set _AR_ with a minimum number of blocks _I_ and such that restriction (6) takes place for each block _A_ <sup>_i_</sup> _∈_ Π _A_ . To solve this problem, we propose a simple sequential algorithm for finding a partition Π _A_ . Each state _am_ _∈_ _A_ is characterized by two sets. The set _X_ ( _am_ ) includes input variables determining transitions from state _am_ _∈_ _A_ . The set _Y_ ( _am_ ) includes outputs generated during transitions from state _am_ _∈_ _A_ . If _am_ _∈_ _A_ <sup>_i_</sup>, then _X_ ( _am_ ) _⊆_ _X_ <sup>_i_</sup> and _Y_ ( _am_ ) _⊆_ _Y_ <sup>_i_</sup> . We use two evaluations to find the partition. The first of them determines how many new input variables will be added to the set _X_ <sup>_i_</sup> due to including the state _am_ into the class _A_ <sup>_i_</sup> _∈_ Π _A_ . The second of them determines the number of outputs common for both sets _Y_ ( _am_ ) and _Y_ <sup>_i_</sup> . Let us denote these evaluations by the symbols _N_ ( _am, X_ <sup>_i_</sup> ) and _N_ ( _am, Y_ <sup>_i_</sup> ), respectively. They are calculated as follows: _N_ ( _am, X_ <sup>_i_</sup> ) = _|X_ ( _am_ ) _\ X_ <sup>_i_</sup> _|,_ (16) _N_ ( _am, Y_ <sup>_i_</sup> ) = _|Y_ ( _am_ ) _∩_ _Y_ <sup>_i_</sup> _|._ (17) In (16), the symbol “ _\_ ” means the subtraction of sets. Each block _A_ <sup>_i_</sup> _∈_ Π _A_ is generated in two stages. At the first stage, we take the state _am_ _∈_ _A_ <sup>_∗_</sup> as a basic element (BE) of _A_ <sup>_i_</sup> . Here _A_ <sup>_∗_</sup> is a set of states which were not distributed after forming the block _A_ <sup>_i−_</sup> <sup>1</sup> _∈_ Π _A_ . The BE should satisfy to the following relation: _|X_ ( _am_ ) _|_ = max _|X_ ( _aj_ ) _|,_ _aj_ _∈_ _A_ <sup>_∗_</sup> _\ {am}._ (18) If condition (18) takes place for states _am_ and _as_, we will choose the state _am_ if _m > s_ . The second stage is a multistep one. At each step, the next state is successively added to the block _A_ <sup>_i_</sup> in accordance with the rules given below. The process of forming block _A_ <sup>_i_</sup> is terminated when all states are already distributed among the blocks or when it is not possible to include any state in _A_ <sup>_i_</sup> without violation of (6). There are the following rules for including the next successive state in _A_ <sup>_i_</sup> . Let _A_ <sup>_∗_</sup> include all unallocated states _am_ _∈_ _A_ . Choose all states _am_ _∈_ _A_ <sup>_∗_</sup> whose inclusion into _A_ <sup>_i_</sup> does not violate the restriction (6). Place them in a set _P_ ( _A_ <sup>_i_</sup> ). Select a state _am_ _∈_ _P_ ( _A_ <sup>_i_</sup> ) with the minimum value of evaluation (16). It is the first rule. If 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_ <sup>_i_</sup> . Next, all elements are eliminated from _P_ ( _A_ <sup>_i_</sup> ). 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 _SL_ = 5. Hence, the following pairs _⟨Li, Ri⟩_ are possible: _⟨_ 0 _,_ 5 _⟩, ⟨_ 1 _,_ 4 _⟩, ⟨_ 2 _,_ 3 _⟩, ⟨_ 3 _,_ 2 _⟩, ⟨_ 4 _,_ 1 _⟩_ . Let us explain the columns of Table 6. The column _am_ contains states of the FSM. There are numbers of input variables in column _|X_ ( _am_ ) _|_ . The columns _BEi_ ( _i_ = 1 _,_ 2 _,_ 3) contain basic elements for Step _i_ . The symbol “I” stands for _N_ ( _am, X_ <sup>_i_</sup> ), the symbol “II” for _N_ ( _am, Y_ <sup>_i_</sup> ). The sign _⊕_ means that the state in the corresponding row is included in the set _A_ <sup>_i_</sup> . The sign “–” means that _am_ _∈/_ _A_ <sup>_∗_</sup>, where _am_ is the state from the corresponding row. There are states _am_ _∈_ _A_ <sup>_i_</sup> in the row _A_ <sup>_i_</sup> . They are shown in the order of selecting. As can be seen from Table 6, the process of selection includes 9 steps. As a result, we obtain the following partition Π _A_ = _{A_ <sup>1</sup> _, A_ <sup>2</sup> _, A_ <sup>3</sup> _}_ with _I_ = 3 blocks: _A_ <sup>1</sup> = _{a_ 1 _, a_ 2 _, a_ 4 _}, A_ <sup>2</sup> = _{a_ 3 _, a_ 5 _, a_ 8 _}, A_ <sup>3</sup> = _{a_ 6 _, a_ 8 _, a_ 9 _}_ . As can be seen, this partition is the same as that used in Section 5. Using the first rule allows decreasing the number of the same variables _xe_ _∈_ _X_ in different blocks _A_ <sup>_i_</sup> _∈_ Π _A_ . In turn, this leads to a decrease in the number of LUTs compared with the situation when the inputs _xe_ _∈_ _X_ are duplicated in different blocks _A_ <sup>_i_</sup> _∈_ Π _A_ . This also leads to further regularization of the system of interconnections. Using the second rule allows decreasing the number of the same variables _yn_ _∈_ _Y_ in different blocks _A_ <sup>_i_</sup> _∈_ Π _A_ . It could lead to a decrease in the number of LUTs compared with the situation when the outputs _yn_ _∈_ _Y_ are duplicated in different blocks _A_ <sup>_i_</sup> _∈_ Π _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. <u>Improving characteristics of LUT-based Mealy FSMs</u> ~~75~~ 3 Table 6. Forming of partition Π _A_ . I/II I/II I/II _am X_ ( _am_ ) _BE_ 1 _BE_ 2 _BE_ 3 1 2 1 2 1 2 _a_ 1 0 0/2 _⊕_ - - - - _a_ 2 3 _⊕_ - - - - - _a_ 3 2 1/2 1/2 _⊕_ - - - _a_ 4 0 0/2 0/2 _⊕_ - - - _a_ 5 1 1/2 1/2 1/3 _⊕_ - - _a_ 6 1 1/1 1/1 1/1 1/1 _⊕_ - _a_ 7 1 1/0 1/0 1/1 1/1 1/2 _⊕_ _a_ 8 0 0/0 0/0 0/1 0/1 _⊕_ - _a_ 9 0 0/1 0/1 0/0 0/0 0/0 0/0 _⊕_ _A_ <sup>_i_</sup> _a_ 2 _a_ 1 _a_ 4 _a_ 3 _a_ 5 _a_ 8 _a_ 6 _a_ 8 _a_ 9 7. Experimental results To 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. To 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. The target platform was the FPGA device Xilinx Virtex-7 (XC7VX690tffg1761-2, Virtex-7 VC709 Evaluation platform). It includes LUTs having _SL_ = 6. We 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). All 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. As 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. The 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). In all investigated cases, our approach produces FSM circuits having exactly three levels of logic. This is because _R ≤_ _SL_ = 6 (19) for all benchmarks from LGSynth93 (LGSynth93, 1993). Our 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). As 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. Let 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) KISS2 (text representation) _K2F_ KISS2 file analysis transformation and data encoding VHDL structures generation ACTIVE HDL Vivado synthesis & symulation FPGA synthesis & implementation Fig. 4. Typical investigation path based on the K2F tool. <u>A. Barkalov</u> _<u>et al.</u>_ 75 ~~4~~ 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. As 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. This 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. As 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. Next, 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). The 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. To investigate the effect of the number of inputs ( _SL_ ) 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 _SL_ = 4. We 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. The 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). As it is for circuits based on LUTs with _SL_ = 6, our approach allows minimizing the number of LUTs with _SL_ = 4 in comparison with other investigated methods. But if _SL_ = 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. We 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 _am_ _∈_ _A_ 0. Therefore, as the ratio of _|A_ 0 _|_ to M grows, more states have one-hot codes. 8. Conclusion The 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_ ( _am_ ) _| < SL_ . The second part is synthesized based on states for which _|X_ ( _am_ ) _|_ _≥_ _SL_ . 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. The 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. In 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. <u>Improving characteristics of LUT-based Mealy FSMs</u> ~~75~~ 5 Note 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). There 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. References ABC System (2020). [https://people.eecs.berkeley](https://people.eecs.berkeley.edu/~alanmi/abc/) [.edu/~alanmi/abc/.](https://people.eecs.berkeley.edu/~alanmi/abc/) Agrawal, R., Borowczak, M. and Vemuri, R. (2019). A state encoding methodology for side-channel security vs. power trade-off exploration, _32nd_ _International_ _Conference_ _on_ _VLSI_ _Design_ _and_ _18th_ _International_ _Conference_ _on_ _Em-_ _bedded Systems (VLSID), Delhi, India_ pp. 70–75. Altera (2020). _Cyclone IV Device Handbook_ [, http://www.a](http://www.altera.com/literature/hb/cyclone-iv/cyclone4-handbook.pdf) [ltera.com/literature/hb/cyclone-iv/cyc](http://www.altera.com/literature/hb/cyclone-iv/cyclone4-handbook.pdf) [lone4-handbook.pdf.](http://www.altera.com/literature/hb/cyclone-iv/cyclone4-handbook.pdf) Ardakani, A., Leduc-Primeau, F., Onizawa, N., Hanyu, T. and Gross, W.J. (2017). VLSI implementation of deep neural network using integral stochastic computing, _IEEE Trans-_ _actions_ _on_ _Very_ _Large_ _Scale_ _Integration_ _(VLSI)_ _Systems_ 25 (10): 2688–2699. Baranov, S. (1994). _Logic_ _Synthesis_ _of_ _Control_ _Automata_, Kluwer, Boston, MA. Baranov, S. (2008). _Logic and System Design of Digital Systems_, TUT Press, Tallinn. Barkalov, A.A. and Barkalov Jr., A.A. (2005). Design of Mealy finite-state machines with the transformation of object codes, _International_ _Journal_ _of_ _Applied_ _Mathematics_ _and_ _Computer Science_ 15 (1): 151–158. Barkalov, A. and Titarenko, L. (2009). _Logic Synthesis for FSM-_ _based Control Units_, Springer, Berlin. Barkalov, A., Titarenko, L., Kołopie´nczyk, M., Mielcarek, K. and Bazydło, G. (2015). _Logic Synthesis for FPGA-Based_ _Finite State Machines_, Springer, Cham. Barkalov, A., Titarenko, L., Mazurkiewicz, M. and Krzywicki, K. (2020a). Encoding of terms in EMB-based Mealy FSMs, _Applied Sciences_ 10 (8): 21. Barkalov, A., Titarenko, L., Mielcarek, K. and Chmielewski, S. (2020b). _Logic_ _Synthesis_ _for_ _FPGA-Based_ _Con-_ _trol_ _Units—Structural_ _Decomposition_ _in_ _Logic_ _Design_, Springer, Berlin. Barkalov, O., Titarenko, L. and Mielcarek, K. (2018). Hardware reduction for LUT-based Mealy FSMs, _International_ _Journal_ _of_ _Applied_ _Mathematics_ _and_ _Computer_ _Science_ 28 (3): 595–607, DOI: 10.2478/amcs-2018-0046. Benini, L., Bogliolo, A. and Micheli, G. (2000). A survey of design techniques for system-level dynamic power management, _IEEE_ _Transactions_ _on_ _Very_ _Large_ _Scale_ _In-_ _tegration (VLSI) Systems_ 8 (3): 299–316. Table 7. Experimental results (the number of LUTs). Benchmark Auto One-Hot JEDI DEMAIN _U_ 2 bbara 17 17 10 9 11 bbsse 33 37 24 26 22 bbtas 5 5 5 5 5 beecount 19 19 14 16 12 cse 40 66 36 38 32 dk14 10 27 10 12 12 dk15 5 16 5 6 6 dk16 15 34 12 14 10 dk17 5 12 5 6 5 dk27 3 5 4 4 6 dk512 10 10 9 10 8 donfile 31 31 22 26 19 ex1 70 74 53 57 42 ex2 9 9 8 9 8 ex3 9 9 9 9 8 ex4 15 13 12 13 10 ex5 9 9 9 9 8 ex6 24 36 22 23 20 ex7 4 5 4 4 4 keyb 43 61 40 42 37 kirkman 42 58 39 41 35 lion 2 5 2 2 2 lion9 6 11 5 5 5 mark1 23 23 20 21 18 mc 4 7 4 5 4 modulo12 7 7 7 7 7 opus 28 28 22 26 23 planet 131 131 88 94 80 planet1 131 131 88 94 80 pma 94 94 86 91 78 s1 65 99 61 64 57 s1488 124 131 108 112 92 s1494 126 132 110 117 94 s1a 49 81 43 54 41 s208 12 31 10 11 9 s27 6 18 6 6 6 s386 26 39 22 25 18 s420 10 31 9 10 8 s510 48 48 32 39 29 s8 9 9 9 9 10 s820 88 82 68 76 58 s832 80 79 62 70 54 sand 132 132 114 121 101 shiftreg 2 6 2 2 4 sse 33 37 30 32 26 styr 93 120 81 88 73 tma 45 39 39 41 33 Total 1792 2104 1480 1601 1330 Percentage 134,7% 158,2% 112,8% 120,4% 100% <u>A. Barkalov</u> _<u>et al.</u>_ 75 ~~6~~ Table 8. Experimental results (the consumed power, Watts). Benchmark Auto One-Hot JEDI DEMAIN _U_ 2 bbara 0,569 0,569 0,488 0,482 0,499 bbsse 2,22 1,206 1,713 1,824 1,622 bbtas 0,533 0,533 0,533 0,533 0,582 beecount 1,631 1,631 1,021 1,236 0,935 cse 0,958 1,019 0,891 0,911 0,783 dk14 2,959 3,33 2,952 2,998 3,002 dk15 1,403 1,905 1,399 1,402 1,412 dk16 2,967 2,742 2, 512 2,715 2,435 dk17 1,901 1,935 1,891 1,938 1,907 dk27 1,168 0,854 1,158 1,161 1,172 dk512 1,496 1,496 1,345 1,498 1,265 donfile 0,709 0,709 0,603 0,638 0,578 ex1 4,102 2,968 2,342 2,416 1,928 ex2 0,368 0,386 0,342 0,365 0,367 ex3 0,391 0,391 0,391 0,394 0,374 ex4 1,562 1,241 1,187 1,198 1,123 ex5 0,387 0,387 0,385 0,383 0,326 ex6 2,269 3,85 2,242 2,258 2,175 ex7 0,992 1,181 0,994 0,996 0,998 keyb 1,093 1,071 1,075 1,082 0,996 kirkman 1,693 1,844 1,439 1,498 1,327 lion 0,542 0,629 0,547 0,544 0,549 lion9 0,733 0,97 0,728 0,73 0,784 mark1 1,445 1,445 1,227 1,301 1,187 mc 0,447 0,561 0,443 0,492 0,462 modulo12 0,559 0,559 0,563 0,532 0,548 opus 1,344 1,344 1,283 1,334 1,221 planet 4,122 4,122 2,456 3,002 2,328 planet1 4,122 4,122 2,456 3,002 2,238 pma 1,37 1,37 1,253 1,361 1,003 s1 2,685 3,13 2,518 2,612 2,348 s1488 3,982 4,096 3,548 3,629 2,083 s1494 3,079 3,178 2,982 3,011 2,658 s1a 1,322 2,01 1,208 1,602 1,085 s208 1,367 2,82 1,249 1,302 1,257 s27 0,756 1,95 0,765 0,769 0,764 s386 1,251 1,393 1,121 1,187 1,098 s420 1,337 2,82 1,286 1,334 1,292 s510 1,543 1,543 1,091 1,218 1,002 s8 0,736 0,805 0,732 0,734 0,882 s820 2,054 1,801 1,463 1,612 1,143 s832 2,096 2,087 1,828 1,512 1,232 sand 1,149 1,149 0,988 1,017 0,817 shiftreg 0,523 0,603 0,512 0,503 0,712 sse 1,22 1,296 1,089 1,193 1,007 styr 4,044 4,771 3,187 3,612 2,932 tma 1,589 1,314 1,321 1,427 1,118 Total 85,479 89,585 65,935 68,498 58,646 Percentage 145,7% 152,7% 112,4% 116,8% 100% Benini, L. and De Micheli, G. (1995). State assignment for low power dissipation, _IEEE_ _Journal_ _of_ _Solid-State_ _Cir-_ _cuits_ 30 (3): 258–268. Benini, L., De Micheli, G. and Macii, E. (2001). Designing low-power circuits: Practical recipes, _IEEE_ _Circuits_ _and_ _Systems Magazine_ 1 (1): 6–25. Borowik, G. (2018). Optimization on the complementation procedure towards efficient implementation of the index generation function, _International_ _Journal_ _of_ _Applied_ _Mathematics and Computer Science_ 28 (4): 803–815, DOI: 10.2478/amcs-2018-0061. Brayton, R. and Mishchenko, A. (2010). ABC: An academic industrial-strength verification tool, _in_ T. Touili _et al._ (Eds), _Computer Aided Verification_, Springer, Berlin/Heidelberg, pp. 24–40. Brown, B.D. and Card, H.C. (2001). Stochastic neural computation. I: Computational elements, _IEEE_ _Transac-_ _tions on Computers_ 50 (9): 891–905. Choudhury, P. and Pradhan, S. (2012). Power modeling of power gated FSM and its low power realization by simultaneous partitioning and state encoding using genetic algorithm, _in_ H. Rahaman _et al._ (Eds), _Progress in VLSI Design and Test_, Springer, Berlin/Heidelberg, pp. 19–29. Chow, S., Ho, Y.-C., Hwang, T. and Liu, C. (1996). Low power realization of finite state machines—A decomposition approach, _ACM_ _Transactions_ _on_ _Design_ _Automation_ _of_ _Electronic Systems_ 1 (3): 315–340. Cong, J. and Yan, K. (2000). Synthesis for FPGAs with embedded memory blocks, _Proceedings_ _of_ _the_ _2000_ _ACM/SIGDA_ _Eighth_ _International_ _Symposium_ _on_ _Field_ _Programmable_ _Gate_ _Arrays,_ _FPGA’00,_ _Monterey,_ _CA,_ _USA_, pp. 75–82. Czerwi´nski, R. and Kania, D. (2013). _Finite_ _State_ _Machine_ _Logic_ _Synthesis_ _for_ _Complex_ _Programmable_ _Logic_ _De-_ _vices_, Springer, Berlin. Das, N. and Priya, P.A. (2018). FPGA implementation of reconfigurable finite state machine with input multiplexing architecture using Hungarian method, _International_ _Jour-_ _nal of Reconfigurable Computing_ 2018 : 1–15. Gajski, D. D., Abdi, S., Gerstlauer, A. and Schirner, G. (2009). _Embedded System Design:_ _Modeling, Synthesis and Verifi-_ _cation_, Springer, Berlin. Garcia-Vargas, I. and Senhadji-Navarro, R. (2015). Finite state machines with input multiplexing: A performance study, _IEEE_ _Transactions_ _on_ _Computer-Aided_ _Design_ _of_ _Inte-_ _grated Circuits and Systems_ 34 : 867–871. Garcia-Vargas, I., Senhadji-Navarro, R., Jiménez-Moreno, G., Civit-Balcells, A. and Guerra-Gutierrez, P. (2007). ROM-based finite state machine implementation in low cost FPGAs, _IEEE International Symposium on Industrial_ _Electronics ISIE 2007, Vigo, Spain_, pp. 2342–2347. Glaser, J., Damm, M., Haase, J. and Grimm, C. (2011). TR-FSM: Transition-based reconfigurable finite state machine, _ACM_ _Transactions_ _on_ _Reconfigurable_ _Technol-_ _ogy and Systems_ 4 (3): 23:1–23:14. <u>Improving characteristics of LUT-based Mealy FSMs</u> ~~75~~ 7 Grout, I. (2008). _Digital_ _Systems_ _Design_ _with_ _FPGAs_ _and_ _CPLDs_, Elsevier, Oxford. Kam, T., Villa, T., Brayton, R. and Sangiovanni-Vincentelli, A. (2010). _A Synthesis_ _of Finite State Machines:_ _Functional_ _Optimization_, Springer, Boston, MA. Khatri, S. and Gulati, K. (Eds) (2011). _Advanced Techniques in_ _Logic Synthesis, Optimizations and Applications_, Springer, New York, NY. Kołopie´nczyk, M., Titarenko, L. and Barkalov, A. (2017). Design of EMB-based Moore FSMs, _Journal_ _of_ _Circuits,_ _Systems, and Computers_ 26 (7): 1–23. Kubatova, H. and Becvar, M. (2002). FEL-Code: FSM internal state encoding method, _Proceedings_ _of_ _the_ _5th_ _Interna-_ _tional_ _Workshop_ _on_ _Boolean_ _Problems,_ _Freiberg,_ _Ger-_ _many,_ pp. 109–114. Kubica, M. and Kania, D. (2017). Area-oriented technology mapping for LUT-based logic blocks, _International_ _Jour-_ _nal_ _of_ _Applied_ _Mathematics_ _and_ _Computer_ _Science_ 27 (1): 207–222, DOI: 10.1515/amcs-2017-0015. Kubica, M., Kania, D. and Kulisz, J. (2019). A technology mapping of FSMs based on a graph of excitations and outputs, _IEEE Access_ 7 : 16123–16131. LGSynth93 (1993). Benchmark suite, _International_ _Workshop_ _on_ _Logic_ _Synthesis,_ _Tahoe_ _City,_ _CA,_ _USA,_ [https://pe](https://people.engr.ncsu.edu/brglez/CBL/benchmarks/LGSynth93/LGSynth93.tar) [ople.engr.ncsu.edu/brglez/CBL/benchmar](https://people.engr.ncsu.edu/brglez/CBL/benchmarks/LGSynth93/LGSynth93.tar) [ks/LGSynth93/LGSynth93.tar.](https://people.engr.ncsu.edu/brglez/CBL/benchmarks/LGSynth93/LGSynth93.tar) Li, J., Ren, A., Li, Z., Ding, C., Yuan, B., Qiu, Q. and Wang, Y. (2017). Towards acceleration of deep convolutional neural networks using stochastic computing, _22nd_ _Asia_ _and_ _South_ _Pacific_ _Design_ _Automation_ _Conference,_ _ASP-_ _DAC, Chiba/Tokyo, Japan_, pp. 115–120. Li, P., Lilja, D.J., Qian, W., Riedel, M.D. and Bazargan, K. (2014). Logical computation on stochastic bit streams with linear finite-state machines, _IEEE_ _Transactions_ _on_ _Com-_ _puters_ 63 (6): 1474–1486. Liu, B., Cai, Y., Zhou, Q., Bian, J. and Hong, X. (2005). FSM decomposition for power gating design automation in sequential circuits, _6th International Conference_ _on ASIC,_ _Shanghai, China_, Vol. 2, pp. 944–947. Machado, L. and Cortadella, J. (2020). Support-reducing decomposition for FPGA mapping, _IEEE Transactions on_ _Computer-Aided Design of Integrated Circuits and Systems_ 39 (1): 213–224. Maxfield, C. (2004). _The_ _Design_ _Warrior’s_ _Guide_ _to_ _FPGAs_, Academic Press, Orlando, FL. Michalski, T. and Kokosi´nski, Z. (2016). Functional decomposition of combinational logic circuits with PKmin, _Technical_ _Transactions:_ _Electrical_ _Engineering_ 113 (2-E): 191–202. Micheli, G.D. (1994). _Synthesis and Optimization of Digital Cir-_ _cuits_, McGraw-Hill, New York, NY. Mishchenko, A. and Brayton, R. (2006). Scalable logic [synthesis using a simple circuit structure, https://peo](https://people.eecs.berkeley.edu/~brayton/publications/2006/iwls06_sls.pdf) [ple.eecs.berkeley.edu/~brayton/publica](https://people.eecs.berkeley.edu/~brayton/publications/2006/iwls06_sls.pdf) [tions/2006/iwls06_sls.pdf.](https://people.eecs.berkeley.edu/~brayton/publications/2006/iwls06_sls.pdf) Table 9. Experimental results (the operating frequency, MHz). Benchmark Auto One-Hot JEDI DEMAIN _U_ 2 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 9172,65 Percentage 88% 89% 95% 88% 100% <u>A. Barkalov</u> _<u>et al.</u>_ 75 ~~8~~ Mishchenko, A. and Brayton, R. (2007). SAT-based logic [optimization and resynthesis, https://people.eecs](https://people.eecs.berkeley.edu/~alanmi/publications/2007/tech07_imfs.pdf) [.berkeley.edu/~alanmi/publications/200](https://people.eecs.berkeley.edu/~alanmi/publications/2007/tech07_imfs.pdf) [7/tech07_imfs.pdf.](https://people.eecs.berkeley.edu/~alanmi/publications/2007/tech07_imfs.pdf) Mishchenko, A., Brayton, R., Jiang, J.-H.R. and Jang, S. (2011). Scalable don’t-care-based logic optimization and resynthesis, _ACM_ _Transactions_ _on_ _Reconfigurable_ _Tech-_ _nology and Systems_ 4 (4): 23. Nag, A., Das, S. and Pradhan, S. (2018). Low power FSM synthesis based on automated power and clock gating technique, _Journal_ _of_ _Circuits,_ _Systems_ _and_ _Computers_ 28 (5), Article ID 1920003. Nowicka, M., Łuba, T. and Rawski, M. (1999). FPGA-based decomposition of Boolean functions: Algorithms and implementation, _6th_ _International_ _Conference_ _on_ _Ad-_ _vanced Computer Systems, Szczecin, Poland_, pp. 502–509. Opara, A. and Kania, D. (2010). Decomposition-based logic synthesis for PAL-based CPLDs, _International_ _Journal_ _of_ _Applied_ _Mathematics_ _and_ _Computer_ _Science_ 20 (2): 367–384, DOI: 10.2478/v10006-010-0027-1. Opara, A., Kubica, M. and Kania, D. (2019). Methods of improving time efficiency of decomposition dedicated at FPGA structures and using BDD in the process of cyber-physical synthesis, _IEEE Access_ 7 : 20619–20631. PKmin (2020). [http://www.pk.edu.pl/~zk/PKmin/P](http://www.pk.edu.pl/~zk/PKmin/PKmin_pomoc-help.zip) [Kmin_pomoc-help.zip.](http://www.pk.edu.pl/~zk/PKmin/PKmin_pomoc-help.zip) Pradhan, S., Kumar, M. and Chattopadhyay, S. (2011). Low power finite state machine synthesis using power-gating, _Integration_ 44 (3): 175–184. Rafla, N.I. and Gauba, I. (2010). A reconfigurable pattern matching hardware implementation using on-chip RAM-based FSM, _53rd_ _IEEE_ _International_ _Midwest_ _Symposium_ _on_ _Circuits_ _and_ _Systems,_ _Boise,_ _ID,_ _USA_, pp. 49–52. Rawski, M., Jozwiak, L., Nowicka M. and Luba T. (1997). Non-disjoint decomposition of Boolean functions and its application in FPGA-oriented technology mapping, _Pro-_ _ceedings_ _of_ _the_ _23rd_ _EUROMICRO_ _Conference:_ _New_ _Frontiers_ _of_ _Information_ _Technology,_ _Budapest,_ _Hungary_, pp. 24–30. Rawski, M., Selvaraj, H. and Łuba, T. (2005). An application of functional decomposition in ROM-based FSM implementation in FPGA devices, _Journal of System_ _Architecture_ 51 (6–7): 423–434. Rawski, M., Tomaszewicz, P., Borowski, G. and Łuba, T. (2011). Logic synthesis method of digital circuits designed for implementation with embedded memory blocks on FPGAs, _in_ M. Adamski _et_ _al._ (Eds), _Design_ _of_ _Digi-_ _tal_ _Systems_ _and_ _Devices_ _(LNEE_ _79)_, Springer, Berlin, pp. 121–144. Scholl, C. (2001). _Functional_ _Decomposition_ _with_ _Application_ _to FPGA Synthesis_, Kluwer, Boston, MA. Sentowich, E., Singh, K., Lavango, L., Moon, C., Murgai, R., Saldanha, A., Savoj, H., Stephan, P., Bryton, R. and Sangiovanni-Vincentelli, A. (1992). SIS: A system for sequential circuit synthesis, _Technical report_, University of California, Berkely, CA. Sklyarov, V. (2000). Synthesis and implementation of RAM-based finite state machines in FPGAs, _Field-_ _Programmable_ _Logic_ _and_ _Applications:_ _The_ _Roadmap_ _to_ _Reconfigurable Computing, Villach, Austria_, pp. 718–728. Sklyarov, V., Skliarova, I., Barkalov, A. and Titarenko, L. (2014). _Synthesis_ _and_ _Optimization_ _of_ _FPGA-Based_ _Sys-_ _tems_, Springer, Berlin. Sutter, G., Todorovich, E., López-Buedo, S. and Boemo, E. (2002). Low-power FSMs in FPGA: Encoding alternatives, _Integrated_ _Circuit_ _Design._ _Power_ _and_ _Timing_ _Modeling,_ _Optimization and Simulation, Seville, Spain_, pp. 363–370. Testa, E., Amaru, L., Soeken, M., Mishchenko, A., Vuillod, P., Luo, J., Casares, C., Gaillardon, P. and Micheli, G.D. (2019). Scalable Boolean methods in a modern synthesis flow, _Design,_ _Automation_ _Test_ _in_ _Europe_ _Conference_ _Ex-_ _hibition (DATE), Florence, Italy_, pp. 1643–1648. Tiwari, A. and Tomko, K. (2004). Saving power by mapping finite-state machines into embedded memory blocks in FPGAs, _Proceedings_ _of_ _the_ _Conference_ _on_ _Design,_ _Au-_ _tomation and Test in Europe_, Vol. 2, pp. 916–921. Vivado (2020). [https://www.xilinx.com/products/](https://www.xilinx.com/products/design-tools/vivado.html) [design-tools/vivado.html.](https://www.xilinx.com/products/design-tools/vivado.html) Wu, X., Pedram, M. and Wang, L. (2000). Multi-code state assignment for low-power design, _IEEE_ _Proceedings_ _on_ _Circuits, Devices and Systems_ 147 (5): 271–275. Xie, Y., Liao, S., Yuan, B., Wang, Y. and Wang, Z. (2017). Fully-parallel area-efficient deep neural network design using stochastic computing, _IEEE Transactions on Circuits_ _and Systems II: Express Briefs_ 64 (12): 1382–1386. Xilinx (2010). _Virtex-4 Family_ _Overview_, [http://www.xil](http://www.xilinx.com/support/documentation/data_sheets/ds112.pdf) [inx.com/support/documentation/data_she](http://www.xilinx.com/support/documentation/data_sheets/ds112.pdf) [ets/ds112.pdf.](http://www.xilinx.com/support/documentation/data_sheets/ds112.pdf) Xilinx (2015). _Virtex-5 Family_ _Overview_, [http://www.xil](http://www.xilinx.com/support/documentation/data_sheets/ds100.pdf) [inx.com/support/documentation/data_she](http://www.xilinx.com/support/documentation/data_sheets/ds100.pdf) [ets/ds100.pdf.](http://www.xilinx.com/support/documentation/data_sheets/ds100.pdf) Xilinx (2020a). [http://www.xilinx.com.](http://www.xilinx.com) Xilinx (2020b). _ISE Foundation_, [https://www.xilinx.c](https://www.xilinx.com/products/design-tools/ise-design-suite.html) [om/products/design-tools/ise-design-su](https://www.xilinx.com/products/design-tools/ise-design-suite.html) [ite.html.](https://www.xilinx.com/products/design-tools/ise-design-suite.html) Alexander A. Barkalov worked in Donetsk Na tional Technical University (DNTU) from 1976 till 1996 as a tutor. He cooperated actively with the Kiev Institute of Cybernetics (IC) named after Victor Glushkov. He obtained his PhD in computer science in 1995 from the IC. From 1996 till 2003 he worked as a professor of DNTU. Since 2003 he has been working as a professor in the Department of Computer, Electrical and Control Engineering of the University of Zielona Góra. <u>Improving characteristics of LUT-based Mealy FSMs</u> ~~75~~ 9 Larysa Titarenko obtained her PhD degree (telecommunications) in 2005 from the Kharkov National University of Radioelectronics (KNURE). Till 2003 she worked as a professor of the KNURE. Since 2005 she has been working as a professor in the Department of Computer, Electrical and Control Engineering of the University of Zielona Góra. Kamil Mielcarek received his MSc degree in computer engineering from the Technical University of Zielona Góra, Poland, in 1995 and his PhD degree in computer science from the University of Zielona Góra, Poland, in 2010. Since 2001 he has been a lecturer there. His current interests include methods of synthesis and optimization of control units in field-programmable logic devices, hardware description languages, perfect graphs and Petri nets, algorithmic theory and safety of UNIX and network systems. Received: 21 February 2020 Revised: 20 May 2020 Re-revised: 21 July 2020 Accepted: 4 August 2020

섹션 본문 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건

  1. 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
  2. Scalable Logic Synthesis using a Simple Circuit Structure 2006
  3. 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
  4. The Design Warrior's Guide to FPGAs Elsevier eBooks · Elsevier BV · 2004 10.1016/b978-0-7506-7604-5.x5000-4
  5. Logic Synthesis for FSM-Based Control Units Lecture notes in electrical engineering · Springer Science+Business Media · 2009 10.1007/978-3-642-04309-3
  6. Advanced Techniques in Logic Synthesis, Optimizations and Applications Springer eBooks · Springer Nature · 2010 10.1007/978-1-4419-7518-8
  7. Synthesis and Optimization of FPGA-Based Systems Lecture notes in electrical engineering · Springer Science+Business Media · 2014 10.1007/978-3-319-04708-9
  8. Digital Systems Design with FPGAs and CPLDs Elsevier eBooks · Elsevier BV · 2008 10.1016/b978-0-7506-8397-5.x0001-3
  9. 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
  10. SIS : A System for Sequential Circuit Synthesis CTIT technical reports series · University of Twente · 1992
  11. Low-Power FSMs in FPGA: Encoding Alternatives Lecture notes in computer science · Springer Science+Business Media · 2002 10.1007/3-540-45716-x_36
  12. Synthesis of Finite State Machines : Functional Optimization 2013
  13. 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
  14. TR-FSM ACM Transactions on Reconfigurable Technology and Systems · Association for Computing Machinery · 2011 10.1145/2000832.2000835
  15. Synthesis for FPGAs with embedded memory blocks 2000 10.1145/329166.329183
  16. Low power finite state machine synthesis using power-gating Integration · Elsevier BV · 2011 10.1016/j.vlsi.2011.03.003
  17. 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
  18. Designing low-power circuits: practical recipes IEEE Circuits and Systems Magazine · Institute of Electrical and Electronics Engineers · 2001 10.1109/7384.928306
  19. 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
  20. 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
  21. Synthesis of finite state machines: Functional optimization Microelectronics Journal · 1998 10.1016/s0026-2692(97)00075-x
  22. 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
  23. 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
  24. A reconfigurable pattern matching hardware implementation using on-chip RAM-based FSM 2010 10.1109/mwscas.2010.5548558
  25. Functional decomposition with application to FPGA synthesis 2001
  26. State assignment for low power dissipation IEEE Journal of Solid-State Circuits · Institute of Electrical and Electronics Engineers · 1995 10.1109/4.364440
  27. 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
  28. Saving power by mapping finite-state machines into embedded memory blocks in FPGAs Design, Automation, and Test in Europe · 2004 10.5555/968879.969129
  29. 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
  30. Synthesis and optimization of digital circuits Choice Reviews Online · Association of College and Research Libraries · 1994 10.5860/choice.32-0950
  31. DESIGN OF MEALY FINITE-STATE MACHINES WITH THE TRANSFORMATION OF OBJECT CODES International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2005
  32. 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
  33. ROM-Based Finite State Machine Implementation in Low Cost FPGAs 2007 10.1109/isie.2007.4374972
  34. Stochastic neural computation. I. Computational elements IEEE Transactions on Computers · Institute of Electrical and Electronics Engineers · 2001 10.1109/12.954505
  35. 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
  36. Design of EMB-Based Moore FSMs Studies in systems, decision and control · Springer International Publishing · 2015 10.1007/978-3-319-24202-6_8
  37. 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
  38. FSM Decomposition for Power Gating Design Automation in Sequential Circuits 2006 10.1109/icasic.2005.1611463
  39. Non-disjoint decomposition of Boolean functions and its application in FPGA-oriented technology mapping 2002 10.1109/eurmic.1997.617211
  40. 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
  41. Functional decomposition of combinational logic circuits with PKmin Czasopismo Techniczne. Elektrotechnika · 2016 10.4467/2353737xct.16.257.6056
  42. 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
  43. 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
  44. Low-Power FSM Synthesis Based on Automated Power and Clock Gating Technique Journal of Circuits Systems and Computers · World Scientific · 2018 10.1142/s0218126619200032
  45. Hardware Reduction for Lut–Based Mealy FSMs International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2018 10.2478/amcs-2018-0046
  46. 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
  47. 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
  48. 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
  49. 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
  50. Scalable Boolean Methods in a Modern Synthesis Flow Design, Automation &amp; Test in Europe Conference &amp; Exhibition (DATE), 2015 · 2019 10.23919/date.2019.8714776
  51. A State Encoding Methodology for Side-Channel Security vs. Power Trade-off Exploration 2019 10.1109/vlsid.2019.00031
  52. Logic Synthesis for FPGA-Based Control Units: Structural Decomposition in Logic Design 2020
  53. Encoding of Terms in EMB-Based Mealy FSMs Applied Sciences · Multidisciplinary Digital Publishing Institute · 2020 10.3390/app10082762
  54. Embedded System Design: Modeling, Synthesis and Verification 2009
  55. Logic Synthesis for Control Automata Springer eBooks · Springer Nature · 1994 10.1007/978-1-4615-2692-6
  56. 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
  57. Design of EMB-Based Moore FSMs Journal of Circuits Systems and Computers · World Scientific · 2017 10.1142/s0218126617501250