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

Hardware Reduction for FSMs With Extended State Codes

관련 산업용 섬유 · (9) 타이어코드

기본 정보

저자
  1. Alexander Barkalov — Institute of Metrology, Electronics and Computer Science, Faculty of Computer, Electrical and Control Engineering, University of Zielona Góra, Zielona Góra, Poland
  2. Larysa Titarenko — Institute of Metrology, Electronics and Computer Science, Faculty of Computer, Electrical and Control Engineering, University of Zielona Góra, Zielona Góra, Poland
  3. Kamil Mielcarek — Institute of Metrology, Electronics and Computer Science, Faculty of Computer, Electrical and Control Engineering, University of Zielona Góra, Zielona Góra, Poland
  4. Małgorzata Mazurkiewicz — Institute of Control and Computation Engineering, Faculty of Computer, Electrical and Control Engineering, University of Zielona Góra, Zielona Góra, Poland
DOI
10.1109/access.2024.3376472
저널
IEEE Access
발행년도
2024
발행기관
Institute of Electrical and Electronics Engineers
피인용수
2
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2024.3376472
토픽
Advancements in Photolithography Techniques
OpenAlex ID
W4392719474

평가 내용

관련도
관련
사업분야
산업용 섬유 · (9) 타이어코드
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '산업용 섬유 > 타이어코드' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

A method is proposed for reducing chip area occupied by logic circuits of FPGA-based Mealy finite state machines (FSMs). The proposed method aims at optimization of FSM circuits implemented with look-up table (LUT) elements of FPGA chip. The proposed method combines positive features of such state assignment methods as extended (ESCs) and composite (CSCs) state codes. The method is based on finding a partition of the set of internal states by classes of compatible states. To reduce LUT count, we propose a special kind of states codes named mixed state codes. These codes include two parts. The first part includes the maximum binary codes of states as elements of some partition class. The second part consists of the code of corresponding partition class. Unlike CSCs, the proposed approach allows obtaining partial state codes having different lengths. Unlike ESCs, all partial state codes consist of the same variables. Using mixed state codes allows obtaining LUT-based FSM circuits with exactly two levels of logic. The first level generates partial Boolean functions. The second level combines them into FSM outputs and input memory functions. If some conditions hold, then both levels consist of single-LUT circuits. Example of FSM synthesis based on mixed state codes is shown. The conducted experiments prove that the proposed approach allows reducing hardware compared with FSMs based on JEDI, one-hot state codes, CSCs and ESCs. On average, the proposed method reduces the value of LUT count by 6.21% compared to CSC-based FSMs and 22.21% compared to ESC-based counterparts. The advantages of the proposed approach grow with the growth of FSM complexness. An additional positive effect of the proposed method is a slight increase in the operating frequency.

본문 97,628자

