skip to main content
10.1145/1785481.1785529acmconferencesArticle/Chapter ViewAbstractPublication PagesglsvlsiConference Proceedingsconference-collections
research-article

Fast instruction cache modeling for approximate timed HW/SW co-simulation

Published:16 May 2010Publication History

ABSTRACT

Approximate timed co-simulation has been proposed as a fast solution for system modeling in early design steps. This co-simulation technique enables the simulation of systems at speeds close to functional execution, while considering timing effects. As a consequence, system performance estimations can be obtained early, enabling efficient design space exploration and system refinement. To achieve fast simulation speeds, first the SW code is pre-annotated with time information and then it is natively executed, performing what is called native-based co-simulation. To obtain sufficiently accurate performance estimations, the effect of the system components must be considered. Among them, processor caches are really important, as they have a strong impact on the overall system performance. However, no efficient techniques for cache modeling in native-based co-simulation have been proposed. Previous works considering caches apply slow cache models based on tag search, similar to ISS-based models. This solution slows down the simulation speed, greatly reducing the efficiency of native based co-simulations. In this paper, a high-level instruction cache model is proposed, along with the required instrumentation for native simulation. This model allows the designer to obtain cache hit/miss rate estimations with simulation speeds very close to native execution. Results present a speed-up of two orders of magnitude with respect to ISS and one order of magnitude regarding previous approaches in native simulation. Miss rate estimation error remains below 5%.

References

  1. Y. Steven Li, S. Malik, A. Wolfe. "Performance Estimation of Embedded Software with Instruction Cache Modeling". In proc. of ACM Transactions on Design Automation of Electronic Systems, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. R. Arnold, F. Mueller, D. Whalley, M. Harmon. "Bounding worst-case instruction cache performance", 15th Real-Time Systems Symposium, 1994.Google ScholarGoogle ScholarCross RefCross Ref
  3. C.M. Kirchsteiger, H. Schweitzer, C. Trummer, C. Steger, R. Wei², M. Pistauer. "A Software Performance Simulation Methodology for Rapid System Architecture Exploration". In proc. of ICECS, 2008.Google ScholarGoogle Scholar
  4. J. Schnerr, O. Bringmann, A. Viehl, W. Rosenstiel. "High-Performance Timing Simulation of Embedded Software". In proc. of DAC, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. E.S. Sorenson, J.K. Flanagan. "Cache Characterization Surfaces and Predicting Workload Miss Rates". In proc. of the Workload Characterization, 2001. WWC-4. 2001 IEEE International Workshop. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. T.D. Givargis, F. Vahid, J. Henkel. "Fast Cache and Bus Power Estimation for Parametrized System-on-a-Chip Design". In proc. of DATE, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. F. Wolf, J. Staschulat, R. Ernst. "Hybrid Cache Analysis in Running Time Verification of Embedded Software". In Design Automation for Embedded Systems, 2002.Google ScholarGoogle Scholar
  8. N. Kroupis, S. Mamagkakis, D. Soudris. "An Estimation Methodology for Designing Instruction Cache Memory of Embedded Systems". IEEE/ACM/IFIP Workshop on Embedded Systems for Real Time Multimedia, 2006. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. N. Tojo, N. Togawa, M. Yanagisawa, T. Ohtsuki. "Exact and Fast L1 Cache Simulation for Embedded Systems". In proc. of ASP-DAC, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. J.J. Pieper, A. Mellan, J.M. Paul, D.E. Thomas, F. Karim. "High Level Cache Simulation for Heterogeneous Multiprocessors". In proc. of DAC, 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Hennessy & Patterson, "Computer Architecture: A Quantitative Approach", Elsevier ARM920T Technical Reference Manual, chapter 4. (http://www.arm.com/).Google ScholarGoogle Scholar
  12. C. Cifuentes. "Reverse Compilation Techniques". PhD thesis, Queensland University of Technology, 1994.Google ScholarGoogle Scholar
  13. A. Bouchhima, P. Gerin, F. Pétrot. "Automatic Instrumentation of Embedded Software for High Level Hardware/Software Co-Simulation". ASP-DAC 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. Edward D. Willink. "Meta-Compilation for C++". PhD thesis, University of Surrey, June 2001.Google ScholarGoogle Scholar
  15. Bison, http://www.gnu.org/software/bison/Google ScholarGoogle Scholar
  16. DineroIV, http://pages.cs.wisc.edu/~markhill/DineroIV/Google ScholarGoogle Scholar
  17. M. Lajolo, L. Lavegno & A. Sangioanni-Vincentelli: "Fast instruction cache simlation strategies in a HW/SW co-design environment", ASP-DAC 1999Google ScholarGoogle Scholar

Index Terms

  1. Fast instruction cache modeling for approximate timed HW/SW co-simulation

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      GLSVLSI '10: Proceedings of the 20th symposium on Great lakes symposium on VLSI
      May 2010
      502 pages
      ISBN:9781450300124
      DOI:10.1145/1785481

      Copyright © 2010 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 16 May 2010

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      Overall Acceptance Rate312of1,156submissions,27%

      Upcoming Conference

      GLSVLSI '24
      Great Lakes Symposium on VLSI 2024
      June 12 - 14, 2024
      Clearwater , FL , USA

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader