# Skyrmions-based logic gates in one single nanotrack completely reconstructed via chirality barrier

Dongxing Yu, Hongxin Yang, Mairbek Chshiev, Albert Fert

<figure><img src="image_1.png" /></figure>

## ► To cite this version:

Dongxing Yu, Hongxin Yang, Mairbek Chshiev, Albert Fert. Skyrmions-based logic gates in one single nanotrack completely reconstructed via chirality barrier. National Science Review, 2022, 9 (12), pp.nwac021. 10.1093/nsr/nwac021. hal-04956369

HAL Id: hal-04956369

https://hal.science/hal-04956369v1

Submitted on 19 Feb 2025

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_2.png" /></figure>
PHYSICS

# Skyrmions-based logic gates in one single nanotrack completely reconstructed via chirality barrier

Dongxing Yu<fnref n="1" />, Hongxin Yang ID 1,4,*, Mairbek Chshiev<fnref n="2" />,⁵ and Albert Fert<fnref n="3" />

## ABSTRACT

Logic gates based on magnetic elements are promising candidates for logic-in-memory applications with non-volatile data retention, near-zero leakage and scalability. In such spin-based logic devices, however, the multi-strip structure and fewer functions are obstacles to improving integration and reducing energy consumption. Here we propose a skyrmions-based single-nanotrack logic family including AND, OR, NOT, NAND, NOR, XOR and XNOR that can be implemented and reconstructed by building and switching the Dzyaloshinskii-Moriya interaction (DMI) chirality barrier on a racetrack memory. Besides the pinning effect of the DMI chirality barrier on skyrmions, the annihilation, fusion and shunting of two skyrmions with opposite chirality are also achieved and demonstrated via local reversal of the DMI, which are necessary for the design of an engineer programmable logic nanotrack, transistor and complementary racetrack memory.

**Keywords:** skyrmion, single-nanotrack logic gates, spintronics, DMI chirality barrier, reconstruction of single device

## INTRODUCTION

Magnetic skyrmions are non-trivial spin structures with topological protection [1–3] that exhibit many desirable features, such as nanoscale size, remarkable stability and low driving threshold current [4–10]. These characteristics make them suitable for the design of non-volatile, low-power spin-logic gates that can be integrated with memory [11–24]. Since the realization of two or more spin-based logic functions in such architectures usually requires the combination of multiple strips or the cascade of simple operations, multifunctional spin-logic devices have more room for simplification to improve the integration and reduce energy consumption of integrated circuits. A possibility of switching Dzyaloshinskii-Moriya interaction (DMI), a crucial ingredient for the formation of exotic chiral magnetic states [25,26], represents a very attractive direction and an important challenge [27–32]. By reconstructing different chirality barriers (i.e. the energy boundary between states of opposite DMI chirality proposed in this work) using an electric field pulse, one can effectively control the dynamics of skyrmions, thereby establishing an additional degree of manipulation for the programmable skyrmions-based logic devices.

Logic gates usually consist of two inputs and one output. Considering the very simple structure of one single nanotrack, we propose to create magnetic skyrmions at both ends of it via a magnetic tunnel junction (input-MTJ) as inputs [19,23,33] and set up an output-MTJ in the middle area to detect the presence or absence of a magnetic skyrmion as output. The design of reconfigurable single-nanotrack logic gates needs to solve two problems. The first one is controlling the relative motion of two magnetic skyrmions serving as the inputs in order to make them meet at the output. Second, logic gates with various functions need different output responses to the same input, which requires the ability to switch between different skyrmion dynamics by external stimuli to realize the reconstruction of logic gates. The emergence of the DMI chirality barrier considered in this work can effectively solve these problems. For instance, it enables skyrmions with opposite chirality to meet and interact by locally reversing the DMI chirality in a nanotrack as shown in Figs 1a and 2a. The distribution and number of chirality barriers can be changed by an electric field pulse or other methods that can control the DMI [27–31,34–36] and the resulting various magnetic skyrmion dynamic effects will allow different logic operations

<footnote n="1">¹Quantum Functional Materials Laboratory, Ningbo Institute of Materials Technology and Engineering, Chinese Academy of Sciences, Ningbo 315201, China;</footnote>

<footnote n="2">²Université Grenoble Alpes, CEA, CNRS, Spintec, Grenoble 38000, France;</footnote>

<footnote n="3">³Université Paris-Saclay, Unité Mixte de Physique CNRS-Thales, Palaiseau 91767, France; ⁴Center of Materials Science and Optoelectronics Engineering, University of Chinese Academy of Sciences, Beijing 100049, China and ⁵Institut Universitaire de France (IUF), Paris 75231, France</footnote>

<footnote>*Corresponding author. E-mail: hongxin.yang@nimte.ac.cn</footnote>