본문 펼치기
Date of publication xxxx 00, 0000, date of current version xxxx 00, 0000. _Digital Object Identifier 10.1109/ACCESS.2017.DOI_ ## Hardware reduction for FSMs with extended state codes ALEXANDER BARKALOV <sup>1</sup> , LARYSA TITARENKO <sup>1</sup> , KAMIL MIELCAREK <sup>1</sup> and MAŁGORZATA MAZURKIEWICZ. <sup>2</sup> 1Institute of Metrology, Electronics and Computer Science, Faculty of Computer, Electrical and Control Engineering, University of Zielona Góra. 2Institute of Control & Computation Engineering, Faculty of Computer, Electrical and Control Engineering, University of Zielona Góra. Corresponding author: Kamil Mielcarek (e-mail: K.Mielcarek@imei.uz.zgora.pl). ABSTRACT A method is proposed for reducing chip area occupied by logic circuits of FPGAbased Mealy finite state machines (FSMs). The proposed method aims at optimization of FSM circuits implemented with look-up table (LUT) elements of FPGA chip. The proposed method combines positive features of such state assignment methods as extended (ESCs) and composite (CSCs) state codes. The method is based on finding a partition of the set of internal states by classes of compatible states. To reduce LUT count, we propose a special kind of states codes named mixed state codes. These codes include two parts. The first part includes the maximum binary codes of states as elements of some partition class. The second part consists of the code of corresponding partition class. Unlike CSCs, the proposed approach allows obtaining partial state codes having different lengths. Unlike ESCs, all partial state codes consist of the same variables. Using mixed state codes allows obtaining LUT-based FSM circuits with exactly two levels of logic. The first level generates partial Boolean functions. The second level combines them into FSM outputs and input memory functions. If some conditions hold, then both levels consist of single-LUT circuits. Example of FSM synthesis based on mixed state codes is shown. The conducted experiments prove that the proposed approach allows reducing hardware compared with FSMs based on JEDI, one-hot state codes, CSCs and ESCs. On average, the proposed method reduces the value of LUT count by 6.21% compared to CSC-based FSMs and 22.21% compared to ESC-based counterparts. The advantages of the proposed approach grow with the growth of FSM complexness. An additional positive effect of the proposed method is a slight increase in the operating frequency. INDEX TERMS Mealy FSM, FPGA, LUT count, synthesis, extended state codes, composite state codes, mixed state codes. I. INTRODUCTION OW, various digital systems are widely used practically in all spheres of human activity [1]–[3]. These # N systems include a lot of combinational and sequential devices [3], [4]. It is very important to improve the basic characteristics of digital systems (price, hardware amount, performance, power consumption) [4]. In this article, we propose a method aimed at reducing the area of sequential devices. We use the model of Mealy finite state machine (FSM) [5] to represent the sequential devices. This model is viewed as a starting point of the sequential device design process [6]. This has led to the emergence of a significant number of FSM-based design methods [7]. As a rule, all these methods are associated with the solution of some optimization problems [8], [9]. In the design process, such problems are solved as reducing the chip area occu pied by the resulting FSM circuit, increasing its operating frequency and reducing the consumed electrical power. If there is no single criterion for the optimality of the FSM circuit, then the designers strive to achieve a balance of its main characteristics [10]. Many studies show that the chip area occupied by an FSM circuit has a decisive influence on both the performance and power consumption [11]. Due to it, our current article is devoted specifically to the problem of reducing the required chip area. The proposed method focuses on Mealy FSM circuits implemented with fieldprogrammable gate arrays (FPGAs) [12]–[14]. The proposed method combines approaches related to the use of extended state codes (ESCs) [15] and composite state codes (CSCs) [16]. In our study, we focus on the FPGA chips of the company AMD Xilinx [17]. This choice is due to two facts. First, FPGAs are widespread in modern digital design [12]. This determines our choice of FPGA as a basis for the implementation of FSM circuits. Secondly, the company AMD Xilinx is the largest producer of FPGA chips [17]. This determines the choice of their chips Virtex 7 [18] in our current research. To evaluate the required chip area, we use the widely used approach described in [10]. In this case, the area is estimated as a number of look-up table (LUT) elements (LUT count) in an FSM circuit. The main goal of the proposed method is the reduction of LUT count in Mealy FSM circuits. We analysed positive and negative features of extended state codes [15] and composite state codes [16]. Both approaches are based on finding minimum possible number of classes of compatible states. In ESC-based FSMs, the total number of code bits (extended code length) exceeds significantly their minimum possible number inherent in maximum binary state codes (MBCs). This leads to increasing the number of flip-flops in FSM state memory. In addition, this increase leads to a complication of the interconnect system. But for ESCs, partial state codes can have different lengths for different classes. This reduces the number of classes. In CSC-based FSMs, the same state variables create partial state codes for all classes. This reduces the total length of state codes compared to equivalent ESC-based FSMs. But due to it, CSC-based FSMs require more classes than their ESC-based counterparts. This can lead to reducing performance of CSCbased FSMs compared to ESC-based FSMs. In our current article, we propose a method eliminating the mentioned drawbacks and combining together positive features of both CSC- and ESC-based FSMs. The main contribution of this paper is a novel design method aimed at reducing the LUT counts in circuits of two-level FPGA-based Mealy FSMs compared to equivalent FSMs with either extended or composite state codes. The resulting FSMs combine positive features of ESC-based FSMs (the different partial state code length for different classes) and CSC-based FSMs (the minimum possible length of state codes). Combination of these features leads to so-called mixed state codes (MSCs) proposed in our current article. The proposed method of state assignment provides a variable length of partial state codes for different classes (minimizing the number of classes) and minimizing the overall bitness of state codes. The rest of the article is organized as follows. The essential information about LUT-based Mealy FSMs is discussed in Section II. The Section III includes a short analysis of related works. The main idea of the proposed method is shown in Section IV. An example of MSC-based FSM synthesis is shown in Section V. Section VI includes the experimental results and their analysis. The short summary is shown in Section VII. II. ESSENTIAL INFORMATION CONCERNING LUT-BASED FSM DESIGN Mealy FSM may be represented by a state transition graph (STG) [19]. From an STG, three sets could be # A derived. They are: 1) a set of states _A_ = _{a_ 1 _, ..., aM_ _}_, 2) a set of inputs _X_ = _{x_ 1 _, ..., xL}_ and 3) a set of outputs _Y_ = _{y_ 1 _, ..., yN_ _}_ . After the step of state assignment [5], it is possible to get two systems of Boolean functions (SBFs) [19]. They represent the dependences of FSM outputs and input memory functions (IMFs) on FSM inputs and state variables. The state variables form a set _T_ = _{T_ 1 _, ..., TR}_ Each state variable corresponds to a single bit of state code _C_ ( _am_ ). The minimum code length corresponds to so-called maximum binary state codes (MBCs) [20]. The length of MBCs is determined by the following formula: The state codes _C_ ( _am_ ) are kept into the state code register (RG). In the case of FPGA-based FSMs, the RG includes the flip-flops of D type [21]. To change the content of RG, the input memory functions are used. The IMFs form a set _D_ = _{D_ 1 _, ..., DR}_ . An FSM circuit is represented by two SBFs: _D_ = _D_ ( _T, X_ ); (2) _Y_ = _Y_ ( _T, X_ ) _._ (3) The SBFs (2)–(3) represent so-called P Mealy FSM [5]. It includes two logic blocks and the state code register. One of these blocks generates functions from SBF (2). The second block generates IMFs (2). These functions enter the RG to set a next state code. In the beginning, the RG is cleared using a pulse Start. The resulting code consists of zeros; it corresponds to the initial state _a_ 1 _∈_ _A_ . The values of IMFs determine the code of a next state. This code is written into RG using a pulse Clock. In this article, we do not show the architecture of P Mealy FSM due to its triviality. To get the systems (2)–(3), the initial STG should be transformed into a direct structure table (DST) [5]. Also, a DST can be obtained using a state transition table (STT) [19]. Both STG and STT are interchangeable. At the same time, there are elementary procedures for converting one form to another [19]. In our paper, for representing a Mealy FSM, we use an STG. An STT includes the following columns [5]: a current state _am_ ; a next state _aS_ ; an input signal _Xh_ which is a conjunction of inputs (or their complements) determining a particular interstate transition _⟨am, as⟩_ ; a collection of outputs _Yh_ generated during the transition _⟨am, as⟩_ ; _h_ is a column including the numbers of interstate transitions ( _h ∈_ _{_ 1 _, ..., H}_ ). The number of STT rows is equal to the number of arcs in the equivalent STG. To transform an STT into the equivalent DST, it is necessary to assign state codes. This is a state assignment step [19]. This step is reduced to the replacement of states _am_ _∈_ _A_ by their binary codes _C_ ( _am_ ). The current state codes are placed into the column _C_ ( _am_ ) of DST, the next state codes are placed into the column _C_ ( _as_ ). In the case - _._ (1) _R_ = - _log_ 2 _M_ 2 VOLUME 4 2016 of D flip-flops, the values of IMFs are created on the base of the next state codes. These functions are placed into the column _Dh_ of DST. In this paper, we consider a case when the circuit of P Mealy FSM is implemented using internal resources of FPGA chips. A lot of configurable logic blocks (CLB) could be found in chips produced by AMD Xilinx [17]. Each CLB includes LUTs, dedicated multiplexors, flip-flops and tools of fast internal interconnect [22]. All these components are programmable. The logic functions are implemented using LUTs. The number of LUT inputs could be increased with the help of dedicated multiplexers. Each bit of state codes corresponds to a flip-flop’s output. To get an FSM circuit, it is necessary to connect CLBs by tools of a programmable routing matrix [22]. A LUT has _SL_ inputs and a single output. Any Boolean function depending on up to _SL_ variables is generated using only a single LUT [20]. The value of _SL_ is rather small [14]. For example, there is _SL_ = 6 for basic LUTs of the Virtex-7 family [18]. But the functions (2)–(3) can be very complex. It is quite possible that the numbers of arguments of sumof-products (SOPs) of these functions exceed significantly the value of _SL_ . To generate such complex functions, it is necessary to represent each of them as a composition of partial Boolean functions (PBFs). Each PBF has no more than _SL_ arguments. To optimize the resulting compositions, it is necessary to apply various methods of functional decomposition (FD) [23]. Although these methods allow implementing an FSM circuit, they have one negative quality: FD-based FSMs are represented by multi-level circuits with complicated systems of “spaghetti-type” interconnections [20]. In LUT-based FSMs, the flip-flops of RG are distributed among LUTs generating functions (2). Due to it, the RG is hidden inside the slices generating IMFs. So, LUT-based _P_ Mealy FSMs have only two blocks. In the further material of this article, we denote a block consisting of LUTs as a LUTer. In the best case, there is exactly a single level of LUTs in the circuit of P FSM. This is possible if each function _fi_ _∈_ _D∪Y_ depends on no more than _SL_ arguments. However, for sufficiently complex FSMs, the number of LUT inputs is not enough to implement single-level FSM circuits. So, rather complex FSMs are represented by multi-level LUT-based circuits. To improve the basic characteristics of LUT-based FSM circuits (LUT count, maximum operating frequency, power consumption), it is necessary to improve the existing design methods. In addition to reducing the number of LUTs, it is very important to optimize the system of connections between different CLBs of an FSM circuit. As shown in [11], the interconnections are responsible for: 1) around 70% of power consumption and 2) the major part of FSM circuit latency time. This can be done using such methods of structural decomposition as: 1) twofold state assignment [24], [25], 2) extended state assignment [15] or 3) composite state assignment [16]. III. RELATED WORK VER the past fifty years, a huge number of methods have been developed to optimize the characteristics # O of FSM circuits. Since the 1980s, most of the developed methods have focused on FPGA-based FSMs [20], [26]– [28]. These methods should be applied if the number of arguments _NA_ ( _fi_ ) exceeds the number of LUT address inputs (at least for a single function _fi_ _∈_ _D ∪_ _Y_ ) [20]. As a rule, the known design methods can improve only a single characteristic of an FSM circuit (either the LUT count or the latency time or the value of power consumption) [29]– [33]. There are also methods that attempt to balance two or three characteristics of the circuit [34]–[38]. The main goal of the method proposed in this article is reducing the chip area occupied by a LUT-based FSM circuit. As it is done in [10], we use the LUT count of a circuit to evaluate the occupied chip area. Now, there are various methods of state assignment improving the LUT counts. These methods reduce the number of arguments in functions _fi_ _∈_ _D ∪_ _Y_ [20]. The reduction can be done by lengthening the state codes. The method of one-hot assignment is very popular in FPGA-based design [20]. In this case, the number of code bits is equal to the number of states, M. Sometimes, for optimization, it is enough to increase the number of code bits by only 2 or 3, as it is possible when using the algorithm JEDI [39]. So, the number of code bits can differ from _⌈log_ 2 _M_ _⌉_ to M. As the examples of CAD tools, we can note such systems as SIS [39], ABC by Berkeley [40], Vivado [41] by AMD Xilinx [17], Quartus [42] by Intel (Altera) [43]. Currently, there is no single best method which always gives the best results (for any FSM). For example, in [44], there are compared FSM circuits based on maximum binary and one-hot state codes (OHCs). As follows from research results reported in [44], the one-hot codes improve FSM characteristics for rather complex FSMs (when there is _M_ _>_ 16). However, there are other important factors influencing the circuit characteristics. These factors are: 1) the number of FSM inputs and 2) the distribution of FSM inputs between the states. For example, the results shown in [45] prove that using OHCs loose against MBCs if _L >_ 10. From this brief analysis, it is clear that the characteristics of LUT-based circuits depend on the total number of inputs and state variables, _L_ + _R_ . Obviously, this value determines which state assignment method should be used for a particular FSM. To be sure which method should be applied, it is necessary to apply both MBCs and OHCs. Due to it, we have investigated the efficiency of these both methods in our research. As a base for comparison with our proposed method, we use the algorithm JEDI [39], the MBC-based method Auto and the OHC-based method One-hot of Vivado [41] by AMD Xilinx [17]. Our choice of Vivado is due to its focus on AMD Xilinx FPGA chips. Our choice of JEDI VOLUME 4 2016 3 is determined by the fact that JEDI is one of the best MBCbased methods [8]. To optimize the characteristics of FSM circuits, various methods of structural decomposition (SD) [20] can be used. The main idea of SD-based methods is the elimination of direct dependence between FSM inputs _xl_ _∈_ _X_ and state variables _Tr_ _∈_ _T_, on the one hand, and outputs _yn_ _∈_ _Y_ and IMFs _Dr_ _∈_ _D_, on the other hand. Due to it, an FSM circuit is represented as a composition of big blocks having their own systems of input and output variables. Each block implements some system of PBFs. In this article, we propose a new SD-based FSM design method. This method combines features of methods based on extended state codes [15] and composite state codes [16].We use the term “mixed state assignment” to define the proposed method. As a result of applying this method, the states are encoded by the so-called mixed state codes. To understand the proposed method, we should analyse its predecessors discussed in articles [15], [16]. Like both ESC- and CSC-based design methods, the proposed method is based on finding a partition Π _A_ = _{A_ <sup>1</sup> _, ..., A_ <sup>_K_</sup> <sup>1</sup> _}_ of the set _A_ by classes of compatible states [24], [25].There are _Mk_ states in the class _A_ <sup>_k_</sup> _∈_ Π _A_ . Including a state _am_ _∈_ _A_ in a class _A_ <sup>_k_</sup> _∈_ Π _A_ can change the value of _NAk_, where _NAk_ is a number of variables on which transitions from the states already included into this class depend. A state _am_ _∈_ _A_ is compatible with states from class _A_ <sup>_k_</sup> _∈_ Π _A_ if the inclusion of this state in this class does not lead to the condition _NAk_ _> SL._ (4) The value of _NAk_ is a result of summation the numbers _Lk_ and _Rk_ . The value of _Lk_ is equal to the number of FSM inputs on which transitions from the states _am_ _∈_ _A_ <sup>_k_</sup> depend. These inputs create a set _X_ <sup>_k_</sup> _⊆_ _X_ . The value of _Rk_ is equal to the minimum number of bits required for encoding of the states _am_ _∈_ _A_ <sup>_k_</sup> . Each class _A_ <sup>_k_</sup> _∈_ Π _A_ determines sets _Y_ <sup>_k_</sup> _⊆_ _Y_ (a set of outputs generated during the transitions from states _am_ _∈_ _A_ <sup>_k_</sup> ) and _D_ <sup>_k_</sup> _⊆_ _D_ (a set of IMFs generated during the transitions from states _am_ _∈_ _A_ <sup>_k_</sup> ). Each class corresponds to some sub-table of the initial STT. The number of FSM inputs in this sub-table is equal to _Lk_ . This is a feature common to all methods discussed below. But there are different approaches for determining the value of _Rk_ . Now we will analyse the features of ESCand CSC-based FSMs. In the case of ESC-based FSMs, the value of _Rk_ is determined as X1 ### �1 XK1 �K1 X K1 LUTer1 LUTerK K 1 YK DK K Y 1 D Y <u>Clock</u> <u>Start</u> LUTer�Y Y FIGURE 1. Architecture of _PE_ Mealy FSM ### � - _._ (5) To encode states, the variables _τr_ _∈_ _τ_ are used where _T_ = _{τ_ 1 _, ..., τRE}_ . To encode states _am_ _∈_ _A_ <sup>_k_</sup>, we use a set _τ_ <sup>_k_</sup> _⊂_ _τ_ . The variables _τr_ _∈T_ <sup>_k_</sup> form partial state codes _PC_ ( _am_ ) where _am_ _∈_ _A_ <sup>_k_</sup> . There are _K_ 1 fields in the extended state codes _CE_ ( _am_ ). The _k_ -th field corresponds to the set _A_ <sup>_k_</sup> _∈_ Π _A_ . For a state _am_ _∈_ _A_ <sup>_k_</sup>, only some of variables _τr_ _∈T_ <sup>_k_</sup> are non-zero. All other fields include only zeroes. The following sets correspond to each class _A_ <sup>_k_</sup> _∈_ Π _A_ : _X_ <sup>_k_</sup>, _Y_ <sup>_k_</sup>, _D_ <sup>_k_</sup>, _T_ <sup>_k_</sup> . Using a sub-table of DST which represents transitions from states _am_ _∈_ _A_ <sup>_k_</sup>, the following systems of PBFs can be obtained: _D_ <sup>_k_</sup> = _D_ <sup>_k_</sup> ( _T_ <sup>_k_</sup> _, X_ <sup>_k_</sup> ); (7) _Y_ <sup>_k_</sup> = _Y_ <sup>_k_</sup> ( _T_ <sup>_k_</sup> _, X_ <sup>_k_</sup> ) _._ (8) In [15], architecture of Mealy FSM based on ESCs is proposed. We denote this FSM by the symbol _PE_ (Fig. 1). In _PE_ Mealy FSM, a block _LUTerk_ implements SBFs (7)–(8). These partial functions enter a block _LUTerT Y_ . The functions (8) are transformed into outputs _yn_ _∈_ _Y_ . The partial IMFs enter informational inputs of flip-flops from the corresponding CLBs. These flip-flops create the hidden distributed state code register RG. If there is Start=1, then all flip-flops are zeroed. This corresponds to the code _C_ ( _a_ 1). A particular edge of the synchronization pulse Clock allows changing the contents of RG. The PBFs (7)–(8) enter a block _LUTerT Y_ . This block transforms PBFs into final SBFs _D_ = _D_ ( _D_ <sup>1</sup> _, ..., D_ <sup>_K_</sup> <sup>1</sup> ); (9) _Y_ = _Y_ ( _Y_ <sup>1</sup> _, ..., Y_ <sup>_K_</sup> <sup>1</sup> ) _._ (10) The functions (9)–(10) are just disjunctions of corresponding PBFs. A positive feature of ESC-based approach is the ability to choose codes of different lengths for states from different classes. This flexibility allows including an arbitrary number of states in any particular class. The only condition for including a state in a class _A_ <sup>_k_</sup> _∈_ Π _A_ is the condition _Rk_ + _Lk_ _≤_ _SL._ (11) _RK_ = - _log_ 2( _Mk_ + 1) - - _k_ _∈{_ 1 _, ..., K_ 1 _}_ In (5), the number 1 is added to _Mk_ to take into account the relation _am_ _∈/_ _A_ <sup>_k_</sup> . To encode states for all classes of Π _A_, it is necessary _RE_ variables, where _RE_ = _R_ 1 + _..._ + _RK_ 1 _._ (6) 4 VOLUME 4 2016 If condition (11) holds, then each PBF from SBFs (7)–(8) is generated by a single LUT. Obviously, a state _am_ _∈_ _A_ cannot be included in a class _A_ <sup>_k_</sup> _∈_ Π _A_ if the inclusion leads to the violation of condition (11). This feature is positive, because it keeps the number of classes to a minimum. This allows optimizing the number of LUTs for the first logic level of the circuit. However, the property of possible variability of the length of state codes has a negative side. Namely: the total number of bits of codes determined by (6) can significantly exceed the minimum required value represented by (1). This leads to a significant number of flip-flops and partial IMFs in the circuit, which increases the LUT count for the first circuit level. It also increases the requirements for the synchronization tree, which in turn leads to an increase in power consumption [46]. All noted shortcomings are not inherent in CSC-based FSMs proposed in [16]. In this case, all state codes have the same length. This method is also based on creating the partition Π _A_ = _{A_ <sup>1</sup> _, ..., A_ <sup>_K_</sup> <sup>2</sup> _}_ of the set _A_ by classes of compatible states [25]. The states _am_ _∈_ _A_ <sup>_k_</sup> are encoded by partial codes _PC_ ( _am_ ). For each class, there is the same number of bits ( _RS_ ). In [16], we did not show the approach used for finding the value of _RS_ . In [16], we used the following approach. Obviously, the value of _RS_ should not exceed the value _SL−_ 1. We changed _RS_ from 1 to _SL −_ 1 and implemented the FSM circuit. Then we chose a value of _RS_ that minimized the total number of LUTs in the FSM circuit. This value was taken as the number of bits used to encode the states of each class. Thus, the number of partial code bits is the same for all classes: X1 X S XK2 S K2 LUTer1 LUTerK2 K2 Y1 D 1 YK2 D K2 Y <u>Clock</u> <u>Start</u> LUTerTY Y V T _RS_ = - _log_ 2 _max_ ( _M_ 1 _, ..., MK_ 2)� _._ (12) Obviously, in the case of CSCs, the maximum amount of states for any class _A_ <sup>_k_</sup> _∈_ Π _A_ is equal to 2 <sup>_RS_</sup> . To encode states, the state variables are used. They create a set _S_ = _{S_ 1 _, ..., SRS}_ . To distinguish the classes, they are encoded by binary codes _C_ ( _A_ <sup>_k_</sup> ). These codes include _RC_ bits, where FIGURE 2. Architecture of LUT-based _PC_ FSM For CSC-based FSMs, each class _A_ <sup>_k_</sup> _∈_ Π _A_ determines the sets _X_ <sup>_k_</sup>, _Y_ <sup>_k_</sup>, _D_ <sup>_k_</sup> . Each class is represented by the following systems of PBFs: _D_ <sup>_k_</sup> = _D_ <sup>_k_</sup> ( _S, X_ <sup>_k_</sup> ); (15) _Y_ <sup>_k_</sup> = _Y_ <sup>_k_</sup> ( _S, X_ <sup>_k_</sup> ) _._ (16) To transform (15)–(16) into final values of FSM outputs and IMFs, it is necessary: 1) to multiply each PBF by a conjunction _Vk_ of class variables and 2) to create SBFs _D_ = _D_ ( _V, D_ <sup>1</sup> _, ..., D_ <sup>_K_</sup> <sup>2</sup> ); (17) _Y_ = _Y_ ( _V, Y_ <sup>1</sup> _, ..., Y_ <sup>_K_</sup> <sup>2</sup> ) _._ (18) The conjunction _Vk_ is determined by the code _C_ ( _A_ <sup>_k_</sup> ). In [16], we propose architecture of _PC_ FSM based on CSCs (Fig. 2). In _PC_ FSM, a block _LUTerk_ generates PBFs (15)–(16). A block _LUTerTY_ transforms these PBFs into final values represented by SBFs (17)–(18). The flip-flops hidden inside _LUTerTY_ are controlled by pulses Clock and Start. There are _RCC_ flip-flops inside of _LUTerTY_ . Their outputs correspond to class and state variables from the set _T_ = _V_ _∪_ _S_ . A positive feature of CSC-based approach is practically minimum amount of used flip-flops forming a register RG. Compared to equivalent ESC-based FSMs, this reduces: 1) the requirements for the synchronization tree and 2) the number of LUTs generating IMFs. The disadvantage of CSC-based approach is the constant number of bits ( _RS_ ) used to encode the states within each class _A_ <sup>_k_</sup> _∈_ Π _A_ . This leads to an increase in the number of classes K2 in relation to K1. If for some class the difference ∆ _k_ = _SL −_ _Lk −_ _RS_ is positive, then this class could be supplemented with ∆ _k_ states and, possibly, reduce the total number of classes, _K_ 2. In turn, reducing the number of classes can reduce the number of LUTs and their levels in the resulting FSM circuit. Thus, each of the considered approaches ( _PE_ and _PC_ FSMs) has its positive and negative qualities. In this article, we propose an approach which allows combining the positive qualities of the discussed FSMs and reducing their inherent disadvantages. _RC_ = - _log_ 2 _K_ 2� _._ (13) To encode classes, the class variables are used. They create a set _V_ = _{v_ 1 _, ..., vRC}_ . To create composite state codes _CC_ ( _am_ ), the variables from the set _T_ = _V_ _∪_ _S_ are used. Each code _CC_ ( _am_ ) is represented by a concatenation of class code _C_ ( _A_ <sup>_k_</sup> ) and partial state code _PC_ ( _am_ ) [16]. So, the total number of code bits ( _RCC_ ) is equal to the result of summation _RC_ and _RS_ : _RCC_ = _RC_ + _RS._ (14) As shown in [16], the value of _RCC_ does not exceed the value of _R_ + 2. VOLUME 4 2016 5 IV. MAIN IDEA OF THE PROPOSED METHOD HE proposed method is based on finding a partition Π _A_ = _{A_ <sup>1</sup> _, ..., A_ <sup>_K_</sup> _}_ of the set _A_ by K classes of # T compatible states. We denote a resulting FSM by the symbol _PEC_ . The subscript _EC_ emphasizes that the proposed model combines the positive properties of _PE_ and _PC_ FSMs. As a result, the states are encoded by so-called mixed state codes _EC_ ( _am_ ) proposed in this article. Each MSC consists of a class code _C_ ( _A_ <sup>_k_</sup> ) and partial state code _PC_ ( _am_ ). Our approach has the following peculiarities. Unlike partial state codes used in _PC_ FSMs, the partial codes used in _PEC_ FSMs can have different lengths, which is inherent in _PE_ FSMs. Now, the number of variables forming partial codes for states _am_ _∈_ _A_ <sup>_k_</sup> is determined as X1 X S1 XK SK K LUTer1 LUTerK K 1 YK D K Y 1 D Y <u>Clock</u> <u>Start</u> LUTerTY Y FIGURE 3. Architecture of _PEC_ FSM V T _Rk_ = - _log_ 2 _Mk_ - _._ (19) As opposed to CSC-based FSMs [16], the length of the partial codes is defined as _RS_ = _max_ ( _R_ 1 _, ..., RK_ ) _._ (20) So, the total number of variables in the set _S_ is equal to _RS_ . However, for a particular class _A_ <sup>_k_</sup>, only a part of these variables may be used. This part forms a set _Sk_ . Now, each class _A_ <sup>_k_</sup> _∈_ Π _A_ is represented by the following systems of PBFs: _D_ <sup>_k_</sup> = _D_ <sup>_k_</sup> ( _Sk, X_ <sup>_k_</sup> ); (21) _Y_ <sup>_k_</sup> = _Y_ <sup>_k_</sup> ( _Sk, X_ <sup>_k_</sup> ) _._ (22) To encode classes, we use variables _vr_ _∈_ _V_ . The set _V_ includes _RV_ elements where _RV_ = - _log_ 2 _K_ - _._ (23) Totally, the proposed mixed codes have _REC_ bits, where _REC_ = _RV_ + _RS._ (24) The set _D_ <sup>_k_</sup> includes partial functions _D_ 1 <sup>_k_</sup> The set _D_ <sup>_k_</sup> includes partial functions _D_ 1 <sup>_k, ..., D_</sup> _REC_ <sup>_k_</sup> <sup>, the set</sup> _Y_ <sup>_k_</sup> includes partial output functions _y_ 1 <sup>_k, ..., y_</sup> _N_ <sup>_k_</sup> <sup>.</sup> _Y_ <sup>_k_</sup> includes partial output functions _y_ 1 <sup>_k, ..., y_</sup> _N_ <sup>_k_</sup> <sup>.</sup> The SBFs (21)–(22) are transformed into FSM outputs _yn_ _∈_ _Y_ and IMFs _Dr_ _∈_ _D_ . The transformation is represented by the following SBFs: _Dr_ = _V_ 1 _Dr_ <sup>1</sup> _r_ <sup>1</sup> <sup>+</sup> <sup>_..._</sup> <sup>+</sup> <sup>_VKD_</sup> _r_ <sup>_K_</sup> _r_ <sup>_K_</sup> <sup>;</sup> (25) codes. So, the proposed _PEC_ FSM has an architecture shown in Fig. 3. In _PEC_ FSMs, the blocks _LUTer_ 1– _LUTerK_ form the first circuit level. A block _LUTerk_ generates PBFs (21)– (22). The block _LUTerTY_ forms the final values of functions (25)–(26). This is the second circuit level. The block _LUTerTY_ includes the hidden register RG consisting of _RCE_ flip-flops. The RG is controlled by pulses _Start_ and _Clock_ . In the common case, the following conditions hold: _K_ _≤_ _K_ 1; (27) _K_ _< K_ 2; (28) _RC_ _< REC_ _≪_ _RE._ (29) As follows from relations (27)–(28), our approach provides the minimum possible amount of classes. This can result in reducing the numbers of LUTs and their levels in the blocks generating functions _yn_ _∈_ _Y_ and _Dr_ _∈_ _D_ . As follows from (29), the proposed approach provides practically the same amount of flip-flops in equivalent CSC- and MSCbased FSMs. So, these FSMs can have practically the same values of power consumption. Also, the registers of _PEC_ FSMs have significantly fewer flip-flops than equivalent ESC-based FSMs. Due to it, we can expect that the proposed FSMs provide better values of power consumption than ESC-based FSMs. The experiments reported in Section VI show that our approach allows improving the basic characteristics of LUT-based circuits of Mealy FSMs. In this paper, we propose a synthesis method for _PEC_ Mealy FSMs. The proposed method produces the logic circuits of LUT-based FSMs. We start the synthesis process from an FSM state transition graph. The proposed method includes the following steps: 1) Transforming initial STG into equivalent STT. 2) Constructing the partition Π _A_ with minimum possible cardinality number. 3) Creating sets of class and state variables ( _vr_ _∈_ _V, sr_ _∈_ _S_ ). 4) Encoding of FSM states by mixed state codes _EC_ ( _am_ ). _yn_ = _V_ 1 _yn_ <sup>1</sup> _n_ <sup>1</sup> <sup>+</sup> <sup>_..._</sup> <sup>+</sup> <sup>_VKy_</sup> _n_ <sup>_K_</sup> _n_ <sup>_K._</sup> (26) The following relations exist in (25)–(26): _r_ _∈_ _{_ 1 _, ..., REC}_ and _n_ _∈{_ 1 _, ..., N_ _}_ . As follows from (25)– (26), the functions _Dr_ _∈_ _D_ and _yn_ _∈_ _Y_ are multiplexer functions. To generate these functions, it is necessary to use _N_ + _REC_ multiplexers. The partial functions (21)–(22) are used as data inputs of these multiplexers. Each multiplexer selects a particular PBF using the class variables _vr_ _∈_ _V_ . So, SBFs (21)–(22) determines a block of partial functions. The SBFs (25)–(26) determine a block of final values. This block should include flip-flops keeping mixed state 6 VOLUME 4 2016 a3 1�y y/ 3 4 a6 <u>x7x6/y y7</u> 11 a9 x2/y y4 9 a4 x2/y y6 5 a2 x1/y6 x2/y y1 8 x7/y1 x x7 6/y y3 5 x7/y1 x x2 4/y11 x3/y8 x3/y3 x7/y y3 11 a12 a7 a10 TABLE 1. State transition table of FSM F1 _<u>am</u>_ _<u>as</u>_ _<u>Xh</u>_ _<u>Yh</u>_ <u>h</u> _<u>a</u>_ <u>2</u> _<u>x</u>_ <u>1</u> _<u>y</u>_ <u>6</u> <u>1</u> _a_ 1 _<u>a</u>_ <u>1</u> _<u>x</u>_ <u>¯1</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>2</u> <u>2</u> _<u>a</u>_ <u>3</u> _<u>x</u>_ <u>2</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>3</u> <u>3</u> _a_ 2 _<u>a</u>_ <u>4</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>6</u> _<u>y</u>_ <u>5</u> <u>4</u> _<u>a</u>_ <u>5</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>¯6</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>7</u> <u>5</u> _<u>a</u>_ <u>3</u> _<u>a</u>_ <u>6</u> <u>1</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>4</u> <u>6</u> _a_ 4 _a_ 5 _a_ 6 x5/y10y11 a13 x3/y11 a14 x4x1/y y8 9 x3x5/y y3 4 x x3 5/y8 x x2 7/y y5 7 x1x2/y y2 9 x3/y y3 4 <u>x x2</u> 6/y y3 7 <u>x x1</u> 2/y y2 6 x x4 1/y y2 11 a11 _<u>a</u>_ <u>6</u> _<u>x</u>_ <u>2</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>8</u> <u>7</u> _<u>a</u>_ <u>3</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>4</u> _<u>y</u>_ <u>9</u> <u>8</u> _<u>a</u>_ <u>7</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>¯4</u> _<u>y</u>_ <u>11</u> <u>9</u> _<u>a</u>_ <u>5</u> _<u>x</u>_ <u>1</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>8</u> <u>10</u> _<u>a</u>_ <u>7</u> _<u>x</u>_ <u>¯1</u> _<u>x</u>_ <u>2</u> _<u>y</u>_ <u>2</u> _<u>y</u>_ <u>9</u> <u>11</u> _<u>a</u>_ <u>8</u> _<u>x</u>_ <u>¯1</u> _<u>x</u>_ <u>¯2</u> _<u>y</u>_ <u>2</u> _<u>y</u>_ <u>6</u> <u>12</u> _<u>a</u>_ <u>7</u> _<u>x</u>_ <u>7</u> _<u>y</u>_ <u>1</u> <u>13</u> _<u>a</u>_ <u>9</u> _<u>x</u>_ <u>¯7</u> _<u>x</u>_ <u>6</u> _<u>y</u>_ <u>7</u> _<u>y</u>_ <u>11</u> <u>14</u> _<u>a</u>_ <u>10</u> _<u>x</u>_ <u>¯7</u> _<u>x</u>_ <u>¯6</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>5</u> <u>15</u> a5 a8 x1/y y1 8 y2/y y3 11 x3/y y3 10 x2x7/y y1 5 <u>1�y y/</u> 3 10 x1/y y1 2 x4/y y1 6 a1 FIGURE 4. State transition graph of Mealy FSM F1 5) Creating tables of blocks _LUTer_ 1– _LUTerK_ . 6) Deriving SBFs (21)–(22) for each block of PBFs. 7) Creating table of block _LUTerTY_ . 8) Constructing SBFs (25)–(26) representing _LUTerTY_ . 9) Implementing the LUT-based circuit of _PEC_ Mealy FSM using internal resources of a particular FPGA chip. The second step is executed using the approach proposed in [24]. This is a greedy algorithm creating the classes of compatible states with maximum possible cardinality numbers. This results in minimizing the value of _K_ . During this step, the classes are created in a way minimizing the number of shared outputs. This leads to reducing the LUT count in the circuit generating SBF (26). Any multiplexer from the second level of an FSM circuit is implemented by a single LUT if the following condition takes place: _RV_ + _K_ _≤_ _SL._ (30) If condition (30) is violated, then the multiplexers could be implemented as single-level circuits. This is possible, if the number of partial functions for a given function does not exceed the value _SL −_ _RV_ . V. EXAMPLE OF SYNTHESIS E use the symbol _Pi_ ( _Fj_ ) to show that the model of _Pi_ Mealy FSM ( _i_ _∈{E, C, EC}_ ) is used to # W implement the circuit of an FSM _Fj_ . In this Section, we show how to design the circuit of Mealy FSM _PEC_ ( _F_ 1). The circuit should be implemented using 5-LUTs (LUTs with _SL_ = 5). The synthesis process starts from an STG shown in Fig. 4. Step 1. To transform an STG into the equivalent STT, it is necessary to transform each arc of STG into a line of STT [5]. There are the following columns in the STT [5]: _am_ (a current FSM state); _aS_ (a next FSM state); _Xh_ (the input signal written above the _h_ -th arc of STG); _Yh_ (the collection of outputs _yn_ _∈_ _Y_ written above the h-th arc of STG); h (the number of transition where _h ∈{_ 1 _, ..., H}_ ). The input _<u>a</u>_ <u>13</u> _<u>x</u>_ <u>5</u> _<u>y</u>_ <u>3</u> _<u>yy</u>_ <u>8</u> <u>29</u> _a_ 12 _<u>a</u>_ <u>4</u> _<u>x</u>_ <u>¯5</u> _<u>y</u>_ <u>10</u> _<u>y</u>_ <u>11</u> <u>30</u> _<u>a</u>_ <u>14</u> _<u>x</u>_ <u>3</u> _<u>y</u>_ <u>11</u> <u>31</u> _a_ 13 _<u>a</u>_ <u>11</u> _<u>x</u>_ <u>¯3</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>10</u> <u>32</u> _<u>a</u>_ <u>14</u> _<u>a</u>_ <u>1</u> <u>1</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>10</u> <u>33</u> signals are conjunctions of some FSM inputs _xl_ _∈_ _X_ (or their compliments). For arc number _h_, the vertex from which the arc emerges corresponds to the current state, and the vertex that the arc enters corresponds to the next state (state of transition). There are _H_ = 33 arcs in the STG (Fig. 4). So, it should be 33 lines in the equivalent STT. The following can be found from analysis of Fig. 4: 1) FSM transitions depend on _L_ = 7 variables _xl_ _∈_ _X_ ; 2) during these transitions, _N_ = 11 outputs _yn_ _∈_ _Y_ are generated; 3) there are _M_ = 14 nodes in STG (Fig. 4). This determines the sets _X_ = _{x_ 1 _, ..., x_ 7 _}_, _Y_ = _{y_ 1 _, ..., y_ 11 _}_ and _A_ = _{a_ 1 _, ..., a_ 14 _}_ . The transition from STG to STT is executed in the trivial way [5]. In the discussed case, the STT is represented by Table 1. Table 1 includes H=33 lines. We hope there is a transparent connection between the STG (Fig. 4) and STT (Table 1). Step 2. Using the greedy approach [24], Table 1 and 5LUTs, we have obtain the partition Π _A_ = _{A_ <sup>1</sup> _, A_ <sup>2</sup> _, A_ <sup>3</sup> _}_ . So, there is _K_ = 3. There are the following classes _A_ <sup>_k_</sup> _∈_ Π _A_ : _A_ <sup>1</sup> = _{a_ 3 _, a_ 7 _, a_ 10 _, a_ 12 _, a_ 13 _, a_ 14 _}_, _A_ <sup>2</sup> = _{a_ 1 _, a_ 4 _, a_ 5 _, a_ 8 _}_, and _A_ <sup>3</sup> = _{a_ 2 _, a_ 6 _, a_ 9 _, a_ 11 _}_ . So, there is _M_ 1 = 6 and _M_ 2 = _M_ 3 = 4. These classes determines the sets _X_ <sup>1</sup> = _<u>a</u>_ <u>8</u> _<u>x</u>_ <u>3</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>4</u> <u>16</u> _a_ 7 _<u>a</u>_ <u>10</u> _<u>x</u>_ <u>¯3</u> _<u>y</u>_ <u>8</u> <u>17</u> _a_ 8 _<u>a</u>_ <u>1</u> _<u>x</u>_ <u>4</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>6</u> <u>18</u> _<u>a</u>_ <u>10</u> _<u>x</u>_ <u>¯4</u> _<u>x</u>_ <u>1</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>6</u> <u>19</u> _<u>a</u>_ <u>11</u> _<u>x</u>_ <u>¯4</u> _<u>x</u>_ <u>¯1</u> _<u>y</u>_ <u>2</u> _<u>y</u>_ <u>11</u> <u>20</u> _<u>a</u>_ <u>10</u> _<u>x</u>_ <u>7</u> _<u>y</u>_ <u>1</u> <u>21</u> _a_ 9 _<u>a</u>_ <u>12</u> _<u>x</u>_ <u>¯7</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>11</u> <u>22</u> _a_ 10 _a_ 11 _<u>a</u>_ <u>12</u> _<u>x</u>_ <u>3</u> _<u>y</u>_ <u>3</u> <u>23</u> _<u>a</u>_ <u>11</u> _<u>x</u>_ <u>¯3</u> _<u>x</u>_ <u>5</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>4</u> <u>24</u> _<u>a</u>_ <u>13</u> _<u>x</u>_ <u>¯3</u> _<u>x</u>_ <u>¯5</u> _<u>y</u>_ <u>8</u> <u>25</u> _<u>a</u>_ <u>8</u> _<u>x</u>_ <u>2</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>11</u> <u>26</u> _<u>a</u>_ <u>1</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>7</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>5</u> <u>27</u> _<u>a</u>_ <u>13</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>¯7</u> _<u>y</u>_ <u>5</u> _<u>y</u>_ <u>7</u> <u>28</u> VOLUME 4 2016 7 _S_ 1 _S_ 2 _S_ 3 00 00 01 11 10 0 1 _a_ 10 _a_ 13 _∗_ _a_ 3 _a_ 12 _a_ 14 _a_ 7 _∗_ a) _S_ 2 _S_ 3 0 1 _S_ 2 _S_ 3 0 0 1 _a_ 1 _a_ 5 _a_ 8 _a_ 4 c) 1 0 1 _a_ 6 _a_ 2 _a_ 11 _a_ 9 b) FIGURE 5. Outcome of state assignment for FSM _PCE_ ( _F_ 1) _{x_ 3 _, x_ 5 _}_, _Y_ <sup>1</sup> = _{y_ 3 _, y_ 4 _, y_ 8 _, y_ 10 _, y_ 11 _}_, _X_ <sup>2</sup> = _{x_ 1 _, x_ 2 _, x_ 4 _}_, _Y_ <sup>2</sup> = _{y_ 1 _, y_ 2 _, y_ 6 _, y_ 8 _, y_ 9 _, y_ 11 _}_, _X_ <sup>3</sup> = _{x_ 2 _, x_ 6 _, x_ 7 _}_ and _Y_ <sup>3</sup> = _{y_ 1 _, y_ 3 _, y_ 5 _, y_ 7 _, y_ 11 _}_ . This gives _L_ 1 = 2, _L_ 2 = _L_ 3 = 3. Step 3. To execute this step, it is necessary to find the values of _RV_ and _RS_ . This is done using the outcome of the previous step. Using (19) gives _R_ 1 = 3 and _R_ 2 = _R_ 3 = 2. Using (20) gives _RS_ = 3. So, the partial codes are created using the state variables _sr_ _∈_ _S_ = _{s_ 1 _, s_ 2 _, s_ 3 _}_ . The states _am_ _∈_ _A_ <sup>1</sup> are encoded using all elements of the set _S_ . Other states are encoded using only variables _s_ 2 _, s_ 3 _∈_ _S_ . Using (23) gives _RV_ = 2. This determines the set _V_ = _{v_ 1 _, v_ 2 _}_ . Using (24) gives the value _REC_ = 5. The set _T_ includes 5 elements: _T_ = _{v_ 1 _, v_ 2 _, s_ 1 _, s_ 2 _, s_ 3 _}_ . These variables are represented by the outputs of flip-flops distributed inside _LUTerTY_ . Step 4. To encode states, we use the approach proposed in the article [25]. It allows minimizing the number of partial IMFs. One of the possible outcomes is shown in Fig. 5. It includes three Karnaugh maps with partial codes for each class _A_ <sup>_k_</sup> _∈_ Π _A_ . To encode classes _A_ <sup>_k_</sup> _∈_ Π _A_, we should use the code with all zeros to encode the class which includes the initial state _a_ 1 _∈_ _A_ . In the discussed case, this is the class _A_ <sup>2</sup> . So, we choose the following class codes for our example: _C_ ( _A_ <sup>1</sup> ) = 01, _C_ ( _A_ <sup>2</sup> ) = 00 and _C_ ( _A_ <sup>3</sup> ) = 10. Using class and partial state codes gives the mixed state codes _EC_ ( _am_ ). For example, the following codes can be obtained: _EC_ ( _a_ 1) = 0000 (it follows from Fig. 5b and _C_ ( _A_ <sup>2</sup> ) = 00), _EC_ ( _a_ 2) = 1010 (it follows from Fig. 5c and _C_ ( _A_ <sup>3</sup> ) = 10), _EC_ ( _a_ 3) = 01100 (it follows from Fig. 5a and _C_ ( _A_ <sup>1</sup> ) = 01) and so on. The tables of _LUTer_ 1– _LUTer_ 3 are based on the partial and mixed state codes. Step 5. Each block _LUTerk_ is represented by its direct structure table. A DST includes all columns from the equivalent STT and three additional columns. The additional columns contain: partial state codes of current states (the column _PC_ ( _am_ )); mixed codes of next states (the column _EC_ ( _as_ )); partial IMFs _Dr_ <sup>_k_</sup> <sup>_∈_</sup> <sup>_Dk_</sup> <sup>required</sup> <sup>for</sup> <sup>loading</sup> <sup>the</sup> value of _EC_ ( _as_ ) into RG (the column _Dh_ ). The _LUTer_ 1 is represented by Table 2. The table is based on 11 lines of Table 1 (lines 6, 16, 17, 23–25, 29–32). The _LUTer_ 2 is represented by Table 3. The table is based on 11 lines TABLE 2. Table of _LUT er_ 1 _<u>am</u>_ _<u>PC</u>_ <u>(</u> _<u>am</u>_ <u>)</u> _<u>as</u>_ _<u>EC</u>_ <u>(</u> _<u>as</u>_ <u>)</u> _<u>Xh</u>_ _<u>Yh</u>_ _<u>Dh</u>_ <u>h</u> _<u>a</u>_ <u>3</u> <u>100</u> _<u>a</u>_ <u>6</u> <u>10000</u> <u>1</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>4</u> _<u>D</u>_ <u>1</u> <u>1</u> _<u>a</u>_ <u>8</u> <u>00001</u> _<u>x</u>_ <u>3</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>4</u> _<u>D</u>_ <u>5</u> <u>2</u> _a_ 7 101 _<u>a</u>_ <u>10</u> <u>01000</u> _<u>x</u>_ <u>¯3</u> _<u>y</u>_ <u>8</u> _<u>D</u>_ <u>2</u> <u>3</u> _<u>a</u>_ <u>12</u> <u>01001</u> _<u>x</u>_ <u>3</u> _<u>y</u>_ <u>3</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>5</u> <u>4</u> _a_ 10 000 _<u>a</u>_ <u>11</u> <u>10001</u> _<u>x</u>_ <u>¯3</u> _<u>x</u>_ <u>5</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>4</u> _<u>D</u>_ <u>1</u> _<u>D</u>_ <u>5</u> <u>5</u> _<u>a</u>_ <u>13</u> <u>01010</u> _<u>x</u>_ <u>¯3</u> _<u>x</u>_ <u>¯5</u> _<u>y</u>_ <u>8</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>4</u> <u>6</u> _<u>a</u>_ <u>13</u> <u>01010</u> _<u>x</u>_ <u>5</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>8</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>4</u> <u>7</u> _a_ 12 001 _<u>a</u>_ <u>4</u> <u>01011</u> _<u>x</u>_ <u>¯5</u> _<u>y</u>_ <u>10</u> _<u>y</u>_ <u>11</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>4</u> _<u>D</u>_ <u>5</u> <u>8</u> _<u>a</u>_ <u>14</u> <u>01011</u> _<u>x</u>_ <u>3</u> _<u>y</u>_ <u>11</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>4</u> _<u>D</u>_ <u>5</u> <u>9</u> _a_ 13 010 _<u>a</u>_ <u>11</u> <u>10001</u> _<u>x</u>_ <u>¯3</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>10</u> _<u>D</u>_ <u>1</u> _<u>D</u>_ <u>5</u> <u>10</u> _<u>a</u>_ <u>14</u> <u>011</u> _<u>a</u>_ <u>1</u> <u>00000</u> <u>1</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>10</u> <u>–</u> <u>11</u> TABLE 3. Table of _LUT er_ 2 _<u>am</u>_ _<u>PC</u>_ <u>(</u> _<u>am</u>_ <u>)</u> _<u>as</u>_ _<u>EC</u>_ <u>(</u> _<u>as</u>_ <u>)</u> _<u>Xh</u>_ _<u>Yh</u>_ _<u>Dh</u>_ <u>h</u> _<u>a</u>_ <u>2</u> <u>10010</u> _<u>x</u>_ <u>1</u> _<u>y</u>_ <u>6</u> _<u>D</u>_ <u>1</u> _<u>D</u>_ <u>4</u> <u>1</u> _a_ 1 00 _<u>a</u>_ <u>1</u> <u>00000</u> _<u>x</u>_ <u>¯1</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>2</u> <u>–</u> <u>2</u> _<u>a</u>_ <u>6</u> <u>10000</u> _<u>x</u>_ <u>2</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>8</u> _<u>D</u>_ <u>1</u> <u>3</u> _a_ 4 11 _<u>a</u>_ <u>3</u> <u>01000</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>4</u> _<u>y</u>_ <u>9</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>3</u> <u>4</u> _<u>a</u>_ <u>7</u> <u>01101</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>¯4</u> _<u>y</u>_ <u>11</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>3</u> _<u>D</u>_ <u>5</u> <u>5</u> _<u>a</u>_ <u>5</u> <u>00010</u> _<u>x</u>_ <u>1</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>8</u> _<u>D</u>_ <u>4</u> <u>6</u> _a_ 5 10 _<u>a</u>_ <u>7</u> <u>01101</u> _<u>x</u>_ <u>¯1</u> _<u>x</u>_ <u>2</u> _<u>y</u>_ <u>2</u> _<u>y</u>_ <u>9</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>3</u> _<u>D</u>_ <u>5</u> <u>7</u> _<u>a</u>_ <u>8</u> <u>00001</u> _<u>x</u>_ <u>¯1</u> _<u>x</u>_ <u>¯2</u> _<u>y</u>_ <u>2</u> _<u>y</u>_ <u>6</u> _<u>D</u>_ <u>5</u> <u>8</u> _<u>a</u>_ <u>1</u> <u>00000</u> _<u>x</u>_ <u>4</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>6</u> <u>–</u> <u>9</u> _a_ 8 01 _<u>a</u>_ <u>10</u> <u>01000</u> _<u>x</u>_ <u>¯4</u> _<u>x</u>_ <u>1</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>6</u> _<u>D</u>_ <u>2</u> <u>10</u> _<u>a</u>_ <u>11</u> <u>10001</u> _<u>x</u>_ <u>¯4</u> _<u>x</u>_ <u>¯1</u> _<u>y</u>_ <u>2</u> _<u>y</u>_ <u>11</u> _<u>D</u>_ <u>1</u> _<u>D</u>_ <u>5</u> <u>11</u> of Table 1 (lines 1, 2, 7–12, 18–20). The _LUTer_ 3 is represented by Table 4. The table is based on 11 lines of Table 1 (lines 3–5, 13–15, 21–22, 26–28). Step 6. The partial functions are represented by SOPs (21)–(22). All these SOPs are created in the same way. Bellow, we show partial SOPs for functions _D_ 1 and _y_ 1. Using Table 2, we can derive the following SOPs: _D_ 1 <sup>1</sup> _D_ 1 <sup>1</sup> <sup>=</sup> <sup>_s_</sup> <sup>1</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>¯1</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>¯5</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>¯1</sup> <sup>_s_</sup> <sup>2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>¯3;</sup> _y_ 1 <sup>1</sup> <sup>= 0</sup> <sup>_._</sup> (31) 1 <sup>1</sup> <sup>= 0</sup> <sup>_._</sup> Using Table 3, we can derive the following SOPs: _D_ 1 <sup>2</sup> _D_ 1 <sup>2</sup> <sup>=</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>1</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>2</sup> <sup>_s_</sup> <sup>3</sup> <sup>_x_</sup> <sup>2</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>3</sup> <sup>_x_</sup> <sup>¯4</sup> <sup>_x_</sup> <sup>¯1;</sup> _y_ 1 <sup>2</sup> <sup>=</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>¯1</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>1</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>3</sup> <sup>_x_</sup> <sup>4</sup> <sup>_._</sup> (32) 1 <sup>2</sup> <sup>=</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>¯1</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>1</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>3</sup> <sup>_x_</sup> <sup>4</sup> <sup>_._</sup> TABLE 4. Table of _LUT er_ 3 _<u>am</u>_ _<u>PC</u>_ <u>(</u> _<u>am</u>_ <u>)</u> _<u>as</u>_ _<u>EC</u>_ <u>(</u> _<u>as</u>_ <u>)</u> _<u>Xh</u>_ _<u>Yh</u>_ _<u>Dh</u>_ <u>h</u> _<u>a</u>_ <u>3</u> <u>01100</u> _<u>x</u>_ <u>2</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>3</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>3</u> <u>1</u> _a_ 2 10 _<u>a</u>_ <u>4</u> <u>00011</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>6</u> _<u>y</u>_ <u>5</u> _<u>D</u>_ <u>4</u> _<u>D</u>_ <u>5</u> <u>2</u> _<u>a</u>_ <u>5</u> <u>00010</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>¯6</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>7</u> _<u>D</u>_ <u>4</u> <u>3</u> _<u>a</u>_ <u>7</u> <u>01101</u> _<u>x</u>_ <u>7</u> _<u>y</u>_ <u>1</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>3</u> _<u>D</u>_ <u>5</u> <u>4</u> _a_ 6 00 _<u>a</u>_ <u>9</u> <u>10011</u> _<u>x</u>_ <u>¯7</u> _<u>x</u>_ <u>6</u> _<u>y</u>_ <u>7</u> _<u>y</u>_ <u>11</u> _<u>D</u>_ <u>1</u> _<u>D</u>_ <u>4</u> _<u>D</u>_ <u>5</u> <u>5</u> _<u>a</u>_ <u>10</u> <u>01000</u> _<u>x</u>_ <u>¯7</u> _<u>x</u>_ <u>¯6</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>5</u> _<u>D</u>_ <u>2</u> <u>6</u> _<u>a</u>_ <u>10</u> <u>01000</u> _<u>x</u>_ <u>7</u> _<u>y</u>_ <u>1</u> _<u>D</u>_ <u>2</u> <u>7</u> _a_ 9 11 _<u>a</u>_ <u>12</u> <u>01001</u> _<u>x</u>_ <u>¯7</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>11</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>5</u> <u>8</u> _<u>a</u>_ <u>8</u> <u>00001</u> _<u>x</u>_ <u>2</u> _<u>y</u>_ <u>3</u> _<u>y</u>_ <u>11</u> _<u>D</u>_ <u>5</u> <u>9</u> _a_ 11 10 _<u>a</u>_ <u>1</u> <u>00000</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>7</u> _<u>y</u>_ <u>1</u> _<u>y</u>_ <u>5</u> <u>–</u> <u>10</u> _<u>a</u>_ <u>13</u> <u>01010</u> _<u>x</u>_ <u>¯2</u> _<u>x</u>_ <u>¯7</u> _<u>y</u>_ <u>5</u> _<u>y</u>_ <u>7</u> _<u>D</u>_ <u>2</u> _<u>D</u>_ <u>4</u> <u>11</u> 8 VOLUME 4 2016 TABLE 5. Table of _LUT erT Y_ <u>Function</u> <u>1</u> <u>2</u> <u>3</u> <u>Function</u> <u>1</u> <u>2</u> <u>3</u> _<u>D</u>_ <u>1</u> <u>+</u> <u>+</u> <u>+</u> _<u>y</u>_ <u>4</u> <u>+</u> _<u>−</u>_ _<u>−</u>_ _<u>D</u>_ <u>2</u> <u>+</u> <u>+</u> <u>+</u> _<u>y</u>_ <u>5</u> _<u>−</u>_ _<u>−</u>_ <u>+</u> _<u>D</u>_ <u>3</u> _<u>−</u>_ <u>+</u> <u>+</u> _<u>y</u>_ <u>6</u> _<u>−</u>_ <u>+</u> _<u>−</u>_ _<u>D</u>_ <u>4</u> <u>+</u> <u>+</u> <u>+</u> _<u>y</u>_ <u>7</u> _<u>−</u>_ _<u>−</u>_ <u>+</u> _<u>D</u>_ <u>5</u> <u>+</u> <u>+</u> <u>+</u> _<u>y</u>_ <u>8</u> <u>+</u> <u>+</u> _<u>−</u>_ _<u>y</u>_ <u>1</u> _<u>−</u>_ <u>+</u> <u>+</u> _<u>y</u>_ <u>9</u> _<u>−</u>_ <u>+</u> _<u>−</u>_ _<u>y</u>_ <u>2</u> _<u>−</u>_ <u>+</u> _<u>−</u>_ _<u>y</u>_ <u>10</u> <u>+</u> _<u>−</u>_ _<u>−</u>_ _<u>y</u>_ <u>3</u> <u>+</u> _<u>−</u>_ <u>+</u> _<u>y</u>_ <u>11</u> <u>+</u> <u>+</u> <u>+</u> Using Table 4, we can derive the following SOPs: this block includes 11 LUTs. Also, the following relations can be found from this column: _y_ 2 <sup>2</sup> <sup>=</sup> <sup>_y_</sup> <sup>2,</sup> <sup>_y_</sup> 6 <sup>2</sup> <sup>=</sup> <sup>_y_</sup> <sup>6</sup> <sup>and</sup> s1 s2 s3 x3 x5 LUT1 s1 s2 s3 x3 x5 LUT2 . . . s2 s3 x2 x6 x7 LUT30 D11 D21 y 3 11 D11 D12 y211 <sup>y</sup> 311 v1 v2 LUT39 Y11 D 2 3 1 <sup>D</sup> 1 v1 v2 D 2 3 2 <sup>D</sup> 2 v1 v2 y 1 11 <u>Start</u> <u>Start</u> LUT31 LUT32 . . . Clock Clock V1 V2 FIGURE 6. Logic circuit of FSM _PEC_ ( _F_ 1) _D_ 1 <sup>3</sup> 1 <sup>3</sup> <sup>=</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>¯7</sup> <sup>_x_</sup> <sup>6;</sup> _y_ 1 <sup>3</sup> <sup>=</sup> <sup>_s_</sup> <sup>2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>2</sup> <sup>_∨_</sup> (33) 1 <sup>3</sup> <sup>=</sup> <sup>_s_</sup> <sup>2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>2</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>¯2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>2</sup> <sup>_s_</sup> <sup>3</sup> <sup>_x_</sup> <sup>7</sup> <sup>_∨_</sup> <sup>_s_</sup> <sup>2</sup> <sup>_s_</sup> <sup>¯3</sup> <sup>_x_</sup> <sup>¯2</sup> <sup>_x_</sup> <sup>7</sup> <sup>_._</sup> can be found from this column: _y_ 2 <sup>2</sup> <sup>=</sup> <sup>_y_</sup> <sup>2,</sup> <sup>_y_</sup> 6 <sup>2</sup> <sup>=</sup> <sup>_y_</sup> <sup>6</sup> <sup>and</sup> _y_ 9 <sup>2</sup> <sup>=</sup> <sup>_y_</sup> <sup>9.</sup> <sup>This</sup> <sup>means</sup> <sup>that</sup> <sup>only</sup> <sup>8</sup> <sup>outputs</sup> <sup>of</sup> <sup>_LUTer_</sup> <sup>2</sup> <sup>are</sup> connected with LUTs of the second logic level. As follows from the column “3” of Table 5, LUTs of _LUTer_ 3 generate 5 partial IMFs and 5 partial outputs. So, this block includes 10 LUTs. Also, the following relations can be found from this column: _y_ 5 <sup>3</sup> <sup>=</sup> <sup>_y_</sup> <sup>5</sup> <sup>and</sup> <sup>_y_</sup> 7 <sup>3</sup> <sup>=</sup> <sup>_y_</sup> <sup>7.</sup> <sup>This</sup> means that only 8 outputs of _LUTer_ 3 are connected with LUTs of the second logic level. We hope there is a transparent connection between Tables 2–4, on the one hand, and formulae (31)–(33), on the other hand. There is _y_ 1 <sup>1</sup> <sup>=</sup> <sup>0,</sup> <sup>because</sup> <sup>there</sup> <sup>is</sup> <sup>no</sup> <sup>symbol</sup> <sup>_y_</sup> <sup>1</sup> <sup>in</sup> Table 2. As follows from the column “3” of Table 5, LUTs of _LUTer_ 3 generate 5 partial IMFs and 5 partial outputs. So, this block includes 10 LUTs. Also, the following relations can be found from this column: _y_ 5 <sup>3</sup> <sup>=</sup> <sup>_y_</sup> <sup>5</sup> <sup>and</sup> <sup>_y_</sup> 7 <sup>3</sup> <sup>=</sup> <sup>_y_</sup> <sup>7.</sup> <sup>This</sup> Step 7. The table of _LUTerTY_ is constructed on the base of tables of partial functions (in the discussed example we should analyze Table 2–Table 4). This table includes a column with functions _Dr_ _∈_ _D_ and _yn_ _∈_ _Y_ . Other columns contain number of blocks (1, 2,..., K). In the discussed case, this block is represented by Table 5. There are symbols “+” and “-” in Table 5. For example, if some partial function _Dr_ <sup>_k_</sup> _̸_ <sup>=</sup> <sup>0,</sup> <sup>then</sup> <sup>there</sup> <sup>is</sup> <sup>the</sup> <sup>symbol</sup> “+” at the intersection of row _Dr_ and column k. Obviously, if some partial function _yn_ <sup>_k_</sup> _̸_ <sup>=</sup> <sup>0,</sup> <sup>then</sup> <sup>there</sup> <sup>is</sup> <sup>the</sup> <sup>symbol</sup> “+” at the intersection of row _yn_ and column _k_ . Step 8. The circuit of _LUTerTY_ is represented by SBFs (25)–(26). They are constructed in the following way. If there is the symbol “+” at the intersection of row _Dr_ and column k, then a SOP of function _Dr_ _∈_ _D_ includes the term _Vk · Dr_ <sup>_k_</sup> <sup>.</sup> <sup>In</sup> <sup>this</sup> <sup>term,</sup> <sup>the</sup> <sup>member</sup> <sup>_Vk_</sup> <sup>is</sup> <sup>a</sup> <sup>conjunction</sup> term _Vk · Dr_ <sup>_k_</sup> <sup>.</sup> <sup>In</sup> <sup>this</sup> <sup>term,</sup> <sup>the</sup> <sup>member</sup> <sup>_Vk_</sup> <sup>is</sup> <sup>a</sup> <sup>conjunction</sup> corresponding to _C_ ( _A_ <sup>_k_</sup> ). Obviously, if there is the symbol “+” at the intersection of row _yn_ and column k, then a SOP of function _yn_ _∈_ _Y_ includes the term _Vk · yn_ <sup>_k_</sup> <sup>.</sup> of function _yn_ _∈_ _Y_ includes the term _Vk · yn_ <sup>_k_</sup> <sup>.</sup> In the discussed case, there is _V_ 1 = _v_ ¯1 _v_ 2, _V_ 2 = _v_ ¯1 ¯ _v_ 2 and _V_ 3 = _v_ 1 ¯ _v_ 2. Using these conjunctions and systems (31)–(33), we can create SOPs of full functions _D_ 1 _∈_ _D_ and _y_ 1 _∈_ _Y_ : _D_ 1 = _v_ ¯1 _v_ 2 _D_ 1 <sup>1</sup> _D_ 1 = _v_ ¯1 _v_ 2 _D_ 1 <sup>1</sup> <sup>_∨_</sup> <sup>_v_</sup> <sup>¯1</sup> <sup>_v_</sup> <sup>¯2</sup> <sup>_D_</sup> 1 <sup>2</sup> <sup>_∨_</sup> <sup>_v_</sup> <sup>1</sup> <sup>_v_</sup> <sup>¯2</sup> <sup>_D_</sup> 1 <sup>3;</sup> _y_ 1 = _v_ ¯1 ¯ _v_ 2 _y_ 1 <sup>2</sup> <sup>_∨_</sup> <sup>_v_</sup> <sup>1</sup> <sup>_v_</sup> <sup>¯2</sup> <sup>_y_</sup> 1 <sup>3</sup> <sup>_._</sup> (34) 1 <sup>2</sup> <sup>_∨_</sup> <sup>_v_</sup> <sup>1</sup> <sup>_v_</sup> <sup>¯2</sup> <sup>_y_</sup> 1 <sup>3</sup> <sup>_._</sup> The conducted analysis shows that there are totally 30 LUTs at the first circuit logic level. The outputs of 23 LUTs are connected with the block _LUTerTY_ of FSM _PEC_ ( _F_ 1). Obviously, some function should be generated by _LUTerTY_ if there are at least two symbols “+” in the corresponding row of Table 5. As follows from Table 5, there are 9 such rows. For the discussed case, there is _RV_ = 2 and K=3. So, the condition (30) holds. This means that each function is represented by a single-LUT circuit. So, there are 9 LUTs in the circuit of _LUTerTY_ . Thus, there are 39 LUTs and 5 flip-flops in the circuit of FSM _PEC_ ( _F_ 1). The circuit has two levels of logic. All circuits are implemented without the dedicated multiplexers. This circuit is shown in Fig. 6. Now, we compare LUT counts for _PE_ ( _F_ 1) and _PC_ ( _F_ 1) FSM. As it is in the discussed example, we use 5-LUTs for implementing FSM circuits. In the case of _PE_ ( _F_ 1), using the greedy algorithm from [24] gives the partition of the set A with _K_ 1 = 4 classes. These classes are the following: _A_ <sup>1</sup> = _{a_ 1 _, a_ 5 _, a_ 8 _}_, _A_ <sup>2</sup> = _{a_ 2 _, a_ 3 _, a_ 4 _}_, _A_ <sup>3</sup> = _{a_ 6 _, a_ 9 _, a_ 11 _}_ and _A_ <sup>4</sup> = _{a_ 7 _, a_ 10 _, a_ 12 _, a_ 13 _, a_ 14 _}_ . Using (5) gives the following lengths of partial state codes: _R_ 1 = _R_ 2 = _R_ 3 = 2, _R_ 4 = 3. Using (6) gives _RE_ = 9. So, it is necessary 9 flip-flops if extended state codes are used. So, even for this simple example, the number of required flip-flops for _PE_ ( _F_ 1) is almost twice that for _PEC_ ( _F_ 1). This leads to an almost doubling of the number of feedback signals. As follows from [20], the more interconnections, the greater the power consumption and signal propagation time is. We have found that it is necessary: 1) 13 LUTs in the circuit of _LUTer_ 1; 2) 14 LUTs in the circuit of _LUTer_ 2; 3) 11 LUTs in the circuit of _LUTer_ 3; 4) 13 LUTs in the circuit of _LUTer_ 4. So, totally, there are 51 LUTs generating PBFs. Also, it is necessary 17 LUTs in the circuit of _LUTerT Y_ . Because All other SOPs (25)–(26) are created in the same way. Step 9. Now we can estimate the value of LUT count for each block of FSM _PEC_ ( _F_ 1). To do it, we should use Table 5. As follows from the column “1” of Table 5, LUTs of _LUTer_ 1 generate 4 partial IMFs and 5 partial outputs. So, this block includes 9 LUTs. Also, the following relations can be found from this column: _y_ 4 <sup>1</sup> <sup>=</sup> <sup>_y_</sup> <sup>4</sup> <sup>and</sup> <sup>_y_</sup> 10 <sup>1</sup> <sup>=</sup> <sup>_y_</sup> <sup>10</sup> This means that only 7 outputs of _LUTer_ 1 are connected with LUTs of the second logic level. As follows from the column “2” of Table 5, LUTs of _LUTer_ 2 generate 5 partial IMFs and 6 partial outputs. So, VOLUME 4 2016 9 there is _K_ 1 _<_ _SL_ = 5, the circuit of _LUTerT Y_ has a single level. To summarize: the circuit contains 68 LUTs and has two logic levels. In the case of _PC_ ( _F_ 1), using the greedy algorithm from [24] gives the partition of the set A with _K_ 2 = 4 classes. These classes are the following: _A_ <sup>1</sup> = _{a_ 7 _, a_ 10 _, a_ 12 _, a_ 13 _}_, _A_ <sup>2</sup> = _{a_ 1 _, a_ 4 _, a_ 5 _, a_ 8 _}_, _A_ <sup>3</sup> = _{a_ 2 _, a_ 6 _, a_ 9 _, a_ 11 _}_ and _A_ <sup>4</sup> = _{a_ 3 _, a_ 14 _}_ . Using (5) gives the following lengths of partial state codes: _R_ 1 = _R_ 2 = _R_ 3 = 2, _R_ 4 = 3. Using (12) gives _RS_ = 2. Using (13) gives _RC_ = 2. So, it is necessary 4 flip-flops if composite state codes are used. So, the number of required flip-flops for _PC_ ( _F_ 1) is practically the same as it is for _PEC_ ( _F_ 1). We have found that it is necessary: 1) 9 LUTs in the circuit of _LUTer_ 1; 2) 10 LUTs in the circuit of _LUTer_ 2; 3) 9 LUTs in the circuit of _LUTer_ 3; 4) 7 LUTs in the circuit of _LUTer_ 4. So, there are 35 LUTs generating PBFs. Five outputs _yn_ _∈_ _Y_ are generated by LUTs of _LUTer_ 1– _LUTer_ 4. So, only 6 LUTs are necessary to implement the rest of outputs. These LUTs are included into _LUTerTY_ . Each function _fi_ _∈_ _D_ _∪_ _Y_ can be represented as a disjunction of four partial functions. Thus, the value of _RV_ + _K_ 2 = 6 exceeds the value _SL_ = 5. As a result, it is necessary 8 LUTs to generate IMFs (17). Moreover, this part of _LUTerTY_ has two logic levels. So, is necessary 14 LUTs in the circuit of _LUTerTY_ . To summarize: the circuit of _PC_ ( _F_ 1) FSM contains 49 LUTs and has three levels of them. For the discussed example, the comparison of three different approaches of state assignment allows making the following conclusion. The proposed method allows obtaining the FSM circuit with a minimum number of LUTs (39 LUTs). Our approach allows saving 43% of LUTs compared to _PE_ ( _F_ 1) FSMs and 21% of LUTs compared to _PC_ ( _F_ 1) FSMs. The number of flip-flops for _PEC_ ( _F_ 1) is only one more than the minimum possible number, which is ensured by using the composite state codes. Our approach allows obtaining the fastest solution because: 1) ESC-based FSM has more interconnections and 2) CSC-based FSM has three levels of LUTs. To get the electrical circuit of Mealy FSM _PEC_ ( _F_ 1), it is necessary to execute the step of technology mapping [26], [47], [48]. This is connected with using the sophisticated CAD tools. In the case of circuits implemented with internal resources of Virtex-7, the industrial package Vivado [41] should be used. Unfortunately, Vivado can design circuits of digital devices using basic LUTs with _SL_ = 6. So, using 5-LUTs, we cannot design and analyse the circuit of Mealy FSM _PEC_ ( _F_ 1) automatically. In the next Section, the results of experiments are shown. VI. EXPERIMENTAL RESULTS E conducted a lot of experiments to compare the basic characteristics of LUT-based _PEC_ Mealy FSMs # W with characteristics of FSM circuits based on some other models. The benchmark FSMs from the library [49] are used for the experiments. De facto, the library includes TABLE 6. Characteristics of benchmark Mealy FSMs [49] <u>Benchmark</u> <u>L</u> <u>N</u> <u>R+L</u> <u>M/R</u> <u>H</u> <u>Type</u> bbara 4 2 8 12/4 60 1 bbsse 7 7 12 26/5 56 1 bbtas 2 2 6 9/4 24 0 beeCount 3 4 7 10/4 28 1 cse 7 7 12 32/5 91 1 dk14 3 5 8 26/5 56 1 dk15 3 5 8 17/5 32 1 dk16 2 3 9 75/7 108 1 dk17 2 3 6 16/4 32 0 dk27 1 2 5 10/4 14 0 dk512 1 3 6 24/5 15 0 donfile 2 1 7 24/5 96 1 ex1 9 19 16 80/7 138 2 ex2 2 2 7 25/5 72 1 ex3 2 2 6 14/4 36 0 ex4 6 9 11 18/5 21 1 ex5 2 2 6 16/4 32 0 ex6 5 8 9 14/4 34 1 ex7 2 2 12 17/5 36 1 keyb 7 7 12 22/5 170 1 kirkman 12 6 18 48/6 370 2 lion 2 1 5 5/3 11 0 lion9 2 1 6 11/4 25 0 mark1 5 16 10 22/5 22 1 mCC 3 5 6 8/3 10 0 modulo12 1 1 5 12/4 24 0 opus 5 6 10 18/5 22 1 planet 7 19 14 86/7 115 2 planet1 7 19 14 86/7 115 2 pma 8 8 14 49/6 73 2 s1 8 7 14 54/6 106 2 s1488 8 19 15 112/7 251 2 s1494 8 19 15 118/7 250 2 s1a 8 6 15 86/7 107 2 s208 11 2 17 37/6 153 2 s27 4 1 8 11/4 34 1 s386 7 7 12 23/5 64 1 s420 19 2 27 137/8 137 4 s510 19 7 27 172/8 77 4 s8 4 1 8 15/4 20 1 s820 18 19 25 78/7 232 4 s832 18 19 25 76/7 245 4 sand 11 9 18 88/7 184 3 shiftreg 1 1 5 16/4 16 0 sse 7 7 12 26/5 56 1 styr 9 10 16 67/7 166 2 <u>tma</u> <u>7</u> <u>9</u> <u>13</u> <u>63/6</u> <u>44</u> <u>2</u> 48 benchmarks represented by their state transition tables. The tables are represented by KISS2-based files. The basic characteristics of benchmarks (the values of parameters M, L, and N) have a wide range. Due to it, these benchmarks are used by a lot of researchers as a base for comparison different FSM design methods. The characteristics of benchmark FSMs are represented by Table 6. We execute the experiments using a personal computer with the following characteristics: CPU: Intel Core i7 6700K 4.2@4.4GHz, Memory: 16GB RAM 2400MHz CL15. Also, we use the Virtex-7 VC709 Evaluation Platform 10 VOLUME 4 2016 (xc7vx690tffg1761-2) [50] and CAD tool Vivado v2019.1 (64-bit) [41]. There is _SL_ = 6 for FPGAs of Virtex-7. We use reports of Vivado to get the results of experiments. To enter Vivado, we use the CAD tool K2F [20]. This tool allows creating VHDL codes on the base of files represented in KISS2 format. In our experiments, we have checked three basic characteristics of FSM circuits. They are the LUT counts (it allows to estimate the chip areas occupied by FSM circuits), performance (the maximum operating frequencies), and area-time products. To estimate the area, we use the LUT counts taken from reports of Vivado. The performance is represented by the maximum operating frequency which is achievable for each benchmark FSM. The area-time products are calculated as results of multiplication of the LUT counts by the maximum latency times obtained directly from Vivado reports. In our experiments, we use five FSM models. These models are P FSMs based on: 1) maximum binary state codes (JEDI); 2) one-hot state codes (One-hot by Vivado); 3) extended state codes ( _PE_ -based FSMs); 4) composite state codes ( _PC_ -based FSMs); 5) mixed state codes ( _PEC_ -based FSMs proposed in this article). As in our previous research [15], [16], the benchmarks are divided by five types. To do it, we use the relation between the values of _R_ + _L_ and _SL_ . For basic LUTs of Virtex-7, there is _SL_ = 6. So, we use _SL_ = 6 to determine the types of benchmarks. The FSMs are trivial (type 0), if the result of summation of R and L does not exceed 6. The FSMs are simple (type 1), if the result of summation does not exceed 12. The FSMs are average (type 2), if the result of summation does not exceed 18. The FSMs are big (type 3), if the result of summation does not exceed 24. Otherwise, the benchmarks FSMs are very big (type 4). For very big FSMs, the following relation takes place: _R_ + _L_ _>_ 24. As shown in the paper [16], there is a direct dependence between the degree of improving the basic characteristics of FSM circuits with help of SD-based methods and the type number. In the discussed case, there is the following distribution of benchmarks. The FSMs represented by the benchmarks _bbtas_, _dk_ 17, _dk_ 27, _dk_ 512, _ex_ 3, _ex_ 5, _lion_, _lion_ 9, _mc_, _modulo_ 12, and _shiftreg_ have the type 0. The FSMs represented by the benchmarks _bbara_, _bbsse_, _beecount_, _cse_, _dk_ 14, _dk_ 15, _dk_ 16, _donfile_, _ex_ 2, _ex_ 4, _ex_ 6, _ex_ 7, _keyb_, _mark_ 1, _opus_, _s_ 27, _s_ 386, _s_ 840, and _sse_ have the type 1. The FSMs represented by the benchmarks _ex_ 1, _kirkman_, _planet_, _planet_ 1, _pma_, _s_ 1, _s_ 1488, _s_ 1494, _s_ 1 _a_, _s_ 208, _styr_, and _tma_ have type 2. There is a single FSM _sand_ which has the type 3. Four remaining FSMs ( _s_ 420, _s_ 510, _s_ 820, and _s_ 832) have the type 4. The results of experiments are shown in Table 7–Table 11. Three tables are organized in the same manner (Table 7, Table 9 and Table 11). For these tables, the columns are marked by the names of investigated methods (JEDI, Onehot, _PC_, _PEC_ ). The names of benchmarks are written in the table rows. In these tables, we show results of experiments for type 0 benchmarks first, then for type 1, and so on. Parts of tables with the same type of benchmarks can be considered as sub-tables. Within each sub-table, benchmarks are shown in the alphabetical order. In the rows “Total”, we place results of summation of values for corresponding columns. The row “Percentage” includes the percentage of summarized characteristics of FSM circuits produced by other methods respectively to _PEC_ FSMs. We use the model of P Mealy FSM as a starting point for methods JEDI and One-hot. Two tables (Table 8 and Table 9) include only summarized values of LUT counts and maximum operation frequencies for investigated methods. Now, we will analyse the experimental results taken from the reports produced by Vivado (or calculated by us using these reports). The following information can be found in these tables: 1) the LUT counts for all benchmarks (Table 7); 2) the LUT counts for various types of benchmarks (Table 8); 3) the maximum operating frequencies for all benchmarks (Table 9); 4) the maximum operating frequencies for various types of benchmarks (Table 10); 5) the area-time products for all benchmarks (Table 11). The data for two last tables are calculated using the values of cycle times obtained from Vivado reports. As follows from Table 7, the _PEC_ -based FSMs require fewer LUTs than it is for other investigated methods. Our approach produces circuits having 27.15% less 6-LUTs than it is for equivalent JEDI-based FSMs; 79.57% less 6-LUTs than it is for equivalent One-hot-based FSMs; 6.21% less 6-LUTs than it is for equivalent CSC-based FSMs; 22.21% less 6-LUTs than it is for equivalent ESC-based FSMs. While developing our method, we hoped that _PEC_ -based FSMs will require fewer LUTs in comparison with both equivalent _PE_ - and _PC_ -based FSMs. As follows from the last column of Table 7, our assumptions turn out to be correct. To compare the LUT counts for different types of benchmarks, we have calculated these values for type 0, type 1 and types 2–4. This information is represented by Table 8. As follows from Table 8, for the FSMs of type 0, practically all methods produce FSM circuits with the same LUT counts. This is explained by the fact that for these benchmarks the following condition takes place: _R_ + _L ≤_ _SL._ (35) If (35) holds, then all FSM outputs and IMFs are generated by single-LUT circuits. Obviously, there is no need in optimization if the condition (35) holds. Due to it, the JEDIbased optimization cannot produce circuits better than they are produced by other investigated methods. The negative outcome of one-hot assignment (loss in 39.39%) can be explained by the fact that there is _R_ = _M_ for OHC-based FSMs Due to it, OHC-based FSMs require more LUTs for generating IMFs than it is for other models. Starting from simple FSMs, _PEC_ -based FSMs require fewer LUTs than it is for other investigated methods. Our approach produces circuits having 12.33% less 6-LUTs than VOLUME 4 2016 11 TABLE 7. Experimental results (LUT counts) One PC PE PEC Benchmark JEDI Type <u>Hot</u> <u>FSM</u> <u>FSM</u> <u>FSM</u> bbtas 5 5 5 5 5 0 dk17 5 12 5 5 5 0 dk27 4 5 4 4 4 0 dk512 9 10 9 9 9 0 ex3 9 9 9 9 9 0 ex5 10 13 10 10 10 0 lion 4 5 4 4 4 0 lion9 5 11 5 5 5 0 mc 4 7 4 4 4 0 modulo12 7 9 7 7 7 0 <u>shiftreg</u> <u>4</u> <u>6</u> <u>4</u> <u>4</u> <u>4</u> <u>0</u> bbara 10 17 11 13 10 1 bbsse 24 37 21 26 20 1 beecount 14 19 12 14 12 1 cse 36 66 31 34 29 1 dk14 10 27 11 12 10 1 dk15 12 16 7 9 9 1 dk16 12 34 9 11 9 1 donfile 24 31 19 21 19 1 ex2 8 9 8 9 8 1 ex4 12 13 10 11 10 1 ex6 22 36 20 22 21 1 ex7 4 5 4 6 4 1 keyb 40 61 36 38 36 1 mark1 20 23 18 20 18 1 opus 22 28 23 25 22 1 s27 6 18 7 8 8 1 s386 22 39 20 22 20 1 s8 9 9 9 12 9 1 <u>sse</u> <u>30</u> <u>37</u> <u>27</u> <u>29</u> <u>26</u> <u>1</u> ex1 53 74 37 44 34 2 kirkman 39 58 31 37 29 2 planet 88 131 72 87 66 2 planet1 88 131 72 87 66 2 pma 86 94 70 80 64 2 s1 61 99 51 61 48 2 s1488 108 131 83 96 77 2 s1494 110 132 82 94 78 2 s1a 43 81 38 47 35 2 s208 10 31 9 11 9 2 styr 81 120 65 79 61 2 <u>tma</u> <u>39</u> <u>39</u> <u>31</u> <u>36</u> <u>29</u> <u>2</u> <u>sand</u> <u>114</u> <u>132</u> <u>97</u> <u>108</u> <u>89</u> <u>3</u> s420 9 31 9 10 9 4 s510 32 48 28 31 24 4 s820 68 82 54 59 48 4 <u>s832</u> <u>62</u> <u>79</u> <u>50</u> <u>61</u> <u>43</u> <u>4</u> <u>Total:</u> <u>1494</u> <u>2110</u> <u>1248</u> <u>1436</u> <u>1175</u> <u>Percentage:</u> <u>127,15</u> <u>179,57</u> <u>106,21</u> <u>122,21</u> <u>100,00</u> TABLE 8. Results for benchmarks of different types (LUT count) One PC PE PEC Methods JEDI Type <u>Hot</u> <u>FSM</u> <u>FSM</u> <u>FSM</u> <u>Total:</u> <u>66</u> <u>92</u> <u>66</u> <u>66</u> <u>66</u> 0 <u>Percentage:</u> <u>100</u> <u>139,39</u> <u>100</u> <u>100</u> <u>100</u> <u>Total:</u> <u>337</u> <u>525</u> <u>303</u> <u>342</u> <u>300</u> 1 <u>Percentage:</u> <u>112,33</u> <u>175</u> <u>101</u> <u>114</u> <u>100</u> <u>Total:</u> <u>1091</u> <u>1493</u> <u>879</u> <u>1028</u> <u>809</u> 2,3,4 <u>Percentage:</u> <u>134,86</u> <u>184,55</u> <u>108,65</u> <u>127,07</u> <u>100</u> it is for equivalent JEDI-based FSMs; 75% less 6-LUTs than it is for equivalent One-hot-based FSMs; 1% less 6LUTs than it is for equivalent CSC-based FSMs; 14% less 6LUTs than it is for equivalent ESC-based FSMs. We explain this gain by the fact that slightly fewer partial functions are formed for the proposed method than for equivalent CSC-based FSMs. The advantage with respect to ESCbased FSMs is explained by the fact that the latter require significantly more variables to generate partial state codes. The same facts also explain the growing advantage of our method connected with the growth of the complexity of the FSMs. As a result, our approach produces circuits having 34.86% less 6-LUTs than it is for equivalent JEDIbased FSMs; 84.55% less 6-LUTs than it is for equivalent One-hot-based FSMs; 8.65% less 6-LUTs than it is for equivalent CSC-based FSMs; 27.07% less 6-LUTs than it is for equivalent ESC-based FSMs. As follows from Table 8, the gain from the use of mixed state codes increases as the complexity of FSM grows (an increase in the number of states, inputs and outputs). As follows from Table 9, our approach produces faster LUT-based FSM circuits relative to other investigated methods. The average win is from 2.36% (compared with _PC_ based FSMs) to 22.39% relative to OHC-based FSMs. This fact is explained in the same way as it is for the gain in LUT counts. To compare frequencies for different types of FSMs, we created Table 10. The following conclusions can be made on the base of Table 10. For trivial FSMs (type 0), the one-hot state assignment produces circuits which are slower than circuits produced using other state assignment methods. This is explained by the fact that, due to the violation of condition (35), these circuits have more interconnections compared to circuits generated by other methods. It is known [11] that interconnections significantly affect the performance of LUT-based circuits. All other models have the same performance because in fact they degenerate into P FSMs with maximum binary state codes. Starting from simple FSMs (type 1), the advantage of the proposed method begins to appear. For simple FSMs, our method provides gain relative to JEDI-based FSMs (22.46%), One-hot-based FSMs (27.69%), and _PE_ -based FSMs (3.88%). It is interesting that there is the equal performance for _PEC_ and _PC_ FSMs. Apparently, these two models have the same state code length. As a consequence, they have the same number of logic levels (and, therefore, the same values of maximum operating frequencies). For other types of FSMs (2, 3 and 4), our method allows producing the fastest circuits. There is the following gain in FSM performance: 18.27.6% compared with JEDI-based FSMs; 28.33% compared with OHC-based FSMs; 7.41% compared with CSC-based FSMs; 12.87% compared with ESC-based FSMs. So, the proposed approach allows increasing performance in comparison with other methods under study. Moreover, the gain increases as the complexity of the FSMs increases. 12 VOLUME 4 2016 TABLE 9. Experimental results (the maximum operating frequency for all benchmarks, MHz) One PC PE PEC Benchmark JEDI Type <u>Hot</u> <u>FSM</u> <u>FSM</u> <u>FSM</u> bbtas 206,12 204,16 206,12 206,12 206,12 0 dk17 199,39 167,00 199,39 199,39 199,39 0 dk27 204,18 201,90 204,18 204,18 204,18 0 dk512 199,75 196,27 199,75 199,75 199,75 0 ex3 195,76 194,86 195,76 195,76 195,76 0 ex5 181,16 180,25 181,16 181,16 181,16 0 lion 202,35 204,00 202,35 202,35 202,35 0 lion9 206,38 185,22 206,38 206,38 206,38 0 mc 196,87 195,47 196,87 196,87 196,87 0 modulo12 207,13 207,00 207,13 207,13 207,13 0 <u>shiftreg</u> <u>276,26</u> <u>263,57</u> <u>276,26</u> <u>276,26</u> <u>276,26</u> <u>0</u> bbara 212,21 193,39 262,22 252,44 262,22 1 bbsse 182,34 169,12 248,07 238,38 248,07 1 beecount 187,32 166,61 249,13 241,72 249,13 1 cse 178,12 163,64 252,43 247,86 252,43 1 dk14 193,85 172,65 233,63 223,84 233,63 1 dk15 194,87 185,36 236,02 226,97 236,02 1 dk16 197,13 174,79 264,93 253,82 264,93 1 donfile 203,65 184,00 258,11 248,19 258,11 1 ex2 200,14 198,57 251,45 241,61 251,45 1 ex4 192,83 177,71 247,14 237,31 247,14 1 ex6 176,59 163,80 248,21 238,35 248,21 1 ex7 200,60 200,84 250,14 240,83 250,14 1 keyb 168,43 143,47 235,01 224,98 235,01 1 mark1 176,18 162,39 237,76 227,47 237,76 1 opus 178,32 166,20 223,26 213,40 223,26 1 s27 199,13 191,50 248,04 238,53 248,04 1 s386 179,15 173,46 228,63 218,87 228,63 1 s8 181,23 178,95 223,04 213,65 223,04 1 <u>sse</u> <u>174,63</u> <u>169,12</u> <u>215,53</u> <u>205,41</u> <u>215,53</u> <u>1</u> ex1 176,87 139,76 191,01 176,82 201,12 2 kirkman 156,68 154,00 182,19 177,15 199,17 2 planet 187,14 132,71 198,78 190,54 208,12 2 planet1 187,14 132,71 198,78 190,54 208,12 2 pma 169,83 146,18 184,17 179,83 192,23 2 s1 157,16 135,85 186,09 177,47 198,41 2 s1488 157,18 131,94 188,03 174,31 197,14 2 s1494 164,34 145,75 187,24 172,05 193,01 2 s1a 169,17 176,40 189,17 169,53 199,32 2 s208 178,76 176,46 188,42 179,28 201,70 2 styr 145,64 129,92 187,53 172,24 198,19 2 <u>tma</u> <u>164,14</u> <u>147,80</u> <u>189,18</u> <u>178,59</u> <u>199,09</u> <u>2</u> <u>sand</u> <u>126,82</u> <u>115,97</u> <u>149,65</u> <u>141,14</u> <u>163,12</u> <u>3</u> s420 117,25 106,46 133,14 129,32 154,02 4 s510 118,32 107,65 137,22 127,76 162,17 4 s820 116,58 103,16 129,26 118,15 157,13 4 <u>s832</u> <u>113,78</u> <u>103,23</u> <u>133,31</u> <u>124,22</u> <u>157,31</u> <u>4</u> <u>Total:</u> <u>8458,87</u> <u>7821,22</u> <u>9841,27</u> <u>9487,92</u> <u>10077,47</u> <u>Percentage:</u> <u>83,94</u> <u>77,61</u> <u>97,66</u> <u>94,15</u> <u>100,00</u> TABLE 10. Results for benchmarks of different types (maximum operating frequency, MHz) One PC PE PEC Methods JEDI Type <u>Hot</u> <u>FSM</u> <u>FSM</u> <u>FSM</u> <u>Total:</u> <u>2275,35</u> <u>2199,7</u> <u>2275,35</u> <u>2275,35</u> <u>2275,35</u> 0 <u>Percentage:</u> <u>100</u> <u>96,68</u> <u>100</u> <u>100</u> <u>100</u> <u>Total:</u> <u>3576,72</u> <u>3335,57</u> <u>4612,75</u> <u>4433,63</u> <u>4612,25</u> 1 <u>Percentage:</u> <u>77,54</u> <u>72,31</u> <u>100</u> <u>96,12</u> <u>100</u> <u>Total:</u> <u>2606,8</u> <u>2285,95</u> <u>2953,17</u> <u>2778,94</u> <u>3189,37</u> 2,3,4 <u>Percentage:</u> <u>81,73</u> <u>71,67</u> <u>92,59</u> <u>87,13</u> <u>100</u> The main goal of the proposed method was to reduce the number of LUTs (the chip area occupied by FSM circuit) compared to this value for equivalent _PC_ and _PE_ FSMs. The results of experiments show that this goal has been achieved. In addition, starting from average FSMs (type 2), our approach simultaneously allows increasing the maximum operating frequency. Due to it, our approach produces FSM circuits with the best values of area-time products. The corresponding values are shown in Table 11. As follows from Table 11, our approach provides the following average gain: 1)59.08% regarding JEDI-based FSMs; 2)154.16% regarding OHC- based FSMs; 3) 13.27% regarding CSC-based FSMs and 4) 32.05% regarding _ESC_ based FSMs. We did not show it, but the gain obtained by our approach increases with the increasing the FSM type. It is known [10], that the smaller the value of the product of the number of LUTs in circuit 1 and its cycle time compared to this product for circuit 2, the circuit 1 either requires fewer LUTs or has a higher performance than circuit 2. Both of these phenomena are inherent in our proposed method. So, the results of our experiments show that the proposed approach can be used instead of other models starting from simple FSMs (type 1). Our approach allows improving LUT counts, maximum operating frequency, and area-time products compared with other investigated design methods. We think that our approach has rather good potential and can be used in CAD systems targeting FPGA-based Mealy FSMs. VII. CONCLUSION ERY often, modern digital systems are implemented using FPGA chips. Current FPGAs are very compli# V cated devices having up to 7 billion transistors [17], [43]. Due to it, a single chip can be used for implementing rather complex circuits of various digital systems. As the complexity of these systems increases, the contradiction between a significant number of system inputs and a very small number of LUT inputs increases, too. Modern LUTs have around 6 inputs. Obviously, this value is rather small compared with numbers of literals in SBFs representing FSM circuits. This leads to the need for using different methods of functional decomposition in LUT-based FSM design. It is known [20] that the functional decomposition leads to multi-level LUT-based FSM circuits having very complicated systems of spaghetti-type interconnections. VOLUME 4 2016 13 TABLE 11. Experimental results (the area-time products for all benchmarks) One PC PE PEC Benchmark JEDI Type <u>Hot</u> <u>FSM</u> <u>FSM</u> <u>FSM</u> bbtas 24,26 24,49 24,26 24,26 24,26 0 dk17 25,08 71,86 25,08 25,08 25,08 0 dk27 19,59 24,76 19,59 19,59 19,59 0 dk512 45,06 50,95 45,06 45,06 45,06 0 ex3 45,97 46,19 45,97 45,97 45,97 0 ex5 55,20 72,12 55,20 55,20 55,20 0 lion 19,77 24,51 19,77 19,77 19,77 0 lion9 24,23 59,39 24,23 24,23 24,23 0 mc 20,32 35,81 20,32 20,32 20,32 0 modulo12 33,80 43,48 33,80 33,80 33,80 0 <u>shiftreg</u> <u>14,48</u> <u>22,76</u> <u>14,48</u> <u>14,48</u> <u>14,48</u> <u>0</u> bbara 47,12 87,91 41,95 51,50 38,14 1 bbsse 131,62 218,78 84,65 109,07 80,62 1 beecount 74,74 114,04 48,17 57,92 48,17 1 cse 202,11 403,32 122,81 137,17 114,88 1 dk14 51,59 156,39 47,08 53,61 42,80 1 dk15 61,58 86,32 29,66 39,65 38,13 1 dk16 60,87 194,52 33,97 43,34 33,97 1 donfile 117,85 168,48 73,61 84,61 73,61 1 ex2 39,97 45,32 31,82 37,25 31,82 1 ex4 62,23 73,15 40,46 46,35 40,46 1 ex6 124,58 219,78 80,58 92,30 84,61 1 ex7 19,94 24,90 15,99 24,91 15,99 1 keyb 237,49 425,18 153,18 168,90 153,18 1 mark1 113,52 141,63 75,71 87,92 75,71 1 opus 123,37 168,47 103,02 117,15 98,54 1 s27 30,13 93,99 28,22 33,54 32,25 1 s386 122,80 224,84 87,48 100,52 87,48 1 s8 49,66 50,29 40,35 56,17 40,35 1 <u>sse</u> <u>171,79</u> <u>218,78</u> <u>125,27</u> <u>141,18</u> <u>120,63</u> <u>1</u> ex1 299,66 529,48 193,71 248,84 169,05 2 kirkman 248,91 376,62 170,15 208,86 145,60 2 planet 470,24 987,11 362,21 456,60 317,12 2 planet1 470,24 987,11 362,21 456,60 317,12 2 pma 506,39 643,04 380,08 444,86 332,93 2 s1 388,14 728,74 274,06 343,72 241,92 2 s1488 687,11 992,88 441,42 550,74 390,59 2 s1494 669,34 905,66 437,94 546,35 404,12 2 s1a 254,18 459,18 200,88 277,24 175,60 2 s208 55,94 175,68 47,77 61,36 44,62 2 styr 556,17 923,65 346,61 458,66 307,79 2 <u>tma</u> <u>237,60</u> <u>263,87</u> <u>163,87</u> <u>201,58</u> <u>145,66</u> <u>2</u> <u>sand</u> <u>898,91</u> <u>1138,23</u> <u>648,18</u> <u>765,20</u> <u>545,61</u> <u>3</u> s420 76,76 291,19 67,60 77,33 58,43 4 s510 270,45 445,89 204,05 242,64 147,99 4 s820 583,29 794,88 417,76 499,37 305,48 4 <u>s832</u> <u>544,91</u> <u>765,28</u> <u>375,07</u> <u>491,06</u> <u>273,35</u> <u>4</u> <u>Total:</u> <u>9388,96</u> <u>15000,91</u> <u>6685,28</u> <u>8141,82</u> <u>5902,09</u> <u>Percentage:</u> <u>159,08</u> <u>254,16</u> <u>113,27</u> <u>137,95</u> <u>100,00</u> To improve the characteristics of LUT-based FSM circuits compared with their counterparts based on functional decomposition, various methods of structural decomposition can be applied [20]. As follows from our previous research [15], [16], the characteristics of LUT-based Mealy FSM circuits can be improved using either extended or composite state codes. These approaches have both positive and negative sides. In our current paper, we propose a new method of state assignment, namely, the assignment based on mixed state codes. This approach allows combining positive features of the methods based on either extended or composite state codes. Also, the proposed method is free from the disadvantages inherent in these two methods. As it is for CSCs, mixed state code is represented by a concatenation of a class code and the code of a state as an element of this class. However, unlike CSCs, the mixed state codes can have different lengths of partial state codes (this is a positive feature borrowed from ESCs). The proposed approach preserves the flexibility inherent in ESCs and the almost minimum number of variables inherent in CSCs. This approach leads to two-level FSM circuits which require fewer LUTs than their counterparts based on other state assignment methods. Moreover, the MSC-based FSMs have slightly better performance as their ESC- and CSC-based counterparts. REFERENCES [1] S. C. Suh, U. J. Tanik, and J. N. Carbone, _Applied Cyber-Physical Systems_ . Springer Publishing Company, Incorporated, 2013. [2] L. Ashford and S. Sanjit Arunkumar, _Introduction to Embedded Systems:_ _A Cyber-Physical Systems Approach_, 2nd ed. The MIT Press, 2016. [3] P. Marwedel, _Embedded System Design: Embedded Systems Foundations_ _of Cyber-Physical Systems, and the Internet of Things_, 3rd ed. Springer International Publishing, 2018. [4] D. D. Gajski, S. Abdi, A. Gerstlauer, and G. Schirner, _Embedded_ _System_ _Design: Modeling, Synthesis and Verification_, 1st ed. Springer Publishing Company, Incorporated, 2009. [5] S. Baranov, _Finite State Machines and Algorithmic State Machines_ . Ama zon, 01 2018. [6] I. Grout, _Digital_ _systems_ _design_ _with_ _FPGAs_ _and_ _CPLDs_ . Amsterdam: Elsevier Science, 2011. [Online]. Available: https://books.google.pl/ books?id=vggmNXdzayYC [7] M. Kubica, A. Opara, and D. Kania, _Technology Mapping for LUT-Based_ _FPGA_ . Springer, 01 2021. [8] M. Kubica and D. Kania, “Technology mapping oriented to adaptive logic modules,” _Bulletin of the Polish Academy of Sciences. Technical Sciences_, vol. 67, no. 5, pp. 947–956, 2019. [9] A. Mishchenko, S. Chatterjee, and R. Brayton, “Improvements to tech nology mapping for LUT-based FPGAs,” _Computer-Aided Design of Inte-_ _grated Circuits and Systems, IEEE Transactions on_, vol. 26, pp. 240–253, 03 2007. [10] M. M. Islam, M. Hossain, M. Shahjalal, M. K. Hasan, and Y. M. Jang, “Area-time efficient hardware implementation of modular multiplication for elliptic curve cryptography,” _IEEE_ _Access_, vol. 8, pp. 73 898–73 906, 04 2020. [11] W. Feng, J. Greene, and A. Mishchenko, “Improving FPGA Performance with a S44 LUT Structure,” in _Proceedings_ _of_ _the_ _2018_ _ACM/SIGDA_ _International Symposium on Field-Programmable Gate Arrays_, ser. FPGA ’18. New York, NY, USA: Association for Computing Machinery, 02 2018, pp. 61–66. [Online]. Available: https://doi.org/10.1145/3174243. 3174272 [12] J. Ruiz-Rosero, G. Ramirez-Gonzalez, and R. Khanna, “Field pro grammable gate array applications - a scientometric review,” _Computa-_ _tion_, vol. 7, p. 63, 11 2019. 14 VOLUME 4 2016 [13] M. Amagasaki and Y. Shibata, _FPGA Structure_, 09 2018, pp. 47–86. [14] I. Kuon, R. Tessier, and J. Rose, “FPGA architecture: Survey and shal lenges - found trends,” _Electrical Design Automation_, no. 2, pp. 135–253, 2008. [15] A. Barkalov, L. Titarenko, K. Krzywicki, and S. Saburova, “Improving Characteristics of LUT-Based Mealy FSMs with Twofold State Assignment,” _Electronics_, vol. 10, no. 8, 2021. [Online]. Available: https://www.mdpi.com/2079-9292/10/8/901 [16] A. Barkalov, L. Titarenko, and K. Krzywicki, “Improving Characteristics of LUT-Based Sequential Blocks for Cyber-Physical Systems,” _Energies_, vol. 15, no. 7, 2022. [Online]. Available: https://www.mdpi.com/ 1996-1073/15/7/2636 [17] Xilinx, http://www.xilinx.com, accessed: January, 2024. [18] ——, “Virtex-7 Family Overview,” Xilinx Corporation, Available at http://www.xilinx.com/support/documentation/data_sheets/ds183_ Virtex_7_Data_Sheet.pdf, PDF, 2019. [19] G. De Micheli, _Synthesis and Optimization of Digital Circuits_ . McGraw– Hill, 1994. [20] A. Barkalov, L. Titarenko, and K. Krzywicki, “Structural Decomposition in FSM Design: Roots, Evolution, Current State - A Review,” _Electronics_, vol. 10, no. 10, 2021. [Online]. Available: https://www.mdpi.com/ 2079-9292/10/10/1174 [21] M. Kubica, D. Kania, and J. Kulisz, “A Technology Mapping of FSMs Based on a Graph of Excitations and Outputs,” _IEEE_ _Access_, vol. 7, pp. 16 123–16 131, 2019. [22] K. Chapman, _Multiplexer_ _Design_ _Techniques_ _for_ _Datapath_ _Performance_ _with_ _Minimized_ _Routing_ _Resources_ . Xilinx All Programmable, 2014, accessed: January, 2024. [23] C. Scholl, _Functional Decomposition with Application to FPGA Synthesis_ . Boston, MA, USA: Kluwer Academic Publishers, 2001. [24] O. Barkalov, L. Titarenko, and K. Mielcarek, “Hardware reduction for LUT-based Mealy FSMs,” _International_ _Journal_ _of_ _Applied_ _Mathematics_ _and Computer Science_, vol. Vol. 28, no. no. 3, pp. 595–607, 2018. [25] ——, “Improving characteristics of LUT-based Mealy FSMs,” _Interna-_ _tional_ _Journal_ _of_ _Applied_ _Mathematics_ _and_ _Computer_ _Science_, vol. Vol. 30, no. no. 4, pp. 745–759, 2020. [26] M. Kubica and D. Kania, “Area-oriented technology mapping for LUT based logic blocks,” _International_ _Journal_ _of_ _Applied_ _Mathematics_ _and_ _Computer Science_, vol. 27, no. 1, pp. 207–222, 2017. [27] L. Machado and J. Cortadella, “Support-Reducing Decomposition for FPGA Mapping,” _IEEE_ _Transactions_ _on_ _Computer-Aided_ _Design_ _of_ _Integrated_ _Circuits_ _and_ _Systems_, vol. 39, no. 1, pp. 213–224, Jan 2020. [Online]. Available: https://www.cs.upc.edu/~jordicf/gavina/BIB/ files/iwls2018_FPGA.pdf [28] R. Senhadji-Navarro and I. Garcia-Vargas, “High-performance architec ture for binary-tree-based finite state machines,” _IEEE_ _Transactions_ _on_ _Computer-Aided Design of Integrated Circuits and Systems_, vol. 37, no. 4, pp. 796–805, 2018. [29] S. Chattopadhyay, “Area conscious state assignment with flip-flop and output polarity selection for finite state machines synthesis - a genetic algorithm,” _The Computer Journal_, vol. 48, no. 4, pp. 443–450, 2005. [30] C. Chen, J. Zhao, and M. Ahmadi, “A semi-Gray encoding algorithm for low-power state assignment,” in _Proceedings_ _of_ _the_ _2003_ _International_ _Symposium_ _on_ _Circuits_ _and_ _Systems,_ _2003._ _ISCAS’03._, vol. 5. IEEE, 2003, pp. 389–392. [31] G. De Micheli, R. K. Brayton, and A. Sangiovanni-Vincentelli, “Optimal state assignment for finite state machines,” _IEEE_ _Transactions_ _on_ _Computer-Aided Design of Integrated Circuits and Systems_, vol. 4, no. 3, pp. 269–285, 2006. [Online]. Available: http://dx.doi.org/10.1109/TCAD. 1985.1270123 [32] Y. Tao, Y. Zhang, W. Qinyu, and C. Jian, “MPGA: An Evolutionary State Assignment for Dynamic and Leakage Power reduction at FSM synthesis,” _IET Computers & Digital Techniques_, vol. 12, 02 2018. [33] G. Venkatamaran, S. Reddy, and I. Pomerancz, “GALLOP: genetic algo rithm based low power FSM synthesis by simultaneous partitioning and state assignment,” in _Proceedings_ _of_ _16th_ _International_ _Conference_ _on_ _VLSI Design_, 2003, pp. 533–538. [34] R. Agrawal, M. Borowczak, and R. Vemuri, “A state encoding method ology for side-channel security vs. power trade-off exploration,” in _2019_ _32nd_ _International_ _Conference_ _on_ _VLSI_ _Design_ _and_ _2019_ _18th_ _Interna-_ _tional Conference on Embedded Systems (VLSID)_, 2019, pp. 70–75. [35] A. H. El-Maleh, “A probabilistic pairwise swap search state assignment algorithm for sequential circuit optimization,” _Integration,_ _the_ _VLSI_ _Journal_, vol. 56, no. Supplement C, pp. 32–43, 2017. [Online]. Available: http://www.sciencedirect.com/science/article/pii/S0167926016300384 [36] A. El-Maleh, “A finite state machine-based fault tolerance technique with enhanced area and power of synthesized sequential circuits,” _IET_ _Computers & Digital Techniques_, vol. 11, no. 4, pp. 159–164, 04 2017. [37] A. H. El-Maleh, “A probabilistic tabu search state assignment algorithm for area and power optimization of sequential circuits,” _Arabian_ _Journal_ _for_ _Science_ _and_ _Engineering_, vol. 45, no. 8, pp. 6273–6285, Aug 2020. [Online]. Available: https://doi.org/10.1007/s13369-020-04697-y [38] S. Park, S. Cho, S. Yang, and M. Ciesielski, “A new state assignment technique for testing and low power,” in _Proceedings_ _of_ _the_ _41st_ _annual_ _Design Automation Conference_ . Association for Computing Machinery, 2004, pp. 510–513. [39] E. Sentowich, K. Singh, L.Lavango, C. Moon, R. Murgai, A. Saldanha, H. Savoj, P. S. P, R. Bryton, and A. Sangiovanni-Vincentelli, “SIS: a system for sequential circuit synthesis,” in _Proceedings of the International_ _Conference of Computer Design (ICCD’92)_, 1992, pp. 328–333. [40] R. Brayton and A. Mishchenko, “ABC: An Academic Industrial-Strength Verification Tool,” in _Computer Aided Verification_, T. Touili, B. Cook, and P. Jackson, Eds. Berlin, Heidelberg: Springer Berlin Heidelberg, 2010, pp. 24–40. [41] Vivado, https://www.xilinx.com/products/design-tools/vivado.html, 2024, accessed: January, 2024. [42] Quartus Prime, https://www.intel.pl/content/www/pl/pl/software/ programmable/quartus-prime/overview.html, 2024, accessed: January, 2024. [43] Altera, http://www.altera.com, accessed: January, 2024. [44] G. Sutter, E. Todorovich, S. López-Buedo, and E. Boemo, “Low-power FSMs in FPGA: Encoding alternatives,” in _Integrated_ _Circuit_ _Design._ _Power_ _and_ _Timing_ _Modeling,_ _Optimization_ _and_ _Simulation_ . Seville, Spain: Springer-Verlag, 2002, pp. 363–370. [45] I. Skliarova, V. Sklyarov, and A. Sudnitson, _Design_ _of_ _FPGA-based_ _circuits using Hierarchical Finite State Machines_ . Tallinn, Estonia: TUT Press, 2012. [46] A. Opara, M. Kubica, and D. Kania, “Decomposition approaches for power reduction,” _IEEE Access_, vol. 11, pp. 29 417–29 429, 2023. [47] R. Senhadji-Navarro and I. Garcia-Vargas, “Mapping outputs and states encoding bits to outputs using multiplexers in finite state machine implementations,” _Electronics_, vol. 12, no. 3, 2023. [Online]. Available: https://www.mdpi.com/2079-9292/12/3/502 [48] ——, “Mapping Arbitrary Logic Functions onto Carry Chains in FPGAs,” _Electronics_, vol. 11, no. 1, 2022. [Online]. Available: https://www.mdpi.com/2079-9292/11/1/27 [49] K. McElvain, “Lgsynth93 benchmark set. version 4.0,” https://people.engr. ncsu.edu/brglez/CBL/benchmarks/LGSynth93/LGSynth93.tar, 5 1993, accessed: February, 2018. [50] Xilinx, “VC709 Evaluation Board for the Virtex-7 FPGA,” https://www.xilinx.com/support/documentation/boards_and_kits/vc709/ ug887-vc709-eval-board-v7-fpga.pdf, accessed: January, 2024. VOLUME 4 2016 15 ALEXANDER BARKALOV received the M.Sc. degree in Computer Engineering from the Donetsk Politechnical Institute (currently Donetsk National Technical University), Ukraine, in 1976, Ph.D. degree in Computer Science from the Leningrad Institute of Fine Mechanics and Optics, Russia, in 1983. In 1995 he was awarded Doctor of Technical Sciences degree in Computer Science at the Institute of Cybernetics (Kiev). Since 2003 he has been a Professor of Computer Engineering at the Institute of Informatics and Electronics, University of Zielona Góra, Poland. His current research interests include the theory of digital automata, especially the methods of synthesis and optimization of control units implemented with field-programmable logic devices. LARYSA TITARENKO received the M.Sc. (1993), Ph.D. (1996) and Doctor of Technical Sciences (2005) degree in Telecommunications from Kharkov National University of Radioelectronics, Ukraine. Since 2007 she has been a Professor of Telecommunications at the Institute of Informatics and Electronics, University of Zielona Góra, Poland. Her current research interests include the theory of telecommunication systems, theory of antennas and theory of digital automata and its applications. She has taken part in of a number of research projects sponsored by the Ministry of Science and Higher Education of Ukraine (1993–2005). KAMIL MIELCAREK has received the M.Sc. degree in Computer Engineering from Technical University of Zielona Góra, Poland in 1995 and Ph.D. degree in Computer Science from University of Zielona Góra, Poland in 2010. Since 2001 he is a lecturer at University of Zielona Góra. His current interests include methods of logic synthesis and optimization of control units in FPGA logic devices, VLSI-based FSMs, hardware description languages, perfect graphs and Petri nets, algorithmic theory and safety of UNIX and network systems. MAŁGORZATA MAZURKIEWICZ received the M.Sc. and Ph.D. degrees in computer science in 1999 (Technical University of Zielona Góra, Poland) and 2007 (University of Zielona Góra, Poland), respectively. Since 2007, she has been an Assistant Professor at the Faculty of Computer, Electrical and Control Engineering of the University of Zielona Góra. Her general research interests include methods of digital circuit synthesis, design and PLC programming. 16 VOLUME 4 2016

