Chinaunix首页 | 论坛 | 博客
  • 博客访问: 537081
  • 博文数量: 252
  • 博客积分: 6057
  • 博客等级: 准将
  • 技术积分: 1635
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-21 10:17
文章分类

全部博文(252)

文章存档

2013年(1)

2012年(1)

2011年(32)

2010年(212)

2009年(6)

分类:

2011-05-20 19:23:11

Open-source ARM simulators

Martin Guy, 17 Jan 2006

What's new?

2 May 2008
There is a more recent list of ARM simulators .
17 Jan 2006
Added QEMU and SimpleScalar
4 Nov 2005
Added "ARMem" ARMulator derivative and ARMphetamine processor simulators

Summary

For internal development and for customers' use it would be useful to be able to simulate Sim-One in software.

The project that is closest to simulating the Sim-One is "skyeye" (see ), which succeeds in simulating the EP9312 development board, the big brother of our own EP9307, to run uclinux, armlinux and ucosii.

This document is a survey of all the simulators that I have looked at.

Types of simulator

The simulators fall into three categories:

  • Processor simulators: Those capable of running an ARM executable (an application) within an operating system running on a non-ARM processor by simulating a single-process memory space and the logical operation of the processor upon it. These permit the testing of single ARM programs.
    Examples are: , .
  • System simulators: Those capable of running an ARM operating system on a non-ARM processor within a different operating system by simulating the processor, physical RAM banks and the logical operation of peripheral devices. These permit the testing of entire operating systems on simulated development boards or computers.
    Examples are: skyeye, SID.
  • Physical simulators: Those that take a list of components and the connections between them and simulate their operation at an electrical level. The simulation may be digital, analog or a mixture of the two. These permit the testing of hardware designs from their schematics.
    Examples are: ngspice.

1. Processor simulators

GNU Arm Simulator

Also called "GNUPRO Arm Simulator" or "ARMulator".

gdb contains an ARM simulator, which simulates ARM7TDMI architecture and probably others.

You run binaries produced by gcc by using gdb and saying:

gdb> target sim
a derivative is which also simulates the hardware of the Acorn Archimedes computer.

Simit-arm

Produced by the , it compiles to binaries called
  • ema ARM instruction set simulator
  • ema_count ARM instruction set simulator, counting use of each type of instruction
  • sima ARM cycle-accurate simulator
It does indeed run ARM linux executables in an x86 linux environment.

It does:

  • read ELF32 little-endian arm-linux binaries,
  • emulate the SA-1100 processor,
  • emulate ARM floating-point instructions (by Netwinder FPE library)
  • cycle-accurate timing

It doesn't do:
  • Thumb instructions
There is (or was) a multi-processor version of it called "arm-sim" from the same organisation, but it is no longer actively developed and you need a gigascale login to get it, which is only available to the organisations that fund Gigascale Research.

ARMphetamine

"is an on-going project by Julian Brown to develop a fast ARM emulator, including dynamic recompilation of ARM instructions to the host processor, currently x86. The source code is available under the GNU GPL."

SimpleScalar

An open-source commercial product with free license for non-commercial use. Emulation is said to produce highly detailed timing reports, widely used ni academic community for research projects.
  • (for non-commercial use only)

QEMU

A free open-source simulator that can run as a processor simulator or as a system simulator. It runs under Linux or Windows and and simulates several types of processor including x86, x86_64, ARM, SPARC and PowerPC. Under it you can run (among others) FreeDOS, GNU/Linux, OS/2, NetBSD and Windows 3.11, 95, 98SE, ME, 2000 and XP.

2. System simulators

Produced in China, it seems to be based on the GNU ARM simulator, and includes support for the Cirrus Logic EP9312 chip which is the same as Sim-One's main chip, the EP9307, plus an IDE interface.

It runs uclinux, armlinux, uC/OS-II ond FreeBSD, and they provide drivers for simulated LCD panel, n2k network device and more for these operating systems.

I have succeeded in compiling and running skyeye-0.8.7 (5 Jun 2003), but I have not tried running an OS on it.

  • home page in China
  • project download site in China

SID

Available from

SID is a complete pin-level system simulator containing a library of system components including the ARM7T architecture (Thumb instructions only, no 32-bit ARM, and no Floating Point).

I found this more understandable than skyeye (which remains a mystery to me) but it would need a lot more work to emulate Sim-One's ARM920 and our peripherals.

3. Circuit simulators

ngspice

Based on the venerable Spice circuit simulator from Berkeley, now entirely open-source. Available from Part of the gEDA project.

Does mixed digital and analog-mode simulation.

Higher-level suites

Several projects aim at uniting the circuit design and simulation programs into a single design environment. All are based on ngspice as the circuit simulator and
as the layout tool.

gEDA

Convergence


Martin Guy, , 26 May 2004 - 6 Jul 2005.




阅读(956) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~