<footnote>Received 1 July 2021; Revised 6 January 2022;</footnote>

<footnote>Accepted 7 January 2022</footnote>
<figure><img src="image_3.png" /><figcaption>**Figure 1.** Schematic of the logic device and the evolution of the motion of four skyrmions driven by the same in-plane current. (a) A skyrmion-based single-nanotrack logic device with two inputs at both ends and one output in the middle. In the middle area of the nanostrip, a chirality barrier is formed by a DMI with the opposite sign. The skyrmions in (b), (c), (d) and (e) form four different dynamic modes starting from the center of the magnetoelectric multiferroics with a side length of 100 nm. The skyrmions in (c), (d) and (e) can be obtained from that in (b) by applying a corresponding electric field $\epsilon$ or magnetic field $H$. The oblique dotted lines are their respective trajectories driven by the same current. The color scale indicates the out-of-plane component of the magnetization and has been used throughout this paper.</figcaption></figure>

to be performed efficiently within one single nanotrack.

In this work, besides the pinning effect of the DMI chirality barrier on magnetic skyrmions, the annihilation, fusion and shunting of a skyrmion-skyrmion pair with opposite chirality are also realized by switching the type of barrier (single and double barriers). Then, the completely reconfigurable logic family including AND, OR, NOT, NAND, NOR, XOR and XNOR are implemented based on the proposed skyrmion dynamics in one single nanotrack. Such a simple single-nanotrack skyrmions-based logic device can realize all logic calculation functions and switch from one operation to another without the superposition of logic gates, which is more suitable for device integration. By controlling the local chirality of the DMI in a racetrack memory,

we also demonstrate the application of the DMI chirality barrier in the skyrmion transistor and the reset process of skyrmion bits.

# RESULTS AND DISCUSSION

## Model and skyrmion motion phase diagram

We consider a CrN multiferroic monolayer as an example but are not limited to it. The energy density $E$ of our magnetic system can be written as:

$$E = A(\nabla \mathbf{m})^2 - K_{uz} m_z^2 - \frac{1}{2} \mu_0 M_s \mathbf{m} \cdot \mathbf{H}_d + D [m_z (\nabla \cdot \mathbf{m}) - (\mathbf{m} \cdot \nabla) m_z],$$

with each term representing the exchange coupling, perpendicular magnetic anisotropy (PMA), demagnetization and DMI energy terms, respectively. As shown in our recent work [31], the PMA here is strong enough, so the above energy density $E$ allows the existence of a ~10-nm isolated metastable skyrmion without an external magnetic field. The topological property of a skyrmion can be described by the topological charge $Q = 1/(4\pi) \int \mathbf{m} \cdot (\partial_x \mathbf{m} \times \partial_y \mathbf{m}) dx dy$ ($Q = \pm 1$) and helicity $\gamma$ ($\gamma = 0, \pm \pi/2$ and $\pi$) [2]. When an external vertical electric field $\epsilon$ is applied on the multiferroic monolayer to alter the direction of electrical polarization $P$ (Supplementary Fig. S1a) [31], the DMI also switches its sign and causes a consequence of skyrmion diameter $d$ variation (Supplementary Fig. S1b). Accordingly, the helicity of the skyrmion switches from $\gamma = 0$ ($\pi$) to $\gamma = \pi$ (0) within a period $T = 400$ ps as shown in Supplementary Fig. S1c.

Since there are four different skyrmion states described by the chirality and polarity, a current applied in the same direction can induce four different skyrmion motion modes as shown in Fig. 1b-e. The topological charge sign switching induced by a magnetic field can only lead to the reversal of a transverse velocity (perpendicular to the driving current direction) [37]; however, the chirality switching induced by an electric field can lead to the reversal of both transverse and horizontal velocities (parallel or antiparallel to the driving current direction). This mechanism can be demonstrated by a modified Thiele equation derived from the Landau-Lifshitz-Gilbert (LLG) equation by considering an isolated skyrmion as a rigid point-like particle [38-40] (see Methods and Supplementary Materials). This allows us to explore the interaction of magnetic skyrmions with different chirality in one single nanotrack driven by the same current as shown in Fig. 1a.
<figure><img src="image_4.png" /><figcaption>**Figure 2.** Simulation of skyrmion—skyrmion pair annihilation and pinning induced by a DMI chirality barrier. (a) Scheme of the chirality barrier formed by a nanotrack with opposite DMI chirality on the left and right. This structure can be realized by applying an electric field pulse to half of the nanotrack. (b) Snapshots of the skyrmion–skyrmion pair annihilation and pinning process at different stages. The white dashed line in the middle of the nanotrack indicates the DMI chirality barrier. Two other dashed lines describe the transport process of the magnetic skyrmions.</figcaption></figure>