섹션 본문 133문단 · 51,068자

(제목 없음)

1A method is proposed for reducing chip area occupied by logic circuits of FPGA-based Mealy finite state machines (FSMs).The proposed method aims at optimization of FSM circuits implemented with look-up table (LUT) elements of FPGA chip.The proposed method combines positive features of such state assignment methods as extended (ESCs) and composite (CSCs) state codes.The method is based on finding a partition of the set of internal states by classes of compatible states.To reduce LUT count, we propose a special kind of states codes named mixed state codes.These codes include two parts.The first part includes the maximum binary codes of states as elements of some partition class.The second part consists of the code of corresponding partition class.Unlike CSCs, the proposed approach allows obtaining partial state codes having different lengths.Unlike ESCs, all partial state codes consist of the same variables.Using mixed state codes allows obtaining LUT-based FSM circuits with exactly two levels of logic.The first level generates partial Boolean functions.The second level combines them into FSM outputs and input memory functions.If some conditions hold, then both levels consist of single-LUT circuits.Example of FSM synthesis based on mixed state codes is shown.The conducted experiments prove that the proposed approach allows reducing hardware compared with FSMs based on JEDI, one-hot state codes, CSCs and ESCs.On average, the proposed method reduces the value of LUT count by 6.21% compared to CSC-based FSMs and 22.21% compared to ESC-based counterparts.The advantages of the proposed approach grow with the growth of FSM complexness.An additional positive effect of the proposed method is a slight increase in the operating frequency.INDEX TERMS Mealy FSM, FPGA, LUT count, synthesis, extended state codes, composite state codes, mixed state codes.

