Professional Documents
Culture Documents
Verilog-HDL Based Implementation of A Fuzzy Logic Controller For Embedded Systems
Verilog-HDL Based Implementation of A Fuzzy Logic Controller For Embedded Systems
Verilog-HDL Based Implementation of A Fuzzy Logic Controller For Embedded Systems
Systems
Abstract - Fuzzy logic has the advantage of modelling processor which is embedded in Xilinx ISE design suite
complex, non-linear problems linguistically rather than 14.2). Fuzzy controller is realized using ISE design suite
mathematically with satisfying increasing demand of higher after complete code compilation and cross checking
performance and sophistication of embedded systems. This results. It works as a co-processor with Microblaze soft
paper describes design of a fuzzy logic controller using core on Kintex 7 KC705 board. In practice, outputs of
Verilog-HDL language with different approaches showing
sensors or external devices are converted into digital form
which elements of language should be used for most
optimized synthesis. Different algorithms for defuzzification (binary representation) for further calculation. The
process are also implemented and synthesized to check which complete design process calculations are performed in
method is most efficient and uses less hardware with higher hexadecimal representation which are further converted
computational speed. The development of a controller is into analog form [3]. This paper is organized into sections
carried out using ISE Design Suite 14.2 of Xilinx. on fuzzification, fuzzy inference module, rule inference
module and defuzzification with the Verilog-HDL
Keywords - Defuzzification, Fuzzification, ISE Design constructs.
Suite 14.2, Rule Evaluation, Verilog-HDL (Hardware
Description Language),
II. FUZZIFICATION
I. INTRODUCTION Fig. 1 shows four input signals of fuzzy controller.
Among them distance_input[7:0] and speed_input[7:0]
As compared to general purpose embedded are 8-bits distance (current distance of the vehicle from
controllers, application specific controllers have the object ahead of it) and speed (current speed of the
advantages of higher computational speed, less power, vehicle) inputs respectively. Fuzzification is the process of
less silicon area. While Verilog-HDL and VHDL assigning specific values to input variables based on
languages are widely used for hardware design, Verilog- expertise, which is also known as membership
HDL supports few keyword elements which are assignment. For example, distance_input[7:0] can take
synthesizable. Fuzzy logic has the capability of inferring any value from 00H to FFH (H represents Hex number).
under the situations associated with uncertainty and So distance is divided into different intervals and
imprecision by assigning membership function values to appropriate linguistic labels are given to them i.e., from
different linguistic variables [1, 2]. In the past, fuzzy 0m to 240m is divided equally into hex range 00H to FFH.
logic controllers have been deployed as an add-on Fig. 2 shows assignment of linguistic terms to distance
hardware module on PCB based hard core processor
and/or purely software based solutions. The embedded
systems with dedicated IP soft core processors like
Microblaze do not support Instruction Set Architecture
(ISA) for Fuzzy Logic applications and hence a need for
IP Core realization is on rise. This paper brings out
various issues using Verilog-HDL based design
implementation for an automatic brake control system.
Different types of language elements and various
defuzzification methods are experimented in ISE design
suite 14.2 to evaluate the method that is best suited for
optimum hardware and high speed performance.
Simulations result are also shown with the help of ISim
which is also a part of Xilinx ISE design suite 14.2.
Fig. 1 shows the block diagram of an automatic brake
control mechanism taken as an example connected with
Microblaze soft core processor (Microblaze is an soft core Fig. 1. Fuzzy logic controller block of Automatic brake system.