## Skyrmion—skyrmion pair annihilation, pinning and fusion

To explore the interaction between skyrmions with different chirality, we designed a nanotrack comprising two parts with opposite DMI chirality separated by a constructed hereby non-volatile DMI chirality barrier as shown in Fig. 2a. On both sides of the nanotrack with opposite DMI, two skyrmions with different helicity ($γ = 0$ and $γ = π$) are excited simultaneously. The two skyrmions will move towards each other driven by a current via spin-orbit torque (SOT) and eventually collide in the middle area of the strip. Similar to two particles with positive and negative charges, the two skyrmions with opposite chirality can also attract each other. Since the pinning force of the chirality barrier on the two skyrmions is less than the attractive force between them, they finally annihilate on the upper and lower sides of the track within 0.88 ns as shown in Fig. 2b (left panel). However, when two skyrmions cannot

reach the DMI chirality barrier at the same time, the first skyrmion will be blocked by the barrier until another skyrmion with opposite chirality arrives, resulting in a similar skyrmion–skyrmion pair annihilation process (Fig. 2b; Supplementary Video S1, 1.3–1.7 ns). The pinning effect on the skyrmion due to the DMI chirality barrier can be observed more clearly in Fig. 2b (right panel) and Supplementary Video S1 (1.7–2.7 ns).

Figure 3a shows the schematic diagram of double DMI chirality barriers. A positive electric field pulse can switch the negative DMI chirality of the brown area to positive one and form chirality barriers in the middle of the strip, while a negative one can eliminate the chirality barriers. Compared to the chirality barrier in Fig. 2a, the double barriers in Fig. 3 also have a pinning effect on a single magnetic skyrmion, but the dynamics of skyrmions with opposite chirality will depend on both the attractive and pinning forces. When the double barriers are too narrow (<6 nm) and the attractive force is stronger than the pinning one, the magnetic skyrmions will attract each other and annihilate together near the barrier. When the two magnetic skyrmions with opposite chirality approach each other in double barriers wider than 6 nm but in the skyrmions’ interaction range, the pinning force will balance the attractive force, forming a non-trivial particle with topological charge $Q = 1.87$ (Fig. 3b; Supplementary Fig. S2). The topological charge $Q$ will be affected by the width of the barrier. When the barrier is narrower, the magnetic skyrmions with opposite chirality will fuse more closely and the topological charge will be close to 1, otherwise it will be close to 2.

Due to the strong magnetic anisotropy in the CrN monolayer, the driving current density used in our logic operation is 28 MA/cm², which is nearly twice the current density used by other logic devices based on magnetic skyrmions [19]. A larger current density can further increase the attractive force between magnetic skyrmions with opposite chirality and accelerate their annihilation or conversion process. However, an excessive current will annihilate them near the chirality barrier as shown in Supplementary Fig. S3. The Curie temperature of CrN is 805 K [41]. The simulated results have proved that neither thermal disturbances at room temperature nor the internal defects can affect the skyrmion dynamics. Moreover, it is shown that the dynamics of the pinning, annihilation and fusion of skyrmions will not be affected in the strip with a 12-nm transition region as shown in Supplementary Videos S2 and S3 for a single (double) barrier. The magnetic skyrmion dynamics mentioned in this article are not limited to a CrN monolayer; other structures with controllable DMI chirality can also
<figure><img src="image_5.png" /><figcaption>**Figure 3.** Skyrmion–skyrmion pair fusion induced by double DMI chirality barriers. (a) Schematic representation of double DMI chirality barriers formed by reversing the DMI chirality of the brown parts by an electric field pulse. (b) Snapshots of the skyrmion–skyrmion pair fusion within the red box in (a) at different stages. The magnetic structure at $t = 0.30$ ns is a non-trivial particle that is formed by the fusion of two skyrmions with opposite chirality.</figcaption></figure>

realize similar skyrmion dynamics. The narrower chiral transition area and the larger skyrmion size can make the skyrmion dynamics more stable. The number and distribution of the DMI chirality barriers can be adjusted by an electric field, which can realize the annihilation, pinning and fusion of skyrmion–skyrmion pairs with opposite chirality in a single nanotrack, thus providing a method for realizing skyrmion-based single-nanotrack logic gates.

## Reconfigurable single-nanotrack skyrmion logic gates

Based on the proposed skyrmion–skyrmion pair annihilation and pinning effects, we can employ the electric field pulse to reconstruct a non-volatile DMI chirality barrier in magnetoelectric multiferroics and transform a single racetrack memory into any logic gates, realizing a complete logic family as displayed in Fig. 4. It is worth noting that here we realize one of the most challenging logic gates, the XOR, in one single nanotrack, which is usually implemented by combining the AND and the OR gates. In the proposed structure shown in Fig. 4a, we simply reverse the DMI chirality of the left or right part of a monolayer racetrack memory to form a DMI chirality barrier (vacant a bidirectional switch) and then successfully implement a logic XOR gate. For this logic application, two inputs are placed on the left and right sides, while an output is placed