I. INTRODUCTION

2Now, various digital systems are widely used practically in all spheres of human activity [1], [2], [3].These systems include a lot of combinational and sequential devices [3], [4].It is very important to improve the basic characteristics of digital systems (price, hardware amount, performance, power consumption) [4].In this article, we propose a method aimed at reducing the area of sequential devices.We use the model

3The associate editor coordinating the review of this manuscript and approving it for publication was Abdallah Kassem .

4of Mealy finite state machine (FSM) [5] to represent the sequential devices.

5This model is viewed as a starting point of the sequential device design process [6].This has led to the emergence of a significant number of FSM-based design methods [7].As a rule, all these methods are associated with the solution of some optimization problems [8], [9].In the design process, such problems are solved as reducing the chip area occupied by the resulting FSM circuit, increasing its operating frequency and reducing the consumed electrical power.If there is no single criterion for the optimality of the FSM circuit, then the designers strive to achieve a balance of its main characteristics [10].Many studies show that the chip area occupied by an FSM circuit has a decisive influence on both the performance and power consumption [11].Due to it, our current article is devoted specifically to the problem of reducing the required chip area.The proposed method focuses on Mealy FSM circuits implemented with field-programmable gate arrays (FPGAs) [12], [13], [14].The proposed method combines approaches related to the use of extended state codes (ESCs) [15] and composite state codes (CSCs) [16].

