Version 56 (modified by dsl, 3 weeks ago) (diff)



MCUSim is a digital simulator of the 8-bit AVR microcontrollers. It is written from scratch to assist in circuit simulation, firmware debugging, testing, and signal tracing.

There is a configuration file "mcusim.conf" which is installed together with the "mcusim" binary and "libmsim.a" library and can be used to tweak a behavior of the simulator. It is carefully documented and the best way to prepare your own simulation is to copy mcusim.conf to a new directory, adjust the options and run mcusim. Firmware and Lua files can be placed in the same working directory to be referenced by the relative paths, for instance.

Script files written in Lua can be used to represent models of the real devices during a simulation process. They may affect state of an MCU in several ways, e.g. access internal registers, generate signals on its pins or terminate the whole simulation, and play roles of the significant parts of a circuit connected to the microcontroller (external EEPROM, humidity sensor, MOSFET switch, etc).

Registers of a simulated MCU can be saved into a VCD (value change dump) file and read using GTKWave viewer.

Release version

Tarball with sources: N/A
ZIP archive with sources: N/A

Current version

Tarball with sources: mcusim-0.1.0121.tar.gz (sha1)
ZIP archive with sources: (sha1)

MCUSim tips and guides

Attachments (4)

Download all attachments as: .zip