in the middle area (see red box area in Fig. 4a). Here we define that the presence (resp. absence) of a skyrmion corresponds to the '1' (resp. '0') state. When only one of the two inputs is in the '1' state, the skyrmion corresponding to this '1' state will be blocked in the red box area by the DMI chirality barrier resulting in the '1' output state. When both inputs are in '1' states, two skyrmions with different chirality meet and annihilate at the DMI chirality barrier yielding a '0' state output. Thus we realize the XOR gate function with only one single nanotrack (Fig. 4a; Supplementary Video S4).

Next, in the positive DMI region, we can use a downward electric field pulse to invert the DMI chirality to negative within a narrow area in the red output box (switch on position 1) and the XOR logic gate will be transformed into an OR gate. When two skyrmions with opposite chirality meet in the double barriers, they will not be annihilated, but will transform into a topological non-trivial particle in which two skyrmions with opposite chirality merge together as shown in Figs 3b and 4b, then the output signal is in the '1' state (cf. also Supplementary Video S5). The logic NAND gate requires both inputs to be in the '0' state while the output is in the '1' state. To realize the NAND gate, we turn the switch to 2 to obtain wider DMI barriers as shown in Fig. 4c and set two opposite chiral skyrmions in the middle area. Because the skyrmions with opposite chirality move backwards under the in-plane current, they will not meet and annihilate. In view of this, the input operations are similar to other logic gates and the NAND function is hereby implemented (Fig. 4c; Supplementary Video S6). The difference between the NAND and the OR gates is the width of the DMI barriers—the latter is much thinner. In order to make the two skyrmions with opposite chirality attract each other and effectively fuse, our simulations show that the width should not be >26 nm, which is the critical width for designing OR gates. When the barrier is >26 nm, magnetic skyrmions with opposite chirality will be isolated on both sides of the barrier and we can implement NAND logic operation.

In the design of the above reconfigurable logic nanotrack, a magnetic tunnel junction (output-MTJ) structure is used to read skyrmions [42]. The bottom multiferroics adjacent to the heavy metal (HM) layer works as the free layer of the MTJ. The top ferromagnetic (FM) layer acts as the fixed layer (Supplementary Fig. S4). When a skyrmion reaches the bottom layer of the output-MTJ under the driving current, the polarity direction of the skyrmion will be opposite to the magnetization of the fixed layer and the output-MTJ will be in a high-resistance state resulting in a high voltage. If the magnetization of the fixed layer is switched, the output-MTJ will
<figure><img src="image_6.png" /><figcaption>**Figure 4.** Reconfigurable single-nanotrack skyrmion logic gates. XOR/OR/NAND operations of the reconfigurable nanotrack with size 30 × 240 nm by turning the switch (a) to idle, (b) to 1 and (c) to 2, respectively. The electric field pulse can be removed after the DMI chirality is reversed and the DMI chirality barrier will remain unchanged. XNOR/NOR/AND functions can be converted from the above logic gates by switching the magnetization of the fixed layer in the magnetic tunnel junction (output-MTJ) and only half of the NAND gate can be used to realize the NOT gate.</figcaption></figure>

be in a low-resistance state when a skyrmion is detected, giving a low voltage as an output. In addition, when the MTJ is in a low-resistance state, it can also realize the reconstruction of logic gates in the chirality switching of multiferroics. Therefore, based on the XOR, OR and NAND designed above, XNOR, NOR and AND functions can be similarly realized by switching the magnetization of MTJ. Using only one of the left and right parts of the NAND gate, it is also possible to implement the NOT gate [11].

It is worth noting that after each logic operation, the logic gate needs to be restored. The usual practice is to increase significantly the driving current in order to annihilate topological magnetic particles as shown in the simulation results in Supplementary Fig. S3. Alternatively, here we reintroduce (re-input) a skyrmion with opposite chirality in the opposite direction to perform the so-called erasing (reset) operation, which is more energy-efficient but needs the feedback from the previous logic operation. The detailed process is displayed in the corresponding video for each logic gate. In the initial state for the NAND operation, we need to set two

magnetic skyrmions in the middle of the nanotrack. The chirality of the two magnetic skyrmions is opposite. The two skyrmions can be introduced through MTJs at the two ends of the nanotrack and then transported to the target position by the current to perform logic operations and output information in the middle of the nanotrack. The operating speed of the logic device depends on the moving speed of the magnetic skyrmion(s). According to the simulation of skyrmion dynamics in Fig. 2, the time required for each logic operation is ~1 ns. The logic operations in this study are completely implemented in a nanotrack and thus the logic device can be connected to a skyrmion-based memory, thereby integrating logic and storage functions.

