Next Article in Journal
Editorial for the Special Issue on Emerging and Disruptive Next-Generation Technologies for POC: Sensors, Chemistry and Microfluidics for Diagnostics
Next Article in Special Issue
Cost-Efficient Approaches for Fulfillment of Functional Coverage during Verification of Digital Designs
Previous Article in Journal
Acknowledgment to Reviewers of Micromachines in 2021
Previous Article in Special Issue
Open-Source FPGA Coprocessor for the Doppler Emulation of Moving Fluids
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design of FPGA-Based SHE and SPWM Digital Switching Controllers for 21-Level Cascaded H-Bridge Multilevel Inverter Model

1
School of Electrical Engineering, College of Engineering, Universiti Teknologi MARA, Cawangan Pulau Pinang, Kampus Permatang Pauh, Permatang Pauh 13500, Malaysia
2
Faculty of Engineering and Computing, First City University College, No.1, Persiaran Bukit Utama, Bandar Utama, Petaling Jaya 47800, Malaysia
3
LogikHaus Sdn. Bhd. (1314363-U), c/o Forward School, 2 Lebuh Achech, Georgetown 10450, Malaysia
*
Author to whom correspondence should be addressed.
Micromachines 2022, 13(2), 179; https://doi.org/10.3390/mi13020179
Submission received: 14 December 2021 / Revised: 16 January 2022 / Accepted: 21 January 2022 / Published: 25 January 2022
(This article belongs to the Special Issue Smart Embedded Processors)

Abstract

:
Multilevel inverters are a type of power electronic circuit that converts direct current (DC) to alternating current (AC) for use in high-voltage and high-power applications. Many recent studies on multilevel inverters have used field-programmable gate arrays (FPGAs) as a switching controller device to overcome the limitations of microcontrollers or DSPs, such as limited sampling rate, low execution speed, and a limited number of IO pins. However, the design techniques of most existing FPGA-based switching controllers require large amounts of memory (RAM) for storage of sampled data points as well as complex controller architectures to generate the output gating pulses. Therefore, in this paper, we propose two types of FPGA-based digital switching controllers, namely selective harmonic elimination (SHE) and sinusoidal pulse width modulation (SPWM), for a 21-level multilevel inverter. Both switching controllers were designed with minimal hardware complexity and logic utilisation. The designed SHE switching controller mainly consists of a four-bit finite state machine (FSM) and a 13-bit counter, while the SPWM switching controller employs a simple iterative CORDIC algorithm with a small amount of data storage requirement, a six-bit up-down counter, and a few adders. Initially, both digital switching controllers (SHE and SPWM) were designed using the hardware description language (HDL) in Verilog codes and functionally verified using the developed testbenches. The designed digital switching controllers were then synthesised and downloaded to the Intel FPGA (DE2-115) board for real-time verification purposes. For system-level verification, both switching controllers were tested on five cascaded H-Bridge circuits for a 21-level multilevel inverter model using the HDL co-simulation method in MATLAB Simulink. From the synthesised logic gates, it was found that the designed SHE and SPWM switching controllers require only 186 and 369 logic elements (LEs), respectively, which is less than 1% of the total LEs in an FPGA (Cyclone IV E) chip. The execution speed of the SHE switching controller implemented in the FPGA (Cyclone IV E) chip was found to be a maximum of 99.97% faster when compared with the microcontroller (PIC16F877A). The THD percentage of the 21-level SHE digital switching controller (3.91%) was found to be 37% less than that of the SPWM digital switching controller (6.17%). In conclusion, the proposed simplified design architectures of SHE and SPWM digital switching controllers have been proven to not only require minimal logic resources, achieve high processing speeds, and function correctly when tested on a real-time FPGA board, but also generate the desired 21-level stepped sine-wave output voltage (±360 VPP) at a frequency of 50 Hz with low THD percentages when tested on a 21-level cascaded H-Bridge multilevel inverter model.

1. Introduction

Over the last decade, multilevel inverters (MLIs) have garnered significant research attention in high-voltage and high-power applications, such as high-power motor drives, power conditioning, renewable energy conversion, and power distribution, due to their simple structure, modularity, and transformer-less circuit [1,2,3,4]. The primary role of a multilevel inverter is to convert direct current (DC) input to alternating current (AC) output by generating a staircase of AC output waveforms with a low value of high-frequency distortion [4,5]. To compensate for the low supply voltage, the semiconductor power switches are coupled to several low-DC sources, which are then configured into multilevel structures to produce a high-power output. These power switches accomplish power conversion with the assistance of a digital switching controller by synthesising multiple DC voltage sources into a high-voltage stepped output waveform [3,6,7]. The advantages of a multilevel inverter over a two-level inverter include improved output-voltage quality, low switching losses, high-voltage capability, reduced total harmonic distortion, and reduced dv/dt stresses on semiconductor switches, all of which indirectly reduce electromagnetic compatibility (EMC) issues [3,4,6,7,8].
Several topological architectures of multilevel inverters have been adopted to meet essential requirements, such as low switching-device count, ability to withstand high-voltage signals, and a lower switching frequency for the switching devices [3,4,6]. Diode-clamped [9,10], flying-capacitor [11], and cascaded H-bridge (CHB) [3,12,13,14] are the three major multilevel inverter topologies that have received a lot of research interest. Among the three topologies, the CHB multilevel inverter is the most popular due to its simplicity, reliability, modularity, low component count, and high fault tolerance [2,3,7,12,13,14,15]. The modular structure of the H-bridge inverter enables cascading and stacking of inverters for high-power and high-voltage applications. Furthermore, despite failure caused by other cells, the cascaded H-bridge inverter can continue to operate at low power levels [3,12,13]. The disadvantage of the CHB inverter is that it requires a separate DC supply for each module. Thus, to maximise the number of stepped-voltage output levels from a single DC source, researchers have developed a new H-bridge structure by adding a bidirectional switch to the conventional single-phase H-bridge cell [3,12,14,15].
The switching strategies (modulation techniques) used in a power electronic converter are critical to the performance of the converter because they determine the efficiency of the inverter by reducing switching losses and minimising the harmonic content of the output voltage and current. The most difficult aspect of the power-switching strategy is reducing or eliminating the lower-order harmonic using a simple modulation technique [3,4,12,13,14,16]. The harmonic content of the AC-stepped output waveform must be minimised to avoid grid distortion and to achieve maximum energy efficiency [3]. The modulation techniques for multilevel inverters can be divided into two main categories, which include high-frequency and low-frequency (fundamental frequency) switching strategies. The power switches are switched at a low fundamental frequency in the fundamental switching strategy. In contrast, for high-frequency switching, the power switches are switched at a higher frequency range, which consequently pushes the harmonics into a higher frequency range, where they are filtered out by a filter circuit. The two modulation techniques most commonly used by researchers are sinusoidal pulse width modulation (SPWM) [1,2,10,17,18,19,20,21] and selective harmonic elimination (SHE) [3,5,12,13,14,15]. The SHE switching technique falls under the low-switching-frequency category, while the SPWM switching technique falls under the high-switching-frequency category.
In the SHE technique, the switching angles of the power switches in the multilevel inverter circuit are first pre-calculated and pre-defined to eliminate or minimise low harmonic orders (3rd, 5th, 7th, 9th, 11th, 13th, and 17th) that are close to the fundamental frequency. To selectively eliminate specific harmonic orders, a set of transcendental equations must be solved. Newton–Raphson (NR) [13,14,16,22], genetic algorithms (GA) [22], particle swarm optimization (PSO) [3,22,23,24], and evolutionary programming (EP) are examples of algorithms that have been used to solve transcendental equations. With low switching frequency, efficient DC source utilisation, and direct control over low harmonic orders without any filter circuit, the SHE modulation technique has been found to be feasible for a multilevel inverter circuit [12,14,15,24,25]. Therefore, to reduce switching losses, this technique is preferable.
The SPWM technique is widely used in the modulation of conventional inverters and multilevel inverters due to its easy implementation and satisfactory performance [1,2,26,27,28,29]. In contrast to the SHE method, the switching angles for SPWM are determined by comparing the sinusoidal reference signal with carrier waves. SPWM can be divided into different categories according to the generated carrier-wave signals, such as phase-shifted PWM (PS-PWM) and level-shifted PWM (LS-PWM) [1,19,29]. For PS-PWM, the carrier is arranged to cover the whole range of modulation indices, with each carrier phase-shifted by θ. The alternative to PS-PWM is LS-PWM; this technique has three different configurations, known as phase-disposition PWM (PD-PWM), phase-opposition-disposition PWM (POD-PWM), and alternative-phase-opposition-disposition PWM (APOD-PWM) [2,29]. Among these three configurations, the most commonly used LS-PWM is PD-PWM [2]. The main drawback of the SPWM technique is that its average switching frequency and total harmonic distortion (THD) are relatively high, which results in higher switching losses compared to SHE [13,16].
Various design platforms have been used by researchers to implement switching-control algorithms, which include microcontrollers, digital signal processors (DSPs), field-programmable gate arrays (FPGAs), dSPACE, and others [3,17,20]. Previously, many digital switching controllers were implemented using DSPs and microcontrollers. Although microcontrollers and DSPs have gained popularity in power-converter applications because of their easy coding for implementations, they do have some drawbacks, including sampling-rate limitations, lower processing speed, and an inability to handle parallel processing due to their sequential nature of operation [2,3,14,17,20,30]. Recently, FPGA has emerged and is extensively used in power-converter applications due to its parallel-processing features, higher clock-processing speed, and flexibility in hardware integrity [9,10,17,19,20,26,29,31,32,33,34,35,36]. The hardware-parallelism capability of FPGAs significantly improves the processing speed of complex computation algorithms when compared to software-based microcontrollers and DSP solutions [19,20,21,30,34,35]. The greater number of I/O pins on an FPGA device can accommodate the requirement for additional I/O control signals in multilevel-inverter applications [3,37]. As a result, implementing a switching controller in FPGA devices for multilevel-inverter applications provides an excellent solution for efficient hardware design and rapid prototyping [2,3,17].
Several methods have been employed by researchers in the design of SPWM and SHE switching controllers using FPGA devices. Many of the previous and existing design methods for SPWM switching controllers use block RAM (BRAM) or lookup tables (LUT) to store the sampled sine-wave signal and the triangular carrier-wave signal [2,17,18,19,20,21,26,28,38,39]. Recently published work by Sarker et al. (2020 and 2021), for example, used BRAM to store sampled point sine-wave data at a sampling frequency of 4 MHz [2,20]. To reduce the usage of BRAM, only the positive half cycle (0–π) of the sine-wave data were sampled and stored in memory, while the negative half-cycle data were generated by mirroring and inverting the stored positive-cycle data [2,20]. Another recent publication by Juarez-Abad et al. (2021) also used the sampling-points method, where only quarter-wave symmetry of the 60 Hz sine-wave signal was sampled every 4 µs and stored in BRAM, with a size of 1024 × 32 bits [19]. For the triangle carrier-wave signal, Juarez-Abad et al. (2021) also employed the sampling method by using a sampling time of 1 µs and produced 1000 points of sampled data, which were stored in a 1000-word, 32-bit BRAM [19]. However, generating the sine wave or triangular carrier wave by storing each quantized value in memory is not an area-efficient method for hardware implementation and would necessitate more memory usage if the waveforms are implemented in high resolution [20,40]. As a result, a few research papers [27,40,41] proposed the coordination rotation digital computer (CORDIC) algorithm for sine-wave generation in an FPGA-based implementation to reduce the memory requirement.
The CORDIC algorithm provides an iterative method of performing vector rotations by arbitrary angles using very minimal hardware, such as an adder, subtractor, and shifter, thus making it more efficient in terms of resource usage [27]. Ranganathan et al. (2016) proposed a pipelined CORDIC algorithm for sine-wave signal generation to reduce costs and utilisation of hardware resources [27]. Because the design used the pipelined CORDIC method to increase throughput, three sine waves were used in the design at three different phases, which indirectly increased the hardware logic resources and area. Furthermore, the overall design area was not optimised due to the use of a 32-bit RISC softcore processor (Microblaze) as the main controller, an AXI-lite bus for communication with the UART peripheral to receive user input settings on modulation index and switching frequencies, and BRAM for storing calculated sampled points [27]. In other designs by Nikhil et al. (2018), the sine wave was generated using a 32-bit RISC softcore processor (TSK3000A) with floating-point number operations, and the triangular carrier wave was designed using an up-down counter method [42].
For implementation of the SHE digital switching controller, once the optimised switching angles were obtained offline, the switching angles were stored in a LUT for real-time implementation and application [12,13,14]. For example, Halim et al. (2014, 2015, and 2017) used a sinusoidal reference signal and several triggered voltage levels that correspond to the switching angles of the proposed SHE modulation technique [12,13,14]. In this method, the output gating pulses were generated using a sine-wave generator and combinational logic gates. The 50 Hz sine-wave reference signal was sampled at 1 MHz and stored in a LUT [12,13,14]. However, to generate a sine-wave signal, this sampling-point method necessitates 5000 samples, which results in significant memory usage [12,13,14]. In [5], Khalil et al. (2020) employed dual softcore Microblaze processors, four timers, AXI bus, a UART module, BRAM, and GPIO to realise the output gating pulses for the SHE modulation technique after obtaining the switching angles offline from MATLAB Simulink. Although this method was claimed to have a high degree of flexibility in terms of PWM duty-cycle generation, the overall hardware design architecture necessitates the use of significant hardware logic resources.
Based on the previous research findings, most of the existing digital switching controllers for SPWM and SHE techniques employ the sampled-point method for the generation of a reference sinusoidal signal, which requires a large memory size when higher resolution is required. Furthermore, the use of a softcore processor to control and generate the output gating pulses in some designs increases the design complexity and results in significant digital-hardware logic usage. Therefore, there is still room for improvement by reducing hardware complexity and producing an area-efficient design method.
Many DC-AC multilevel inverters have recently been used in solar photovoltaic (PV) system applications to improve power quality and efficiency [6,15,25,28]. It is important to note that in addition to modulation techniques for DC-AC multilevel inverters, there are several concurrent control operations that require continuous monitoring in solar PV system applications, such as maximum power point tracking (MPPT), battery management for charging and discharging processes, and supervisory control to ensure synchronisation of PV output voltage and phase angle with the main grid system [15,25]. The MPPT controller is needed to track and tap maximum power under rapidly changing environmental climates [15,23,25]. A battery-charger controller is required for battery management because it determines when charging activities have reached a state of charge of 100 percent and protects batteries [15,25]. In the PV system, the supervisory controller monitors the PV and grid output voltages on a continual basis to ensure that the PV’s output is in phase with the grid and to maintain a unity power factor [15,25]. Therefore, to have multiple operations running concurrently, high-speed and robust digital controllers are needed. Based on the multiple parallel operations that need to be regulated in the solar PV system, the FPGA device is the most suitable and reliable digital controller to handle this complicated parallel processing precisely and at a higher processing speed than conventional digital controllers, such as DSPs or microprocessors.
Motivated by the advantages provided by the FPGA chip for multilevel inverters in solar PV applications, two types of digital switching controllers, namely SHE and SPWM, were designed using an Intel FPGA board. The primary objective of this research was to design digital switching controllers for a 21-level multilevel inverter with minimal hardware complexity and logic utilisation while maintaining good performance. Thus, rather than relying on complex softcore processors and large amounts of memory (RAM), the SHE switching controller was designed using a simple four-bit finite state machine (FSM) and a 13-bit counter, whereas for the SPWM switching controller, a CORDIC algorithm, a six-bit up-down counter, and a few adders were used to generate reference sine-wave and triangular carrier signals, respectively. In this paper, details of the design methodology and implementation of SHE and SPWM digital switching controllers for 21-level multilevel inverters are explained. The performance of the digital switching controllers was analysed in terms of logic-element utilisation, processing speed, and THD. Initially, the designs of SHE and SPWM switching controllers were hardcoded into digital logic using hardware description language (HDL) Verilog codes. Testbenches were developed to verify the functionality of the designed digital switching controllers using Quartus II Modelsim software (Intel, Santa Clara, CA, USA). For real-time hardware measurement and verification, the designed digital switching controllers were synthesised and downloaded to an Intel FPGA (DE2-115) board (Terasic Inc., Hsinchu, Taiwan). The designed switching controllers were also verified using HDL co-simulation in the MATLAB Simulink (Mathworks, Portola Valley, CA, USA) environment for system-level verification. The 21-level stepped sine-wave output waveform and the THD performance were analysed.
This paper is organised as follows: Section 2 presents the system overview of the 21-level multilevel inverters and the internal architecture of the five-level H-Bridge inverter. The working principles of SHE and SPWM for the 21-level multilevel inverter are illustrated and explained briefly. Section 3 elucidates the design methodology and implementation of SHE and SPWM digital switching controllers. Each design method is explained in detail, starting from designing the switching controller in the HDL to system-level verification using HDL co-simulation in MATLAB Simulink. Section 4 discusses synthesised logic gates, register-transfer-level (RTL) simulation results obtained from HDL functional simulation, hardware measurement results, and system-level verification using HDL co-simulation in MATLAB Simulink. In this section, the performance of the designed SHE and SPWM digital switching controllers is analysed, discussed, and compared with other research work. Finally, Section 5 presents the conclusion of the research work.