6In our study, we focus on the FPGA chips of the company AMD Xilinx [17].This choice is due to two facts.First, FPGAs are widespread in modern digital design [12].This determines our choice of FPGA as a basis for the implementation of FSM circuits.Secondly, the company AMD Xilinx is the largest producer of FPGA chips [17].This determines the choice of their chips Virtex 7 [18] in our current research.To evaluate the required chip area, we use the widely used approach described in [10].In this case, the area is estimated as a number of look-up table (LUT) elements (LUT count) in an FSM circuit.

7The main goal of the proposed method is the reduction of LUT count in Mealy FSM circuits.We analysed positive and negative features of extended state codes [15] and composite state codes [16].Both approaches are based on finding minimum possible number of classes of compatible states.In ESC-based FSMs, the total number of code bits (extended code length) exceeds significantly their minimum possible number inherent in maximum binary state codes (MBCs).This leads to increasing the number of flip-flops in FSM state memory.In addition, this increase leads to a complication of the interconnect system.But for ESCs, partial state codes can have different lengths for different classes.This reduces the number of classes.In CSC-based FSMs, the same state variables create partial state codes for all classes.This reduces the total length of state codes compared to equivalent ESCbased FSMs.But due to it, CSC-based FSMs require more classes than their ESC-based counterparts.This can lead to reducing performance of CSC-based FSMs compared to ESC-based FSMs.In our current article, we propose a method eliminating the mentioned drawbacks and combining together positive features of both CSC-and ESC-based FSMs.