Considering the applications of the energy barrier in manipulating magnetic skyrmion dynamics [19,23,43–45], the pinning and depinning effects of the DMI chirality barrier on magnetic skyrmions can also be employed in other devices, e.g. the design of transistors to switch on/off circuits (Supplementary Fig. S5a and Video S7). It is worth noting that the magnetic skyrmions can be recycled after each operation to reduce energy consumption as shown in Supplementary Fig. S6. In practical applications of the skyrmion racetrack memory, the speed of the skyrmion motion will be affected by temperature and material defects, resulting in possible bit misalignment. Here, we propose to adjust the position of the skyrmion by constructing DMI chirality barriers as shown in Supplementary Fig. S5b, where the bits can be reset and the reading error of the skyrmion can be avoided. The barriers used in our logic devices have chiral characteristics that are different from those of the other ones, such as magnetic anisotropy barriers [44]. Due to the DMI signs in both sides being opposite, magnetic skyrmions will not cross this barrier unless the chirality of the magnetic skyrmion is reversed and the chirality barrier can quickly brake the skyrmion even under a large driving current.

## Skyrmions shunting

The spin-polarized current can create an isolated skyrmion in a nanotrack and the DMI chirality of the magnetic film determines the chirality of the skyrmion. The skyrmions with opposite chirality can be driven in different directions by the same current via SOT [46,47]. This gives a way to the realization of skyrmion shunting in different states by switching the DMI chirality with an electric field pulse. Using a single nanotrack as shown in Fig. 5a, an applied electric field can control the chirality of a skyrmion excited by the spin-polarized current in the middle area of the nanotrack. When the electric
<figure><img src="image_7.png" /><figcaption>**Figure 5.** Shunting mode of skyrmions with opposite chirality. (a) Schematic diagram of the nanotrack with skyrmion shunting function. The DMI chirality in the middle region of the strip can be switched by electric field pulse to excite different chiral skyrmions. The DMI chirality in the left and right parts is opposite. (b) The shunting process of skyrmions in the nanotrack. A skyrmion with $\gamma = \pi$ moves to the left and a skyrmion with $\gamma = 0$ moves to the right.</figcaption></figure>

field pulse points downward, the DMI chirality of the middle area matches that of the right area, causing the skyrmion with helicity $\gamma = 0$ to move to the right driven by an in-plane current (Fig. 5b, 0–0.35 ns). However, when the direction of the electric field pulse points upward, the DMI chirality in the middle area becomes the same as that of the left area, causing the excited skyrmion with opposite helicity ($\gamma = \pi$) moving to the left (Fig. 5b, 0.37–0.72 ns).

Using magnetic skyrmions or other non-trivial particles with different topological properties to encode bits is an attractive direction for possible practical applications [48–52]. Here, we use skyrmions with opposite chirality as information carriers to improve the robustness of the data. Folding the nanotrack (Supplementary Fig. S7) from the middle results in the left (resp. right) half being on the upper (resp. lower) level. There will be only one skyrmion in the upper or lower channel, i.e. if a skyrmion exists as a bit in the upper (lower) nanotrack, there will be no skyrmion in the lower (upper) nanotrack. In addition, the skyrmions in the upper or lower channel will move in opposite directions under the same

current. This effect will lead to an excited skyrmion in the middle area only being able to choose one direction to move. Once the direction is determined, the corresponding area in the other direction will show a vacant state, thus a so-called natural complementary racetrack memory is constructed.

## CONCLUSION

We demonstrate that skyrmion chirality switching, pinning, pairwise annihilation, fusion and shunting can be achieved and switched by an electric field pulse in magnetoelectric multiferroics. By locally controlling the DMI chirality, we can reconstruct the non-volatile DMI chirality barrier to switch the above-mentioned various magnetic skyrmion dynamic phenomena, allowing the implementation and reconfiguration of logic functions including AND, OR, NOT, NAND, NOR, XOR and XNOR. Compared to other reconfigurable logic gates requiring a combination of multiple strips or a cascade of simple functions to perform two or more logic operations, we realize the implementation of the complete logic functions into one single nanotrack, thereby further simplifying the design of the spin-based logic device. Moreover, we also realize the ‘on’ and ‘off’ states of a skyrmion transistor and skyrmion bit reset via the pinning and depinning functions of non-volatile DMI chirality barriers. Any two of aforementioned functions or operations can be easily transformed from one to another by switching the sign of the DMI chirality barrier and skyrmions can be recycled after each operation. The study paves the way towards energy-efficient, high-density spin-based logic devices, illustrating the potential for using skyrmions for logic-in-memory applications.

