OSCR

Resistive memory-based neural differential equation solver for score-based diffusion model.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

Paper

Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

C · 155 lines · 3.3 KB · no license

  1. #include "common.h"
  2. void GPIO_group_OUT(_gpio_group *group,u16 outdata)
  3. {
  4. u8 t;
  5. for(t=0;t<16;t++)
  6. {
  7. if((outdata&0x8000)>>15)
  8. {
  9. switch(t)
  10. {
  11. case 0: group->data15=1; break;
  12. case 1: group->data14=1; break;
  13. case 2: group->data13=1; break;
  14. case 3: group->data12=1; break;
  15. case 4: group->data11=1; break;
  16. case 5: group->data10=1; break;
  17. case 6: group->data9=1; break;
  18. case 7: group->data8=1; break;
  19. case 8: group->data7=1; break;
  20. case 9: group->data6=1; break;
  21. case 10: group->data5=1; break;
  22. case 11: group->data4=1; break;
  23. case 12: group->data3=1; break;
  24. case 13: group->data2=1; break;
  25. case 14: group->data1=1; break;
  26. case 15: group->data0=1; break;
  27. }
  28. }
  29. else
  30. {
  31. switch(t)
  32. {
  33. case 0: group->data15=0; break;
  34. case 1: group->data14=0; break;
  35. case 2: group->data13=0; break;
  36. case 3: group->data12=0; break;
  37. case 4: group->data11=0; break;
  38. case 5: group->data10=0; break;
  39. case 6: group->data9=0; break;
  40. case 7: group->data8=0; break;
  41. case 8: group->data7=0; break;
  42. case 9: group->data6=0; break;
  43. case 10: group->data5=0; break;
  44. case 11: group->data4=0; break;
  45. case 12: group->data3=0; break;
  46. case 13: group->data2=0; break;
  47. case 14: group->data1=0; break;
  48. case 15: group->data0=0; break;
  49. }
  50. }
  51. outdata<<=1;
  52. }
  53. }
  54. void GPIO_bits_OUT(GPIO_TypeDef* GPIOx, u8 start_bit, u8 bit_size,u16 outdata)
  55. {
  56. u8 i=0;
  57. u16 bu1=0;u16 middata=1;
  58. if( bit_size>(16-start_bit) )
  59. bit_size=16-start_bit;
  60. i=start_bit;
  61. if(i>0)
  62. {
  63. while(i--)
  64. { bu1+=middata; middata*=2;}
  65. }
  66. assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
  67. GPIOx->ODR&=( ( (0xffff<<bit_size) <<start_bit ) |bu1 );
  68. GPIOx->ODR|=(outdata<<start_bit);
  69. }
  70. __asm void WFI_SET(void)
  71. {
  72. WFI;
  73. }
  74. __asm void INTX_DISABLE(void)
  75. {
  76. CPSID I
  77. BX LR
  78. }
  79. __asm void INTX_ENABLE(void)
  80. {
  81. CPSIE I
  82. BX LR
  83. }
  84. __asm void MSR_MSP(u32 addr)
  85. {
  86. MSR MSP, r0 //set Main Stack value
  87. BX r14
  88. }
  89. static u8 fac_us=0;
  90. static u16 fac_ms=0;
  91. void delay_init()
  92. {
  93. SysTick_CLKSourceConfig(SysTick_CLKSource_HCLK_Div8);
  94. fac_us=SYSCLK/8;
  95. fac_ms=(u16)fac_us*1000;
  96. }
  97. void delay_us(u32 nus)
  98. {
  99. u32 midtime;
  100. SysTick->LOAD=nus*fac_us;
  101. SysTick->VAL=0x00;
  102. SysTick->CTRL|=SysTick_CTRL_ENABLE_Msk ;
  103. do
  104. {
  105. midtime=SysTick->CTRL;
  106. }
  107. while((midtime&0x01)&&!(midtime&(1<<16)));
  108. SysTick->CTRL&=~SysTick_CTRL_ENABLE_Msk;
  109. SysTick->VAL =0X00;
  110. }
  111. void delay_xms(u16 nms)
  112. {
  113. u32 midtime;
  114. SysTick->LOAD=(u32)nms*fac_ms;
  115. SysTick->VAL =0x00;
  116. SysTick->CTRL|=SysTick_CTRL_ENABLE_Msk ;
  117. do
  118. {
  119. midtime=SysTick->CTRL;
  120. }
  121. while((midtime&0x01)&&!(midtime&(1<<16)));
  122. SysTick->CTRL&=~SysTick_CTRL_ENABLE_Msk;
  123. SysTick->VAL =0X00;
  124. }
  125. void delay_ms(u16 nms)
  126. {
  127. u8 repeat=nms/540;
  128. u16 remain=nms%540;
  129. while(repeat)
  130. {
  131. delay_xms(540);
  132. repeat--;
  133. }
  134. if(remain)delay_xms(remain);
  135. }

