OpenCores
URL https://opencores.org/ocsvn/hpc-16/hpc-16/trunk

Subversion Repositories hpc-16

[/] [hpc-16/] [trunk/] [impl0/] [asm/] [readme.txt] - Blame information for rev 18

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 umairsiddi
in this directory, i will put assembly programs.
2 18 umairsiddi
put corresponding "_init_ram.txt" in /sim directory for VHDL simulation
3
 
4
=============================================================
5
HPC-16 Assembler
6
-------------------
7
HPC-16 Assembler written in python, so to run it you will need to install Python 2.7.
8
also it will requires following python module:
9
 
10
antlr4-python2-runtime
11
 
12
(for both linux & windows)
13
pip install antlr4-python2-runtime
14
 
15
 
16
usage:
17
 
18
./HPC16_asm.py 
19
 
20
generates
21
 
22
1) *_init_ram.txt       --- For VHDL simulation
23
2) *_asm_out.txt        --- For Debugging
24
 
25
 
26
 
27
TODO:
28
assembler is very basic. need to add more features
29
 
30
 
31
The antlr4 grammar file (HPC16.g4) is also committed.
32
 
33
basic setup is following
34
 
35
export CLASSPATH=".:/antlr_jar_path/antlr-4.5.1-complete.jar:$CLASSPATH"
36
 
37
java -jar /antlr_jar_path/antlr-4.5.1-complete.jar -Dlanguage=Python2 HPC16.g4
38
 
39
See further info at http://www.antlr.org
40
 
41
=====================================================================================
42
 
43
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.