## METHODS

To investigate the dynamics of skyrmions, we performed finite-difference simulations using the LLG equation with a damping-like torque:

$$ \frac{dm}{dt} = -|\gamma_0|(m \times H_{\text{eff}}) + \alpha \left( m \times \frac{dm}{dt} \right) + \frac{u}{a}(m \times p \times m), $$

where $m$ indicates the magnetization unit vector, $H_{\text{eff}}$ is the effective field that is defined as $H_{\text{eff}} = -\mu_0^{-1} M_s^{-1} \frac{\partial E}{\partial m}$ with the following terms: exchange field $H_{\text{exch}}$, PMA field $H_{\text{anis}}$, demagnetization field $H_{\text{d}}$ and DMI field $H_{\text{DMI}}$. $p$ stands for the spin polarization unit direction, $\gamma_0$ and $\alpha$ represent the gyromagnetic ratio and the Gilbert damping
coefficient, respectively. $u = \frac{\gamma_0 \hbar}{\mu_0 e} \frac{j \theta_{SH}}{2 M_s}$ indicates the spin torque coefficient, with $j$ being the current flowing in the heavy metal (HM) layer. $\theta_{SH}$, $\hbar$ and $e$ indicate the spin Hall angle, the reduced Planck constant and the electron charge, respectively.

In the present study, the material parameters for the CrN monolayer are chosen based on first-principles calculations in the absence of an electric field: exchange constant $A = 13.2$ pJ/m, saturation magnetization $M_s = 1289$ kA/m, magnetocrystalline anisotropy $K_{uz} = 1992$ kJ/m$^3$ and DMI energy constant $D = \pm 3.5$ mJ/m$^2$. The calculated material parameters with out-of-plane electric field $\epsilon$ sweeping from -0.5 V/Å to 0.5 V/Å can be referred to Ref. [31]. We performed micromagnetic simulations in a sample with a side length of 100 nm and a thickness of $a = 0.2$ nm. The mesh size is set to $1 \times 1 \times 0.2$ nm$^3$, which is sufficiently small compared to the typical exchange length and the 10-nm skyrmion. In addition, the width of the logic device is 30 nm and the length is eight times the width. Our simulation results indicate that the width of the nanotrack should be <40 nm so that the distance between the magnetic skyrmions with opposite chirality is small enough for them to interact. The main function of the current in this study is to drive magnetic skyrmions towards the middle area of the nanotrack for logic operations and the driving current density should be >10 MA/cm$^2$ to drive the skyrmions effectively. In order to prevent skyrmions from annihilating at the boundary of the nanotrack, however, the driving current density should not exceed 35 MA/cm$^2$.

It is worth noting that the construction of the DMI chirality barrier and the resulting physical conclusions can be realized in structures of multi-layer or 2D magnetoelectric multiferroics in which the DMI chirality is electrically switchable, which is not limited to a CrN monolayer. When the magnetic parameters (exchange interaction, PMA and DMI) meet the generation conditions for magnetic skyrmions, other structures or materials with a reduced switchable DMI can also be employed for the implementation and realization of logical operations. In order to verify that the logic device still works with a reduced DMI value, we decrease the intensity of PMA and DMI to $K_{uz} = 170$ kJ/m$^3$ and $D = \pm 1$ mJ/m$^2$, respectively, to maintain the stable existence of the magnetic skyrmion. The simulation results show that the chirality barrier can still control the magnetic skyrmion dynamics including pinning, annihilation and fusion similar to those in Figs 2 and 3, and has no influence on the implementation of logic operations.

# SUPPLEMENTARY DATA

Supplementary data are available at NSR online.

# FUNDING

This work was supported by the 'Pioneer' and 'Leading Goose' R&D Program of Zhejiang Province (2022C01053), National Natural Science Foundation of China (11874059 and 12174405), European Union's Horizon 2020 Research and Innovation Programme under grant agreement 881603 (Graphene Flagship), Key Research Program of Frontier Sciences, Chinese Academy of Sciences (ZDBS-LY-7021), Major Special Projects of the 'Science and Technology Innovation' from Ningbo Science and Technology Bureau (2021000215), Zhejiang Provincial Natural Science Foundation (LR19A040002), Beijing National Laboratory for Condensed Matter Physics (2021000123) and China Postdoctoral Science Foundation (2021M703314).

# AUTHOR CONTRIBUTIONS

H.Y. proposed and supervised the project. D.Y. performed the micromagnetic simulations. D.Y., H.Y., M.C. and A.F. co-wrote the manuscript. All authors discussed the results and contributed to the manuscript.

