Model-Based Verification for SIMULINK Design
Total Page:16
File Type:pdf, Size:1020Kb
Minnesota State University, Mankato Cornerstone: A Collection of Scholarly and Creative Works for Minnesota State University, Mankato All Graduate Theses, Dissertations, and Other Graduate Theses, Dissertations, and Other Capstone Projects Capstone Projects 2015 Model-Based Verification for SIMULINK Design Victor Oke Minnesota State University - Mankato Follow this and additional works at: https://cornerstone.lib.mnsu.edu/etds Part of the Electrical and Computer Engineering Commons Recommended Citation Oke, V. (2015). Model-Based Verification for SIMULINK Design [Master’s thesis, Minnesota State University, Mankato]. Cornerstone: A Collection of Scholarly and Creative Works for Minnesota State University, Mankato. https://cornerstone.lib.mnsu.edu/etds/517/ This Thesis is brought to you for free and open access by the Graduate Theses, Dissertations, and Other Capstone Projects at Cornerstone: A Collection of Scholarly and Creative Works for Minnesota State University, Mankato. It has been accepted for inclusion in All Graduate Theses, Dissertations, and Other Capstone Projects by an authorized administrator of Cornerstone: A Collection of Scholarly and Creative Works for Minnesota State University, Mankato. Model-Based Verification for SIMULINK Design By Victor Oke Master’s Thesis submitted in partial fulfillment of the requirements for the degree of Masters of Science in Engineering. Department of Electrical and Computer Engineering and Technology Minnesota State University, Mankato Mankato, Minnesota December 2015 Advisor: Dr. Nannan He Model-Based Verification for SIMULINK Design Victor Oke This thesis has been examined and approved by the following members of the student’s committee. _____________________________________ Dr. Nannan He, Advisor ______________________________________ Dr. Vincent Winstead ______________________________________ Dr. Muhammad Khaliq Table of Contents Chapter 1 ...........................................................................................................................................1 1.1 Introduction ............................................................................................................................1 1.2 Scope .......................................................................................................................................2 1.2 Method .....................................................................................................................................2 1.3 Related Work ............................................................................................................................3 1.4 Structure ...................................................................................................................................4 Chapter 2 ...........................................................................................................................................5 2.1 Model-Based Design .................................................................................................................5 2.2 Model-Based Testing (MBT) .....................................................................................................6 2.2.1 Importance of MBT.............................................................................................................6 2.3 Quality Control Techniques in MBT ...........................................................................................7 2.4 Testing .....................................................................................................................................8 2.5 Definition of Terms Related to Testing .......................................................................................9 2.6 Test Techniques ......................................................................................................................11 2.7 Testing Levels and Testing Process ..........................................................................................13 2.8 Formal Verification/Model Checking........................................................................................15 2.9 Ladder Logic...........................................................................................................................18 2.10 Simulink ...............................................................................................................................21 Chapter 3 .........................................................................................................................................23 3.1 Methodology...........................................................................................................................23 3.1.1 Overview..........................................................................................................................23 3.1.2 Case Study........................................................................................................................24 3.1.3 Implementation Details......................................................................................................25 3.1.4 Gene-auto and CBMC .......................................................................................................27 3.1.5 Miter Model and Mutation .................................................................................................30 3.1.6 Observation ......................................................................................................................35 3.1.7 Future Work .....................................................................................................................36 Chapter 4 .........................................................................................................................................38 Conclusions..................................................................................................................................38 Appendix A......................................................................................................................................39 A.1 ..............................................................................................................................................39 iii A.2 ..............................................................................................................................................42 A.3 ..............................................................................................................................................43 REFERENCES.................................................................................................................................56 iv List of Figures Figure 1: SUT Black-Box..................................................................................................................12 Figure 2: Model-Based Testing Level ................................................................................................14 Figure 3: Model-Based Testing Process..............................................................................................15 Figure 4: Simple ladder logic Diagram ...............................................................................................18 Figure 5: Normally close and Normally Open Contact ........................................................................19 Figure 6: OR Symbol Equivalency.....................................................................................................19 Figure 7: AND Symbol Equivalency ..................................................................................................20 Figure 8: NAND Symbol Equivalency ...............................................................................................20 Figure 9: Simple Simulink model.......................................................................................................22 Figure 10: Block Diagram for Modeling Procedure .............................................................................23 Figure 11: Water Tank Control System ..............................................................................................24 Figure 12: Water Tank Control System Simulink Model .....................................................................26 Figure 13: Simulink Model - PLC ladder Logic Equivalency ...............................................................27 Figure 14: Gene-auto Simulation Output ............................................................................................28 Figure 15: CBMC Simulation Output .................................................................................................29 Figure 16: Miter Model Block Diagram .............................................................................................33 Figure 17: Miter Model Verification Result ........................................................................................34 Figure 18: Diagram showing the location of M1_7_3 ..........................................................................36 v Acknowledgements My sincere appreciation goes to my advisor, Dr. Nannan He, for her patience, understanding, encouragements and the confidence she has in me to make this thesis a reality. She really assists me in the research and always willing to listen to my concerns. I also want to express my gratitude to Dr. Vincent Winstead for his incessant support. His advice for me on this thesis and throughout the length of my masters program is indeed valuable. I can’t do without thanking