2. System Overview of 21-Level Cascaded H-Bridge Multilevel Inverter

The overall system overview of a 21-level multilevel inverter, as depicted in Figure 1, mainly consists of a digital switching controller and five cascades of five-level H-bridge circuits (H-Bridge 1 to H-Bridge 5). The digital switching controller was designed and implemented using an Intel FPGA (DE2-115) board. The five-level H-bridge circuit consists of five solid-state insulated-gate bipolar transistor (IGBT) switches, as illustrated in Figure 2. The supply voltage of this H-bridge circuit was 72 VDC, which was from the PV string. To turn ON the IGBT switches, the output signals from the digital switching controller (S11–S55) were first amplified to 12 V by optocoupler gate drivers (HCPL-3020). The basic operation of the 21-level multilevel inverter depends on the switching pattern of the IGBT switches, generating a full cycle of AC-stepped output waveforms.
Table 1 lists the switching patterns required to produce the stepped sine-wave output waveform of 50 Hz for the 21-level cascaded H-bridge multilevel inverter using the SHE digital switching controller. Since each five-level H-bridge inverter has a supply voltage of 72 VDC, the output voltage in the table needs to be multiplied by 72 V. Therefore, the final stepped sine-wave output voltage for five cascaded H-bridges ranges from 360 VP to −360 VP.
For the SPWM technique, the required number of carriers for the PD-PWM method to generate an N-level inverter is N-1 [18]. Therefore, for the 21-level SPWM inverter, 20 levels of carrier waves are needed. Figure 3 illustrates 20 carrier waves (cw1-cw20) using the symmetric distance of the PD-PWM method. These carrier waves (cw1-cw20) are continuously compared with the reference sinusoidal wave using comparator circuits, as illustrated in Figure 4. Therefore, 20 output gating pulses (S11 to S45) are generated to turn ON the IGBT switches and produce the 21-level stepped sine-wave output waveform.
The output gating pulses of five IGBT switches in each H-bridge circuit for SHE and SPWM switching controllers are listed in Table 2. Note that the “X” notation represents the number of H-bridge circuits. For the SHE switching controller, five output gating pulses (S1X to S5X) were connected to five IGBT switches in each H-bridge circuit. However, for the SPWM switching controller, only four output gating pulses (S1X to S4X) were connected to four IGBT switches in each five-level H-bridge circuit. The fifth IGBT switch was not used or activated in any H-bridge circuits for the SPWM switching controller.
The IGBT switches in each H-bridge circuit are turned ON and OFF in pairs to allow current to flow in both directions (positive and negative cycles). For example, referring to Figure 2, during a positive cycle, switches S11 and S41 are turned ON, while switches S21 and S31 are turned OFF. During a negative cycle, switches S21 and S31 are turned ON, while switches S11 and S41 are turned OFF. For the SHE switching controller, switch S51 is always turned ON for a certain duration for both cycles. The dead-time delay between the upper (S1X or S2X) and lower (S3X or S4X) IGBT switches for each side of the H-bridge circuit was considered at the initial design stage of the SHE and SPWM switching controllers. The dead-time delay prevents upper and lower IGBT switches on the same side of the H-bridge circuit from turning ON at the same time, and it also protects IGBT switches from damage caused by a short circuit across the DC link [20,43]. For example, before the upper IGBT switch on each side of the H-bridge circuit (S1X or S2X) is turned ON, it must wait for the lower IGBT switch (S3X or S4X) to first be turned OFF after a certain time delay, which is known as the “dead time”. In contrast, when the lower IGBT switch (S3X or S4X) is turned ON, it must wait for the upper IGBT switch (S1X or S2X) to first be turned OFF after a certain dead-time delay. In the previous hardware-measurement setup, the output gating pulses from the digital switching controller were connected to the IGBT (IKP10N60T) switches via optocouplers (HCPL-3020), which act as drivers to turn ON the IGBT (IKP10N60T) switches by amplifying the output gating pulses to a higher voltage (12 V) [3,15,25]. The total delay time for each IGBT (IKP10N60T) switch to turn ON and OFF and the propagation-delay difference of the optocoupler (HCPL-3020) driver were taken into consideration for the calculation of the dead-time duration. Therefore, dead time was determined as shown in Equation (1) [20,43]:
T dead = [ ( T d _ OFF _ max   T d _ ON _ min   )   + ( T pdd _ max   T pdd _ min   ) ] × 2.5
where (Td_OFF_max − Td_ON_min) is the difference between the IGBT (IKP10N60T) switch’s maximum turn-off delay time (233 ns) and its minimum turn-on delay time (10 ns) [44]. The minimum (TPDD_MIN) and maximum (TPDD_MAX) propagation-delay differences of the optocoupler (HCPL-3020) are −0.5 µs and 0.5 µs, respectively. A constant value of 2.5 was used as a safety factor [20,43]. By referring to the datasheets, the calculated minimum dead time for both the IGBT (IKP10N60T) [44] and optocoupler (HCPL-3020) [45] components was 3.05 µs.
Details of design implementation for SHE and SPWM digital switching controllers will be further elucidated in the following sections.

3. Materials and Methods

This section discusses the design methodology and implementation of the SHE and SPWM digital switching controllers using the Intel FPGA (DE2-115) board. In this research work, there are three main design phases that need to be executed for implementation of the FPGA-based SHE and SPWM digital switching controllers. Firstly, the process started with designing the SHE and SPWM digital switching controllers using hardware description language (HDL) Verilog codes for implementation of digital hardware logic. Testbenches were also developed in HDL Verilog codes to verify the design functionality. Secondly, the designed controllers were synthesised and downloaded onto the Intel FPGA (DE2-115) board for real-time hardware measurement and verification. Finally, for system-level verification, the designed SHE and SPWM digital switching controllers were imported into MATLAB Simulink and connected to five cascaded H-bridge models to generate the 21-level stepped sine-wave output waveform using the HDL co-simulation method. The performance of the designed digital SHE and SPWM switching controllers was analysed in terms of their hardware logic requirements, maximum processing speed (Fmax), execution speed, and total harmonic distortion (THD). The following sub-sections provide detailed explanations of each design phase.

3.1. SHE Digital Switching Controller Design Method

For the SHE digital switching controller, the design process started with finding the optimised switching angles (θ1–θ10) for the 21-level multilevel inverter, as depicted in Figure 5. The locations of the switching times (T1–T10) for the corresponding switching angles (θ1–θ10) with respect to the full cycle of the stepped sine-wave output waveform are also illustrated in Figure 5. The switching angles were pre-calculated offline using the modified hybrid PSO (MhyPSO) algorithm in MATLAB software. The MhyPSO algorithm was designed to produce optimised switching angles (θ1–θ10) with reduced odd harmonic content [15,46]. Additionally, the dead times between the upper and lower IGBT switches were also considered at the initial stage of MhyPSO algorithm development. To avoid short circuits, the MhyPSO algorithm ensures that the upper (S1X or S2X) and lower (S3X or S4X) IGBT switches are not turned ON at the same time during the dead time. Detailed information on the MhyPSO algorithm for the SHE modulation technique can be found in [15,46].
The obtained optimised angles (θ1–θ10) were first converted into switching times (T1–T10), as shown in Equation (2).
T   = ( θ 180 ) × 10   ms
Table 3 lists the conversion of the optimised switching angles (θ1–θ10) obtained from the previous research work [15,46] into switching times (T1–T10).
Thereafter, the step-time durations (t1–t11) were calculated offline using the switching times (T1–T10), as shown in Table 4 and illustrated in Figure 5. The pre-calculated step-time durations (t1–t11) were used as references by the SHE digital switching controller to produce the output gating pulses according to the switching patterns, as listed in Table 1.
It is important to note that the 21-level stepped sine-wave output signal is a symmetrical sine wave that consists of positive and negative cycles. Therefore, the step-time durations (t1–t11) are similar for both cycles (positive and negative). The only difference is the direction of voltage or current (positive or negative). As depicted in Figure 5, each cycle of the sine wave has a quarter-wave symmetry shape with a step-time duration (t1–t11). The advantage of this quarter-wave symmetry shape of the sine wave in each cycle is that it minimises the hardware logic resources by using similar step-time durations (t1–t11) for the mirrored shape. Therefore, in this design, each cycle of the step sine wave is divided into two sides: Side 1 and Side 0. Side 1 covers step-time durations (t2–t11), while Side 0 covers step time (t10–t1). Detailed calculations for all step-time durations (t1–t11) with their corresponding stepped output levels are listed in Table 4. The digital implementation of this quarter-wave-symmetry sine wave is explained in the following sub-section.

SHE Design Architecture and Protocol