*Conflict of interest statement.* None declared.

# REFERENCES

1. Mühlbauer S, Binz B and Jonietz F *et al.* Skyrmion lattice in a chiral magnet. *Science* 2009; **323**: 915–9.

2. Nagaosa N and Tokura Y. Topological properties and dynamics of magnetic skyrmions. *Nat Nanotechnol* 2013; **8**: 899–911.

3. Yu XZ, Onose Y and Kanazawa N *et al.* Real-space observation of a two-dimensional skyrmion crystal. *Nature* 2010; **465**: 901–4.

4. Jonietz F, Mühlbauer S and Pfleiderer C *et al.* Spin transfer torques in MnSi at ultralow current densities. *Science* 2010; **330**: 1648–51.

5. Sampaio J, Cros V and Rohart S *et al.* Nucleation, stability and current-induced motion of isolated magnetic skyrmions in nanostructures. *Nat Nanotechnol* 2013; **8**: 839–44.

6. Iwasaki J, Mochizuki M and Nagaosa N. Current-induced skyrmion dynamics in constricted geometries. *Nat Nanotechnol* 2013; **8**: 742–7.

7. Caretta L, Mann M and Büttner F *et al.* Fast current-driven domain walls and small skyrmions in a compensated ferrimagnet. *Nat Nanotechnol* 2018; **13**: 1154–60.

8. Moreau-Luchaire C, Moutafis C and Reyren N *et al.* Additive interfacial chiral interaction in multilayers for stabilization of small individual skyrmions at room temperature. *Nat Nanotechnol* 2016; **11**: 444–8.

9. Woo S, Litzius K and Krüger B *et al.* Observation of room-temperature magnetic skyrmions and their current-driven dynamics in ultrathin metallic ferromagnets. *Nat Mater* 2016; **15**: 501–6.
10. Fert A, Cros V and Sampaio J. Skyrmions on the track. *Nat Nanotechnol* 2013; **8**: 152–6.

11. Xu P, Xia K and Gu C *et al*. An all-metallic logic gate based on current-driven domain wall motion. *Nat Nanotechnol* 2008; **3**: 97–100.

12. Luo Z, Hrabec A and Dao TP *et al*. Current-driven magnetic domain-wall logic. *Nature* 2020; **579**: 214–8.

13. Allwood DA, Xiong G and Faulkner CC *et al*. Magnetic domain-wall logic. *Science* 2005; **309**: 1688–92.

14. Parkin S and Yang S-H. Memory on the racetrack. *Nat Nanotechnol* 2015; **10**: 195–8.

15. Gambardella P, Luo Z and Heyderman LJ. Magnetic logic driven by electric current. *Phys Today* 2021; **74**: 62–3.

16. Luo Z, Dao TP and Hrabec A *et al*. Chirally coupled nanomagnets. *Science* 2019; **363**: 1435–9.

17. Parkin SSP, Hayashi M and Thomas L. Magnetic domain-wall racetrack memory. *Science* 2008; **320**: 190–4.

18. Zhou Y and Ezawa M. A reversible conversion between a skyrmion and a domain-wall pair in a junction geometry. *Nat Commun* 2014; **5**: 4652.

19. Luo S, Song M and Li X *et al*. Reconfigurable skyrmion logic gates. *Nano Lett* 2018; **18**: 1180–4.

20. Dieny B, Prejbeanu IL and Garello K *et al*. Opportunities and challenges for spintronics in the microelectronics industry. *Nat Electron* 2020; **3**: 446–59.

21. Manipatruni S, Nikonov DE and Lin C-C *et al*. Scalable energy-efficient magnetoelectric spin-orbit logic. *Nature* 2019; **565**: 35–42.

22. Zhang X, Ezawa M and Zhou Y. Magnetic skyrmion logic gates: conversion, duplication and merging of skyrmions. *Sci Rep* 2015; **5**: 9400.

23. Yan ZR, Liu YZ and Guang Y *et al*. Skyrmion-based programmable logic device with complete boolean logic functions. *Phys Rev Appl* 2021; **15**: 064004.

24. Zhou Y. Magnetic skyrmions: intriguing physics and new spintronic device concepts. *Natl Sci Rev* 2019; **6**: 210–2.

25. Dzyaloshinsky I. A thermodynamic theory of 'weak' ferromagnetism of antiferromagnetics. *J Phys Chem Solids* 1958; **4**: 241–55.

26. Moriya T. Anisotropic superexchange interaction and weak ferromagnetism. *Phys Rev* 1960; **120**: 91–8.

27. Chen G, Robertson M and Hoffmann M *et al*. Observation of hydrogen-induced dzyaloshinskii-moriya interaction and reversible switching of magnetic chirality. *Phys Rev X* 2021; **11**: 021015.

