Skip to content
tinyaitmessPublic
forked from hcasse/csim

About

Simulator of ARM board.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

109 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GLISS Components

Small program demonstrating the use of CSim with ARMv5T simulator.

Building

The setup will download, configure and build required dependencies:

$ make config

You can configure CSIM by editing config.mk an then perform the setup:

$ make setup

It will download all require modules. Then you can compile CSIM:

$ make

To generate the documentation documentation:

$ doxygen

The documentation is in html/index.html.

Using it

To launch the code, a program must be provided to the command, for instance samples/sample1.elf. Then type:

$ ./csim-run samples/sample1.elf

The current simulation simulates the program with two peripherals: a LED and a push button. They are displayed this way:

[ ] (A) HHHHHHHH <inst>

Where:

  • [ ] switched-off LED ([*] when it is switched on).
  • (A) is the unpressed push button A. To press it, click on key A. To release it, re-click on key A.
  • HHHHHHHH is the adress of the current instruction.
  • is the disassembled current instruction.

Using the GUI

csim comes with a GUI developed in Python and using a browser to be displayed. To run it, move into python directory and type:

$ cd python
$ make run NUM=number

With number one of the number of samples in directory samples.

Programs

  • sample1.elf (source sample1.s) -- Switch on the LED when the button is pushed.

  • sample2.elf (source sample2.s) -- Invert the state of the LEAD each time there is a click (a button push followed by a release).

Building (long way)

To compile it, you need a compiled version of ARMv5T compiled in a directory in the same parent as csim. The path of ARMV5T can also be fixed in variable ARMV5T in the Makefile.

Then type the command:

	$ make

To get ARMV5T, you have to first get GLISS2 (OCAML is required):

	$ git clone https://git.renater.fr/anonscm/git/gliss2/gliss2.git
	$ cd gliss2
	$ make

Then you can retrieve and compiole armv5r :

	$ git clone https://git.renater.fr/anonscm/git/gliss2/armv5t.git
	$ cd armv5t
	$ make

These directories have to be unpacked in the same parent directory.

Credits

SVG files are downloaded from FreeSVG.

About

Simulator of ARM board.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages