arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1605.04744cs.LOcs.SE
收藏

基于事件B的HSA存储模型的形式化建模、测试与验证

Formal Modelling, Testing and Verification of HSA Memory Models using Event-B

Ashish Darbari, Iain Singleton, Michael Butler, John Colley

摘要:

HSA基金会已经制定了HSA平台系统架构规范,该规范在解决明确和一致的方法来指定弱一致内存的需求方面有很大的帮助。HSA是用自然语言指定的,这使得它对多种模糊的解释开放,并且可能在硬件和软件中实现它时出现错误。在本文中,我们提出了一个形式化的HSA模型,可用于并发软件应用程序的开发和验证,以及在开发和验证的HSA兼容平台本身。我们使用Event-B语言来建立一个可证明正确的层次结构的模型,从最抽象的HSA接近实现级别的详细细化。我们的内存模型是通用的,因为它们代表了任意数量的主机,程序和指令交织。我们使用精化来推理这样的一般模型。使用罗丹工具,我们能够建模和验证整个层次的模型使用证明,以建立每个细化是正确的。我们定义了一个自动化的验证方法,使我们能够测试模型的基线符合性对一套已发布的HSA石蕊测试。一旦我们完成了模型验证,我们开发了一个覆盖率驱动的方法,从事件B模型和用户指定的覆盖率模型中提取更丰富的测试集。这些测试用于硬件和软件系统的广泛回归测试。我们的方法的细化为基础的正式建模,基线符合性测试的模型和覆盖率驱动的测试提取使用单一的语言的事件-B是一种新的方式来解决所面临的一个关键挑战的设计和验证的多核系统。

英文摘要:

The HSA Foundation has produced the HSA Platform System Architecture Specification that goes a long way towards addressing the need for a clear and consistent method for specifying weakly consistent memory. HSA is specified in a natural language which makes it open to multiple ambiguous interpretations and could render bugs in implementations of it in hardware and software. In this paper we present a formal model of HSA which can be used in the development and verification of both concurrent software applications as well as in the development and verification of the HSA-compliant platform itself. We use the Event-B language to build a provably correct hierarchy of models from the most abstract to a detailed refinement of HSA close to implementation level. Our memory models are general in that they represent an arbitrary number of masters, programs and instruction interleavings. We reason about such general models using refinements. Using Rodin tool we are able to model and verify an entire hierarchy of models using proofs to establish that each refinement is correct. We define an automated validation method that allows us to test baseline compliance of the model against a suite of published HSA litmus tests. Once we complete model validation we develop a coverage driven method to extract a richer set of tests from the Event-B model and a user specified coverage model. These tests are used for extensive regression testing of hardware and software systems. Our method of refinement based formal modelling, baseline compliance testing of the model and coverage driven test extraction using the single language of Event-B is a new way to address a key challenge facing the design and verification of multi-core systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