ABSTRACT
Simulation offers many advantages when designing analog circuits. Designers can explore alternatives quickly, without added cost or risk of hardware faults. However, it is challenging to use simulation as an aid during interactive debugging of physical circuits, due to difficulties in comparing simulated analyses with hardware measurements. Designers must continually configure simulations to match the state of the physical circuit (e.g. capturing sensor inputs), and must manually rework the hardware to replicate changes or analyses performed in simulation. We propose techniques leveraging instrumentation and programmable test hardware to create a tight coupling between a physical circuit and its simulated model. Bridging these representations helps designers to compare simulated and measured behaviors, and to quickly perform analytical techniques on hardware (e.g. parameter-response analysis) that are typically cumbersome outside of simulation. We implement these techniques in a prototype and show how it aids in efficiently debugging a variety of analog circuits.
Supplemental Material
Available for Download
- [n.d.]. Ngspice – The open source spice circuit simulator. http://ngspice.sourceforge.net/Google Scholar
- Analog Devices. 2015. TMP35/TMP36/TMP37. https://www.analog.com/media/en/technical-documentation/data-sheets/TMP35_36_37.pdfGoogle Scholar
- Sameh Attia and Vaughn Betz. 2020. StateMover: Combining Simulation and Hardware Execution for Efficient FPGA Debugging. In The 2020 ACM/SIGDA International Symposium on Field-Programmable Gate Arrays(FPGA ’20). Association for Computing Machinery, New York, NY, USA, 175–185. https://doi.org/10.1145/3373087.3375307Google ScholarDigital Library
- Autodesk. 2018. EAGLE PCB Design Software. https://www.autodesk.com/products/eagle/overviewGoogle Scholar
- M Bacic. 2005. On hardware-in-the-loop simulation. In Proceedings of the 44th IEEE Conference on Decision and Control. 3194–3198. https://doi.org/10.1109/CDC.2005.1582653Google ScholarCross Ref
- S Banerjee and T Gupta. 2012. Fast and scalable hybrid functional verification and debug with dynamically reconfigurable co-simulation. In 2012 IEEE/ACM International Conference on Computer-Aided Design (ICCAD). 115–122.Google ScholarDigital Library
- P Caunegre and C Abraham. 1995. Achieving simulation-based test program verification and fault simulation capabilities for mixed-signal systems. In Proceedings the European Design and Test Conference. ED TC 1995. 469–477. https://doi.org/10.1109/EDTC.1995.470318Google ScholarCross Ref
- Analog Devices. 2018. ADG732 Datasheet and Product Info. http://www.analog.com/en/products/adg732.htmlGoogle Scholar
- Pragun Goyal, Harshit Agrawal, Joseph A. Paradiso, and Pattie Maes. 2013. BoardLab. In Proceedings of the Adjunct Publication of the 26th Annual ACM Symposium on User Interface Software and Technology - UIST ’13 Adjunct. ACM Press, New York, New York, USA, 19–20. https://doi.org/10.1145/2508468.2514936Google ScholarDigital Library
- Björn Hartmann, Loren Yu, Abel Allison, Yeonsoo Yang, and Scott R. Klemmer. 2008. Design as Exploration: Creating Interface Alternatives through Parallel Authoring and Runtime Tuning. In Proceedings of the 21st Annual ACM Symposium on User Interface Software and Technology (Monterey, CA, USA) (UIST ’08). Association for Computing Machinery, New York, NY, USA, 91–100. https://doi.org/10.1145/1449715.1449732Google ScholarDigital Library
- Lipeng Ji and Xiaohui Hu. 2018. Analog circuit soft-fault diagnosis based on sensitivity analysis with minimum fault number rule. Analog Integrated Circuits and Signal Processing 95, 1 (apr 2018), 163–171. https://doi.org/10.1007/s10470-018-1111-yGoogle ScholarDigital Library
- JTAG Technologies. 2018. Boundary Scan In-Circuit Programming. https://www.jtag.com/Google Scholar
- Mitchell Karchemsky, J.D. Zamfirescu-Pereira, Kuan-Ju Wu, François Guimbretière, and Björn Hartmann. 2019. Heimdall: A Remotely Controlled Inspection Workbench For Debugging Microcontroller Projects. In Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems (Glasgow, Scotland Uk) (CHI ’19). Association for Computing Machinery, New York, NY, USA, 1–12. https://doi.org/10.1145/3290605.3300728Google ScholarDigital Library
- Yoonji Kim, Youngkyung Choi, Hyein Lee, Geehyuk Lee, and Andrea Bianchi. 2019. VirtualComponent: A Mixed-Reality Tool for Designing and Tuning Breadboarded Circuits. In Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems(CHI ’19). Association for Computing Machinery, New York, NY, USA, 1–13. https://doi.org/10.1145/3290605.3300407Google ScholarDigital Library
- J. Marks, B. Andalman, P. A. Beardsley, W. Freeman, S. Gibson, J. Hodgins, T. Kang, B. Mirtich, H. Pfister, W. Ruml, K. Ryall, J. Seims, and S. Shieber. 1997. Design Galleries: A General Approach to Setting Parameters for Computer Graphics and Animation. In Proceedings of the 24th Annual Conference on Computer Graphics and Interactive Techniques(SIGGRAPH ’97). ACM Press/Addison-Wesley Publishing Co., USA, 389–400. https://doi.org/10.1145/258734.258887Google ScholarDigital Library
- Will McGrath, Daniel Drew, Jeremy Warner, Majeed Kazemitabaar, Mitchell Karchemsky, David Mellis, and Björn Hartmann. 2017. Bifröst: Visualizing and Checking Behavior of Embedded Systems Across Hardware and Software. In Proceedings of the 30th Annual ACM Symposium on User Interface Software and Technology - UIST ’17. ACM Press, New York, NY, USA, 299–310. https://doi.org/10.1145/3126594.3126658Google ScholarDigital Library
- Laurence W. Nagel and D.O. Pederson. 1973. SPICE (Simulation Program with Integrated Circuit Emphasis). Technical Report UCB/ERL M382. EECS Department, University of California, Berkeley. http://www2.eecs.berkeley.edu/Pubs/TechRpts/1973/22871.htmlGoogle Scholar
- Parallax Inc. 2020. Sound Impact Sensor | 29132. https://www.parallax.com/product/29132Google Scholar
- PJRC. 2020. Teensy USB Development Board. https://www.pjrc.com/store/teensy36.htmlGoogle Scholar
- Fabrice Salvaire. [n.d.]. PySpice: Simulate electronic circuit using Python and the Ngspice / Xyce simulators. https://github.com/FabriceSalvaire/PySpiceGoogle Scholar
- Mustapha Siamani and Bozena Kaminsi. 1992. Analog Circuit Fault Diagnosis Based on Sensitivity Computation and Functional Testing. IEEE Design and Test of Computers 9, 1 (1992), 30–39. https://doi.org/10.1109/54.124515Google ScholarDigital Library
- STMicroelectronics. 2010. AN3222 Application Note. https://www.st.com/content/ccc/resource/technical/document/application_note/d5/2e/49/2b/29/73/4c/46/CD00274901.pdf/files/CD00274901.pdf/jcr:content/translations/en.CD00274901.pdfGoogle Scholar
- Evan Strasnick, Sean Follmer, and Maneesh Agrawala. 2019. Pinpoint: A PCB Debugging Pipeline Using Interruptible Routing and Instrumentation. In Proceedings of the 2019 CHI Conference on Human Factors in Computing Systems. New York, New York, USA, 1–11.Google ScholarDigital Library
- Coto Technology. 2020. CotoMOS® C226S/C326S. https://www.cotorelay.com/product/c226s_c326s_series_mosfetrelay/Google Scholar
- Michael Terry, Elizabeth D. Mynatt, Kumiyo Nakakoji, and Yasuhiro Yamamoto. 2004. Variation in Element and Action: Supporting Simultaneous Development of Alternative Solutions. In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (Vienna, Austria) (CHI ’04). Association for Computing Machinery, New York, NY, USA, 711–718. https://doi.org/10.1145/985692.985782Google ScholarDigital Library
- K A Tomko and A Tiwari. 2000. Hardware/software co-debugging for reconfigurable computing. In Proceedings IEEE International High-Level Design Validation and Test Workshop (Cat. No.PR00786). 59–63. https://doi.org/10.1109/HLDVT.2000.889560Google ScholarCross Ref
- Te-Yen Wu, Mike Y. Chen, Bryan Wang, Jiun-Yu Lee, Hao-Ping Shen, Yu-Chian Wu, Yu-An Chen, Pin-Sung Ku, Ming-Wei Hsu, and Yu-Chih Lin. 2017. CircuitSense. In Proceedings of the 30th Annual ACM Symposium on User Interface Software and Technology - UIST ’17. ACM Press, New York, New York, USA, 311–319. https://doi.org/10.1145/3126594.3126634Google ScholarDigital Library
- Te-Yen Wu, Hao-Ping Shen, Yu-Chian Wu, Yu-An Chen, Pin-Sung Ku, Ming-Wei Hsu, Jun-You Liu, Yu-Chih Lin, and Mike Y. Chen. 2017. CurrentViz. In Proceedings of the 30th Annual ACM Symposium on User Interface Software and Technology - UIST ’17. ACM Press, New York, New York, USA, 343–349. https://doi.org/10.1145/3126594.3126646Google ScholarDigital Library
Index Terms
- Coupling Simulation and Hardware for Interactive Circuit Debugging
Recommendations
Debugging reversible circuits
A strong driving force for research of post-CMOS technologies is the fact that silicon-based transistors cannot be arbitrarily scaled down. Furthermore, power dissipation is a major barrier in the development of smaller and more efficient computer ...
Learning a circuit by injecting values
We propose a new model for exact learning of acyclic circuits using experiments in which chosen values may be assigned to an arbitrary subset of wires internal to the circuit, but only the value of the circuit's single output wire may be observed. We ...
Binary Adder Circuits of Asymptotically Minimum Depth, Linear Size, and Fan-Out Two
We consider the problem of constructing fast and small binary adder circuits. Among widely used adders, the Kogge-Stone adder is often considered the fastest, because it computes the carry bits for two n-bit numbers (where n is a power of two) with a ...
Comments