common.c at commit 09d7c4c, no license · at the source

Overview

Authors: Jichang Yang1,2,3, Hegan Chen1,2,3, Jia Chen4, Songqi Wang1,2,3, Qifan Zhu1,2,3, Xinyuan Zhang1,2,3, Yan Zeng1,3, Shaocong Wang5, Mingrui Yang1,2, Yifei Yu1,2, Xi Chen1,2, Bo Wang1,2, Binbin Cui1, Yi Li1,2,3,6,7, Ning Lin1,2, Meng Xu1,2, Yi Li4, Xiaoxin Xu6,7, Xiaojuan Qi1, Xumeng Zhang8
and 6 other authorsDashan Shang6,7, Zhongrui Wang2, Han Wang1,3, Qi Liu8, Kwang-Ting Cheng9, Ming Liu6,8
  1. Department of Electrical and Computer Engineering, The University of Hong Kong,Hong Kong, China
  2. School of Microelectronics, Southern University of Science and Technology,Shenzhen, China
  3. Center for Advanced Semiconductors and Integrated Circuits, The University of Hong Kong,Hong Kong, China
  4. School of Integrated Circuits, Hubei Key Laboratory for Advanced Memories, Huazhong University of Science and Technology,Wuhan 430074, China
  5. New Cornerstone Science Laboratory, Guangdong Provincial Key Laboratory of In-Memory Computing Chips, School of Electronic and Computer Engineering, Shenzhen Graduate School, Peking University,Shenzhen, China
  6. State Key Lab of Fabrication Technologies for Integrated Circuits and Key Laboratory of Microelectronic Devices and Integrated Technology, Institute of Microelectronics, Chinese Academy of Sciences,Beijing, China
  7. School of Integrated Circuits, University of Chinese Academy of Science,Beijing, China
  8. State Key Laboratory of Integrated Chips and Systems, Frontier Institute of Chip and System, Fudan University,Shanghai, China
  9. Department of Electronic and Computer Engineering, The Hong Kong University of Science and Technology,Hong Kong, China
Journal: Nature communications, volume 17, issue 1, article 6354
Dates: received 3 February 2026; accepted 27 April 2026; published online 12 May 2026
Type: Research article · Language: English
License: CC BY-NC-ND
Identifiers: DOI 10.1038/s41467-026-72900-z · PMID 42120416 · PMCID PMC13376740 · OpenAlex W4394673474
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: cognitive (subfield)
Methods: Connectivity
Keywords: Electrical and electronic engineering, Information technology
Topic: Neural Networks and Applications (Artificial Intelligence, Computer Science), according to OpenAlex
Funding: National Natural Science Foundation of China (62374181, T2293732, 62488101)
Citations: cited by 1 paper (Europe PMC); 82 references in the paper

Abstract

The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.

Repositories

Its files are read in the Code ↔ Paper reader above.

yangjc97/memristor-sde-diffusion

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 09d7c4c2d262d0f1a4a8a9848c5d4bd40f201674, 21 April 2026
Languages: C (49), C/C++ (49), Python (4), Jupyter (3)
Size: 197 files, 105 scripts
Software Heritage: archived
Found in: the references
Holds: README, 3 notebooks
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (6 files), Matplotlib (4 files), NumPy (4 files), pandas (3 files), seaborn (2 files), Pillow (1 file), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
106 files

Zenodo 19591013