8The main contribution of this paper is a novel design method aimed at reducing the LUT counts in circuits of two-level FPGA-based Mealy FSMs compared to equivalent FSMs with either extended or composite state codes.The resulting FSMs combine positive features of ESC-based FSMs (the different partial state code length for different classes) and CSC-based FSMs (the minimum possible length of state codes).Combination of these features leads to so-called mixed state codes (MSCs) proposed in our current article.The proposed method of state assignment provides a variable length of partial state codes for different classes (minimizing the number of classes) and minimizing the overall bitness of state codes.

9The rest of the article is organized as follows.The essential information about LUT-based Mealy FSMs is discussed in Section II.The Section III includes a short analysis of related works.The main idea of the proposed method is shown in Section IV.An example of MSC-based FSM synthesis is shown in Section V. Section VI includes the experimental results and their analysis.The short summary is shown in Section VII.

II. ESSENTIAL INFORMATION CONCERNING LUT-BASED FSM DESIGN

10A Mealy FSM may be represented by a state transition graph (STG) [19].From an STG, three sets could be derived.They are: 1) a set of states A = {a 1 , . . ., a M }, 2) a set of inputs X = {x 1 , . . ., x L } and 3) a set of outputs Y = {y 1 , . . ., y N }.After the step of state assignment [5], it is possible to get two systems of Boolean functions (SBFs) [19].They represent the dependences of FSM outputs and input memory functions (IMFs) on FSM inputs and state variables.The state variables form a set T = {T 1 , . . ., T R } Each state variable corresponds to a single bit of state code C(a m ).The minimum code length corresponds to so-called maximum binary state codes (MBCs) [20].The length of MBCs is determined by the following formula:

11The state codes C(a m ) are kept into the state code register (RG).In the case of FPGA-based FSMs, the RG includes the flip-flops of D type [21].To change the content of RG, the input memory functions are used.The IMFs form a set D = {D 1 , . . ., D R }.

12An FSM circuit is represented by two SBFs:

13The SBFs (2)-(3) represent so-called P Mealy FSM [5].It includes two logic blocks and the state code register.One of these blocks generates functions from SBF (2).The second block generates IMFs (2).These functions enter the RG to set a next state code.In the beginning, the RG is cleared using a pulse Start.The resulting code consists of zeros; it corresponds to the initial state a 1 ∈ A. The values of IMFs determine the code of a next state.This code is written into RG using a pulse Clock.In this article, we do not show the architecture of P Mealy FSM due to its triviality.

14To get the systems (2)-( 3), the initial STG should be transformed into a direct structure table (DST) [5].Also, a DST can be obtained using a state transition table (STT) [19].Both STG and STT are interchangeable.At the same time, there are elementary procedures for converting one form to another [19].In our paper, for representing a Mealy FSM, we use an STG.

15An STT includes the following columns [5]: a current state a m ; a next state a S ; an input signal X h which is a conjunction of inputs (or their complements) determining a particular interstate transition ⟨a m , a s ⟩; a collection of outputs Y h generated during the transition ⟨a m , a s ⟩; h is a column including the numbers of interstate transitions (h ∈ {1, . . ., H }). The number of STT rows is equal to the number of arcs in the equivalent STG.

16To transform an STT into the equivalent DST, it is necessary to assign state codes.This is a state assignment step [19].This step is reduced to the replacement of states a m ∈ A by their binary codes C(a m ).The current state codes are placed into the column C(a m ) of DST, the next state codes are placed into the column C(a s ).In the case of D flip-flops, the values of IMFs are created on the base of the next state codes.These functions are placed into the column D h of DST.

17In this paper, we consider a case when the circuit of P Mealy FSM is implemented using internal resources of FPGA chips.A lot of configurable logic blocks (CLB) could be found in chips produced by AMD Xilinx [17].Each CLB includes LUTs, dedicated multiplexors, flip-flops and tools of fast internal interconnect [22].All these components are programmable.The logic functions are implemented using LUTs.The number of LUT inputs could be increased with the help of dedicated multiplexers.Each bit of state codes corresponds to a flip-flop's output.To get an FSM circuit, it is necessary to connect CLBs by tools of a programmable routing matrix [22].

18A LUT has S L inputs and a single output.Any Boolean function depending on up to S L variables is generated using only a single LUT [20].The value of S L is rather small [14].For example, there is S L = 6 for basic LUTs of the Virtex-7 family [18].But the functions (2)-(3) can be very complex.It is quite possible that the numbers of arguments of sum-of-products (SOPs) of these functions exceed significantly the value of S L .To generate such complex functions, it is necessary to represent each of them as a composition of partial Boolean functions (PBFs).Each PBF has no more than S L arguments.To optimize the resulting compositions, it is necessary to apply various methods of functional decomposition (FD) [23].Although these methods allow implementing an FSM circuit, they have one negative quality: FD-based FSMs are represented by multi-level circuits with complicated systems of ''spaghettitype'' interconnections [20].

