Open-source ARM simulators

Martin Guy, 17 Jan 2006

What's new?

2 May 2008
There is a more recent list of ARM simulators here.
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 below), 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:

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 ArcEm which also simulates the hardware of the Acorn Archimedes computer.

Simit-arm

Produced by the Gigascale Research Centre, it compiles to binaries called It does indeed run ARM linux executables in an x86 linux environment.

It does:


It doesn't do: 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.

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

skyeye

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.

SID

Available from sources.redhat.com/sid

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
PCB as the layout tool.

gEDA

Convergence

http://bach.ece.jhu.edu/~tim/programs/convergence/convergence.html
Martin Guy, <martinwguy@yahoo.it>, 26 May 2004 - 6 Jul 2005.