License: CC-BY-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Size: 1 file
Software Heritage: not checked
Found in: the references
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: PyTorch (6 files), Matplotlib (4 files), NumPy (4 files), pandas (3 files), seaborn (2 files), Pillow (1 file), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)
106 files
At the source:

Code availability statement

The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • no repository, dataset or request procedure was recognized in it

Read it in the paper: doi.org/10.1038/s41467-026-72900-z.

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 210 scripts, each with its path and the digest of its content;
  • no match between paragraphs and code yet;
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability statement

The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:

  • it says that the data are available on request

Read it in the paper: doi.org/10.1038/s41467-026-72900-z.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 26 authors, 2 keywords, 1 funder, 41 references.

Cite

This paper

Yang, J., Chen, H., Chen, J., Wang, S., Zhu, Q., Zhang, X., Zeng, Y., Wang, S., Yang, M., Yu, Y., Chen, X., Wang, B., Cui, B., Li, Y., Lin, N., Xu, M., Li, Y., Xu, X., Qi, X., . . . Liu, M. (2026). Resistive memory-based neural differential equation solver for score-based diffusion model. Nature communications, 17(1), 6354. https://doi.org/10.1038/s41467-026-72900-z

BibTeX

@article{yang2026resistive,
author = {Yang, Jichang and Chen, Hegan and Chen, Jia and Wang, Songqi and Zhu, Qifan and Zhang, Xinyuan and Zeng, Yan and Wang, Shaocong and Yang, Mingrui and Yu, Yifei and Chen, Xi and Wang, Bo and Cui, Binbin and Li, Yi and Lin, Ning and Xu, Meng and Li, Yi and Xu, Xiaoxin and Qi, Xiaojuan and Zhang, Xumeng and Shang, Dashan and Wang, Zhongrui and Wang, Han and Liu, Qi and Cheng, Kwang-Ting and Liu, Ming},
title = {{Resistive memory-based neural differential equation solver for score-based diffusion model}},
journal = {Nature communications},
year = {2026},
month = may,
volume = {17},
number = {1},
pages = {6354},
publisher = {Nature Portfolio},
issn = {2041-1723},
doi = {10.1038/s41467-026-72900-z},
url = {https://doi.org/10.1038/s41467-026-72900-z},
pmid = {42120416},
pmcid = {PMC13376740}
}

RIS

TY - JOUR
AU - Yang, Jichang
AU - Chen, Hegan
AU - Chen, Jia
AU - Wang, Songqi
AU - Zhu, Qifan
AU - Zhang, Xinyuan
AU - Zeng, Yan
AU - Wang, Shaocong
AU - Yang, Mingrui
AU - Yu, Yifei
AU - Chen, Xi
AU - Wang, Bo
AU - Cui, Binbin
AU - Li, Yi
AU - Lin, Ning
AU - Xu, Meng
AU - Li, Yi
AU - Xu, Xiaoxin
AU - Qi, Xiaojuan
AU - Zhang, Xumeng
AU - Shang, Dashan
AU - Wang, Zhongrui
AU - Wang, Han
AU - Liu, Qi
AU - Cheng, Kwang-Ting
AU - Liu, Ming
TI - Resistive memory-based neural differential equation solver for score-based diffusion model
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/05/12
VL - 17
IS - 1
SP - 6354
SN - 2041-1723
PB - Nature Portfolio
DO - 10.1038/s41467-026-72900-z
UR - https://doi.org/10.1038/s41467-026-72900-z
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41467-026-72900-z",
"type": "article-journal",
"title": "Resistive memory-based neural differential equation solver for score-based diffusion model",
"container-title": "Nature communications",
"author": [
{
"family": "Yang",
"given": "Jichang"
},
{
"family": "Chen",
"given": "Hegan"
},
{
"family": "Chen",
"given": "Jia"
},
{
"family": "Wang",
"given": "Songqi"
},
{
"family": "Zhu",
"given": "Qifan"
},
{
"family": "Zhang",
"given": "Xinyuan"
},
{
"family": "Zeng",
"given": "Yan"
},
{
"family": "Wang",
"given": "Shaocong"
},
{
"family": "Yang",
"given": "Mingrui"
},
{
"family": "Yu",
"given": "Yifei"
},
{
"family": "Chen",
"given": "Xi"
},
{
"family": "Wang",
"given": "Bo"
},
{
"family": "Cui",
"given": "Binbin"
},
{
"family": "Li",
"given": "Yi"
},
{
"family": "Lin",
"given": "Ning"
},
{
"family": "Xu",
"given": "Meng"
},
{
"family": "Li",
"given": "Yi"
},
{
"family": "Xu",
"given": "Xiaoxin"
},
{
"family": "Qi",
"given": "Xiaojuan"
},
{
"family": "Zhang",
"given": "Xumeng"
},
{
"family": "Shang",
"given": "Dashan"
},
{
"family": "Wang",
"given": "Zhongrui"
},
{
"family": "Wang",
"given": "Han"
},
{
"family": "Liu",
"given": "Qi"
},
{
"family": "Cheng",
"given": "Kwang-Ting"
},
{
"family": "Liu",
"given": "Ming"
}
],
"container-title-short": "Nat Commun",
"volume": "17",
"issue": "1",
"page": "6354",
"DOI": "10.1038/s41467-026-72900-z",
"PMID": "42120416",
"PMCID": "PMC13376740",
"ISSN": "2041-1723",
"publisher": "Nature Portfolio",
"URL": "https://doi.org/10.1038/s41467-026-72900-z",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
12
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1126/sciadv.adr7571 [code]
Continuous-time digital twin with analog memristive neural ordinary differential equation solver.
Journal: Science advances
In common: PyTorch, SciPy, Matplotlib, 1 other tool, 6 references, 14 authors
[2] doi:10.1038/s41467-024-55293-9 [code]
Ultra robust negative differential resistance memristor for hardware neuron circuit implementation.
Journal: Nature communications
In common: PyTorch, seaborn, Matplotlib, 1 other tool, 1 reference, 2 authors
[3] doi:10.1038/s41467-022-34774-9
Compact artificial neuron based on anti-ferroelectric transistor.
Journal: Nature communications
In common: 1 reference, 2 authors
[4] doi:10.1038/s41467-024-46879-4 [code]
Training an Ising machine with equilibrium propagation.
Journal: Nature communications
In common: PyTorch, pandas, SciPy, 2 other tools, 4 references
[5] doi:10.1038/s41467-024-52132-9 [code]
An emergent attractor network in a passive resistive switching circuit.
Journal: Nature communications
In common: 5 references
[6] doi:10.1038/s41467-022-35160-1
Reconfigurable neuromorphic memristor network for ultralow-power smart textile electronics.
Journal: Nature communications
In common: 5 references
[7] doi:10.1038/s41467-024-46586-0 [code]
Local prediction-learning in high-dimensional spaces enables neural networks to plan.
Journal: Nature communications
In common: PyTorch, SciPy, Matplotlib, 1 other tool, cognitive, 3 references
[8] doi:10.1126/sciadv.aee6952 [code]
Wafer-scale SOT-MRAM for analog crossbar array applications.
Journal: Science advances
In common: Pillow, PyTorch, seaborn, 3 other tools, 2 references
[9] doi:10.1038/s41598-025-03408-7 [code]
Biologically-informed excitatory and inhibitory ratio for robust spiking neural network training.
Journal: Scientific reports
In common: PyTorch, seaborn, pandas, 3 other tools, 2 references
[10] doi:10.1038/s41467-025-56321-y [code]
Evaluating normative representation learning in generative AI for robust anomaly detection in brain imaging.
Journal: Nature communications
In common: Pillow, PyTorch, seaborn, 4 other tools, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Add the badge to the code's README

OSCR: the badge of this paper

If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.

Markdown
<!-- oscr-badge:start -->
[![OSCR](https://openscicode.org/badge/doi/10.1038/s41467-026-72900-z.svg)](https://openscicode.org/badge/doi/10.1038/s41467-026-72900-z)
<!-- oscr-badge:end -->
reStructuredText
.. oscr-badge:start

.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-72900-z.svg
   :target: https://openscicode.org/badge/doi/10.1038/s41467-026-72900-z
   :alt: OSCR

.. oscr-badge:end
HTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-72900-z"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-72900-z.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->

On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".

If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.

Report a mismatch between the code and the paper · Report a code error (signed in)

Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.

Report a reproduction failure (signed in)

Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.