Application of Bhave Toolset for System Control and Electronic System Design K.L. Man * , T. Krilaviˇ cius , C. Chen and H.L. Leung § Abstract— Behavioural Hybrid Process Calculus (BHPC) is a formalism for modelling and analysis of hybrid systems combining process algebras and the behavioural approach for modelling of instantaneous changes and continuous evolution. BHPC is suppor- ted by Bhave toolset, containing a tool for a novel way of visualisation of hybrid systems simulations msp-svg and a new version of hybrid simulator. We present the latest developments of Bhave toolset and apply it for case studies of system control and mixed-signal systems design. Keywords: formal methods, electronics, hybrid sys- tems, simulation 1 Introduction Process algebras/calculi [2,11,19] are formal languages in Computer Science that have formal syntax and semantics for specifying and reasoning about different systems. In simple words, process algebras are theoretical frameworks for formal specification and analysis of the behaviour of various systems. Serious efforts have been made in the past to deal with various systems (e.g. discrete event sys- tems [20,25], real-time systems [10,12,26] and hybrid sys- tems [1, 3, 5, 6, 17, 27]) in a process algebraic way. Over the years, process algebras have been successfully used in a wide range of problems and in practical applications in both academia and industry for analysis of many different systems. Hybrid systems are systems that exhibit both discrete and continuous behaviour. Such systems have proved fruitful in a great diversity of engineering application areas including air-traffic control, automated manufac- turing, chemical process control and system control. On the other hand, mathematically, the behaviour of electro- nic system design (e.g. digital, analog and mixed-signal design) can be described by discrete variables, conti- nuous variables and a set of differential equations, whe- reas switching-modes can be used for modelling mixed * Xi’an Jiaotong-Liverpool, University (XJTLU), China, e-mail: ka.man@xjtlu.edu.cn. Vytautas Magnus University (VDU), Kaunas, Lithuania, e- mail: t.krilavicius@if.vdu.lt. Global Institute of Software Technology, Suzhou, China, e-mail: catherinechenchen@gmail.com. § Solari, Hong Kong, e-mail: sales@solari-hk.com. models (i.e. mixed-signal design). Due to all these, di- gital, analog and mixed-signal design can be mathemati- cally described as hybrid systems (with various level of abstraction) by nature. Computer simulation is a powerful tool for analysing and optimising real-world systems with a wide range of suc- cessful applications. It provides an appealing approach for the analysis of dynamic behaviour of processes and helps decision makers identify different possible options by analysing enormous amounts of data. Behavioural Hybrid Process Calculus (BHPC) [17] is a hybrid process algebra which was specifically designed for the description of the dynamic behaviour of hybrid systems along with a powerful simulator called Bhave toolset. Currently, simulation results obtained by means of the BHPC simulator can also be visualised and analysed via Message Sequence Plots (MSP) [17]. In this paper, we first present the latest development of Bhave toolset. Through case studies, we show the use of Bhave toolset for addressing several aspects of system control and mixed-signal design. Related work of the research activities presented in this paper can be found at [17, 18]. 2 Behavioural Hybrid Process Algebra One of the useful techniques for simulation of hybrid systems that includes continuous evolution and discrete changes, is Behavioural Hybrid Process Calculus (BHPC) [4, 17], an extension of classical process algebra that is suitable for the modelling and analysis of continuous and hybrid dynamical systems and can be seen as a generalisa- tion of the behavioural approach [22] in a hybrid setting. The main strengths of the BHPC are the following. Sound mathematical foundations. BHPC has sound mathematical foundations. It means that rigorous reasoning can be applied to investigate diverse pro- perties of models. Behavioural approach. In BHPC continuous evolu- tion is defined in the behavioural setting [22] making it more general in contrast to other hybrid process algebras (Hybrid χ [27], HyPA [6], ACP srt hs [3]), i.e. it Proceedings of the International MultiConference of Engineers and Computer Scientists 2010 Vol II, IMECS 2010, March 17 - 19, 2010, Hong Kong ISBN: 978-988-18210-4-1 ISSN: 2078-0958 (Print); ISSN: 2078-0966 (Online) IMECS 2010