Figure 6 depicts the top level of the SHE digital switching controller. The internal architecture of the SHE digital switching controller is depicted in Figure 7.
The design architecture of the SHE digital switching controller mainly consists of three sub-modules, which include a clock divider, a 13-bit counter, and a 4-bit finite state machine (FSM). The clock-divider sub-module divides and down-converts the 50 MHz system clock (“clk_50M”) from the FPGA (DE2-115) board into a clock with a low frequency of 1 MHz (“clk_1MHz”). The “clk_1MHz” clock is used by the counter sub-module for the count-up process with a time resolution of 1 µs. After the system is powered ON and reset, the counter sub-module starts to count-up and provides a 13-bit counted output value (“cnt [12:0]”) to the FSM sub-module. The FSM sub-module controls the generation of a stepped sine-wave output waveform by monitoring the step-time duration (t1–t11) for the positive and negative cycles. The 13-bit counted value (“cnt [12:0]”) is used by the FSM sub-module to compare with the referenced step-time durations (t1–t11), as listed in Table 4. Once the counted value (“cnt [12:0]”) reaches the referenced step-time duration (t1–t11), the FSM activates an internal reset signal (“reset_cnt”) to reset the counter’s internal registers to a value of “0”. The FSM sub-module provides 25 output gating signals (S11–S55), which are connected to the 25 IGBT switches in the five cascaded H-bridge circuits, as depicted in Figure 1.
As illustrated in Figure 5, the stepped sine wave for each cycle consists of Side 1 for step-time duration t2–t11 and Side 0 for step-time duration t10–t1. The stepped sine-waveform protocol of the FSM sub-module is depicted in Figure 8.
In this design, only eleven states (St1–St11) are required to generate a complete cycle of the 21-level stepped sine-wave output waveform. Therefore, only four bits are required to generate the eleven states. As illustrated in Figure 8, the FSM uses the 13-bit counted value (“cnt [12:0]”) to compare with the referenced step-time durations (t1–t11) to control the movement of the next states. Additionally, the FSM also uses an internal control signal (“side”) to represent either Side 1 (logic HIGH) or Side 0 (logic LOW). This internal “side” signal is used by the FSM to determine the direction of the state movement. When the internal “side” signal is logic HIGH, the FSM executes states St2 to St11, as indicated by the blue arc arrow (Side 1). When the internal “side” signal is logic LOW, the FSM executes states St10 to St1, as indicated by the red arc arrow (Side 0). In each state, the FSM produces 25-bit output gating signals (S11–S55), which are connected to 25 IGBT switches in the five cascaded H-bridge circuits.
After the system is powered ON and reset, the FSM enters state St1 and remains in this state for a step-time duration of t1 (240 µs). When the counted value (“cnt [12:0]”) is equal to t1, the FSM moves to the next state, St2, and activates a “reset_cnt” signal. The “reset_cnt” signal resets the internal counter register (“cnt [12:0]”) in the counter sub-module and repeats the count-up process again. The FSM remains in state St2 until the 13-bit counted value (“cnt [12:0]”) reaches the step-time duration of t2 (339 µs). Then, the FSM moves to state St3, and so forth. The process of comparing the 13-bit counted value (“cnt [12:0]”) with each dedicated step-time duration (t1–t11) at each state is repeated until state St11, as depicted in Figure 8. Thus, a complete switching pattern (S11–S55) for Side 1 (blue arc arrow) of the positive cycle is generated, as illustrated in Figure 8. From state St11, the FSM moves in a backward direction to state St10 until St1, as indicated by the red arc arrow, to execute Side 0 for step-time durations of t10–t1. When the FSM finally reaches state St1, an internal polarity signal is toggled for the negative-cycle execution. Then, the process of step-time duration for Side1 and Side0 is repeated but with the opposite polarity (negative cycle). This polarity signal is used as a reference signal by each state to produce the respective switching patterns or logic values (S11–S55) accordingly. The repetition of the loop-cycle for similar consecutive state movements (St1–St11) in the FSM sub-module results in the continuous generation of positive and negative switching patterns at the output gating signals (S11–S55). These output gating pulses (S11–S55) activate the 25 IGBT switches in the five cascaded H-bridge circuits, resulting in a continuous 21-level stepped sine-wave output waveform.
Table 5 tabulates the details of states with their respective polarity cycles and switching output gating patterns (S11–S55) in the FSM sub-module. Different output-switching patterns are produced for positive (pos) and negative (neg) cycles.
During the design phase of the SHE digital switching controller, functional simulations were conducted to ensure that the output gating pulses produced accurate step-time durations, which had been pre-calculated according to the optimised switching angles.

3.2. SPWM Digital Switching Controller Design Method

In the design of the SPWM digital switching controller, the CORDIC algorithm was used to generate the reference sine-wave signal because it significantly reduces the memory storage requirement compared to the conventional sampled-points method [27,40,41]. In this design, the rotation mode of the CORDIC algorithm was implemented to calculate the sine value of the phase angle between 0° and 90° instead of 0° to 360°. To generate a full-cycle sinusoidal wave, mirror properties of the sine wave (mirroring and inverting the 0° to 90° values for the 2nd, 3rd, and 4th quarters, as shown in Figure 3) were used, as illustrated in Figure 9. By exploiting the symmetry property of the sinusoidal wave, a complete sinusoidal waveform can be generated. Initially, the phase angle is incremented from 0° (0 rad) until it reaches 90° (π/2 rad) for the first quarter. Then, the phase angle is decremented to 0° (0 rad) for the second quarter (mirror of the first quarter). A similar process is repeated for the negative cycle.
In the level-shifted PD-PWM technique, (N − 1)/2 carrier signals are needed for the half-cycle of the N-level inverter [35]. Therefore, in this design, only ten triangular carrier-wave signals were required, instead of 20, since only the positive cycle of the reference sine wave was used for comparison. The maximum amplitude for the reference sine-wave and carrier-wave signals was 255. The amplitude differences among the ten carrier-wave signals were 25, except for the last carrier (cw10), which had an amplitude difference of 24. The first carrier-wave signal (cw1) was designed using a 6-bit up-down counter, for which the maximum value was 31. The other carrier-wave signals were generated using an adder function, which added the first amplitude carrier (cw1) with an offset value, as shown in Table 6. The ranges of triangular amplitude values (start–max–end) are also shown in Table 6.

SPWM Design Architecture and Protocol

Figure 10 depicts the top level of the SPWM digital switching controller. The internal architecture of the SPWM digital switching controller is depicted in Figure 11. The design architecture of the SPWM digital switching controller mainly consists of a frequency division, a sine-wave generator, a multiplier, a carrier-wave generator, a comparator, and a multiplexer.
The FPGA (DE2-115) board’s 50 MHz system clock (“clk_50M”) was used as a master clock for the frequency-division, sine-wave-generator, and carrier-wave-generator sub-modules. The frequency-division sub-module generates three enabling signals for the carrier-wave-generator and sine-wave-generator sub-modules, which include “W_Enable”, “S_Enable”, and “C_Enable” at different rates of frequencies. The carrier-wave generator generates ten carrier-wave signals (“WW_In1 [7:0]” to “WW_In10 [7:0]”) with a few ranges of frequencies (1 kHz to 800 kHz) based on external user-input settings (“WW_Mode”). The “W-Enable” signal is used to control the internal up-down counter operation of the carrier-wave-generator sub-module.
The sine-wave-generator sub-module generates sinusoidal reference frequencies of either 50 or 60 Hz based on an external user-input setting (“SW_Mode”). The sine-wave generator consists of phase-accumulator and iterative CORDIC sub-modules. The “S_Enable” and “C_Enable” signals control the activation of internal counters, shifters, and registers in the sine-wave-generator sub-module. The phase accumulator generates new phase values (“Phase_out [9:0]”) ranging from 0 to 1.5703125 radians (0° to 90°), which are connected to the iterative CORDIC sub-module. In this work, the resolution of phase value is 0.0061581 radians (1.5703125 radian is divided by 255) for an 8-bit sinusoidal reference signal. The phase accumulator also generates a “Quarter_Cycle” signal, which toggles its logic value every 90° (π/2 rad). The “Quarter_Cycle” is used as a reference to increase or decrease the phase value (“Phase_out [9:0]”). The phase value (“Phase_out [9:0]”) is incremented or decremented by the resolution of 0.0061581 radians when the “Quarter_Cycle” signal is at logic LOW (1st quarter) or at logic HIGH (2nd quarter), respectively. The iterative CORDIC sub-module uses the generated phase value (“Phase_out [9:0]”) as an initial phase input to generate the final sine-wave value (“SW_Out [9:0]”) after eight iterations using the CORDIC algorithm. Although the CORDIC algorithm is not a straightforward method to generate the sinusoidal reference signal, it enables the usage of a small LUT by storing only eight arctan angles (θ = 45.0°, 26.6°, 14.0°, 7.1°, 3.6°, 1.8°, 0.9°, and 0.4°), compared to the sampled points method. By exploiting the capability of bi-directional angles of rotation (clockwise or anticlockwise) in the CORDIC algorithm, the angles can be varied from +99.4° to −99.4°. Details of the implementation of the CORDIC algorithm to generate the sinusoidal reference signal can be found in [40,41].
The generated sinusoidal reference signal (“SW_Out [9:0]”) is then multiplied with the modulation index (“MI [7:0]”) ranging from 0.1 to 1 in the multiplier sub-module. The multiplied sine-wave output signal (“Mmult_out [7:0]”) is used as a reference signal for the comparator sub-module. The reference sinusoidal signal (“Mmult_out [7:0]”) is then compared with ten carrier-wave signals (“WW_In1 [7:0]” to “WW_In10 [7:0]”) to produce ten comparator output gating signals (“Comp_Out1–Comp_Out10”). For a full cycle of stepped sine-wave output waveforms, a “Half_Cycle” signal is used as a reference by the multiplexor sub-module to generate 20 SPWM output gating pulses (“S11” to “S45”). The “Half_Cycle” signal, which is generated by the phase-accumulator sub-module, toggles its logic value every 180° (π rad). When the “Half_Cycle” signal is at logic HIGH, the five positive pairs of SPWM output gating pulses (“S11”, “S41”, “S12”, “S42”, “S13”, “S43”, “S14”, “S44”, “S15”, and “S45”) are generated for a positive cycle. When the “Half_Cycle” signal is at logic LOW, the five negative pairs of SPWM output gating pulses (“S21”, “S31”, “S22”, “S32”, “S23”, “S33”, “S24”, “S34”, “S25” and “S35”) are generated for the negative cycle. These SPWM output gating pulses are connected to the 20 IGBT switches to generate the final 21-level stepped sine-wave output waveform. For the realisation of dead-time delay between the upper (“S1X” or “S2X”) and lower (“S3X” or “S4X”) IGBT switches on each side of the H-bridge circuit, the “Half_Cycle” signal ensures that only positive pairs of IGBT switches are turned ON during the positive cycle, while negative pairs of IGBT switches are turned OFF, and vice versa for the negative cycle. Once the SPWM design was completed, functional simulations were conducted to verify that the output-switching signals could produce positive and negative gating pulses accordingly for the 50 Hz stepped sine-wave generation.

3.3. Hardware-Measurement Setup

After the functional behaviours of the designed SHE and SPWM switching controllers were verified to comply with the specified output gating pulse patterns and timing durations, the designs were synthesised and downloaded onto the Intel FPGA (DE2-115) board for real-time hardware verification. Figure 12 depicts the hardware-measurement setup of the designed SHE and SPWM digital switching controllers for real-time verification purposes. The hardware setup mainly consists of an Intel FPGA (DE2-115) board and a digital oscilloscope (SIGLENT Technologies, Shenzhen, China). For measurement purposes, the output gating pulses of the SHE digital switching controller (S11 to S55) and the SPWM digital switching controller (S11 to S45) were connected from the FPGA board to the digital oscilloscope. It is to be noted that for real-time hardware verification, only the output gating pulses of the SHE and SPWM digital switching controllers were measured and verified with the functional simulation results.

3.4. System-Level HDL Co-Simulation Development for Digital Switching Controllers

Figure 13 depicts the system-level settings of the 21-level cascaded H-bridge multilevel inverter model in the MATLAB Simulink environment. For system-level verification and performance analysis, the HDL codes were first imported into MATLAB Simulink. This HDL system-level verification in MATLAB Simulink is also known as HDL co-simulation. The output gating pulses from the designed SHE and SPWM digital switching controllers were connected to the IGBT switches to generate the final stepped sine-wave output waveform. For analysis purposes, the stepped sine-wave output waveform and the THD percentage were observed.

4. Results and Discussions

This section discusses the results of synthesised SHE and SPWM digital switching controllers using the Intel FPGA (Cyclone IV E) chip, register transfer-level (RTL) simulation results in a digital-simulator timing waveform, real-time hardware-measurement results, and system-level verification using HDL co-simulations in MATLAB Simulink. The results are explained sequentially in separate sub-sections.

4.1. Synthesized Logic Gates of Digital Switching Controllers and Comparative Analyses

