RISC-V CPU Design with RRAM Cells
RISC-V CPU Design with RRAM Cells
Abstract—The breakdown of Dennard scaling has been the improvements. In recent years, researchers have repeatedly
driver for many innovations such as multicore CPUs and has revisited this law to investigate whether it is still applica-
fueled the research into novel devices such as resistive random ble [2] [3]. Razavieh et al. [4] have demonstrated that various
access memory (RRAM). These devices might be a means to
extend the scalability of integrated circuits since they allow challenges will need to be faced successfully to further scale
for fast and nonvolatile operation. Unfortunately, large analog down CMOS technology since it is approaching the boundary
circuits need to be designed and integrated in order to benefit of device physics.
from these cells, hindering the implementation of large systems. Novel technology such as memristive devices [5] and its
This work elaborates on a novel solution, namely, creating digital implementations such as RRAM have been integrated into
standard cells utilizing RRAM devices. Albeit this approach can
be used both for small gates and large macroblocks, we illustrate small process nodes and might help with prolonging the
it for a 2T2R-cell. Since RRAM devices can be vertically stacked validity of Moore’s law. Shen et al. [6] have managed to
with transistors, this enables us to construct a NAND standard integrate a 0.03-µ2 RRAM cell into a 28-nm CMOS process.
cell, which merely consumes the area of two transistors. This This renders them an ideal candidate for the design of future
leads to a 25% area reduction compared to an equivalent CMOS high-density ASICs.
NAND gate. We illustrate achievable area savings with a half-
adder circuit and integrate this novel cell into a digital standard RRAM-based building blocks such as crossbars or logic
cell library. A synthesized RISC-V core using RRAM-based cells cells were able to present promising results regarding power
results in a 10.7% smaller area than the equivalent design using and area consumption [7]. However, these blocks are difficult
standard CMOS gates. to integrate into large systems since each individual RRAM
Index Terms—Application-specific integrated circuit, circuit design requires the development of sophisticated and complex
synthesis, logic gates, resistive random access memory (RRAM), analog circuitry. While mixed-signal ASIC-design method-
RISC-V, VLSI. ologies exist these circuits are on the verge of being too
computationally expensive to simulate. This strongly hinders
I. I NTRODUCTION validation and renders meeting timing constraints given by the
digital parts a difficult endeavor.
S HORTLY after the introduction of CMOS technology,
Moore successfully predicted that about every 18 months,
the number of components in an integrated circuit would
The digital ASIC design flow provides approaches to deal
with the ever-increasing complexity of designs. One of these
is the digital standard cell flow, which is used to design large
double [1]. For decades, this has been one of the main drivers
chips from digital standard cells and an HDL description in a
of the semiconductor industry, leading to vast performance
semiautomated way.
Received 18 November 2024; revised 14 February 2025; accepted 8 Moving the RRAM design flow toward this digital stan-
March 2025. This work was supported in part by DFG through the dard cell approach might help mitigate these issues. Small
Project HYB-RISC under Grant 536099247 and DFG through the SPP
MemrisTec under Grant 422738993 and in part by BMBF through the
RRAM-based digital standard cells can serve as basic building
Project KI-IoT under Grant 16ME0092 and the BMBF through the blocks for much larger designs. Given that these cells are
Project iCampus II under Grant 16ES1128K. (Corresponding author: comparatively small, thorough simulations can be undertaken
Markus Fritscher.) to create the timing and power characterizations, which are
Markus Fritscher, Gerhard Kahmen, and Christian Wenger are with IHP -
Leibniz Institut für Innovative Mikroelektronik, 15236 Frankfurt an der required for the digital design flow. This concept is depicted in
Oder, Germany, and also with BTU Cottbus-Senftenberg, 01968 Senftenberg, Fig. 1. Instead of designing large analog blocks, which requires
Germany (e-mail: fritscher@[Link]).
Max Uhlmann, Philip Ostrovskyy, Junchao Chen, Jianan Wen, and Carsten
great care at the analog interfaces, digital cells are being
Schulze are with IHP - Leibniz Institut für Innovative Mikroelektronik, 15236 used, using pure digital inputs and outputs. The successfully
Frankfurt an der Oder, Germany. characterized cells are then provided to the digital synthesis
Daniel Reiser and Marc Reichenbach are with the University of Rostock, tool and put together to form large RRAM-based systems such
18051 Rostock, Germany.
Dietmar Fey is with FAU Erlangen Nürnberg, 91054 Erlangen, Germany. as an RRAM-based RISC-V CPU. This ultimately severely
Milos Krstic is with IHP - Leibniz Institut für Innovative Mikroelektronik, reduces integration timescales and overall design efforts. We
15236 Frankfurt an der Oder, Germany, and also with the University of
Potsdam, 14469 Potsdam, Germany.
believe that this might be one of the last stepping stones
Digital Object Identifier 10.1109/TVLSI.2025.3554476. required for the system integration of RRAM-based cells.
© 2025 The Authors. This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License.
For more information, see [Link]
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
Fig. 6. Timing arc simulation for the RRAM-based schematic shown in Fig 3.
Keeping node A [schematic in Fig 3 (right)] constant while dropping node B
from a logic 1 to a logic 0 leads to the depicted output swing at node C. The
output settles after about 200 ps.
Fig. 8. Two instances of the proposed RRAM-NAND gate (red boxes) fully
compatible with pure CMOS gates within a grid row.
Fig. 9. Inputs (blue) and outputs (black and orange) of the proposed RRAM-
based NAND for the first and after 2.5 × 106 logic cycles.
Fig. 12. This histogram illustrates the forming pulse voltages after which the
individual RRAM NAND gates were operational.
Fig. 10. Equivalent circuit used to derive the input capacitance.
TABLE I
indicating that the gate operations are applied without degra- NAND G ATE —A RCS
dation. We characterized 60 of these structures with a similar
procedure.
3) Input Capacitance: The equivalent circuit that can be
used to derive the gates’ input capacitance is given in Fig. 10.
C1 and C2 are given by the RRAM Metal 2 and Metal 3
contacts. C3 is given by the gates of Q1 and Q2 . C1 and C2
can be analytically derived from the physical dimensions to
be 80 aF. The histogram depicting the voltages after which the indi-
vidual RRAM gates were operational is depicted in Fig. 12.
All 20 gates were operational after reaching a pulse amplitude
C. In-Logic Forming of 3.2 V.
We performed an in-logic forming procedure on 20 gates
containing a total of 40 RRAM devices in order to show that
these cells can, indeed, be integrated into larger systems. In D. Digital Standard Cell Generation
order to do so, we applied the following procedure to each We used the flow described in Section IV to generate a
individual gate. digital cell. The arcs were defined, as depicted in Table I.
1) Step 1: Apply signals A and B depicted in Fig. 9 for Any possible combination of Falling (F) and Raising (R)
1 × 103 times using an amplitude of 0.1 V. transitions, which leads to a transition of the output pinout,
2) Step 2: Apply a small readout voltage of 0.2 V at pin needs to be represented with an arc.
F (see Fig. 3), ground the pins A, B in two individual Subsequently, we set up the tool to run arc simulations
measurements, and measure the current flow. and compared the results to the pure analog simulations.
3) Step 3: Evaluate successful gate operation by applying a These results are used to generate a Liberty library skeleton
single pulse, as depicted in Fig. 9. If the gate implements and are updated with measurements as described earlier. This
NAND behavior, stop; otherwise, repeat Steps 1 and 2 ultimately yields a purely digital NAND block, which is usable
while increasing the amplitude by 0.1 V. by the digital synthesis tool. We additionally extract an LEF
4) We stop the procedure when reaching 4 V and consider file from the layout to render this cell usable within the place
the gate nonoperational. and route process. Unfortunately, since the RRAM device is
The output of these current measurements is depicted in positioned between Metal 2 and Metal 3, we had to introduce
Fig. 11. Apparently, device a has been formed after cycle routing halos into the LEF accordingly, posing additional
2.1e4 (which equals 2.1 V), while device b has been formed limitations to the routing of the cells. As a future activity, we
after cycle 2.9e4 (which equals 2.9 V). This gate performs will also investigate the implementability of RRAM devices
NAND operations successfully after the 2.9-V pulses have been between Metal 1 and Metal 2, which would significantly relax
applied. this limitation.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
TABLE II
T RANSISTOR C OUNT AND C ORRESPONDING A REA W HEN I MPLEMENTING
THE HA IN F IG . 13
Fig. 14. RI5CY RISC-V layout embedding about 1.5e5 instances of the
proposed RRAM-NAND cell. The core requires about 2 mm2 .
Fig. 15. Results: we synthesized both the entire RISC-V core and individual parts, both using a stripped-down pure CMOS library and the same library with
the addition of RRAM-CMOS gates. Individual parts benefit differently from these novel cells. (a) Compared absolute numbers. (b) Percentual area reduction.
The right portion of (a) is zoomed in for improved readability. (a) Absolute numbers. (b) Area reduction.
number of flip-flops, which utilize the same cells in both [7] S. Balatti, S. Ambrogio, and D. Ielmini, “Normally-off logic based on
designs. Future complex gates based on RRAM devices or resistive switches—Part I: Logic gates,” IEEE Trans. Electron Devices,
vol. 62, no. 6, pp. 1831–1838, Jun. 2015.
RRAM-based flip-flops might yield further advantages. [8] M. Fritscher et al., “Area-efficient digital design using RRAM-CMOS
standard cells,” in Proc. IEEE Comput. Soc. Annu. Symp. VLSI (ISVLSI),
VI. C ONCLUSION Jul. 2024, pp. 81–87.
[9] M. Ulbricht, L. Lu, J. Chen, and M. Krstic, “The TETRISC SoC—A
This article presented an approach to integrate RRAM-based resilient quad-core system based on the ResiliCell approach,” Micro-
cells used as basic logic units or macroblocks into the digital electron. Rel., vol. 148, Sep. 2023, Art. no. 115173.
design flow. We successfully integrated experimental data into [10] F. Zahoor, T. Z. A. Zulkifli, and F. A. Khanday, “Resistive random access
memory (RRAM): An overview of materials, switching mechanism, per-
characterization tools to enable the usage of new RRAM-based formance, multilevel cell (MLC) storage, modeling, and applications,”
blocks within the digital flow. We demonstrated significant Nanosc. Res. Lett., vol. 15, no. 1, pp. 1–26, Dec. 2020.
area reduction using an exemplary RRAM-based NAND gate [11] T. Bertaud et al., “HfO2 -based RRAM for embedded nonvolatile mem-
since these cells can be vertically stacked with a transistor. An ory: From materials science to integrated 1T1R RRAM arrays,” ECS
Trans., vol. 50, no. 4, p. 21, 2013.
RISC-V CPU constructed using these cells requires 10.7% less [12] V. Milo et al., “Multilevel HfO2 -based RRAM devices for low-power
area than a pure-CMOS equivalent. Future work is required neuromorphic networks,” APL Mater., vol. 7, no. 8, Aug. 2019.
to transfer the RRAM cell between the Metal 1 and Metal [13] B. Hajri, M. M. Mansour, A. Chehab, and H. Aziza, “Oxide-based
RRAM models for circuit designers: A comparative analysis,” in Proc.
2 layers to ease digital routing and do tape-outs of complex 12th Int. Conf. Design Technol. Integr. Syst. Nanosc. Era (DTIS), Apr.
designs to further validate the flow. 2017, pp. 1–6.
[14] A. L. Jagath, C. H. Leong, T. N. Kumar, and H. F. Almurib, “Insight
R EFERENCES into physics-based RRAM models—Review,” J. Eng., vol. 2019, no. 7,
pp. 4644–4652, Jul. 2019.
[1] G. Moore, “Cramming more components onto integrated circuits [15] B. Hajri, H. Aziza, M. M. Mansour, and A. Chehab, “RRAM device
(1965),” in Ideas That Created the Future, 2021, pp. 261–266. [Online]. models: A comparative analysis with experimental validation,” IEEE
Available: [Link] Access, vol. 7, pp. 168963–168980, 2019.
[2] R. R. Schaller, “Moore’s law: Past, present and future,” IEEE Spectr., [16] Z. Biolek, D. Biolek, and V. Biolková, “SPICE model of memristor with
vol. 34, no. 6, pp. 52–59, Jun. 1997. nonlinear dopant drift,” Radioengineering, vol. 18, no. 2, pp. 210–214,
[3] T. N. Theis and H.-S. P. Wong, “The end of Moore’s law: A new Jun. 2009.
beginning for information technology,” Comput. Sci. Eng., vol. 19,
[17] Z. Jiang, S. Yu, Y. Wu, J. H. Engel, X. Guan, and H.-S. P. Wong,
no. 2, pp. 41–50, Mar. 2017.
“Verilog—A compact model for oxide-based resistive random access
[4] A. Razavieh, P. Zeitzoff, and E. J. Nowak, “Challenges and limitations
memory (RRAM),” in Proc. Int. Conf. Simul. Semiconductor Processes
of CMOS scaling for FinFET and beyond architectures,” IEEE Trans.
Devices (SISPAD), Sep. 2014, pp. 41–44.
Nanotechnol., vol. 18, pp. 999–1004, 2019.
[5] L. Chua, “Memristor—The missing circuit element,” IEEE Trans. Cir- [18] S. Menzel, S. Tappertzhofen, R. Waser, and I. Valov, “Switching kinetics
cuit Theory, vol. CT-18, no. 5, pp. 507–519, Sep. 1971. of electrochemical metallization memory cells,” Phys. Chem. Chem.
[6] W. C. Shen et al., “High-K metal gate contact RRAM (CRRAM) in Phys., vol. 15, no. 18, p. 6945, 2013.
pure 28nm CMOS logic process,” in IEDM Tech. Dig., Dec. 2012, [19] S. Kvatinsky et al., “MAGIC—Memristor-aided logic,” IEEE Trans.
pp. 31.6.1–31.6.4. Circuits Syst. II, Exp. Briefs, vol. 61, no. 11, pp. 895–899, Nov. 2014.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.
[20] S. Shirinzadeh, M. Soeken, P.-E. Gaillardon, and R. Drechsler, [28] K. Bernstein, R. K. Cavin, W. Porod, A. Seabaugh, and J. Welser,
“Logic synthesis for RRAM-based in-memory computing,” IEEE “Device and architecture outlook for beyond CMOS switches,” Proc.
Trans. Comput.-Aided Design Integr. Circuits Syst., vol. 37, no. 7, IEEE, vol. 98, no. 12, pp. 2169–2184, Dec. 2010.
pp. 1422–1435, Jul. 2018. [29] D. E. Nikonov and I. A. Young, “Overview of beyond-CMOS devices
[21] R. Gharpinde, P. L. Thangkhiew, K. Datta, and I. Sengupta, “A scalable and a uniform methodology for their benchmarking,” Proc. IEEE,
in-memory logic synthesis approach using memristor crossbar,” IEEE vol. 101, no. 12, pp. 2498–2533, Dec. 2013.
Trans. Very Large Scale Integr. (VLSI) Syst., vol. 26, no. 2, pp. 355–366, [30] A. Chen, “Beyond-CMOS roadmap—From Boolean logic to neuro-
Feb. 2018. inspired computing,” Jpn. J. Appl. Phys., vol. 61, no. SM, Oct. 2022,
[22] D. Bhattacharjee, L. Amaru, and A. Chattopadhyay, “Technology- Art. no. SM1003.
aware logic synthesis for ReRAM based in-memory computing,” in [31] E. P.-B. Quesada, E. Perez, M. K. Mahadevaiah, and C. Wenger,
Proc. Design, Autom. Test Eur. Conf. Exhib. (DATE), Mar. 2018, “Memristive-based in-memory computing: From device to large-scale
pp. 1435–1440. CMOS integration,” Neuromorphic Comput. Eng., vol. 1, no. 2, Dec.
[23] S. Kvatinsky, N. Wald, G. Satat, A. Kolodny, U. C. Weiser, and 2021, Art. no. 024006.
E. G. Friedman, “MRL—Memristor ratioed logic,” in Proc. 13th Int. [32] Y. Hosoi et al., “High speed unipolar switching resistance RAM
Workshop Cellular Nanosc. Netw. their Appl., Aug. 2012, pp. 1–6. (RRAM) technology,” in IEDM Tech. Dig., Dec. 2006, pp. 1–4.
[24] A. Bende et al., “Experimental validation of memristor-aided logic using [33] H. Y. Lee et al., “Low power and high speed bipolar switching with a
1T1R TaOx RRAM crossbar array,” in Proc. 37th Int. Conf. VLSI Design thin reactive Ti buffer layer in robust HfO2 based RRAM,” in IEDM
23rd Int. Conf. Embedded Syst. (VLSID), Jan. 2024, pp. 565–570. Tech. Dig., Dec. 2008, pp. 1–4.
[25] L. Brackmann, T. Ziegler, D. J. Wouters, and S. Menzel, “Experimental [34] F. Cüppers et al., “Exploiting the switching dynamics of HfO2 -based
verification and evaluation of non-stateful logic gates in resistive RAM,” ReRAM devices for reliable analog memristive behavior,” APL Mater.,
IEEE Trans. Circuits Syst. I, Reg. Papers, pp. 1–10, Nov. 2024. [Online]. vol. 7, no. 9, Sep. 2019.
Available: [Link] [35] M. Gautschi et al., “Near-threshold RISC-V core with DSP extensions
[26] X.-Y. Wang et al., “High-density memristor-CMOS ternary logic for scalable IoT endpoint devices,” IEEE Trans. Very Large Scale Integr.
family,” IEEE Trans. Circuits Syst. I, Reg. Papers, vol. 68, no. 1, (VLSI) Syst., vol. 25, no. 10, pp. 2700–2713, Oct. 2017.
pp. 264–274, Jan. 2021. [36] A. Pullini, D. Rossi, I. Loi, G. Tagliavini, and L. Benini, “Mr. Wolf:
[27] M. Teimoori, A. Ahmadi, S. Alirezaee, and M. Ahmadi, “A novel hybrid An energy-precision scalable parallel ultra low power SoC for IoT edge
CMOS-memristor logic circuit using memristor ratioed logic,” in Proc. processing,” IEEE J. Solid-State Circuits, vol. 54, no. 7, pp. 1970–1981,
IEEE Can. Conf. Electr. Comput. Eng. (CCECE), May 2016, pp. 1–4. Jul. 2019.