28. Srivastava T, Schott M and Juge R *et al*. Large-voltage tuning of Dzyaloshinskii-Moriya interactions: a route toward dynamic control of skyrmion chirality. *Nano Lett* 2018; **18**: 4871–7.

29. Xu C, Chen P and Tan H *et al*. Electric-field switching of magnetic topological charge in type-I multiferroics. *Phys Rev Lett* 2020; **125**: 037203.

30. Chen J and Dong S. Manipulation of magnetic domain walls by ferroelectric switching: dynamic magnetoelectricity at the nanoscale. *Phys Rev Lett* 2021; **126**: 117603.

31. Liang J, Cui Q and Yang H. Electrically switchable Rashba-type dzyaloshinskii-moriya interaction and skyrmion in two-dimensional magnetoelectric multiferroics. *Phys Rev B* 2020; **102**: 220409.

32. Schott M, Bernand-Mantel A and Ranno L *et al*. The skyrmion switch: turning magnetic skyrmion bubbles on and off with an electric field. *Nano Lett* 2017; **17**: 3006–12.

33. Fert A, Reyren N and Cros V. Magnetic skyrmions: advances in physics and potential applications. *Nat Rev Mater* 2017; **2**: 17031.

34. Ba Y, Zhuang S and Zhang Y *et al*. Electric-field control of skyrmions in multiferroic heterostructure via magnetoelectric coupling. *Nat Commun* 2021; **12**: 322.

35. Yang H, Boulle O and Cros V *et al*. Controlling dzyaloshinskii-moriya interaction via chirality dependent atomic-layer stacking, insulator capping and electric field. *Sci Rep* 2018; **8**: 12356.

36. Xiao J, Zhu H and Wang Y *et al*. Lntrinsic two-dimensional ferroelectricity with dipole locking. *Phys Rev Lett* 2018; **120**: 227601.

37. Jiang W, Zhang X and Yu G *et al*. Direct observation of the skyrmion Hall effect. *Nat Phys* 2017; **13**: 162–9.

38. Thiele AA. Steady-state motion of magnetic domains. *Phys Rev Lett* 1973; **30**: 230–3.

39. Ado IA, Tretiakov OA and Titov M. Microscopic theory of spin-orbit torques in two dimensions. *Phys Rev B* 2017; **95**: 094401.

40. Manchon A, Železný J and Miron IM *et al*. Current-induced spin-orbit torques in ferromagnetic and antiferromagnetic systems. *Rev Mod Phys* 2019; **91**: 035004.

41. Luo W, Xu K and Xiang H. Two-dimensional hyperferroelectric metals: a different route to ferromagnetic-ferroelectric multiferroics. *Phys Rev B* 2017; **96**: 235415.

42. Crum DM, Bouhassoune M and Bouaziz J *et al*. Perpendicular reading of single confined magnetic skyrmions. *Nat Commun* 2015; **6**: 8541.

43. Li S, Kang W and Zhang X *et al*. Magnetic skyrmions for unconventional computing. *Mater Horiz* 2021; **8**: 854–68.

44. Zhang X, Zhou Y and Ezawa M *et al*. Magnetic skyrmion transistor: skyrmion motion in a voltage-gated nanotrack. *Sci Rep* 2015; **5**: 11369.

45. Kang W, Zheng C and Huang Y *et al*. Complementary skyrmion racetrack memory with voltage manipulation. *IEEE Electron Device Lett* 2016; **37**: 924–7.

46. Jiang W, Upadhyaya P and Zhang W *et al*. Blowing magnetic skyrmion bubbles. *Science* 2015; **349**: 283–6.

47. Yu G, Upadhyaya P and Li X *et al*. Room-temperature creation and spin-orbit torque manipulation of skyrmions in thin films with engineered asymmetry. *Nano Lett* 2016; **16**: 1981–8.

48. Mandru A-O, Yıldırım O and Tomasello R *et al*. Coexistence of distinct skyrmion phases observed in hybrid ferromagnetic/ferrimagnetic multilayers. *Nat Commun* 2020; **11**: 6365.

49. Zheng F, Rybakov FN and Borisov AB *et al*. Experimental observation of chiral magnetic bobbers in B20-type FeGe. *Nat Nanotechnol* 2018; **13**: 451–5.

50. Müller J. Magnetic skyrmions on a two-lane racetrack. *New J Phys* 2017; **19**: 025002.

51. Leonov A and Mostovoy M. Multiply periodic states and isolated skyrmions in an anisotropic frustrated magnet. *Nat Commun* 2015; **6**: 8275.

52. Leonov A and Mostovoy M. Edge states and skyrmion dynamics in nanostripes of frustrated magnets. *Nat Commun* 2017; **8**: 14394.