• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2007, Vol. 29 ›› Issue (3): 84-86.

• 论文 • 上一篇    下一篇

在NUAL处理器中实现精确中断

万江华 陈书明   

  • 出版日期:2007-03-01 发布日期:2010-05-30

  • Online:2007-03-01 Published:2010-05-30

摘要:

精确中断是实现软中断调试的关键。由于NUAL程序的特点,在NUAL处理器中实现精确中断比较困难。现有的重放缓冲和当前状态缓冲机制虽然能够解决这一问题,但前者实现代 价较大,而后者则需要编译器支持。本文深入分析了中断处理过程,提出了结果写回缓冲机制,详细描述了它的原理和工作过程,并对该机制进行了模拟验证。最后,本文分别从硬件代价、功耗和副作用等方面对三种机制进行了比较。结果表明,结果写回缓冲机制在各方面均优于重放缓冲机制,而在整体上也优于当前状态缓冲机制。

关键词: NUAL 精确中断 重放缓冲

Abstract:

Precise interrupt is the key to debugging in any processor.Due to the characteristics of the NUAL program,it is difficult to implement precise interrupts in a NUAL processor.Researchers have proposed the replay buffer and the current-state buffer mechanism to resolve this problem.However,the former is  not cost-effective and the latter needs the support of a compiler.This paper proposes a result write-back buffer mechanism to implement precise interru pts in the NUAL processors,illustrates its realizable structure,and validates this mechanism by modeling and simulation.At the end of this paper,we comp are three mechanisms from various perspectives.Results show that the result write-back buffer mechanism is better than the replay buffer in all perspect ives,and better than the current-state buffer overally too.

Key words: NUAL;precise interrupt;replay buffer