Figure 14 depicts the schematics of the synthesised SHE digital switching controller using Quartus II software for the Intel FPGA (Cyclone IV E) chip. The internal architecture of the synthesised SHE digital switching controller mainly consists of the clock-division (Clkdiv_uut), counter (Counter_uut), and FSM (FSM_uut) sub-modules, as shown in Figure 14. Figure 15 depicts the schematics of the synthesised SPWM digital switching controller using Quartus II software for the Intel FPGA (Cyclone IV E) chip. The internal architecture of the synthesised SPWM digital switching controller mainly consists of the frequency-division (Freqdiv_uut), carrier-wave-generator (CarrierWave_uut), sine-wave-generator (SineWave_uut), multiplier (Multplier_uut), comparator (Comp_uut), and multiplexer (Mux_uut) sub-modules, as shown in Figure 15.
Details on the FPGA family name, device types, utilisation of logic elements, and the maximum frequency (Fmax) at which the design could operate are listed in Table 7.
According to the synthesised results shown in Table 7, the total number of logic elements used for the designed SHE digital switching controller was 186 (<1% utilisation), the total number of registers was 59, the total number of pins was 27 (5% utilisation), the total number of memory bits was 0 (0% utilisation), and the total number of embedded multipliers was 0 (0% utilisation). The maximum frequency (Fmax) at which the system could operate at a high temperature (85 °C) was 198.06 MHz. For the SPWM digital switching controller, the total number of logic elements in the synthesised design was 369 (<1% utilisation), the total number of registers was 108, the total number of pins was 36 (7% utilisation), the total number of memory bits was 0 (0% utilisation), and the total number of embedded multipliers was one (<1% utilisation). The maximum frequency (Fmax) at which the system could operate at a high temperature (85 °C) was 152.25 MHz.
The SPWM digital switching controller’s logic elements and registers are almost double those of the SHE digital switching controller. Additionally, the SPWM digital switching controller utilises a total of 2% more pins and one embedded multiplier. The maximum frequency of the SHE digital switching controller is 6% higher than that of the SPWM when the 50 MHz clock is used as a reference. Due to the design complexity of the SPWM digital switching controller compared to the SHE controller, it is expected that the SPWM controller requires more hardware logic resources, which consequently results in a slightly lower maximum frequency (Fmax).
The execution speed of the SHE digital switching controller was further compared with that observed in previous research work that used a microcontroller (PIC16F877A) as a design platform [15,25]. Table 8 lists the details of the implementation of the SHE digital switching controller in the FPGA (Cyclone IV E) chip and microcontroller (PIC16F877A).
For a complete cycle of stepped sine-wave output waveforms, the proposed SHE digital switching controller requires 40 states, in which the loop-cycle of 11 states (St1 to St11), as depicted in Figure 8, is executed twice to obtain one complete stepped sine-wave output waveform (equivalent to 40 step-time duration as shown in Figure 5). Therefore, the total execution time is 40 µs when referring to the FSM clock frequency of 1 MHz. For the SHE digital switching controller implemented in the microcontroller (PIC16F877A), 868 machine cycles were required to generate one complete cycle of stepped sine waves [25]. Since the clock frequency used for the PIC16F877A was at 4 MHz, the calculated period of a machine cycle was 1 µs [3]. Thus, the required execution time is 868 µs (868 × 1 µs). From the tabulated results, it is observed that the execution speed of the SHE digital switching controller implemented in the FPGA (Cyclone IV E) chip is 95.39% faster compared to that implemented in the microcontroller (PIC16F877A) when FSM clock frequency (1 MHz) is used. However, when the maximum clock frequency is used (FMAX = 137.99 MHz), the execution speed of the SHE digital switching controller implemented in the FPGA increases to 99.97% when compared to that implemented in the microcontroller (PIC16F877A). These execution-speed analyses proved that the digital switching controller implemented in the FPGA (Cyclone IV E) chip is much faster than that implemented in the conventional microcontroller (PIC16F877A).
As mentioned earlier, many of the existing SHE and SPWM switching controllers require the use of large BRAM to store the sampled-points data and complex softcore processors [2,12,13,17,18,19,20,21,26,27,28,38,39,42]. In contrast, our proposed SPWM design uses only a small LUT to store eight arctan angles for sine-wave generation, one six-bit up-down counter, and a few adders for carrier-wave generation. Meanwhile, for the SHE controller, our proposed method requires only a four-bit FSM and a 13-bit counter.
Table 9 lists a few examples of hardware-logic design methods and synthesised logic gates from other research work as well as from our work. As can be seen from the table, most of the existing modulation techniques (SPWM or SHE) proposed by other researchers require the use of large memory elements (ROM or RAM) to store the sine-wave sampled-points data [2,12,13,14,17,19,20,27]. In some designs, such as those by Nikhil et al. (2018) [42], Ranganathan et al. (2016) [27], and Khalil et al. (2020) [5], softcore processors embedded in the FPGA device were used as the main controller for the switching operations. It is important to note that although the design was implemented using an FPGA device, a softcore processor (32-bit RISC Microblaze or 32-bit RISC TSK-3000A) was used to execute the switch-controlling processes [5,27,42]. The use of softcore processors not only requires significant hardware logic resources but also makes the system slower due to the sequence-controlling operation (similar to DSPs or microcontrollers) compared to a customised digital design using the FSM. Although the customised FSM design also works in sequence, it is much faster compared to the softcores or conventional controllers (DSPs or microcontrollers) because the FSM can change its state immediately if there is a change in the input, and it does not need to fetch and decode instructions to change states.
Due to different internal LUT architectures for different FPGA technologies, an exact one-to-one comparative analysis is not possible. Thus, only an approximate comparative analysis between the Xilinx and Intel FPGA technologies can be performed by referring to logic cells (LCs) and logic elements (LEs) from each technology, respectively. For analysis purposes, the LCs for Xilinx FPGA technology and LEs for Intel FPGA technology are listed in Table 9. The slices data are converted into LCs for Xilinx FPGA technology by referring to the Xilinx Spartan 6 and Spartan 3 datasheets [47,48,49]. From the synthesised logic gates listed in Table 9, it is observed that the number of LCs or LEs reported in other research work is quite high, and the percentage of utilisation for LCs or LEs is greater than 1%. For the SPWM modulation technique, our designed SPWM digital switching controller has the smallest number of LEs (369), with a utilisation percentage of less than 1% when compared to those reported in other research work. Similarly, for the SHE modulation technique, our designed SHE digital switching controller has the smallest number of LEs (186), with a utilisation percentage of less than 1% when compared to those reported in other research work.
In conclusion, when compared to other research work, the proposed SHE and SPWM digital switching controllers are significantly simpler in terms of design architecture and do not require a large amount of hardware logic resources, which account for less than 1% of the total logic elements. Furthermore, our proposed SHE and SPWM digital switching controllers produce the greatest number of levels (21-level) for the multilevel inverter, despite their simplified design architectures and having the fewest hardware logic resources.

4.2. RTL Simulation Results of SHE and SPWM Digital Switching Controllers

The RTL simulation results were conducted using Quartus II Modelsim software to verify the designed SHE and SPWM digital switching controllers’ functionality. Details of each switching controller’s functionality are explained in the following sub-sections.

4.2.1. RTL Simulation Results of SHE Digital Switching Controller

Figure 16a depicts the overall RTL simulation results for the SHE digital switching controller. As shown in the simulation result, there is an internal polarity (“pol”) signal to indicate the positive or negative cycle of the stepped sine-wave output waveform and a “side” signal to indicate Side 1 or Side 0 of the waveform. The duration for each polarity cycle (positive or negative) is 10 ms. Therefore, the total duration to generate the overall stepped sine-wave output waveform is 20 ms. The generated output gating pulses (S11–S55) from the FSM are grouped according to their dedicated H-bridge circuit (H-Bridge 1 to H-Bridge 5) connections. In the simulation results, samples of output gating pulses for H-Bridge 1 and H-Bridge 5 are shown. The examples of dead times between upper and lower switches (S2X and S4X) for H-Bridge 1 (TDH1_24) and H-Bridge 5 (TDH5_24) are also shown in Figure 16a. The dead-time durations for H-Bridge 1 (TDH1_24) and H-Bridge 5 (TDH5_24) are 247 µs and 6465 µs, respectively. The duration of dead time for H-Bridge 1 is shorter than that for H-Bridge 5 because the pulse-width duration for H-Bridge 1 is longer than that for H-Bridge 5.
Figure 16b shows the zoomed view of marked area A, which indicates the details of FSM states that generate the output gating pulses (S11–S55) for the 21-level inverter. The FSM generates the output gating pulse patterns according to state number, defined step-time (t1–t11) duration for each state, and the internal polarity signal, as illustrated in Figure 8 and listed in Table 4 and Table 5. As mentioned earlier, each state number represents the step-time duration (t1–t11). Therefore, states St2 to St11 generate the output gating pulses (S11–S55) according to the step-time duration of t2 to t11 under Side 1, while states St10 to St1 generate output gating pulses (S11–S55) for step time t10 to t1 under Side 0. Similar states of execution are repeated for both positive and negative cycles.
Figure 17 depicts the output gating pulses for circuits of H-Bridge 2 (S12–S52), H-Bridge 3 (S13–S53), and H-Bridge 4 (S14–S54). The pattern of output gating pulses (S11–S55) and the pulse-width duration obtained from these simulation results were used as references to compare with the real-time hardware measurements for functional verification purposes. The examples of dead times between upper and lower switches (S2X and S4X) for H-Bridge 2 (TDH2_24), H-Bridge 3 (TDH3_24), and H-Bridge 4 (TDH4_24) are also shown in Figure 17. The duration of dead time for H-Bridge 2 (TDH2_24), H-Bridge 3 (TDH3_24), and H-Bridge 4 (TDH4_24) is 1583 µs, 2889 µs, and 4445 µs, respectively. It is observed that the dead-time duration increases with the increment of H-bridge number because the pulse-width duration of the switching gating signals decreases as the H-bridge circuit number increases. From the simulation results for all H-bridge circuits, dead-time durations were found to be above the calculated minimum dead-time value required by the IGBT (IKP10N60T) [44] and optocoupler (HCPL-3020) [45] components, as shown in Equation (1). Therefore, the IGBT (IKP10N60T) switches in the H-bridge circuits are safe for operation in the 21-level multilevel inverter.

4.2.2. RTL Simulation Results of SPWM Digital Switching Controller

Figure 18 depicts the SPWM digital switching controller’s RTL simulation result for reference sine-wave generation (“SW_Out [9:0]”). The “Half_Cycle” signal is used as a reference to generate the positive and negative cycles of the output gating pulses. The duration for each polarity (positive or negative) cycle is 10 ms. Therefore, the total duration to generate the reference stepped sine-wave output waveform is 20 ms. As shown in the simulation result, the phase values (“Phase_Out [9:0]”) are incremented when the “Quarter_Cycle” is at logic LOW (1st Quarter) and decremented when the “Quarter_Cycle” signal is at logic HIGH (2nd Quarter). The phase values (“Phase_Out [9:0]”) are used by the iterative CORDIC sub-module to generate the reference sine-wave signal (“SW_Out [9:0]”).
Figure 19 depicts the RTL simulation result for the generation of ten carrier waves (cw1 to cw10). As depicted in the simulation result, the carrier waves are spaced among one another with an amplitude difference of 25, except for cw10, which has an amplitude difference of 24. This is to ensure that the final maximum peak for cw10 is 255, which is similar to the reference sine-wave maximum-amplitude level.
Figure 20 depicts the RTL simulation result of the generation of output gating pulses (“S45” to “S35”), which were connected to the 20 IGBT switches in the H-bridge circuit models for the final 21-level stepped sine-wave generation. As indicated in the simulation result, the “Half-Cycle” signal is used as a reference to generate the output gating pulses for the positive and negative cycles. As shown in Figure 20, the output gating pulses of “S45” to “S11” are used for positive cycle switching, while the output gating pulses of “S21” to “S35” are used for negative cycle switching. The patterns of these output gating pulses (“S45” to “S35”) from the simulation results were used as references to compare with the real-time hardware measurement for functional verification purposes.
The examples of dead times between upper and lower switches (S2X and S4X) for H-Bridge 1 (TDH1_24) and H-Bridge 5 (TDH5_24) are also shown in Figure 20. The measured dead times for H-Bridge 1 (TDH1_24) and H-Bridge 5 (TDH5_24) are 412 µs and 6253 µs, respectively. It is observed that the dead-time duration increases because the pulse-width duration of the switching gating signals decreases as the H-bridge circuit number increases. From the simulation results for all H-bridge circuits, dead-time durations were found to be above the calculated minimum dead-time value required by the IGBT (IKP10N60T) [44] and optocoupler (HCPL-3020) [45] components, as shown in Equation (1). Therefore, the IGBT (IKP10N60T) switches in the H-bridge circuits are safe for operation in the 21-level multilevel inverter.

4.3. Hardware Measurement of SHE and SPWM Digital Switching Controllers

The functionalities of the designed SHE and SPWM digital switching controllers were further verified in real time by downloading the design HDL codes into the Intel FPGA (DE2-115) board to measure the generated output gating pulses from both designs using a digital oscilloscope.

4.3.1. Hardware-Measurement Results of SHE Digital Switching Controller

Figure 21a depicts the measured output gating pulses for H-Bridge 1 (“S11” to “S51”) and H-Bridge 5 (“S15” to “S55”) using a digital oscilloscope. The polarity (“Pol”) and side (“Side”) signals were also measured to indicate the positive and negative cycles, as well as the duration of each cycle (10 ms), which is equivalent to a 20-ms period or 50 Hz frequency. Based on real-time hardware-measurement results, the observed duration and patterns of output gating pulses for H-Bridge 1 and H-Bridge 5 are similar to those obtained in the functional simulation, as shown in Figure 16a. The output gating pulses for H-Bridge 2 (“S12” to “S52”), H-Bridge 3 (“S13” to “S53”), and H-Bridge 4 (“S14” to “S54”) circuits were also measured to validate the output patterns, as depicted in Figure 21b. It is observed that the duration and output patterns for H-Bridge 2 (“S12” to “S52”), H-Bridge 3 (“S13” to “S53”), and H-Bridge 4 (“S14” to “S54”) are also similar to those obtained in the functional simulation, as shown in Figure 17. The examples of dead times between upper and lower switches (S2X and S4X) for H-Bridge 1 (TDH1_24), H-Bridge 2 (TDH2_24), H-Bridge 3 (TDH3_24), H-Bridge 4 (TDH4_24), and H-Bridge 5 (TDH5_24) are also shown in Figure 21. The measured dead-time durations for all H-bridge circuits were found to be similar to those obtained in the simulation, as shown in Figure 16 and Figure 17. These hardware-measurement results validate the design functionality of the SHE digital switching controller in real time.

4.3.2. Hardware-Measurement Results of SPWM Digital Switching Controller

Figure 22 depicts the measured output gating pulses (“S45” to “S35”) of the SPWM digital switching controller for the positive cycle (Figure 22a) and the negative cycle (Figure 22b) using a digital oscilloscope. From the measured results, it is observed that the “Half_Cycle” duration is 20 ms, with 10 ms for positive and negative cycles, respectively. The duration of 20 ms for the “Half_Cycle” signal indicates the period of the stepped sine-output waveform generated once the output gating pulses are connected to the IGBT switches. As depicted in Figure 22a, the output gating pulses for “S45” to “S11” are activated only during the positive cycle. In contrast, the output gating pulses for “S21” to “S35” are activated only during the negative cycle, as indicated in Figure 22b. The duration and patterns of these real-time output gating pulses for “S45” to “S35” were observed to match exactly with those obtained in the functional simulation, as shown in Figure 20. The examples of dead times between upper and lower switches (S2X and S4X) for H-Bridge 1 (TDH1_24) and H-Bridge 5 (TDH5_24) are also shown in Figure 22a. The measured dead-time durations for all H-bridge circuits were found to be similar to those obtained in the simulation, as shown in Figure 20. Therefore, these hardware-measurement results validate the design functionality of the SPWM digital switching controller in real time.

4.4. System-Level Verification for 21-Level Multilevel Inverter (HDL Co-Simulation)

This section discusses system-level verification of the simulation results of the designed SHE and SPWM digital switching controllers for the 21-level cascaded H-Bridge multilevel inverter model in the MATLAB Simulink environment. Both the SHE and SPWM digital switching controllers were connected to the IGBT switches, which reside in the five cascaded H-bridge circuits, to observe the stepped sine-wave output waveforms for the 21-level multilevel inverter. The performance of the designed switching controllers was analysed in terms of design functionality in producing the final stepped sine-wave output waveform, the timing duration, and the THD percentage.

4.4.1. System-Level Verification of 21-Level SHE Digital Switching Controller

Figure 23 depicts the HDL co-simulation results of the designed SHE digital switching controller (in HDL) connected to 25 IGBT switches in the MATLAB Simulink environment. It is observed that the output gating pulses from the designed SHE digital switching controller were able to generate a 21-level stepped sine-wave output waveform when applied to the five cascaded H-bridge circuit models, with a maximum peak-to-peak voltage of approximately ±360 VPP. The duration of the positive and negative cycles of the generated stepped sine-output waveform is 10 ms each. Therefore, the total duration for one complete cycle of the stepped sine-wave output waveform is 20 ms, which is equivalent to 50 Hz. The percentage of THD for this SHE 21-level inverter is 3.91%, as depicted in Figure 24.

4.4.2. System-Level Verification of 21-Level SPWM Digital Switching Controller

Figure 25 depicts the HDL co-simulation results of the designed SPWM digital switching controller (in HDL) connected to 20 IGBT switches in the MATLAB Simulink environment. It is observed that the output gating pulses from the designed SPWM digital switching controller were able to generate a 21-level stepped sine-wave output waveform when applied to the five cascaded H-bridge circuit models, with a maximum peak-to-peak voltage of approximately ±360 VPP. The duration of the positive and negative cycles of the generated stepped sine-wave output waveform is 10 ms each. Therefore, the total duration for one complete cycle of the stepped sine-wave output waveform is 20 ms, which is equivalent to 50 Hz. The percentage of THD for this SPWM 21-level inverter with a carrier wave frequency of 20 kHz is 6.32%, as depicted in Figure 26.
The THD percentage of the 21-level multilevel inverter using SPWM digital switching was further analysed using several ranges of carrier-wave frequencies, as listed in Table 10. Since the SPWM digital switching controller was able to generate carrier frequencies up to 800 kHz, the SPWM multilevel inverter system was tested with different carrier frequencies, ranging from 1 kHz to 800 kHz. From the listed THD in Table 10, it is observed that the percentage of THD decreases as the carrier-wave frequency increases, when compared with the initial carrier frequency set at 1 kHz. At the typical carrier frequencies of 20 kHz for IGBT switches, the percentage of THD reduces by 7%, and at the typical maximum carrier frequencies of 40 kHz for IGBT switches, the percentage of THD reduces by 9%. At the highest carrier frequency of 800 kHz, the percentage of THD is reduced by 30%, with a THD percentage of 4.73%.

4.4.3. Comparative Analyses of THD

The percentage of THD for both SHE and SPWM digital switching controllers was further compared, as listed in Table 11. The THD for the SPWM digital switching controller was referred to at a carrier frequency of 40 kHz, which is the typical maximum frequency of the IGBT switches. From the obtained results, it is observed that the percentage of THD for the 21-level SHE is 37% less than that of the 21-level SPWM. The higher THD percentage of SPWM compared to SHE is expected due to its high switching frequency, which produces ripples at the output gating pulses and contributes to higher harmonic content. A low-pass filter circuit can be used at the output of a 21-level SPWM circuit to remove the harmonic content at a higher frequency range, which can result in a lower THD value.
The THD percentages of the 21-level multilevel inverter using the SHE and SPWM digital switching controllers as modulation techniques were further compared with other research work. Table 12 compares the THD of the 21-level multilevel inverter for the SHE digital switching controller to the THD reported in other research studies that used low-switching-frequency modulation techniques. It is observed that most of the THD percentages obtained from other research work are greater than 4%. The lowest THD percentage comes from Khasim et al. (2021), at only 3.49%, obtained by using the asymmetric DC method [23]. The THD percentage of our designed SHE digital switching controller is the second lowest, at 3.91%, compared to others. For this 21-level multilevel inverter, only a few research papers have presented a design architecture of the switching controller in hardware. Although Khasim et al. (2021) reported the lowest THD percentage, the switching modulation was implemented using the dSPACE RIT1104 controller equipment, which is quite bulky in size and costly [23]. Niraimathi and Seyezhai (2020) implemented three types of switching-controller algorithms in a microcontroller (PIC16F877A), and the obtained THD percentages are greater than those obtained with our designed SHE switching controller. Bhavani and Manoharan (2021) implemented the switching controller in FPGA-Spartan 6 SP601, but no design architectures were explained in the published work [11], and the obtained THD percentage is 47% greater than that obtained with our designed SHE controller. By comparing the THD percentage with that reported in other research work, it can be concluded that our designed SHE digital switching controller not only provides a simple design architecture with minimal hardware logic resources but also has a low THD percentage.
The THD percentage of the 21-level multilevel inverter using the SPWM digital switching controller as the modulation technique was also compared with that reported in other research work. Table 13 compares the THD of the 21-level multilevel inverter for the SPWM digital switching controllers to that reported in other research studies that used a multicarrier with high switching frequency (FSW) for the SPWM modulation technique.
It is observed that the THD of our designed SPWM digital switching controller is 58% and 41% lower than the THD obtained by Agrawal and Bansal (2017) [1] and Hema Latha et al. (2018) [7], respectively. However, the THD of our designed SPWM digital switching controller is 9% and 18% greater than the THD obtained by Singh et al. (2018) [52] and Mahato et al. (2018) [53], respectively. Since our SPWM digital switching controller was designed to handle higher switching frequencies of up to 800 kHz, where MOSFET power switches can be used to operate at higher-frequency values, a lower THD percentage could also be obtained. Although Salgado et al. (2013) employed FPGA—Spartan 3E as a design platform, the THD percentage for the 21-level multilevel inverter was not stated in the published work. Additionally, the digital switching controller designed by Salgado et al. (2013) required a large amount of memory (RAM) storage for the 500 sampled points of sine-wave data [18].

5. Conclusions

The design and implementation of SHE and SPWM digital switching controllers using the Intel FPGA (DE2-115) board for 21-level multilevel inverter applications has been thoroughly expounded. Both digital switching controllers were designed with minimal hardware complexity and logic resources. For the SHE digital switching controller, the design only requires a four-bit FSM and a 13-bit counter to generate the 21-level stepped sine-wave output waveform. For the SPWM digital switching controller, the design employed an iterative CORDIC algorithm to generate the reference sinusoidal waveform at 50 Hz and a six-bit up-down counter with nine adders to generate ten carrier-wave signals. The CORDIC algorithm requires only a small amount of LUT to store eight arctan angles besides adder, subtractor, and shifter logic circuits. Therefore, the proposed SHE and SPWM digital switching controllers are much simpler in terms of design architecture and do not consume significant hardware logic resources compared to digital switching controllers reported in other research work, which require the usage of large amounts of BRAM to store the sampled-points data as well as complex softcore processor architectures.
The detailed internal design architecture of SHE and SPWM digital switching controllers, their operation in digital hardware logic, and their overall design implementation flow have been illustrated and elucidated. The functional behaviour of the SHE and SPWM digital switching controllers was tested using Intel Quartus II Modelsim software. The designed controllers were also synthesised and downloaded to the Intel FPGA (DE2-115) board for hardware measurement and real-time verification.
The synthesised logic-gate results indicate that total logic elements and registers for the SPWM digital switching controller (369/114,480) are almost double that of the SHE digital switching controller (186/114,480). However, the total utilisation of logic elements for each of the digital switching controllers (SHE or SPWM) was still low (less than 1%) compared to other designs. The maximum frequency (Fmax) of the SHE digital switching controller was 6% greater than that of the SPWM digital controller when a 50 MHz clock was used as a reference. The execution speed of the SHE digital switching controller implemented in the FPGA (Cyclone IV E) chip was found to be 95.39% faster compared to that implemented in the microcontroller (PIC16F877A). The execution speed of the SHE digital switching controller was further increased to a maximum of 99.97% faster than that of the microcontroller (PIC16F877A) when the maximum clock frequency was used (Fmax).
From the RTL simulations and hardware-measurement results, it can be concluded that the designed SHE and SPWM digital switching controllers function correctly, conforming to the functional behaviour of output gating pulse patterns with accurate timing duration. The measured dead-time delays from the RTL simulations and hardware-measurement results for all H-bridge circuits were found to be greater than the minimum dead-time-delay (3.05 µs) requirement of the IGBT (IKP10N60T) and optocoupler (HCPL-3020) components.
The system-level performance of the designed switching controllers was verified using HDL co-simulation in the MATLAB Simulink environment. The designed SHE and SPWM digital switching controllers were able to produce a 21-level stepped sine-wave output waveform with ±360 Vpp and a frequency of 50 Hz. The THD percentage of the 21-level SHE digital switching controller (3.91%) was found to be 37% less than that of the SPWM digital switching controller (6.17%). The THD percentages of SHE and SPWM were also compared with those obtained in other research work. The findings from the comparative analyses indicate that the designed SHE and SPWM switching controllers were not only able to provide simplified design architectures with minimum logic resources but also an acceptably lower THD percentage.
In conclusion, the proposed SHE and SPWM digital switching controllers have been proven to have minimal hardware complexity in terms of design architecture and require few hardware logic resources (less than 1% of LEs utilisation) when synthesised in an FPGA (Cyclone IV E) chip. Both switching controllers were able to function correctly when tested on a real-time FPGA (DE2-115) board and produced a safe dead-time delay for both upper and lower IGBT switches in all H-bridge circuits. The execution speed of the SHE digital switching controller was improved by a maximum of 99.97% when compared with that of the microcontroller (PIC16F877A). Furthermore, both switching controllers produced the desired 21-level stepped sinusoidal output waveform (with ±360 Vpp) with a low THD percentage when tested in HDL co-simulation in MATLAB Simulink. These promising results are very beneficial for the development of portable power converters in solar PV applications that demand small digital-controller devices with low power consumption.