19In LUT-based FSMs, the flip-flops of RG are distributed among LUTs generating functions (2).Due to it, the RG is hidden inside the slices generating IMFs.So, LUT-based P Mealy FSMs have only two blocks.In the further material of this article, we denote a block consisting of LUTs as a LUTer.

20In the best case, there is exactly a single level of LUTs in the circuit of P FSM.This is possible if each function f i ∈ D ∪ Y depends on no more than S L arguments.However, for sufficiently complex FSMs, the number of LUT inputs is not enough to implement single-level FSM circuits.So, rather complex FSMs are represented by multi-level LUT-based circuits.To improve the basic characteristics of LUT-based FSM circuits (LUT count, maximum operating frequency, power consumption), it is necessary to improve the existing design methods.

21In addition to reducing the number of LUTs, it is very important to optimize the system of connections between different CLBs of an FSM circuit.As shown in [11], the interconnections are responsible for: 1) around 70% of power consumption and 2) the major part of FSM circuit latency time.This can be done using such methods of structural decomposition as: 1) twofold state assignment [24], [25], 2) extended state assignment [15] or 3) composite state assignment [16].

III. RELATED WORK

22Over the past fifty years, a huge number of methods have been developed to optimize the characteristics of FSM circuits.Since the 1980s, most of the developed methods have focused on FPGA-based FSMs [20], [26], [27], [28].These methods should be applied if the number of arguments NA(f i ) exceeds the number of LUT address inputs (at least for a single function f i ∈ D∪Y ) [20].As a rule, the known design methods can improve only a single characteristic of an FSM circuit (either the LUT count or the latency time or the value of power consumption) [29], [30], [31], [32], [33].There are also methods that attempt to balance two or three characteristics of the circuit [34], [35], [36], [37], [38].The main goal of the method proposed in this article is reducing the chip area occupied by a LUT-based FSM circuit.As it is done in [10], we use the LUT count of a circuit to evaluate the occupied chip area.Now, there are various methods of state assignment improving the LUT counts.These methods reduce the number of arguments in functions f i ∈ D ∪ Y [20].The reduction can be done by lengthening the state codes.The method of one-hot assignment is very popular in FPGA-based design [20].In this case, the number of code bits is equal to the number of states, M. Sometimes, for optimization, it is enough to increase the number of code bits by only 2 or 3, as it is possible when using the algorithm JEDI [39].So, the number of code bits can differ from ⌈log 2 M ⌉ to M. As the examples of CAD tools, we can note such systems as SIS [39], ABC by Berkeley [40], Vivado [41] by AMD Xilinx [17], Quartus [42] by Intel (Altera) [43].

23Currently, there is no single best method which always gives the best results (for any FSM).For example, in [44], there are compared FSM circuits based on maximum binary and one-hot state codes (OHCs).As follows from research results reported in [44], the one-hot codes improve FSM characteristics for rather complex FSMs (when there is M > 16).However, there are other important factors influencing the circuit characteristics.These factors are: 1) the number of FSM inputs and 2) the distribution of FSM inputs between the states.For example, the results shown in [45] prove that using OHCs loose against MBCs if L > 10.

24From this brief analysis, it is clear that the characteristics of LUT-based circuits depend on the total number of inputs and state variables, L +R.Obviously, this value determines which state assignment method should be used for a particular FSM.To be sure which method should be applied, it is necessary to apply both MBCs and OHCs.Due to it, we have investigated the efficiency of these both methods in our research.As a base for comparison with our proposed method, we use the algorithm JEDI [39], the MBC-based method Auto and the OHC-based method One-hot of Vivado [41] by AMD Xilinx [17].Our choice of Vivado is due to its focus on AMD Xilinx FPGA chips.Our choice of JEDI is determined by the fact that JEDI is one of the best MBC-based methods [8].

25To optimize the characteristics of FSM circuits, various methods of structural decomposition (SD) [20] can be used.The main idea of SD-based methods is the elimination of direct dependence between FSM inputs x l ∈ X and state variables T r ∈ T , on the one hand, and outputs y n ∈ Y and IMFs D r ∈ D, on the other hand.Due to it, an FSM circuit is represented as a composition of big blocks having their own systems of input and output variables.Each block implements some system of PBFs.In this article, we propose a new SD-based FSM design method.This method combines features of methods based on extended state codes [15] and composite state codes [16].We use the term ''mixed state assignment'' to define the proposed method.As a result of applying this method, the states are encoded by the so-called mixed state codes.To understand the proposed method, we should analyse its predecessors discussed in articles [15], [16].

26Like both ESC-and CSC-based design methods, the proposed method is based on finding a partition A = {A 1 , . . ., A K 1 } of the set A by classes of compatible states [24], [25].There are M k states in the class A k ∈ A .Including a state a m ∈ A in a class A k ∈ A can change the value of NA k , where NA k is a number of variables on which transitions from the states already included into this class depend.A state a m ∈ A is compatible with states from class A k ∈ A if the inclusion of this state in this class does not lead to the condition

27The value of NA k is a result of summation the numbers L k and R k .The value of L k is equal to the number of FSM inputs on which transitions from the states a m ∈ A k depend.These inputs create a set X k ⊆ X .The value of R k is equal to the minimum number of bits required for encoding of the states Each class corresponds to some sub-table of the initial STT.The number of FSM inputs in this sub-table is equal to L k .This is a feature common to all methods discussed below.But there are different approaches for determining the value of R k .Now we will analyse the features of ESC-and CSC-based FSMs.In the case of ESC-based FSMs, the value of R k is determined as

28In ( 5), the number 1 is added to M k to take into account the relation a m / ∈ A k .To encode states for all classes of A , it is necessary R E variables, where

29To encode states, the variables τ r ∈ τ are used where T = {τ 1 , . . ., τ RE }.To encode states a m ∈ A k , we use a set τ k ⊂ τ .The variables τ r ∈ T k form partial state codes PC(a m ) where a m ∈ A k .There are K 1 fields in the extended state codes CE(a m ).The k-th field corresponds to the set A k ∈ A .For a state a m ∈ A k , only some of variables τ r ∈ T k are non-zero.All other fields include only zeroes.

30The following sets correspond to each class A k ∈ A : X k , Y k , D k , T k .Using a sub-table of DST which represents transitions from states a m ∈ A k , the following systems of PBFs can be obtained:

31In [15], architecture of Mealy FSM based on ESCs is proposed.We denote this FSM by the symbol P E (Fig. 1).

32In P E Mealy FSM, a block LUTerk implements SBFs ( 7)-( 8).These partial functions enter a block LUTerT Y .The functions (8) are transformed into outputs y n ∈ Y .The partial IMFs enter informational inputs of flip-flops from the corresponding CLBs.These flip-flops create the hidden distributed state code register RG.If there is Start = 1, then all flip-flops are zeroed.This corresponds to the code C(a 1 ).A particular edge of the synchronization pulse Clock allows changing the contents of RG.

33The PBFs ( 7)-( 8) enter a block LUTerT Y .This block transforms PBFs into final SBFs

34Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

35The functions ( 9)-( 10) are just disjunctions of corresponding PBFs.

36A positive feature of ESC-based approach is the ability to choose codes of different lengths for states from different classes.This flexibility allows including an arbitrary number of states in any particular class.The only condition for including a state in a class A k ∈ A is the condition

37If condition (11) holds, then each PBF from SBFs ( 7)-( 8) is generated by a single LUT.Obviously, a state a m ∈ A cannot be included in a class A k ∈ A if the inclusion leads to the violation of condition (11).

38This feature is positive, because it keeps the number of classes to a minimum.This allows optimizing the number of LUTs for the first logic level of the circuit.However, the property of possible variability of the length of state codes has a negative side.Namely: the total number of bits of codes determined by ( 6) can significantly exceed the minimum required value represented by (1).This leads to a significant number of flip-flops and partial IMFs in the circuit, which increases the LUT count for the first circuit level.It also increases the requirements for the synchronization tree, which in turn leads to an increase in power consumption [46].

39All noted shortcomings are not inherent in CSC-based FSMs proposed in [16].In this case, all state codes have the same length.This method is also based on creating the partition A = {A 1 , . . ., A K 2 } of the set A by classes of compatible states [25].The states a m ∈ A k are encoded by partial codes PC(a m ).For each class, there is the same number of bits (R S ).

40In [16], we did not show the approach used for finding the value of R S .In [16], we used the following approach.Obviously, the value of R S should not exceed the value S L −1.We changed R S from 1 to S L − 1 and implemented the FSM circuit.Then we chose a value of R S that minimized the total number of LUTs in the FSM circuit.This value was taken as the number of bits used to encode the states of each class.Thus, the number of partial code bits is the same for all classes:

41Obviously, in the case of CSCs, the maximum amount of states for any class A k ∈ A is equal to 2 R S .To encode states, the state variables are used.They create a set S = {S 1 , . . ., S RS }.

42To distinguish the classes, they are encoded by binary codes C(A k ).These codes include R C bits, where

43To encode classes, the class variables are used.They create a set V = {v 1 , . . ., v RC }.

44To create composite state codes CC(a m ), the variables from the set T = V ∪ S are used.Each code CC(a m ) is represented by a concatenation of class code C(A k ) and partial state code PC(a m ) [16].So, the total number of code bits (R CC ) is equal to the result of summation R C and R S :

45As shown in [16], the value of R CC does not exceed the value of R + 2.

46For CSC-based FSMs, each class A k ∈ A determines the sets X k , Y k , D k .These sets determine functions of LUTs creating the first level of FSM circuit.In [16], we propose architecture of P C FSM based on composite state codes.This architecture is shown in Fig. 2.

47In P C FSM, a block LUTerk generates the following PBFs:

48A block LUTerTY transforms these PBFs into final values represented by the following SBFs:

49To create SBFs (17)- (18), it is necessary to multiply each PBF by a conjunction V k of class variables.The conjunctions V k are determined by the class codes C(A k ).

50The block LUTerTY includes a hidden register.This register is controlled by pulses Clock and Start.There are R CC flip-flops inside of LUTerTY .Their outputs correspond to class and state variables from the set T = T ∪ S.

51A positive feature of CSC-based approach is practically minimum amount of used flip-flops forming a register RG.Compared to equivalent ESC-based FSMs, this reduces: 1) the requirements for the synchronization tree and 2) the number of LUTs generating IMFs.The disadvantage of CSC-based approach is the constant number of bits (R S ) used to encode the states within each class A k ∈ A .This leads to an increase in the number of classes K2 in relation to K1.If for some class the difference k = S L − L k − R S is positive, then this class could be supplemented with k states and, possibly, reduce the total number of classes, K 2 .In turn, reducing the number of classes can reduce the number of LUTs and their levels in the resulting FSM circuit.Thus, each of the considered approaches (P E and P C FSMs) has its positive and negative qualities.In this article, we propose an approach which allows combining the positive qualities of the discussed FSMs and reducing their inherent disadvantages.

IV. MAIN IDEA OF THE PROPOSED METHOD

52The proposed method is based on finding a partition A = {A 1 , . . ., A K } of the set A by K classes of compatible states.We denote a resulting FSM by the symbol P EC .The subscript EC emphasizes that the proposed model combines the positive properties of P E and P C FSMs.As a result, the states are encoded by so-called mixed state codes EC(a m ) proposed in this article.Each MSC consists of a class code C(A k ) and partial state code PC(a m ).

53Our approach has the following peculiarities.Unlike partial state codes used in P C FSMs, the partial codes used in P EC FSMs can have different lengths, which is inherent in P E FSMs.Now, the number of variables forming partial codes for states a m ∈ A k is determined as

54As opposed to CSC-based FSMs [16], the length of the partial codes is defined as

55So, the total number of variables in the set S is equal to R S .However, for a particular class A k , only a part of these variables may be used.This part forms a set Sk. Now, each class A k ∈ A is represented by the following systems of PBFs:

56To encode classes, we use variables v r ∈ V .The set V includes R V elements where

57Totally, the proposed mixed codes have R EC bits, where

58The set D k includes partial functions D k 1 , . . ., D k REC , the set Y k includes partial output functions y k 1 , . . ., y k N .The SBFs ( 21)-( 22) are transformed into FSM outputs y n ∈ Y and IMFs D r ∈ D. The transformation is represented by the following SBFs:

59The following relations exist in ( 25)-( 26): r ∈ {1, . . ., R EC } and n ∈ {1, . . ., N }.As follows from ( 25)-( 26), the functions D r ∈ D and y n ∈ Y are multiplexer functions.To generate these functions, it is necessary to use N + R EC multiplexers.The partial functions ( 21)-( 22) are used as data inputs of these multiplexers.Each multiplexer selects a particular PBF using the class variables v r ∈ V .

60So, SBFs ( 21)-( 22) determines a block of partial functions.The SBFs ( 25)-(26) determine a block of final values.This block should include flip-flops keeping mixed state codes.So, the proposed P EC FSM has an architecture shown in Fig. 3.

61In P EC FSMs, the blocks LUTer1-LUTerK form the first circuit level.A block LUTerk generates PBFs ( 21)- (22).The block LUTerTY forms the final values of functions ( 25)-( 26).This is the second circuit level.The block LUTerTY includes the hidden register RG consisting of R CE flip-flops.The RG is controlled by pulses Start and Clock.

62In the common case, the following conditions hold:

63As follows from relations ( 27)- (28), our approach provides the minimum possible amount of classes.This can result in reducing the numbers of LUTs and their levels in the blocks generating functions y n ∈ Y and D r ∈ D. As follows from (29), the proposed approach provides practically the same amount of flip-flops in equivalent CSC-and MSC-based FSMs.So, these FSMs can have practically the same values of power consumption.Also, the registers of P EC FSMs have significantly fewer flip-flops than equivalent ESC-based FSMs.Due to it, we can expect that the proposed FSMs provide better values of power consumption than ESC-based FSMs.The experiments reported in Section VI show that our approach allows improving the basic characteristics of LUT-based circuits of Mealy FSMs.

64In this paper, we propose a synthesis method for P EC Mealy FSMs.The proposed method produces the logic circuits of LUT-based FSMs.We start the synthesis process from an FSM state transition graph.The proposed method includes the following steps:

651) Transforming initial STG into equivalent STT.

662) Constructing the partition A with minimum possible cardinality number.25)-( 26) representing LUTerTY .9) Implementing the LUT-based circuit of P EC Mealy FSM using internal resources of a particular FPGA chip.The second step is executed using the approach proposed in [24].This is a greedy algorithm creating the classes of compatible states with maximum possible cardinality numbers.This results in minimizing the value of K .During this step, the classes are created in a way minimizing the number of shared outputs.This leads to reducing the LUT count in the circuit generating SBF (26).Any multiplexer from the second level of an FSM circuit is implemented by a single LUT if the following condition takes place:

67If condition (30) is violated, then the multiplexers could be implemented as single-level circuits.This is possible, if the number of partial functions for a given function does not exceed the value S L − R V .

V. EXAMPLE OF SYNTHESIS

68We use the symbol P i (Fj) to show that the model of P i Mealy FSM (i ∈ {E, C, EC}) is used to implement the circuit of an FSM Fj.In this Section, we show how to design the circuit of Mealy FSM P EC (F1).The circuit should be implemented using 5-LUTs (LUTs with S L = 5).The synthesis process starts from an STG shown in Fig. 4.

69Step 1: To transform an STG into the equivalent STT, it is necessary to transform each arc of STG into a line of STT [5].There are the following columns in the STT [5]: a m (a current FSM state); a S (a next FSM state); X h (the input signal written above the h-th arc of STG); Y h (the collection of outputs y n ∈ Y written above the h-th arc of STG); h (the number of transition where h ∈ {1, . . ., H }). The input signals are conjunctions of some FSM inputs x l ∈ X (or their compliments).For arc number h, the vertex from which the arc emerges corresponds to the current state, and the vertex that the arc enters corresponds to the next state (state of transition).

70There are H = 33 arcs in the STG (Fig. 4).So, it should be 33 lines in the equivalent STT.The following can be found from analysis of Fig. 4: 1) FSM transitions depend on L = 7 variables x l ∈ X ; 2) during these transitions, N = 11 outputs y n ∈ Y are generated; 3) there are M = 14 nodes in STG (Fig. 4).This determines the sets X = {x 1 , . . ., x 7 }, Y = {y 1 , . . ., y 11 } and A = {a 1 , . . ., a 14 }.

71The transition from STG to STT is executed in the trivial way [5].In the discussed case, the STT is represented by Table 1.

72Table 1 includes H = 33 lines.We hope there is a transparent connection between the STG (Fig. 4) and STT (Table 1).

73Step 2: Using the greedy approach [24], Table 1 and 5-LUTs, we have obtain the partition A = {A 1 , A 2 , A 3 }.So, there is K = 3.There are the following classes A k ∈ A : A 1 = {a 3 , a 7 , a 10 , a 12 , a 13 , a 14 }, A 2 = {a 1 , a 4 , a 5 , a 8 }, and A 3 = {a 2 , a 6 , a 9 , a 11 }.So, there is M 1 = 6 and M 2 = M 3 = 4.These classes determines the sets

74= {y 1 , y 2 , y 6 , y 8 , y 9 , y 11 }, X 3 = {x 2 , x 6 , x 7 } and Y 3 = {y 1 , y 3 , y 5 , y 7 , y 11 }.This gives

75Step 3: To execute this step, it is necessary to find the values of R V and R S .This is done using the outcome of the previous step.Using (19) gives R 1 = 3 and R 2 = R 3 = 2. Using (20) gives R S = 3.So, the partial codes are created using the state variables s r ∈ S = {s 1 , s 2 , s 3 }.The states a m ∈ A 1 are encoded using all elements of the set S. Other states are encoded using only variables s 2 , s 3 ∈ S. Using (23) gives

76Using (24) gives the value R EC = 5.The set T includes 5 elements: T = {v 1 , v 2 , s 1 , s 2 , s 3 }.These variables are represented by the outputs of flip-flops distributed inside LUTerTY .

77Step 4: To encode states, we use the approach proposed in the article [25].It allows minimizing the number of partial IMFs.One of the possible outcomes is shown in Fig. 5.

It includes three Karnaugh maps with partial codes for each class A k ∈ A . To encode classes A k

78∈ A , we should use the code with all zeros to encode the class which includes the initial state a 1 ∈ A. In the discussed case, this is the class A 2 .So, we choose the following class codes for our example: C(A 1 ) = 01, C(A 2 ) = 00 and C(A 3 ) = 10.

79Using class and partial state codes gives the mixed state codes EC(a m ).For example, the following codes can be obtained: EC(a 1 ) = 0000 (it follows from Fig. 5b and C(A 2 ) = 00), EC(a 2 ) = 1010 (it follows from Fig. 5c and C(A 3 ) = 10), EC(a 3 ) = 01100 (it follows from Fig. 5a and C(A 1 ) = 01) and so on.The tables of LUTer1-LUTer3 are based on the partial and mixed state codes.

80Step Step 6: The partial functions are represented by SOPs ( 21)- (22).All these SOPs are created in the same way.Bellow, we show partial SOPs for functions D 1 and y 1 .

81Using Table 2, we can derive the following SOPs:

82Using Table 3, we can derive the following SOPs:

83Using Table 4, we can derive the following SOPs:

84We hope there is a transparent connection between Tables 2-4, on the one hand, and formulae ( 31)- (33), on the other hand.There is y 1 1 = 0, because there is no symbol y 1 in Table 2.

85Step 7: The table of LUTerTY is constructed on the base of tables of partial functions (in the discussed example we should analyze Table 2-Table 4).This table includes a column 42376 VOLUME 12, 2024 Authorized licensed use limited to the terms of the applicable license agreement with IEEE.Restrictions apply.

86are 51 LUTs generating PBFs.Also, it is necessary 17 LUTs in the circuit of LUTerT Y .Because there is K 1 < S L = 5, the circuit of LUTerT Y has a single level.To summarize: the circuit contains 68 LUTs and has two logic levels.

87In the case of P C (F1), using the greedy algorithm from [24] gives the partition of the set A with K 2 = 4 classes.These classes are the following: A 1 = {a 7 , a 10 , a 12 , a 13 }, A 2 = {a 1 , a 4 , a 5 , a 8 }, A 3 = {a 2 , a 6 , a 9 , a 11 } and A 4 = {a 3 , a 14 }.Using (5) gives the following lengths of partial state codes: R 1 = R 2 = R 3 = 2, R 4 = 3.Using (12) gives R S = 2. Using (13) gives R C = 2. So, it is necessary 4 flipflops if composite state codes are used.So, the number of required flip-flops for P C (F1) is practically the same as it is for P EC (F1).We have found that it is necessary: 1) 9 LUTs in the circuit of LUTer1; 2) 10 LUTs in the circuit of LUTer2; 3) 9 LUTs in the circuit of LUTer3; 4) 7 LUTs in the circuit of LUTer4.So, there are 35 LUTs generating PBFs.Five outputs y n ∈ Y are generated by LUTs of LUTer1-LUTer4.So, only 6 LUTs are necessary to implement the rest of outputs.These LUTs are included into LUTerTY .Each function f i ∈ D ∪ Y can be represented as a disjunction of four partial functions.Thus, the value of R V + K 2 = 6 exceeds the value S L = 5.As a result, it is necessary 8 LUTs to generate IMFs (17).Moreover, this part of LUTerTY has two logic levels.So, is necessary 14 LUTs in the circuit of LUTerTY .To summarize: the circuit of P C (F1) FSM contains 49 LUTs and has three levels of them.

