Giter Site home page Giter Site logo

joelcancela / s5_pep_armv7 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 56 KB

ARMv7 RAM & ROM generator for Logisim (Polytech'Nice SI3G2 2016-2017)

Home Page: https://github.com/warhawk3407/ArmM0ROM

License: MIT License

Java 100.00%
logisim ini configuration-files ram rom java maven generator armv7 pep si3 s5 school-project

s5_pep_armv7's Introduction

ARMv7 RAM & ROM generator for Logisim

This project allows to generate configuration files for RAM and ROM components.

It was made to support some ARMv7 16bits instructions more details here.

Prerequisites

  • Maven
  • Java

Creating configuration files (.ini)

You can create a RAM file or a ROM file or even both at once, you only need to write a textual file for each type maching the following requirements :

ROM file

  • The file must have only one instruction per line
  • The immediate must be prefixed with #
  • The operands are separated with , and registers are prefixed with R

An example can be seen here.

RAM file

  • The RAM variables must be written in decimal base, separated with a space.

An example can be seen here.

Launch

  • Use the -rom argument to specify the program file to interpret, the output file will be called rom.ini.

  • Use the -ram argument to specify the variables file to interpret, the output file will be called ram.ini.

How to launch

mvn -q exec:java -Dexec.mainClass="Main" -Dexec.args="{args}"

Example

mvn -q exec:java -Dexec.mainClass="Main" -Dexec.args="-ram examples/vars.ini -rom examples/prog.s"

Outputs examples

  • RAM example
v2.0 raw
1 3 2 4
  • ROM example
v2.0 raw
9800 9900 1A08 D005
9A02 9801 00C9 4308

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.