Author Contributions

Conceptualization, E.N.; methodology, E.N. and A.R.; software, E.N., A.R. and I.R.I.; validation, E.N., I.R.I., R.D. and D.K.; formal analysis, E.N.; investigation, E.N.; resources, E.N., A.R. and I.R.I.; data curation, E.N.; writing—original draft preparation, E.N.; writing—review and editing, E.N., I.R.I., R.D., S.S. and D.K.; visualization, E.N.; supervision, E.N. and I.R.I.; project administration, E.N.; funding acquisition, E.N. All authors have read and agreed to the published version of the manuscript.

Funding

The APC was funded by Universiti Teknologi MARA (UiTM).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would like to thank Universiti Teknologi MARA, Cawangan Pulau Pinang and the Ministry of Higher Education (MOHE) Malaysia, for the research facilities provided during the experimental work.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Agrawal, N.; Bansal, P. A new 21-level asymmetrical multilevel inverter topology with different PWM techniques. In Proceedings of the 2017 Recent Developments in Control, Automation and Power Engineering (RDCAPE), Noida, India, 26–27 October 2017; pp. 224–229. [Google Scholar]
  2. Sarker, R.; Datta, A.; Debnath, S. FPGA Implementation of Phase Disposition PWM (PD-PWM) Strategy for Cascaded H-Bridge Multilevel Inverter (CHB-MLI). In Proceedings of the 2020 IEEE Applied Signal Processing Conference (ASPCON), Kolkata, India, 7–9 October 2020; pp. 80–84. [Google Scholar]
  3. Noorsal, E.; Ibrahim, I.R.; Rahim, A.F.A.; Rizman, Z.I. Multilevel Inverter Switching Controller Using A Field Multilevel Inverter Switching Controller Using A Field Programmable Gate Array (FPGA). J. Fundam. Appl. Sci. 2017, 9, 684–709. [Google Scholar] [CrossRef]
  4. Choudhury, S.; Bajaj, M.; Dash, T.; Kamel, S.; Jurado, F. Multilevel inverter: A survey on classical and advanced topologies, control schemes, applications to power system and future prospects. Energies 2021, 14, 5773. [Google Scholar] [CrossRef]
  5. Khalil, M.R.; Mohammeed, L.A.; Hbeti, L.A.Y.A. Harmonic Elimination of D.C to A.C Converters Using Embedded Design Techniques. In Proceedings of the 3rd International Conference on Advanced Science and Engineering, ICOASE 2020, Duhok, Iraq, 23–24 December 2020; pp. 43–48. [Google Scholar]
  6. Bughneda, A.; Salem, M.; Richelli, A.; Ishak, D.; Alatai, S. Review of multilevel inverters for PV energy system applications. Energies 2021, 14, 1585. [Google Scholar] [CrossRef]
  7. Hema Latha, J.; Banakara, B.R. Modeling and analysis of 21 level cascade model multilevel inverter. In Proceedings of the 2018 IEEE 2nd International Conference on Inventive Systems and Control, ICISC, Coimbatore, India, 19–20 January 2018; pp. 586–591. [Google Scholar]
  8. Sarker, R. Phase Opposition Disposition PWM (POD-PWM) Strategy to Reduce WTHD Content from an NPC Inverter-Fed Electric Vehicle System. In Proceedings of the 2020 IEEE 17th India Council International Conference, INDICON, New Delhi, India, 10–13 December 2020. [Google Scholar]
  9. Susheela, N.; Satish Kumar, P. Evaluation of POD and APOD multicarrier SPWM techniques for three-phase seven-level diode clamped multilevel inverter fed induction motor drive using FPGA. Int. J. Power Electron. 2020, 12, 282–301. [Google Scholar] [CrossRef]
  10. Sarker, R.; Datta, A. An FPGA-based Dead-time Computation Technique for Neutral Point Clamped Multilevel Inverter (NPC-MLI). In Proceedings of the 2020 IEEE 17th India Council International Conference, INDICON, New Delhi, India, 10–13 December 2020. [Google Scholar]
  11. Bhavani, M.; Manoharan, P.S. A Novel 21 Level Switched Capacitor Modular Multilevel Inverter Using Gray Wolf Optimization. J. Electr. Eng. Technol. 2021, 17, 283–294. [Google Scholar] [CrossRef]
  12. Halim, W.A.; Azam, T.N.A.T.; Applasamy, K.; Jidin, A. Selective harmonic elimination based on newton-raphson method for cascaded H-bridge multilevel inverter. Int. J. Power Electron. Drive Syst. 2017, 8, 1193–1202. [Google Scholar]
  13. Halim, W.A.; Rahim, N.A.; Azri, M. Generalized selective harmonic elimination modulation for transistor-clamped H-bridge multilevel inverter. J. Power Electron. 2015, 15, 964–973. [Google Scholar] [CrossRef]
  14. Halim, W.A.; Rahim, N.A.; Azri, M. Selective harmonic elimination for a single-phase 13-level TCHB based cascaded multilevel inverter using FPGA. J. Power Electron. 2014, 14, 488–498. [Google Scholar] [CrossRef]
  15. Ibrahim, I.R.; Hussain, M.N.M.; Soh, Z.H.C.; Shafie, M.A.; Omar, A.M. Development of a New Toplogy of a Single Phase 21-level Cascaded H-Bridge Multilevel Inverter for a Dual-Power PV-grid System. ESTEEM Acad. J. 2018, 14, 11. [Google Scholar]
  16. Ahmad, S.; Ganie, Z.A.; Ashraf, I.; Iqbal, A. Harmonics minimization in 3-level inverter waveform and its FPGA realization. In Proceedings of the 2018 3rd International Conference on Innovative Applications of Computational Intelligence on Power, Energy and Controls with their Impact on Humanity, CIPECH, Ghaziabad, India, 1–2 November 2018; pp. 183–187. [Google Scholar]
  17. Atoui, E.B.; Mesbah, T.; Atoui, H. FPGA Implementation of Multi-carriers PWM Technique for Modular Multi-level Inverter. In Proceedings of the 2018 International Conference on Applied Smart Systems, ICASS, Medea, Algeria, 24–25 November 2018. [Google Scholar]
  18. Salgado-Herrera, N.M.; Medina-Rios, A.; Ramos-Paz, A.; Rodriguez-Rodriguez, J.R. Generation of a multilevel SPWM technique of 3, 9 and 21 levels with FPGAs. In Proceedings of the 2013 45th North American Power Symposium, NAPS, Manhattan, KS, USA, 22–24 September 2013. [Google Scholar]
  19. Juárez-Abad, J.A.; Barahona-Avalos, J.L.; Linares-Flores, J. PWM techniques for an asymmetric multilevel binary inverter: An FPGA-based implementation. IET Power Electron. 2021, 14, 1529–1539. [Google Scholar] [CrossRef]
  20. Sarker, R.; Datta, A.; Debnath, S. FPGA-Based High-Definition SPWM Generation with Harmonic Mitigation Property for Voltage Source Inverter Applications. IEEE Trans. Ind. Inform. 2021, 17, 1352–1362. [Google Scholar] [CrossRef]
  21. Sarker, R.; Datta, A.; Debnath, S. FPGA-based variable modulation-indexed-SPWM generator architecture for constant-output-voltage inverter applications. Microprocess. Microsyst. 2020, 77, 103123. [Google Scholar] [CrossRef]
  22. Letha, S.S.; Thakur, T.; Kumar, J. Hardware Implementation of Power Quality Improvement in Photo-Voltaic Fed Cascaded H-Bridge Multilevel Inverter. In Proceedings of the 2018 IEEE 27th International Symposium on Industrial Electronics (ISIE), Cairns, Australia, 13–15 June 2018; pp. 401–406. [Google Scholar]
  23. Khasim, S.R.; Dhanamjayulu, C.; Padmanaban, S.; Holm-Nielsen, J.B.; Mitolo, M. A Novel Asymmetrical 21-Level Inverter for Solar PV Energy System with Reduced Switch Count. IEEE Access 2021, 9, 11761–11775. [Google Scholar] [CrossRef]
  24. Ibrahim, I.R.; Abd Rahman, M.A.; Omar, A.M. A New Adaptive Selective Harmonic Elimination technique for 5-level Cascaded H-Bridge Multilevel Inverter. In Proceedings of the International Conference on Advance Mechanic, Power and Energy (AMPE 2015), Melaka, Malaysia, 12–13 September 2015; pp. 1–5. [Google Scholar]
  25. Ibrahim, I.R. Power Converter for Dual-Power Photovoltaic-Grid Energy System. Ph.D. Thesis, Universiti Teknologi MARA, Shah Alam, Malaysia, 2017; 232p. [Google Scholar]
  26. Zhang, Z.; Wang, P. Research and Implementation of Natural Sampling SPWM Digital Method for Three-Level Inverter of Photovoltaic Power Generation System Based on FPGA. IEEE Access 2019, 7, 114449–114458. [Google Scholar] [CrossRef]
  27. Ranganathan, S.; Sriharsha, H.S.; Krishnan, R.K. Low cost FPGA implementation of SPWM using dynamically configurable switching frequency for three phase voltage source inverter. In Proceedings of the 2015 IEEE International Conference on Computational Intelligence and Computing Research, ICCIC, Madurai, India, 10–12 December 2015. [Google Scholar]
  28. Rusdi, M.; Samman, F.A.; Sadjad, R.S.; Salam, A.E.U.; MacHbub, C. Standalone Single Phase DC-AC Inverter with FPGA-based Pulse Modulated Generator Unit. In Proceedings of the 2020 International Seminar on Intelligent Technology and Its Application: Humanification of Reliable Intelligent Systems, ISITIA, Surabaya, Indonesia, 22–23 July 2020; pp. 7–12. [Google Scholar]
  29. Chitra, S.; Valluvan, K.R. Design and implementation of cascaded H-Bridge multilevel inverter using FPGA with multiple carrier phase disposition modulation scheme. Microprocess. Microsyst. 2020, 76, 103108. [Google Scholar] [CrossRef]
  30. Noorsal, E.; Arof, S.; Yahaya, S.Z.; Hussain, Z.; Kho, D.; Ali, Y.M. Design of an FPGA-Based Fuzzy Feedback Controller for Closed-Loop FES in Knee Joint Model. Micromachines 2021, 12, 968. [Google Scholar] [CrossRef]
  31. Lakshmipriya, N.; Anathamoorthy, N.P. Using FPGA real time model for novel 33-level switched-capacitor multilevel inverter for PMSM drive. Microprocess. Microsyst. 2020, 76, 103078. [Google Scholar] [CrossRef]
  32. Venkatesan, M.; Adhavan, B.; Suresh, K.; Balachander, K.; Prabakar, M.L.C. Research on FPGA controlled three phase PV inverter using multi carrier PWM control schemes. Microprocess. Microsyst. 2020, 76, 103089. [Google Scholar] [CrossRef]
  33. Prasad, D.A.; Mahadevan, K.; Prasanna, M.A. A modified asymmetric cascaded multilevel DC–AC converter with switched diodes using FPGA processor implementation. Microprocess. Microsyst. 2020, 74, 103019. [Google Scholar] [CrossRef]
  34. Al-Safi, A.; Al-Khayyat, A.; Manati, A.M.; Alhafadhi, L. Advances in FPGA Based PWM Generation for Power Electronics Applications: Literature Review. In Proceedings of the 2020 11th Annual IEEE Information Technology, Electronics and Mobile Communication Conference, IEMCON, Vancouver, BC, Canada, 4–7 November 2020; pp. 252–259. [Google Scholar]
  35. Hatas, H.; Genc, N.; Mamizadeh, A. FPGA Implementation of SPWM for Cascaded Multilevel Inverter by Using XSG. In Proceedings of the 2019 4th International Conference on Power Electronics and their Applications, ICPEA, Elazig, Turkey, 25–27 September 2019. [Google Scholar]
  36. Aush, M.G.; Vadiracharya, K. Real time analysis and simulation of five level grid connected H-bridge inverter using FPGA based controller. Int. J. Eng. Adv. Technol. 2019, 8, 445–447. [Google Scholar]
  37. Rahman, S.; Meraj, M.; Iqbal, A.; Ben-Brahim, L. Optimized FPGA implementation of PWAM-based control of three—Phase nine—Level quasi impedance source inverter. IEEE Access 2019, 7, 137279–137290. [Google Scholar] [CrossRef]
  38. Agarwal, A.; Agarwal, V.; Khan, I.A. FPGA based Sinusoidal pulse width modulated frequency converter. In Proceedings of the 2016 1st IEEE International Conference on Power Electronics, Intelligent Control and Energy Systems, ICPEICES, Delhi, India, 4–6 July 2016. [Google Scholar]
  39. Liou, W.R.; Villaruza, H.M.; Yeh, M.L.; Roblin, P. A digitally controlled low-EMI SPWM generation method for inverter applications. IEEE Trans. Ind. Inform. 2014, 10, 73–83. [Google Scholar] [CrossRef]
  40. Rongi, M.A.; Saparon, A.; Marzuki, N.H. A CORDIC-sinusoidal pulse width modulation using silterra 0.18 μm CMOS technology. In Proceedings of the 2010 International Conference on Electronic Devices, Systems and Applications, ICEDSA, Kuala Lumpur, Malaysia, 11–14 April 2010; pp. 76–81. [Google Scholar]
  41. Rongi, M.A.; Saparon, A.; Hamzah, M.K. Sinusoidal pulse width modulation using CORDIC algorithm for single phase matrix converter. In Proceedings of the 2010 5th IEEE Conference on Industrial Electronics and Applications, ICIEA, Taichung, Taiwan, 15–17 June 2010; pp. 1088–1093. [Google Scholar]
  42. Nikhil, K.A.; Bharath Chandra, P.; Jawahar, M.R.; Moorthi, S.; Selvan, M.P.; Kumaresan, N. FPGA-based closed-loop monitoring and control of doubly fed induction generator with single inverter and battery for wind energy conversion. Aust. J. Electr. Electron. Eng. 2018, 15, 175–183. [Google Scholar] [CrossRef]
  43. Xi, Z. Infeneon 2007-04—How to Calculate and Minimize the Deadtime Requirement for IGBTs Properly; Infineon Technologies AG: München, Germany, 2007. [Google Scholar]
  44. Infineon Technologies AG. IKP10N60T—Low Loss DuoPack: IGBT in Trench and Fieldstop Technology with Soft, Fast Recovery Anti-Parallel EmCon HE Diode; Infineon Technologies AG: München, Germany, 2004; pp. 1–14. [Google Scholar]
  45. Avago Technologies. HCPL-3020/HCPL-0302 0.4 Amp Output Current IGBT Gate Drive Optocoupler; Avago Technologies, Pte.: San Jose, CA, USA, 2006. [Google Scholar]
  46. Ibrahim, I.R.; Omar, A.M.; Hussain, Z. Power converter for dual-power PV-grid energy system utilizing cascaded multilevel inverter. Adv. Mater. Res. 2014, 925, 505–509. [Google Scholar] [CrossRef]
  47. XILINX. Spartan-3E FPGA Family Data Sheet; XILINX, Inc.: San Jose, CA, USA, 2018; 227p. [Google Scholar]
  48. XILINX. Spartan-3 FPGA Family: Introduction and Ordering Information; XILINX, Inc.: San Jose, CA, USA, 2013. [Google Scholar]
  49. XILINX. Spartan-6 Family Overview; XILINX, Inc.: San Jose, CA, USA, 2011; pp. 1–11. [Google Scholar]
  50. Islam, M.T.; Islam, M.S.; Bairagi, A.K. A New Single Phase 21 Level Inverter Topology with Reduced Number of Switches and Sources for Renewable Energy Applications. In Proceedings of the 2018 4th International Conference on Electrical Engineering and Information and Communication Technology, iCEEiCT, Dhaka, Bangladesh, 13–15 September 2018; pp. 561–565. [Google Scholar]
  51. Niraimathi, R.; Seyezhai, R. Analysis, simulation and implementation of a novel dual bridge asymmetric cascaded multi level inverter using MGWO-PI-PWM controller. Microprocess. Microsyst. 2020, 77, 103103. [Google Scholar] [CrossRef]
  52. Singh, V.; Gupta, S.; Pattnaik, S.; Tyagi, M. A new hybrid topology for multilevel inverter for power quality improvement. In Proceedings of the 2015 IEEE Power, Communication and Information Technology Conference (PCITC), Bhubaneswar, India, 15–17 October 2015; pp. 628–634. [Google Scholar]
  53. Mahato, B.; Mittal, S.; Nayak, P.K. N-Level Cascade Multilevel Converter with optimum number of switches. In Proceedings of the IEEE International Conference on Recent Trends in Electrical, Control and Communication (RTECC), Malaysia, Malaysia, 20–22 March 2018; pp. 228–233. [Google Scholar]
