{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T19:22:12Z","timestamp":1794856932967,"version":"4.9.1"},"reference-count":40,"publisher":"Springer Science and Business Media LLC","issue":"4","license":[{"start":{"date-parts":[[2023,11,14]],"date-time":"2023-11-14T00:00:00Z","timestamp":1699920000000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2023,11,14]],"date-time":"2023-11-14T00:00:00Z","timestamp":1699920000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Labex Digicosme","award":["ANR11IDEX000302"],"award-info":[{"award-number":["ANR11IDEX000302"]}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Real-Time Syst"],"published-print":{"date-parts":[[2023,12]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>In order to prove conformance to memory standards and bound memory access latency, recently proposed real-time DRAM controllers rely on paper and pencil proofs, which can be troubling: they are difficult to read and review, they are often shown only partially and\/or rely on abstractions for the sake of conciseness, and they can easily diverge from the controller implementation, as no formal link is established between both. We propose a new framework written in Coq, in which we model a DRAM controller and its expected behaviour as a formal specification. The trustworthiness in our solution is two-fold: (1) proofs that are typically done on paper and pencil are now done in Coq and thus certified by its kernel, and (2) the reviewer\u2019s job develops into making sure that the formal specification matches the standards\u2014instead of performing a thorough check of the mathematical formalism. Our framework provides a generic DRAM model capturing a set of controller properties as proof obligations, which all implementations must comply with. We focus on properties related to the assertiveness that timing constraints are respected, every incoming request is handled in bounded time, and the DRAM command protocol is respected. We refine our specification with two implementations based on widely-known arbitration policies\u2014<jats:italic>First-in First-Out<\/jats:italic> (FIFO) and <jats:italic>Time-Division Multiplexing<\/jats:italic> (TDM). We extract proved code from our model and use it as a \u201ctrusted core\u201d on a cycle-accurate DRAM simulator.<\/jats:p>","DOI":"10.1007\/s11241-023-09411-3","type":"journal-article","created":{"date-parts":[[2023,11,14]],"date-time":"2023-11-14T19:01:58Z","timestamp":1699988518000},"page":"664-704","update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":6,"title":["A formal framework to design and prove trustworthy memory controllers"],"prefix":"10.1007","volume":"59","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-0292-3437","authenticated-orcid":false,"given":"Felipe","family":"Lisboa Malaquias","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5291-8567","authenticated-orcid":false,"given":"Mihail","family":"Asavoae","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2493-7864","authenticated-orcid":false,"given":"Florian","family":"Brandner","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2023,11,14]]},"reference":[{"key":"9411_CR1","doi-asserted-by":"crossref","unstructured":"Akesson B, Nasri M, Nelissen G, Altmeyer S, Davis RI (2020) An empirical survey-based study into industry practice in real-time systems. In: 2020 IEEE Real-Time Systems Symposium (RTSS). IEEE, pp 3\u201311","DOI":"10.1109\/RTSS49844.2020.00012"},{"issue":"5","key":"9411_CR2","doi-asserted-by":"publisher","first-page":"430","DOI":"10.1007\/s11241-011-9129-6","volume":"47","author":"B Bhat","year":"2011","unstructured":"Bhat B, Mueller F (2011) Making DRAM refresh predictable. Real-Time Syst 47(5):430\u2013453. https:\/\/doi.org\/10.1007\/s11241-011-9129-6","journal-title":"Real-Time Syst"},{"issue":"1","key":"9411_CR3","doi-asserted-by":"publisher","first-page":"174","DOI":"10.1145\/291251.289440","volume":"34","author":"P Bjesse","year":"1998","unstructured":"Bjesse P, Claessen K, Sheeran M, Singh S (1998) Lava: hardware design in haskell. ACM SIGPLAN Notices 34(1):174\u2013184","journal-title":"ACM SIGPLAN Notices"},{"key":"9411_CR4","doi-asserted-by":"crossref","unstructured":"Boldo S, Cl\u00e9ment F, Faissole F, Martin V, Mayero M (2017) A Coq formal proof of the lax-milgram theorem. In: Proceedings of the 6th ACM SIGPLAN Conference on Certified Programs and Proofs, pp 79\u201389","DOI":"10.1145\/3018610.3018625"},{"key":"9411_CR5","doi-asserted-by":"crossref","unstructured":"Bourgeat T, Pit-Claudel C, Chlipala A (2020) The essence of bluespec: a core language for rule-based hardware design. In: Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation, pp 243\u2013257","DOI":"10.1145\/3385412.3385965"},{"key":"9411_CR6","doi-asserted-by":"crossref","unstructured":"Bozhko S, Brandenburg BB (2020) Abstract response-time analysis: A formal foundation for the busy-window principle","DOI":"10.1109\/RTSS52674.2021.00039"},{"key":"9411_CR7","doi-asserted-by":"crossref","unstructured":"Cerqueira F, Stutz F, Brandenburg BB (2016) Prosa: A case for readable mechanized schedulability analysis. In: Euromicro Conference on Real-Time Systems, ECRTS\u201916. IEEE, pp 273\u2013284","DOI":"10.1109\/ECRTS.2016.28"},{"key":"9411_CR8","volume-title":"Certified programming with dependent types: a pragmatic introduction to the Coq proof assistant","author":"A Chlipala","year":"2022","unstructured":"Chlipala A (2022) Certified programming with dependent types: a pragmatic introduction to the Coq proof assistant. MIT Press, Cambridge"},{"key":"9411_CR9","doi-asserted-by":"crossref","unstructured":"Choi J, Chlipala A, et\u00a0al (2022) Hemiola: A DSL and verification tools to guide design and proof of hierarchical cache-coherence protocols. In: International Conference on Computer Aided Verification. Springer, pp 317\u2013339","DOI":"10.1007\/978-3-031-13188-2_16"},{"key":"9411_CR10","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3110268","volume":"1","author":"J Choi","year":"2017","unstructured":"Choi J, Vijayaraghavan M, Sherman B, Chlipala A, Arvind (2017)  Kami: aplatform for high-level parametric hardware specification and its modular verification. Proc ACM Prog Language 1:1\u201330","journal-title":"Proc ACM Prog Language"},{"key":"9411_CR11","doi-asserted-by":"crossref","unstructured":"Ecco L, Ernst R (2015) Improved DRAM timing bounds for real-time DRAM controllers with read\/write bundling. In: Real-Time Systems Symposium, RTSS\u201915. IEEE, pp 53\u201364","DOI":"10.1109\/RTSS.2015.13"},{"issue":"2","key":"9411_CR12","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3158208","volume":"17","author":"D Guo","year":"2018","unstructured":"Guo D, Hassan M, Pellizzoni R, Patel H (2018) A comparative study of predictable DRAM controllers. ACM Trans Embed Comput Syst (TECS) 17(2):1\u201323","journal-title":"ACM Trans Embed Comput Syst (TECS)"},{"key":"9411_CR13","doi-asserted-by":"crossref","unstructured":"Guo D, Pellizzoni R (2017) A requests bundling DRAM controller for mixed-criticality systems. In: Real-Time and Embedded Technology and Applications Symposium, RTAS\u201917. IEEE, pp 247\u2013258","DOI":"10.1109\/RTAS.2017.12"},{"key":"9411_CR14","doi-asserted-by":"crossref","unstructured":"Guo X, Lesourd M, Liu M, Rieg L, Shao Z (2019) Integrating formal schedulability analysis into a verified os kernel. In: Computer Aided Verification, CAV\u201919. Springer, pp 496\u2013514","DOI":"10.1007\/978-3-030-25543-5_28"},{"issue":"5","key":"9411_CR15","first-page":"1050","volume":"37","author":"M Hassan","year":"2017","unstructured":"Hassan M, Patel H (2017) Mcxplore: Automating the validation process of DRAM memory controller designs. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems 37(5):1050\u20131063","journal-title":"IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems"},{"key":"9411_CR16","doi-asserted-by":"crossref","unstructured":"Hassan M, Patel H, Pellizzoni R (2015) A framework for scheduling DRAM memory accesses for multi-core mixed-time critical systems. In: Real-Time and Embedded Technology and Applications Sym. IEEE, pp 307\u2013316","DOI":"10.1109\/RTAS.2015.7108454"},{"key":"9411_CR17","doi-asserted-by":"crossref","unstructured":"Jalle J, Quinones E, Abella J, Fossati L, Zulianello M, Cazorla FJ (2014) A dual-criticality memory controller (dcmc): Proposal and evaluation of a space case study. In: Real-Time Systems Symposium, RTSS\u201914. IEEE, pp 207\u2013217","DOI":"10.1109\/RTSS.2014.23"},{"key":"9411_CR18","unstructured":"(JEDEC), J.E.D.E.C.: DDR4 SDRAM standard (2021)"},{"key":"9411_CR19","doi-asserted-by":"crossref","unstructured":"Jung M, Kraft K, Soliman T, Sudarshan C, Weis C, Wehn, N (2019) Fast validation of DRAM protocols with timed petri nets. In: International Symposium on Memory Systems, MEMSYS\u201919. ACM, pp 133\u2013147","DOI":"10.1145\/3357526.3357556"},{"key":"9411_CR20","doi-asserted-by":"publisher","first-page":"690","DOI":"10.1109\/TC.1979.1675439","volume":"9","author":"L Lamport","year":"1979","unstructured":"Lamport L (1979) How to make a multiprocessor computer that correctly executes multiprocess programs. IEEE Trans Comput C 9:690\u2013691","journal-title":"IEEE Trans Comput C"},{"issue":"1","key":"9411_CR21","doi-asserted-by":"publisher","first-page":"134","DOI":"10.1007\/s100090050010","volume":"1","author":"KG Larsen","year":"1997","unstructured":"Larsen KG, Pettersson P, Yi W (1997) Uppaal in a nutshell. Int J Softw Tools Technol Transf 1(1):134\u2013152","journal-title":"Int J Softw Tools Technol Transf"},{"key":"9411_CR22","doi-asserted-by":"crossref","unstructured":"Li Y, Akesson B, Goossens K (2014) Dynamic command scheduling for real-time memory controllers. In: Euromicro Conference on Real-Time Systems, ECRTS\u201914. IEEE, pp 3\u201314","DOI":"10.1109\/ECRTS.2014.18"},{"key":"9411_CR23","doi-asserted-by":"crossref","unstructured":"Li Y, Akesson B, Lampka K, Goossens K (2016) Modeling and verification of dynamic command scheduling for real-time memory controllers. In: Real-Time and Embedded Technology and Applications Symposium. IEEE, pp 1\u201312","DOI":"10.1109\/RTAS.2016.7461341"},{"key":"9411_CR24","doi-asserted-by":"crossref","unstructured":"Lisboa\u00a0Malaquias F, Asavoae M, Brandner F (2022) A Coq framework for more trustworthy DRAM controllers. In: Proceedings of the 30th International Conference on Real-Time Networks and Systems, pp 140\u2013150","DOI":"10.1145\/3534879.3534907"},{"key":"9411_CR25","unstructured":"Maida M, Bozhko S, Brandenburg BB (2022) Foundational response-time analysis as explainable evidence of timeliness. In: 34th Euromicro Conference on Real-Time Systems (ECRTS 2022). Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik"},{"issue":"2","key":"9411_CR26","doi-asserted-by":"publisher","first-page":"105","DOI":"10.1109\/LCA.2020.3008288","volume":"19","author":"R Mirosanlou","year":"2020","unstructured":"Mirosanlou R, Guo D, Hassan M, Pellizzoni R (2020) Mcsim: An extensible DRAM memory controller simulator. IEEE Comput Archit Lett 19(2):105\u2013109","journal-title":"IEEE Comput Archit Lett"},{"key":"9411_CR27","doi-asserted-by":"crossref","unstructured":"Mirosanlou R, Hassan M, Pellizzoni R (2020) Drambulism: Balancing performance and predictability through dynamic pipelining. In: 2020 IEEE Real-Time and Embedded Technology and Applications Symposium (RTAS). IEEE, pp 82\u201394","DOI":"10.1109\/RTAS48715.2020.00-15"},{"key":"9411_CR28","doi-asserted-by":"crossref","unstructured":"Mirosanlou R, Hassan M, Pellizzoni R (2021) Duomc: Tight DRAM latency bounds with shared banks and near-cots performance. In: The International Symposium on Memory Systems, pp 1\u201316","DOI":"10.1145\/3488423.3519322"},{"key":"9411_CR29","doi-asserted-by":"crossref","DOI":"10.1007\/3-540-45949-9","volume-title":"Isabelle\/HOL: a proof assistant for higher-order logic","author":"T Nipkow","year":"2002","unstructured":"Nipkow T, Paulson LC, Wenzel M (2002) Isabelle\/HOL: a proof assistant for higher-order logic, vol 2283. Springer, Berlin"},{"issue":"4","key":"9411_CR30","doi-asserted-by":"publisher","first-page":"86","DOI":"10.1109\/LES.2010.2041634","volume":"1","author":"M Paolieri","year":"2009","unstructured":"Paolieri M, Quinones E, Cazorla FJ, Valero M (2009) An analyzable memory controller for hard real-time cmps. IEEE Embed Syst Lett 1(4):86\u201390","journal-title":"IEEE Embed Syst Lett"},{"key":"9411_CR31","doi-asserted-by":"crossref","unstructured":"Reineke J, Liu I, Patel HD, Kim S, Lee EA (2011) PRET DRAM controller: Bank privatization for predictability and temporal isolation. In: Conference on Hardware\/Software Codesign and System Synthesis. IEEE, pp 99\u2013108","DOI":"10.1145\/2039370.2039388"},{"issue":"2","key":"9411_CR32","doi-asserted-by":"publisher","first-page":"128","DOI":"10.1145\/342001.339668","volume":"28","author":"S Rixner","year":"2000","unstructured":"Rixner S, Dally WJ, Kapasi UJ, Mattson P, Owens JD (2000) Memory access scheduling. ACM SIGARCH Comput Archit News 28(2):128\u2013138","journal-title":"ACM SIGARCH Comput Archit News"},{"key":"9411_CR33","doi-asserted-by":"crossref","unstructured":"Schranzhofer A, Pellizzoni R, Chen JJ, Thiele L, Caccamo M (2011) Timing analysis for resource access interference on adaptive resource arbiters. In: Real-Time and Embedded Technology and Applications Symposium, RTAS\u201911. IEEE, pp 213\u2013222","DOI":"10.1109\/RTAS.2011.28"},{"key":"9411_CR34","unstructured":"Sezgin A (2004) Formalization and verification of shared memory. The University of Utah"},{"key":"9411_CR35","doi-asserted-by":"crossref","unstructured":"Shankar N (2018) Combining model checking and deduction. In: Handbook of Model Checking. Springer, pp 651\u2013684","DOI":"10.1007\/978-3-319-10575-8_20"},{"key":"9411_CR36","volume-title":"Lectures on the Curry-Howard isomorphism","author":"MH S\u00f8rensen","year":"2006","unstructured":"S\u00f8rensen MH, Urzyczyn P (2006) Lectures on the Curry-Howard isomorphism. Elsevier, Amsterdam"},{"key":"9411_CR37","doi-asserted-by":"crossref","unstructured":"Valsan PK, Yun H (2015) Medusa: a predictable and high-performance DRAM controller for multicore based embedded systems. In: 2015 IEEE 3rd international conference on cyber-physical systems, networks, and applications. IEEE, pp 86\u201393","DOI":"10.1109\/CPSNA.2015.24"},{"key":"9411_CR38","doi-asserted-by":"crossref","unstructured":"Wu ZP, Krish Y, Pellizzoni R (2013) Worst case analysis of DRAM latency in multi-requestor systems. In: Real-Time Systems Symposium, RTSS\u201913. IEEE, pp 372\u2013383","DOI":"10.1109\/RTSS.2013.44"},{"key":"9411_CR39","doi-asserted-by":"crossref","unstructured":"Xin X, Zhang Y, Yang J (2019) Roc: DRAM-based processing with reduced operation cycles. In: Proceedings of the 56th Annual Design Automation Conference 2019, pp 1\u20136","DOI":"10.1145\/3316781.3317900"},{"key":"9411_CR40","doi-asserted-by":"crossref","unstructured":"Yun H, Pellizzon R, Valsan PK (2015) Parallelism-aware memory interference delay analysis for cots multicore systems. In: Euromicro Conference on Real-Time Systems, ECRTS\u201915. IEEE, pp 184\u2013195","DOI":"10.1109\/ECRTS.2015.24"}],"container-title":["Real-Time Systems"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s11241-023-09411-3.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s11241-023-09411-3\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s11241-023-09411-3.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,1,25]],"date-time":"2024-01-25T14:30:16Z","timestamp":1706193016000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s11241-023-09411-3"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,11,14]]},"references-count":40,"journal-issue":{"issue":"4","published-print":{"date-parts":[[2023,12]]}},"alternative-id":["9411"],"URL":"https:\/\/doi.org\/10.1007\/s11241-023-09411-3","relation":{},"ISSN":["0922-6443","1573-1383"],"issn-type":[{"value":"0922-6443","type":"print"},{"value":"1573-1383","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,11,14]]},"assertion":[{"value":"25 October 2023","order":1,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"14 November 2023","order":2,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}}]}}