88For the discussed example, the comparison of three different approaches of state assignment allows making the following conclusion.The proposed method allows obtaining the FSM circuit with a minimum number of LUTs (39 LUTs).Our approach allows saving 43% of LUTs compared to P E (F1) FSMs and 21% of LUTs compared to P C (F1) FSMs.The number of flip-flops for P EC (F1) is only one more than the minimum possible number, which is ensured by using the composite state codes.Our approach allows obtaining the fastest solution because: 1) ESC-based FSM has more interconnections and 2) CSC-based FSM has three levels of LUTs.

89To get the electrical circuit of Mealy FSM P EC (F1), it is necessary to execute the step of technology mapping [26], [47], [48].This is connected with using the sophisticated CAD tools.In the case of circuits implemented with internal resources of Virtex-7, the industrial package Vivado [41] should be used.Unfortunately, Vivado can design circuits of digital devices using basic LUTs with S L = 6.So, using 5-LUTs, we cannot design and analyse the circuit of Mealy FSM P EC (F1) automatically.In the next Section, the results of experiments are shown.

VI. EXPERIMENTAL RESULTS

90We conducted a lot of experiments to compare the basic characteristics of LUT-based P EC Mealy FSMs with characteristics of FSM circuits based on some other models.The benchmark FSMs from the library [49] are used for the experiments.De facto, the library includes 48 benchmarks TABLE 6. Characteristics of benchmark Mealy FSMs [49].

91represented by their state transition tables.The tables are represented by KISS2-based files.The basic characteristics of benchmarks (the values of parameters M, L, and N) have a wide range.Due to it, these benchmarks are used by a lot of researchers as a base for comparison different FSM design methods.The characteristics of benchmark FSMs are represented by Table 6.

92We execute the experiments using a personal computer with the following characteristics: CPU: Intel Core i7 6700K 4.2@4.4GHz,Memory: 16GB RAM 2400MHz CL15.Also, we use the Virtex-7 VC709 Evaluation Platform (xc7vx690tffg1761-2) [50] and CAD tool Vivado v2019.1 (64-bit) [41].There is S L = 6 for FPGAs of Virtex-7.We use reports of Vivado to get the results of experiments.To enter Vivado, we use the CAD tool K2F [20].This tool allows creating VHDL codes on the base of files represented in KISS2 format.

93In our experiments, we have checked three basic characteristics of FSM circuits.They are the LUT counts (it allows to estimate the chip areas occupied by FSM circuits), performance (the maximum operating frequencies), and areatime products.To estimate the area, we use the LUT counts taken from reports of Vivado.The performance is represented by the maximum operating frequency which is achievable for each benchmark FSM.The area-time products are calculated as results of multiplication of the LUT counts by the maximum latency times obtained directly from Vivado reports.In our experiments, we use five FSM models.These models are P FSMs based on: 1) maximum binary state codes (JEDI); 2) one-hot state codes (One-hot by Vivado); 3) extended state codes (P E -based FSMs); 4) composite state codes (P C -based FSMs); 5) mixed state codes (P EC -based FSMs proposed in this article).

94As in our previous research [15], [16], the benchmarks are divided by five types.To do it, we use the relation between the values of R + L and S L .For basic LUTs of Virtex-7, there is S L = 6.So, we use S L = 6 to determine the types of benchmarks.The FSMs are trivial (type 0), if the result of summation of R and L does not exceed 6.The FSMs are simple (type 1), if the result of summation does not exceed 12.The FSMs are average (type 2), if the result of summation does not exceed 18.The FSMs are big (type 3), if the result of summation does not exceed 24.Otherwise, the benchmarks FSMs are very big (type 4).For very big FSMs, the following relation takes place: R + L > 24.As shown in the paper [16], there is a direct dependence between the degree of improving the basic characteristics of FSM circuits with help of SD-based methods and the type number.

95In the discussed case, there is the following distribution of benchmarks.The FSMs represented by the benchmarks bbtas, dk17, dk27, dk512, ex3, ex5, lion, lion9, mc, modulo12, and shiftreg have the type 0. The FSMs represented by the benchmarks bbara, bbsse, beecount, cse, dk14, dk15, dk16, donfile, ex2, ex4, ex6, ex7, keyb, mark1, opus, s27, s386, s840, and sse have the type 1.The FSMs represented by the benchmarks ex1, kirkman, planet, planet1, pma, s1, s1488, s1494, s1a, s208, styr, and tma have type 2. There is a single FSM sand which has the type 3. Four remaining FSMs (s420, s510, s820, and s832) have the type 4.

96The results of experiments are shown in Table 7-Table 11.Three tables are organized in the same manner (Table 7, Table 9 and Table 11).For these tables, the columns are marked by the names of investigated methods (JEDI, Onehot, P C , P EC ).The names of benchmarks are written in the table rows.In these tables, we show results of experiments for type 0 benchmarks first, then for type 1, and so on.Parts of tables with the same type of benchmarks can be considered as sub-tables.Within each sub-table, benchmarks are shown in the alphabetical order.In the rows ''Total'', we place results of summation of values for corresponding columns.The row ''Percentage'' includes the percentage of summarized characteristics of FSM circuits produced by other methods respectively to P EC FSMs.We use the model of P Mealy FSM as a starting point for methods JEDI and One-hot.Two tables (Table 8 and Table 9) include only summarized values of LUT counts and maximum operation frequencies for investigated methods.

97Now, we will analyse the experimental results taken from the reports produced by Vivado (or calculated by us using these reports).The following information can be found in these tables: 1) the LUT counts for all benchmarks (Table 7); 2) the LUT counts for various types of benchmarks (Table 8); 3) the maximum operating frequencies for all benchmarks (Table 9); 4) the maximum operating frequencies for various types of benchmarks (Table 10); 5) the area-time products for all benchmarks (Table 11).The data for two last tables are calculated using the values of cycle times obtained from Vivado reports.

98As follows from Table 7, the P EC -based FSMs require fewer LUTs than it is for other investigated methods.Our approach produces circuits having 27.15% less 6-LUTs than it is for equivalent JEDI-based FSMs; 79.57% less 6-LUTs than it is for equivalent One-hot-based FSMs; 6.21% less 6-LUTs than it is for equivalent CSC-based FSMs; 22.21% less 6-LUTs than it is for equivalent ESC-based FSMs.While developing our method, we hoped that P EC -based FSMs will require fewer LUTs in comparison with both equivalent P E -and P C -based FSMs.As follows from the last column of Table 7, our assumptions turn out to be correct.

99To compare the LUT counts for different types of benchmarks, we have calculated these values for type 0, type 1 and types 2-4.This information is represented by Table 8.

100As follows from Table 8, for the FSMs of type 0, practically all methods produce FSM circuits with the same LUT counts.This is explained by the fact that for these benchmarks the following condition takes place:

101If (35) holds, then all FSM outputs and IMFs are generated by single-LUT circuits.Obviously, there is no need in optimization if the condition (35) holds.Due to it, the JEDI-based optimization cannot produce circuits better than they are produced by other investigated methods.The negative outcome of one-hot assignment (loss in 39.39%) can be explained by the fact that there is R = M for OHC-based FSMs Due to it, OHC-based FSMs require more LUTs for generating IMFs than it is for other models.

102Starting from simple FSMs, P EC -based FSMs require fewer LUTs than it is for other investigated methods.Our approach produces circuits having 12.33% less 6-LUTs than it is for equivalent JEDI-based FSMs; 75% less 6-LUTs than it is for equivalent One-hot-based FSMs; 1% less 6-LUTs than it is for equivalent CSC-based FSMs; 14% less 6-LUTs than it is for equivalent ESC-based FSMs.We explain this gain by the fact that slightly fewer partial functions are formed for the proposed method than for equivalent CSC-based FSMs.The advantage with respect to ESC-based FSMs is explained by the fact that the latter require significantly more variables to generate partial state codes.The same facts also explain the growing advantage of our method connected with the growth of the complexity of the FSMs.As a result, our approach produces circuits having 34.86% less 6-LUTs than it is for equivalent JEDIbased FSMs; 84.55% less 6-LUTs than it is for equivalent One-hot-based FSMs; 8.65% less 6-LUTs than it is for equivalent CSC-based FSMs; 27.07%less 6-LUTs than it is for equivalent ESC-based FSMs.As follows from Table 8, the gain from the use of mixed state codes increases as the complexity of FSM grows (an increase in the number of states, inputs and outputs).

103As follows from Table 9, our approach produces faster LUT-based FSM circuits relative to other investigated methods.The average win is from 2.36% (compared with P C -based FSMs) to 22.39% relative to OHC-based FSMs.This fact is explained in the same way as it is for the gain in LUT counts.To compare frequencies for different types of FSMs, we created Table 10.

104The following conclusions can be made on the base of Table 10.For trivial FSMs (type 0), the one-hot state assignment produces circuits which are slower than circuits produced using other state assignment methods.This is explained by the fact that, due to the violation of condition (35), these circuits have more interconnections compared to circuits generated by other methods.It is known [11] that interconnections significantly affect the performance of LUTbased circuits.All other models have the same performance because in fact they degenerate into P FSMs with maximum binary state codes.

105Starting from simple FSMs (type 1), the advantage of the proposed method begins to appear.For simple FSMs, our method provides gain relative to JEDI-based FSMs (22.46%),One-hot-based FSMs (27.69%), and P E -based FSMs (3.88%).It is interesting that there is the equal performance for P EC and P C FSMs.Apparently, these two models have the same state code length.As a consequence, they have the same number of logic levels (and, therefore, the same values of maximum operating frequencies).For other types of FSMs (2, 3 and 4), our method allows producing the fastest circuits.There is the following gain in FSM performance: 18.27.6%compared with JEDI-based FSMs; 28.33% compared with OHC-based FSMs; 7.41% compared with CSC-based FSMs; 12.87% compared with ESC-based FSMs.

106So, the proposed approach allows increasing performance in comparison with other methods under study.Moreover, the gain increases as the complexity of the FSMs increases.

107To better visualize the results of experiments, we presented them in the form of diagrams (bar charts).These charts show the total number of LUTs (Fig. 7) and the total maximum operating frequency (Fig. 8).

108To construct the diagram (Fig. 7), we used data from (Fig. 8), we used data from Table 9.The table includes the sums of maximum operating frequencies for each FSM model within each group of benchmarks (types 0-4).We hope that these diagrams provide a better understanding of the specifics of the proposed state assignment method.

109The main goal of the proposed method was to reduce the number of LUTs (the chip area occupied by FSM circuit) compared to this value for equivalent P C and P E FSMs.The results of experiments show that this goal has been achieved.In addition, starting from average FSMs (type 2), our approach simultaneously allows increasing the maximum operating frequency.Due to it, our approach produces FSM circuits with the best values of area-time products.The corresponding values are shown in Table 11.

110As follows from Table 11, our approach provides the following average gain: 1)59.08% regarding JEDI-based FSMs; 2)154.16%regarding OHC-based FSMs; 3) 13.27% regarding CSC-based FSMs and 4) 32.05% regarding ESC-based FSMs.We did not show it, but the gain obtained by our approach increases with the increasing the FSM type.It is known [10], that the smaller the value of the product of the number of LUTs in circuit 1 and its cycle time compared to this product for circuit 2, the circuit 1 either requires fewer LUTs or has a higher performance than circuit 2. Both of these phenomena are inherent in our proposed method.

111So, the results of our experiments show that the proposed approach can be used instead of other models starting from simple FSMs (type 1).Our approach allows improving LUT counts, maximum operating frequency, and area-time products compared with other investigated design methods.We think that our approach has rather good potential and can be used in CAD systems targeting FPGA-based Mealy FSMs.

VII. CONCLUSION

112Very often, modern digital systems are implemented using FPGA chips.Current FPGAs are very complicated devices having up to 7 billion transistors [17], [43].Due to it, a single chip can be used for implementing rather complex circuits of various digital systems.As the complexity of these systems increases, the contradiction between a significant number of system inputs and a very small number of LUT inputs increases, too.Modern LUTs have around 6 inputs.Obviously, this value is rather small compared with numbers of literals in SBFs representing FSM circuits.This leads to the need for using different methods of functional decomposition in LUT-based FSM design.It is known [20] that the functional decomposition leads to multi-level LUT-based FSM circuits having very complicated systems of spaghettitype interconnections.

113To improve the characteristics of LUT-based FSM circuits compared with their counterparts based on functional decomposition, various methods of structural decomposition can be applied [20].As follows from our previous research [15], [16], the characteristics of LUT-based Mealy FSM circuits can be improved using either extended or composite state codes.These approaches have both positive and negative sides.

114In our current paper, we propose a new method of state assignment, namely, the assignment based on mixed state codes.This approach allows combining positive features of the methods based on either extended or composite state codes.Also, the proposed method is free from the disadvantages inherent in these two methods.As it is for CSCs, mixed state code is represented by a concatenation of a class code and the code of a state as an element of this class.However, unlike CSCs, the mixed state codes can have different lengths of partial state codes (this is a positive feature borrowed from ESCs).The proposed approach preserves the flexibility inherent in ESCs and the almost minimum number of variables inherent in CSCs.This approach leads to two-level FSM circuits which require fewer LUTs than their counterparts based on other state assignment methods.Moreover, the MSC-based FSMs have slightly better performance as their ESC-and CSC-based counterparts.

115set of outputs generated during the transitions from states a m ∈ A k ) and D k ⊆ D (a set of IMFs generated during the transitions from states a m ∈ A k ).

FIGURE 1 .

116FIGURE 1. Architecture of P E Mealy FSM.

FIGURE 2 .

117FIGURE 2. Architecture of LUT-based P C FSM.

FIGURE 3 .

118FIGURE 3. Architecture of P EC FSM.

FIGURE 5 .

119FIGURE 5. Outcome of state assignment for FSM P CE (F 1).

FIGURE 7 .

120FIGURE 7. Total numbers of LUTs for each type of benchmarks.

FIGURE 8 .

121FIGURE 8. Total values of maximum operating frequencies for each type of benchmarks.

TABLE 1 .

122State transition table of FSM F1.

5 :

123Each block LUTerk is represented by its direct structure table.A DST includes all columns from the equivalent STT and three additional columns.The additional columns contain: partial state codes of current column PC(a m )); mixed of next states (the column EC(a s )); partial IMFs D k r ∈ D k required for loading the value of EC(a s ) into RG (the column D h ).The LUTer1 is represented by Table 2.The table is based on 11 lines of

TABLE 2 .

124Table of LUTer 1.

TABLE 3 .

125Table of LUTer 2.

Table 1 (

126lines 6, 16, 17, 23-25, 29-32).The LUTer2 is represented by Table3.The table is based on 11 lines of Table 1 (lines 1, 2, 7-12, 18-20).The LUTer3 is represented by

Table 4 .

127The table is based on 11 lines of Table 1 (lines 3-5, 13-15, 21-22, 26-28).

TABLE 7 .

128Experimental results (LUT counts).

TABLE 8 .

129Results for benchmarks of different types (LUT count).

TABLE 9 .

130Experimental results (the maximum operating frequency for all benchmarks, MHz).

Table 7 .

131The table includes the sums of LUTs required for each FSM model within each group of benchmarks (benchmarks of the same type).To construct the diagram

TABLE 10 .

132Results for benchmarks of different types (maximum operating frequency, MHz).

TABLE 11 .

133Experimental results (the area-time products for all benchmarks).

참고문헌 38건

  1. Low-Power FSMs in FPGA: Encoding Alternatives Lecture notes in computer science · Springer Science+Business Media · 2002 10.1007/3-540-45716-x_36
  2. 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
  3. Introduction to Embedded Systems - A Cyber-Physical Systems Approach 2013
  4. Area Conscious State Assignment with Flip-Flop and Output Polarity Selection for Finite State Machine Synthesis--A Genetic Algorithm Approach The Computer Journal · Oxford University Press · 2005 10.1093/comjnl/bxh099
  5. Optimal State Assignment for Finite State Machines IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 1985 10.1109/tcad.1985.1270123
  6. Improvements to Technology Mapping for LUT-Based FPGAs IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2007 10.1109/tcad.2006.887925
  7. Synthesis and optimization of digital circuits Choice Reviews Online · Association of College and Research Libraries · 1994 10.5860/choice.32-0950
  8. A new state assignment technique for testing and low power 2004 10.1145/996566.996707
  9. GALLOP: genetic algorithm based low power FSM synthesis by simultaneous partitioning and state assignment 2003 10.1109/icvd.2003.1183189
  10. A probabilistic pairwise swap search state assignment algorithm for sequential circuit optimization Integration · Elsevier BV · 2016 10.1016/j.vlsi.2016.08.001
  11. 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
  12. Finite state machine‐based fault tolerance technique with enhanced area and power of synthesised sequential circuits IET Computers & Digital Techniques · Institution of Engineering and Technology · 2017 10.1049/iet-cdt.2016.0085
  13. High-Performance Architecture for Binary-Tree-Based Finite State Machines IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems · Institute of Electrical and Electronics Engineers · 2017 10.1109/tcad.2017.2731678
  14. Improving FPGA Performance with a S44 LUT Structure 2018 10.1145/3174243.3174272
  15. MPGA: an evolutionary state assignment for dynamic and leakage power reduction in FSM synthesis IET Computers & Digital Techniques · Institution of Engineering and Technology · 2018 10.1049/iet-cdt.2016.0199
  16. Hardware Reduction for Lut–Based Mealy FSMs International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2018 10.2478/amcs-2018-0046
  17. 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
  18. 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
  19. A State Encoding Methodology for Side-Channel Security vs. Power Trade-off Exploration 2019 10.1109/vlsid.2019.00031
  20. Field Programmable Gate Array Applications—A Scientometric Review Computation · Multidisciplinary Digital Publishing Institute · 2019 10.3390/computation7040063
  21. Area-Time Efficient Hardware Implementation of Modular Multiplication for Elliptic Curve Cryptography IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2988379
  22. A Probabilistic Tabu Search State Assignment Algorithm for Area and Power Optimization of Sequential Circuits Arabian Journal for Science and Engineering · Springer Science+Business Media · 2020 10.1007/s13369-020-04697-y
  23. Technology Mapping for LUT-Based FPGA Lecture notes in electrical engineering · Springer Science+Business Media · 2020 10.1007/978-3-030-60488-2
  24. Improving characteristics of LUT-based Mealy FSMs International Journal of Applied Mathematics and Computer Science · De Gruyter Open · 2020 10.34768/amcs-2020-0055
  25. Improving Characteristics of LUT-Based Mealy FSMs with Twofold State Assignment Electronics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/electronics10080901
  26. Structural Decomposition in FSM Design: Roots, Evolution, Current State—A Review Electronics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/electronics10101174
  27. Mapping Arbitrary Logic Functions onto Carry Chains in FPGAs Electronics · Multidisciplinary Digital Publishing Institute · 2021 10.3390/electronics11010027
  28. FPGA Architecture: Survey and Challenges Foundations and Trends® in Electronic Design Automation · Now Publishers · 2008 10.1561/1000000005
  29. Improving Characteristics of LUT-Based Sequential Blocks for Cyber-Physical Systems Energies · Multidisciplinary Digital Publishing Institute · 2022 10.3390/en15072636
  30. Embedded System Design Springer eBooks · Springer Nature · 2009 10.1007/978-1-4419-0504-8
  31. Embedded System Design Springer eBooks · Springer Nature · 2006 10.1007/0-387-30087-2
  32. Functional Decomposition with Applications to FPGA Synthesis Springer eBooks · Springer Nature · 2001 10.1007/978-1-4757-3393-8
  33. FPGA Structure Springer eBooks · Springer Nature · 2018 10.1007/978-981-13-0824-6_3
  34. Mapping Outputs and States Encoding Bits to Outputs Using Multiplexers in Finite State Machine Implementations Electronics · Multidisciplinary Digital Publishing Institute · 2023 10.3390/electronics12030502
  35. Decomposition Approaches for Power Reduction IEEE Access · Institute of Electrical and Electronics Engineers · 2023 10.1109/access.2023.3260970
  36. Technology mapping oriented to adaptive logic modules Bulletin of the Polish Academy of Sciences Technical Sciences · De Gruyter Open · 2019 10.24425/bpasts.2019.130880
  37. Digital Systems Design with FPGAs and CPLDs Elsevier eBooks · Elsevier BV · 2008 10.1016/b978-0-7506-8397-5.x0001-3
  38. Applied Cyber-Physical Systems Springer eBooks · Springer Nature · 2013 10.1007/978-1-4614-7336-7