Figure 1. System overview of the 21-level cascaded H-bridge multilevel inverter.
Figure 1. System overview of the 21-level cascaded H-bridge multilevel inverter.
Micromachines 13 00179 g001
Figure 2. Example of five-level H-Bridge 1 circuit using photovoltaic (PV) string as the DC supply voltage (72 VDC).
Figure 2. Example of five-level H-Bridge 1 circuit using photovoltaic (PV) string as the DC supply voltage (72 VDC).
Micromachines 13 00179 g002
Figure 3. Symmetric disposition of multicarrier phase-disposition PWM (PD-PWM).
Figure 3. Symmetric disposition of multicarrier phase-disposition PWM (PD-PWM).
Micromachines 13 00179 g003
Figure 4. Switching generation using PD-SPWM technique for one-phase, 21-level multilevel inverter.
Figure 4. Switching generation using PD-SPWM technique for one-phase, 21-level multilevel inverter.
Micromachines 13 00179 g004
Figure 5. Location of switching time (T1–T10), switching angles (θ1–θ10), and step-time duration (t1–t11) in the stepped sine-wave output waveform.
Figure 5. Location of switching time (T1–T10), switching angles (θ1–θ10), and step-time duration (t1–t11) in the stepped sine-wave output waveform.
Micromachines 13 00179 g005
Figure 6. Top level of the SHE digital switching controller.
Figure 6. Top level of the SHE digital switching controller.
Micromachines 13 00179 g006
Figure 7. Internal architecture of the SHE digital switching controller.
Figure 7. Internal architecture of the SHE digital switching controller.
Micromachines 13 00179 g007
Figure 8. State diagram of the SHE digital switching controller.
Figure 8. State diagram of the SHE digital switching controller.
Micromachines 13 00179 g008
Figure 9. Ten symmetric dispositions of multicarrier phase-disposition PWM (PD-PWM) for a sinusoidal reference signal with a positive cycle only.
Figure 9. Ten symmetric dispositions of multicarrier phase-disposition PWM (PD-PWM) for a sinusoidal reference signal with a positive cycle only.
Micromachines 13 00179 g009
Figure 10. Top level of the SPWM digital switching controller.
Figure 10. Top level of the SPWM digital switching controller.
Micromachines 13 00179 g010
Figure 11. The internal architecture of the SPWM digital switching controller.
Figure 11. The internal architecture of the SPWM digital switching controller.
Micromachines 13 00179 g011
Figure 12. Hardware-measurement setup using an Intel field-programmable gate array (FPGA) (DE2-115) board and a digital oscilloscope.
Figure 12. Hardware-measurement setup using an Intel field-programmable gate array (FPGA) (DE2-115) board and a digital oscilloscope.
Micromachines 13 00179 g012
Figure 13. Example of system-level hardware description language (HDL) co-simulation development for the SHE digital switching controller using five cascaded H-bridge multilevel inverter model in MATLAB Simulink.
Figure 13. Example of system-level hardware description language (HDL) co-simulation development for the SHE digital switching controller using five cascaded H-bridge multilevel inverter model in MATLAB Simulink.
Micromachines 13 00179 g013
Figure 14. Schematics of the synthesised SHE digital switching controller using the Intel FPGA (Cyclone IV E) chip.
Figure 14. Schematics of the synthesised SHE digital switching controller using the Intel FPGA (Cyclone IV E) chip.
Micromachines 13 00179 g014
Figure 15. Schematics of the synthesised SPWM digital switching controller using the Intel FPGA (Cyclone IV E) chip.
Figure 15. Schematics of the synthesised SPWM digital switching controller using the Intel FPGA (Cyclone IV E) chip.
Micromachines 13 00179 g015
Figure 16. Register transfer-level (RTL) simulation results of the SHE digital switching controller: (a) Overall operation of the SHE digital switching controller; (b) Zoomed view of marked area A.
Figure 16. Register transfer-level (RTL) simulation results of the SHE digital switching controller: (a) Overall operation of the SHE digital switching controller; (b) Zoomed view of marked area A.
Micromachines 13 00179 g016aMicromachines 13 00179 g016b
Figure 17. RTL simulation results of the SHE digital switching controller’s output gating pulses for circuits of H-Bridge 2 (S12–S52), H-Bridge 3 (S13–S53), and H-Bridge 4 (S14–S54).
Figure 17. RTL simulation results of the SHE digital switching controller’s output gating pulses for circuits of H-Bridge 2 (S12–S52), H-Bridge 3 (S13–S53), and H-Bridge 4 (S14–S54).
Micromachines 13 00179 g017
Figure 18. RTL simulation results for the reference sine-wave generation of the SPWM digital switching controller.
Figure 18. RTL simulation results for the reference sine-wave generation of the SPWM digital switching controller.
Micromachines 13 00179 g018
Figure 19. RTL simulation result for the ten carrier-wave (cw1 to cw10) generations of the SPWM digital switching controller.
Figure 19. RTL simulation result for the ten carrier-wave (cw1 to cw10) generations of the SPWM digital switching controller.
Micromachines 13 00179 g019
Figure 20. RTL simulation result for the output gating pulses (“S45” to “S35”) of the SPWM digital switching controller.
Figure 20. RTL simulation result for the output gating pulses (“S45” to “S35”) of the SPWM digital switching controller.
Micromachines 13 00179 g020
Figure 21. Hardware measurement of the SHE digital switching controller’s output gating pulses: (a) Output gating pulses for H-Bridge 1 (“S11” to “S51”) and H-Bridge 5 (“S15” to “S55”). (b) Output gating pulses for H-Bridge 2 (“S12” to “S52”), H-Bridge 3 (“S13” to “S53”), and H-Bridge 4 (“S14” to “S54”).
Figure 21. Hardware measurement of the SHE digital switching controller’s output gating pulses: (a) Output gating pulses for H-Bridge 1 (“S11” to “S51”) and H-Bridge 5 (“S15” to “S55”). (b) Output gating pulses for H-Bridge 2 (“S12” to “S52”), H-Bridge 3 (“S13” to “S53”), and H-Bridge 4 (“S14” to “S54”).
Micromachines 13 00179 g021aMicromachines 13 00179 g021b
Figure 22. Hardware measurement of the SPWM digital switching controller’s output gating pulses: (a) Output gating pulses for positive cycle (“S45” to “S11”). (b) Output gating pulses for negative cycle (“S21” to “S35”).
Figure 22. Hardware measurement of the SPWM digital switching controller’s output gating pulses: (a) Output gating pulses for positive cycle (“S45” to “S11”). (b) Output gating pulses for negative cycle (“S21” to “S35”).
Micromachines 13 00179 g022aMicromachines 13 00179 g022b
Figure 23. Continuous stepped sine-wave output voltage of the 21-level multilevel inverter using the SHE digital switching controller.
Figure 23. Continuous stepped sine-wave output voltage of the 21-level multilevel inverter using the SHE digital switching controller.
Micromachines 13 00179 g023
Figure 24. Percentage of THD for the 21-level multilevel inverter using the SHE digital switching controller.
Figure 24. Percentage of THD for the 21-level multilevel inverter using the SHE digital switching controller.
Micromachines 13 00179 g024
Figure 25. Continuous stepped sine-wave output voltage of a 21-level multilevel inverter using the SPWM digital switching controller with a carrier frequency of 20 kHz.
Figure 25. Continuous stepped sine-wave output voltage of a 21-level multilevel inverter using the SPWM digital switching controller with a carrier frequency of 20 kHz.
Micromachines 13 00179 g025
Figure 26. Percentage of THD for the 21-level multilevel inverter using the SPWM digital switching controller with a carrier frequency of 20 kHz.
Figure 26. Percentage of THD for the 21-level multilevel inverter using the SPWM digital switching controller with a carrier frequency of 20 kHz.
Micromachines 13 00179 g026
Table 1. Active power switches for a 21-level multilevel inverter for SHE modulation technique.
Table 1. Active power switches for a 21-level multilevel inverter for SHE modulation technique.
Active SwitchesOutput Voltage (V)
S11, S41, S12, S42, S13, S43, S14, S44, S15, S45+5.0 VDC
S11, S41, S12, S42, S13, S43, S14, S44, S45, S55+4.5 VDC
S11, S41, S12, S42, S13, S43, S14, S44+4.0 VDC
S11, S41, S12, S42, S13, S43, S44, S45+3.5 VDC
S11, S41, S12, S42, S13, S43+3.0 VDC
S11, S41, S12, S42, S43, S53+2.5 VDC
S11, S41, S12, S42+2.0 VDC
S11, S41, S42, S52+1.5 VDC
S11, S41+1.0 VDC
S41, S51+0.5 VDC
All power switches are inactive+0.0 VDC
S21, S51−0.5 VDC
S21, S31−1.0 VDC
S21, S31, S22, S52−1.5 VDC
S21, S31, S22, S32−2.0 VDC
S21, S31, S22, S32, S23, S53−2.5 VDC
S21, S31, S22, S32, S23, S33−3.0 VDC
S21, S31, S22, S32, S23, S33, S24, S54−3.5 VDC
S21, S31, S22, S32, S23, S33, S24, S34−4.0 VDC
S21, S31, S22, S32, S23, S33, S24, S34, S25, S55−4.5 VDC
S21, S31, S22, S32, S23, S33, S24, S34, S25, S35−5.0 VDC
Table 2. IGBT switch arrangement for each H-bridge circuit for 21-Level SHE and SPWM multilevel inverters.
Table 2. IGBT switch arrangement for each H-bridge circuit for 21-Level SHE and SPWM multilevel inverters.
H-Bridge XSHE Digital Switching Controller
(S1X to S5X)
SPWM Digital Switching Controller
(S1X to S4X)
H-Bridge 1S11, S21, S31, S41,S51 S11, S21, S31, S41
H-Bridge 2S12, S22, S32, S42, S52 S12, S22, S32, S42
H-Bridge 3S13, S23, S33, S43, S53 S13, S23, S33, S43
H-Bridge 4S14, S24, S34, S44, S54 S14, S24, S34, S44
H-Bridge 5S15, S25, S35, S45, S55 S15, S25, S35, S45
Table 3. Conversion of optimised switching angles (θ1–θ10) to switching times (T1–T10).
Table 3. Conversion of optimised switching angles (θ1–θ10) to switching times (T1–T10).
Optimised Switching Angles (θ) Switching Times, (µs)
θ1 = 2.16T1 = 120
θ2 = 8.26T2 = 459
θ3 = 14.24T3 = 791
θ4 = 20.23T4 = 1124
θ5 = 26.00T5 = 1444
θ6 = 33.00T6 = 1833
θ7 = 40.00T7 = 2222
θ8 = 48.00T8 = 2667
θ9 = 58.18T9 = 3232
θ10 = 68.02T10 = 3779
Table 4. Calculation of step-time duration (t1–t11).
Table 4. Calculation of step-time duration (t1–t11).
LevelStep Time, (t)Calculation Duration, (µs)
0.0 VDCt12T1240
±0.5 VDCt2T2 − T1339
±1.0 VDCt3T3 − T2332
±1.5 VDCt4T4 − T3333
±2.0 VDCt5T5 − T4321
±2.5 VDCt6T6 − T5389
±3.0 VDCt7T7 − T6389
±3.5 VDCt8T8 − T7444
±4.0 VDCt9T9 − T8566
±4.5 VDCt10T10 − T9547
±5.0 VDCt11(5 ms − T10) × 22442
Table 5. Output gating patterns of the SHE digital switching controller (S11–S55) for each state.
Table 5. Output gating patterns of the SHE digital switching controller (S11–S55) for each state.
Present
States
Polarity
(pos = 1, neg = 0)
Output (S11–S55)
St1
(±0.0 VDC)
1
0
00000_00000_00000_00000_00000
00000_00000_00000_00000_00000
St2
(±0.5 VDC)
1
0
00011_00000_00000_00000_00000
01001_00000_00000_00000_00000
St3
(±1.0 VDC)
1
0
10010_00000_00000_00000_00000
01100_00000_00000_00000_00000
St4
(±1.5 VDC)
1
0
10010_00011_00000_00000_00000
01100_01001_00000_00000_00000
St5
(±2.0 VDC)
1
0
10010_10010_00000_00000_00000
01100_01100_00000_00000_00000
St6
(±2.5 VDC)
1
0
10010_10010_00011_00000_00000
01100_01100_01001_00000_00000
St7
(±3.0 VDC)
1
0
10010_10010_10010_00000_00000
01100_01100_01100_00000_00000
St8
(±3.5 VDC)
1
0
10010_10010_10010_00010_00000
01100_01100_01100_01001_00000
St9
(±4.0 VDC)
1
0
10010_10010_10010_10010_00000
01100_01100_01100_01100_00000
St10
(±4.5 VDC)
1
0
10010_10010_10010_10010_00011
01100_01100_01100_01100_01001
St11
(±5.0 VDC)
1
0
10010_10010_10010_10010_10010
01100_01100_01100_01100_01100
Table 6. Amplitude-level disposition for ten carrier waves.
Table 6. Amplitude-level disposition for ten carrier waves.
Carrier WavesAmplitudeTriangular Amplitude
(Start–Max–End)
cw1cw1 = cw1 + 10–31–0
cw2cw2 = cw1 + 2525–56–25
cw3cw3 = cw1 + 5050–81–50
cw4cw4 = cw1 + 7575–106–75
cw5cw5 = cw1 + 100100–131–100
cw6cw6 = cw1 + 125125–156–125
cw7cw7 = cw1 + 150150–181–150
cw8cw8 = cw1 + 175175–206–175
cw9cw9 = cw1 + 200200–231–200
cw10cw10 = cw1 + 224224–255–224
Table 7. Synthesis summary report of SHE and SPWM digital switching controllers using the Intel field-programmable gate array (FPGA) (Cyclone IV E) chip.
Table 7. Synthesis summary report of SHE and SPWM digital switching controllers using the Intel field-programmable gate array (FPGA) (Cyclone IV E) chip.
ItemsSHE
Digital Switching Controller
SPWM
Digital Switching Controller
Family nameCyclone IV ECyclone IV E
DeviceEP4CE115F29C7EP4CE115F29C7
Total logic elements186/114,480 (<1%)369/114,480 (<1%)
Total registers59108
Total pins29/529 (5%)36/529 (7%)
Total memory bits0/3,981,312 (0%)0/3,981,312 (0%)
Embedded multiplier 9-bit elements0/532 (0%)1/532 (<1%)
Total PLLs0/4 (4%)0/4 (0%)
Fmax (slow 1200 mV 85 °C)
(Clock reference = 50 MHz)
198.06 MHz 152.25 MHz
Table 8. 21-level SHE digital switching controller implemented in FPGA (Cyclone IV E) and microcontroller (PIC16F877A).
Table 8. 21-level SHE digital switching controller implemented in FPGA (Cyclone IV E) and microcontroller (PIC16F877A).
SHE
Digital Switching Controller
Operating FrequencyState/Machine CycleExecution Time (s)
FPGA (Cyclone IV E) FSM clock frequency = 1 MHz40 states40 µs
FMAX = 137.99 MHz
(Clock reference = 1 MHz)
40 states0.289 µs
Microcontroller (PIC16F877A) FOSC = 4 MHz868 machine cycles868 µs
Table 9. Comparison of design architectures of digital switching controllers for SHE and SPWM modulation techniques.
Table 9. Comparison of design architectures of digital switching controllers for SHE and SPWM modulation techniques.
Proposed byModulation
Technique
Hardware Logic
Design Method
FPGA Device
Synthesised Logic Gate
Juarez Abad et al. (2021)
[19]
SPWM
(7-level)
  • Sine wave: 1024 × 32 ROM
  • Carrier wave: 1000 × 32-bit BRAM
