-
公开(公告)号:US08417508B2
公开(公告)日:2013-04-09
申请号:US12307636
申请日:2007-07-06
Applicant: James Kenney , Simon Davidmann
Inventor: James Kenney , Simon Davidmann
CPC classification number: G06F17/5022
Abstract: In a method of simulating a multi-processor system by running code that simulates the system on a host processor, a SPECULATE and a COMMIT instruction is used to mark an area of memory, shared across several simulated processors, and the code is translated at run time to a form required by the host processor. All instructions are mapped to a native instruction set of the host using two different code dictionaries: all instructions outside a SPECULATE/COMMIT region are mapped to the first of the two code dictionaries. If a SPECULATE instruction is encountered during runtime by a simulator running the code, the instructions are mapped to a native instruction set of the host using the second code dictionary.
Abstract translation: 在通过运行在主处理器上模拟系统的代码来模拟多处理器系统的方法中,使用SPECULATE和COMMIT指令来标记在多个模拟处理器之间共享的存储器区域,并且代码在运行时被翻译 时间到主机处理器所需的形式。 所有指令都使用两个不同的代码字典映射到主机的本机指令集:SPECULATE / COMMIT区域之外的所有指令都映射到两个代码字典中的第一个。 如果在运行期间运行代码的模拟器遇到SPECULATE指令,则使用第二个代码字典将指令映射到主机的本机指令集。
-
公开(公告)号:US07035781B1
公开(公告)日:2006-04-25
申请号:US09752642
申请日:2000-12-29
Applicant: Peter Flake , Simon Davidmann , Matthew Hall , James Kenney
Inventor: Peter Flake , Simon Davidmann , Matthew Hall , James Kenney
IPC: G06F17/50
CPC classification number: G06F17/5022
Abstract: An HDL simulator having an automated interface to compiled or interpreted application code written in a general purpose language. The interface enables the HDL code to have a direct data access to and from the application code. The simulator automatically maps and converts HDL data types to and from programming language data types, such as the arguments of routine calls or direct data accesses. Further, the simulator provides a programming language calling mechanism and automatically does data type mapping of arguments, which enables the HDL to call application code routines compiled with a standard compiler, and enables such routines to call functions in the HDL. The simulator automatically generates wrappers for the interface which automatically map data types for direct data access when the application code is compiled, and can output messages upon the occurrence of calls or returns. The automatically generated wrappers also provide automatic threading, which enables compiled application code to call tasks in the HDL.
Abstract translation: HDL模拟器具有用通用语言编写的编译或解释的应用代码的自动化界面。 该接口使HDL代码能够直接访问和从应用程序代码访问。 模拟器自动将HDL数据类型映射并转换为编程语言数据类型,例如常规调用或直接数据访问的参数。 此外,模拟器提供了一种编程语言调用机制,并自动执行参数的数据类型映射,使HDL能够调用使用标准编译器编译的应用程序代码例程,并使这些例程能够调用HDL中的函数。 模拟器自动生成接口的包装器,在应用程序代码被编译时自动映射用于直接数据访问的数据类型,并且可以在发生呼叫或返回时输出消息。 自动生成的包装器还提供自动线程,这使得编译的应用程序代码能够调用HDL中的任务。
-