|
Message
From: cvs at opencores.org<cvs@o...>
Date: Fri Dec 29 15:21:28 CET 2006
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/06/12 29:15:21 Modified: jop/java/tools/src/com/jopdesign/tools Jopa.java Log: JVM ROM to 2K Revision Changes Path 1.8 jop/java/tools/src/com/jopdesign/tools/Jopa.java http://www.opencores.org/cvsweb.shtml/jop/java/tools/src/com/jopdesign/tools/Jopa.java.diff?r1=1.7&r2=1.8 (In the diff below, changes in quantity of whitespace are not shown.) Index: Jopa.java =================================================================== RCS file: /cvsroot/martin/jop/java/tools/src/com/jopdesign/tools/Jopa.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- Jopa.java 29 Dec 2006 12:49:45 -0000 1.7 +++ Jopa.java 29 Dec 2006 14:21:28 -0000 1.8 @@ -18,6 +18,7 @@ 2005-02-06 JOP version in stack RAM at address 64 2005-02-20 Generate memory data for the simulation 2006-12-29 Remove bcfetbl.vhd generation (it's part of rom.vhd/mif) + Changed rom legth to 2K */ @@ -28,9 +29,10 @@ public class Jopa { private String fname; - static final int ADDRBITS = 10; + static final int ADDRBITS = 11; static final int DATABITS = 10; - static final int BRBITS = 10; +// static final int BRBITS = 10; + static final int BRBITS = ADDRBITS; static final int OPDBITS = 5; static final int CONST_ADDR = 32; static final int VER_ADDR = 64; @@ -261,7 +263,7 @@ line = "--\n"; line += "--\trom.mif\n"; line += "--\n"; - line += "depth = 1024;\n"; + line += "depth = "+ROM_LEN+";\n"; line += "width = "+DATABITS+";\n"; line += "\n"; line += "content\n"; @@ -378,7 +380,7 @@ if (l.instr.isJmp) { // List of branch offsets Integer off = new Integer(opVal-pc-1); - if (off.intValue()< -512 || off.intValue()>511) { + if (off.intValue()< -ROM_LEN || off.intValue()>(ROM_LEN-1)) { error(in, "offset "+off+" wrong range"); } Integer addr;
|
 |