Xilinx Spartan 6-SLX45
LCs: 2464 (5.6%)
Slices: 385 (5.6%)
BRAM: 14 (12%)
Sarker et al. (2021)
[20]
HD-SPWM
(3-level)
  • Sine wave: BRAM (Fs = 4 MHz)
  • Carrier wave: digital pulse
Xilinx Spartan 3-3S400
LCs: 378 (4.6%)
Slices: 168 (4.6%)
BRAM: 1 (1%)
Sarker et al. (2020)
[2]
SPWM
(9-level)
  • Sine wave: BRAM (256 samples)
  • Carrier wave: 4 up-down counters
Xilinx Spartan 6-SLX9
LCs: 9152 (100%)
Slices: 1430 (100%)
Nikhil et al. (2018)
[42]
SPWM
(NA)
  • Sine wave: softcore 32-bit RISC TSK-3000A and SRAM.
  • Carrier wave: up-down counter
Xilinx Spartan 3AN
NA
Atoui et al. (2018)
[17]
SPWM
(5-level)
  • Sine wave: ROM (2000 samples)
  • Carrier wave: up-down counter
Xilinx Spartan 6-SLX45
LCs: 1126 (2.6%)
Slice LUTs: 703 (2.6%)
Ranganathan et al. (2016)
[27]
SPWM
(NA)
  • Sine wave: 7 BRAM
  • Softcore 32-bit RISC Microblaze
Xilinx Spartan 6-SLX4
LCs: 2110 (55%)
BRAM: 4 (58%)
Khalil et al. (2020)
[5]
SHE
(3-level)
  • PWM: timers
  • Shared and distributed memories
  • Dual softcore Microblaze
Xilinx Spartan 6
NA
Halim et al. (2014, 2015 and 2017)
[12,13,14]
SHE
(7, 13 and 9-level)
  • Sine wave: LUT (5000 samples) and combinational logic gates
Intel Cyclone II
LEs: 1173 (4%)
Combo Func: 1170 (4%)
Register: 53
Our WorkSPWM
(21-level)
  • Sine wave: LUT (8 arctan angles)
  • Carrier wave: one 6-bit up-down counter and 9 adders.
Intel Cyclone IV E
LEs: 369 (<1%)
Register: 108
Our WorkSHE
(21-level)
  • Sine wave: 4-bit FSM and 13-bit counter
Intel Cyclone IV E
LEs: 186 (<1%)
Register: 59
Table 10. Total harmonic distortion (THD) of the 21-level inverter for the SPWM digital switching controller at different carrier-wave frequencies (1 kHz to 800 kHz).
Table 10. Total harmonic distortion (THD) of the 21-level inverter for the SPWM digital switching controller at different carrier-wave frequencies (1 kHz to 800 kHz).
Carrier WaveTHD % % THD Reduction from Carrier Wave = 1 kHz
1 kHz6.790
3 kHz6.435
5 kHz6.416
10 kHz6.366
20 kHz6.327
40 kHz6.179
80 kHz5.9413
100 kHz5.8214
200 kHz5.3521
400 kHz5.0825
800 kHz4.7330
Table 11. THD comparison of 21-level inverters for SHE and SPWM digital switching controllers.
Table 11. THD comparison of 21-level inverters for SHE and SPWM digital switching controllers.
Digital Switching ControllerLevelTHD %
SHE213.91
SPWM (cw = 40 kHz)216.17
Table 12. Comparison of THD of a 21-level multilevel inverter using a low-switching-frequency modulation technique.
Table 12. Comparison of THD of a 21-level multilevel inverter using a low-switching-frequency modulation technique.
Proposed byModulation Technique
(Low Switching Frequency)
HardwareSoftwareTHD %
(Simulation)
Bhavani and Manoharan (2021)
[11]
GWO AlgorithmFPGA—Spartan 6Matlab7.41
Hema Latha and Banakara (2018)
[7]
--Matlab 10.67
Islam et al. (2018)
[50]
Equal-Phase Method
Half-Height Method
-Matlab13.3
4.09
Niraimathi and Seyezhai (2020)
[51]
GA Algorithm
PSO Algorithm
MGWO-PI-PWM Algorithm
Microcontroller (PIC16F877A)Matlab4.5
7.2
6.51
Khasim et al. (2021)
[23]
-dSPACE RIT1104 ControllerMatlab3.49
Our work (SHE) MhyPSO AlgorithmFPGA—DE2 115Matlab3.91
Table 13. Comparison of THD of 21-level multilevel inverter using SPWM modulation technique.
Table 13. Comparison of THD of 21-level multilevel inverter using SPWM modulation technique.
Proposed byModulation Strategy
(High Switching Frequency)
HardwareSoftwareTHD %
(Simulation)
Agrawal and Bansal (2018)
[1]
Asymmetrical SPWM (PD)
(FSW = 2 kHz)
-Matlab14.52
Singh et al. (2016)
[52]
SPWM (APOD)
(FSW = 5 kHz)
-Matlab5.61
Hema Latha and Banakara (2018)
[7]
SPWM
(FSW = 3 kHz)
-Matlab 10.45
Mahato et al. (2019)
[53]
Asymmetrical SPWM (PD)
(FSW = 3 kHz)
-Matlab5.08
Salgado et al. (2013)
[18]
SPWM
(FSW = 3 kHz)
FPGA—Spartan 3E--
Our work (SPWM)SPWM (PD-PWM)
(FSW = 40 kHz)
FPGA—DE2 115Matlab6.17
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Noorsal, E.; Rongi, A.; Ibrahim, I.R.; Darus, R.; Kho, D.; Setumin, S. Design of FPGA-Based SHE and SPWM Digital Switching Controllers for 21-Level Cascaded H-Bridge Multilevel Inverter Model. Micromachines 2022, 13, 179. https://doi.org/10.3390/mi13020179

AMA Style

Noorsal E, Rongi A, Ibrahim IR, Darus R, Kho D, Setumin S. Design of FPGA-Based SHE and SPWM Digital Switching Controllers for 21-Level Cascaded H-Bridge Multilevel Inverter Model. Micromachines. 2022; 13(2):179. https://doi.org/10.3390/mi13020179

Chicago/Turabian Style

Noorsal, Emilia, Asyraf Rongi, Intan Rahayu Ibrahim, Rosheila Darus, Daniel Kho, and Samsul Setumin. 2022. "Design of FPGA-Based SHE and SPWM Digital Switching Controllers for 21-Level Cascaded H-Bridge Multilevel Inverter Model" Micromachines 13, no. 2: 179. https://doi.org/10.3390/mi13020179

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop