Skip to main content

A Low-Cost Semihosting Approach to Debug DSP Application

  • Conference paper
  • First Online:
Communications and Networking (ChinaCom 2022)

Abstract

Applications of digital signal processor (DSP) involve large amounts of data processing. In order to be able to improve the speed of DSP application development, it is necessary to be able to implement debugging functions that can support File I/O at a small cost of modification. This paper proposes a complete set of implementation methods of the semihosting debugging function on a DSP without an operating system, including hardware support and software algorithms. On hardware, this article adds only one self-trapping instruction to support semihosting debugging. In software, this article is based on the GDB File I/O extension protocol to design and implement the debugging agent software and C language library underlying file operations. And after optimizing library files and application source code, the I/O speed of the architecture can meet users’ debugging needs. This solution can realize the semihosting debugging function for DSP chip at a low cost and has good performance. Therefore, provides more powerful debugging functions for DSP application development. In assembly level debugging, observing the execution of each assembly instruction can also verify the instruction execution of the chip itself. The addition of file operation can greatly validate the chip with larger data.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 99.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Kuschnero, V.M., Schaedler, M., Bluemm, C., et al.: Advances in deep learning for digital signal processing in coherent optical modems. In: Optical Fiber Communication Conference (2020)

    Google Scholar 

  2. Austin, T., Larson, E., et al.: SimpleScalar: an infrastructure for computer system modeling. Computer 35, 59–67 (2002)

    Article  Google Scholar 

  3. Nadal, J., Baghdadi, A.: Parallel and flexible 5G LDPC decoder architecture targeting FPGA. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 29(6), 1141–1151 (2021). https://doi.org/10.1109/TVLSI.2021.3072866

    Article  Google Scholar 

  4. Weng, O., Khodamoradi, A., Kastner, R.: Hardware-efficient residual networks for FPGAs (2021)

    Google Scholar 

  5. Berger, A.S.: An overview of the tools for embedded design and debug (2020)

    Google Scholar 

  6. Berger, A.S.: Best practices for debugging embedded software (2020)

    Google Scholar 

  7. Hossain, F., Iry, J., Kulkami, N., et al.: Method and system for remote debug protocol proxying for production debugging; selective session and user routing for debugging in multi-tenant cloud computing infrastructure. US (2014)

    Google Scholar 

  8. Prado, B., Dantas, D., Bispo, K., et al.: A virtual prototype semihosting approach for early simulation of cyber-physical systems. In: 2018 IEEE Symposium on Computers and Communications (ISCC). IEEE (2018)

    Google Scholar 

  9. Chance, G., Ghobrial, A., Mcareavey, K., et al.: On determinism of game engines used for simulation-based autonomous vehicle verification (2021)

    Google Scholar 

  10. Lee, H., Hyunggoy, Oh., Kang, S.: On-chip error detection reusing built-in self-repair for silicon debug. IEEE Access 9, 56443–56456 (2021). https://doi.org/10.1109/ACCESS.2021.3071517

    Article  Google Scholar 

  11. Mitra, S., Barrett, C., Lin, D., et al.: Post-silicon validation and debug using symbolic quick error detection (2018)

    Google Scholar 

  12. Cao, Y., Hao, Z., Palombo, H., et al.: A post-silicon trace analysis approach for system-on-chip protocol debug. In: 2017 IEEE 35th International Conference on Computer Design (ICCD). IEEE (2017)

    Google Scholar 

  13. Merten, M., Huhn, S., Drechsler, R.: A codeword-based compactor for on-chip generated debug data using two-stage artificial neural networks. In: 2021 IEEE International Symposium on Defect and Fault Tolerance in VLSI and Nanotechnology Systems (DFT), pp. 1–6. IEEE (2021)

    Google Scholar 

  14. Petrović, P.B.: A new electronically controlled floating/grounded meminductor emulator based on single MO-VDTA. Analog Integr. Circuits Signal Process. 110, 185–195 (2021)

    Article  Google Scholar 

  15. Minati, L., Mancinelli, M., Frasca, M., et al.: An analog electronic emulator of non-linear dynamics in optical microring resonators. Chaos Solitons Fractals 153, 111410 (2021)

    Article  MathSciNet  Google Scholar 

  16. Kumar, V., Dubey, S.K., Islam, A.: A Current-Mode Memristor Emulator Circuit (2020)

    Google Scholar 

  17. Barboni, L.: A passive circuit-emulator for a current-controlled memristor (2020)

    Google Scholar 

  18. Zhu, M., Wang, C., Deng, Q., et al.: Locally active memristor with three coexisting pinched hysteresis loops and its emulator circuit. Int. J. Bifurcation Chaos (2020)

    Google Scholar 

  19. Berger, A., Barr, M., et al.: On-chip debug. Embed. Syst. Program. (2003)

    Google Scholar 

  20. Berger, A.S.: On-chip debugging resources (2020)

    Google Scholar 

  21. Backer, J., Hely, D., Karri, R.: Secure design-for-debug for systems-on-chip. In: Test Conference. IEEE (2015)

    Google Scholar 

  22. Yiu, J.: Input and output software examples - ScienceDirect. The Definitive Guide to ARM® CORTEX®-M3 and CORTEX®-M4 Processors (Third Edition), pp. 583–604 (2014)

    Google Scholar 

  23. Yiu, J.: Getting Started with the ARM RealView Development Suite. Elsevier Inc. (2011)

    Google Scholar 

  24. Uzan, D., Kahn, R., Weiss, S.: Perceptron based filtering of futile prefetches in embedded VLIW DSPs. J. Syst. Architect. 110(3), 101826 (2020)

    Article  Google Scholar 

Download references

Acknowledgment

The authors thank the editors and the anonymous reviewers for their invaluable comments to help to improve the quality of this paper. This work was supported by the Key-Area Research and Development Program of Guangdong Province under Grant 2018B010115002, National Natural Science Foundation of China under Grants 61831018 and U21A20452, the Outstanding youth project of Natural Science Foundation of Jiangxi Province 20212ACB212001, and the S&T plan projects of Jiangxi Province Education Department GJJ201003.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jun Wu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 ICST Institute for Computer Sciences, Social Informatics and Telecommunications Engineering

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Huang, T., Ren, H., Zhang, Z., Tan, B., Wu, J. (2023). A Low-Cost Semihosting Approach to Debug DSP Application. In: Gao, F., Wu, J., Li, Y., Gao, H. (eds) Communications and Networking. ChinaCom 2022. Lecture Notes of the Institute for Computer Sciences, Social Informatics and Telecommunications Engineering, vol 500. Springer, Cham. https://doi.org/10.1007/978-3-031-34790-0_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-34790-0_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-34789-4

  • Online ISBN: 978-3-031-34790-0

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics