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
arr[5] = {1,2,3,4,5}; i = 0; sum = 0; while (i<5) { sum = sum + arr[i]; i++; } exit;
http://ati.ttu.ee/~hkinks/antlr/array-adder.asm
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