git clone
https://bitbucket.org/hkinks/iag0450-antlr

  • secondTask - IDEA skeleton project for practice task
    • data - input, output files, configuration files
    • lib - libraries necessary to include in IDEA
      • antlr4
      • picoASM
    • doc - documentation, IDEA plugin
  • picoCPU - Vivado project for CPU
  • picoASM - source code for ASM->machinecode translator

Task

Create a compiler for a made up language, that would compile on picoCPU.
To translate ASM to machine code, use picoASM as library.
To verify solution, simulate picoCPU in Vivado.

 

Required features:

  1. variable assign (1p)
  2. addition (1p)
  3. while (1p)
  4. array (1p)

http://ati.ttu.ee/~kjans/iag0450/

http://ati.ttu.ee/~hkinks/antlr

http://ati.ttu.ee/wiki/index.php/PicoCPU

git clone https://bitbucket.org/hkinks/iag0450-antlr secondTask - IDEA skeleton project for practice task data - input, output files, configuration files lib - libraries necessary to include in IDEA antlr4 picoASM doc - documentation, IDEA plugin picoCPU - Vivado project for CPU picoASM - source code for ASM->machinecode translator Task Create a compiler for a made up language, that would compile on picoCPU. To translate ASM to machine code, use picoASM as library. To verify solution, simulate picoCPU in Vivado. Required features: variable assign ( 1p) addition ( 1p) while ( 1p) array (1p) http://ati.ttu.ee/~kjans/iag0450/ http://ati.ttu.ee/~hkinks/antlr http://ati.ttu.ee/wiki/index.php/PicoCPU

antlrTask2

By Hannes Kinks

antlrTask2

  • 604