Class Assembler1
java.lang.Object
Assembler
Assembler1
public class Assembler1
- extends Assembler
PicoBlaze-1 assembler.
Method Summary |
int |
code(java.lang.String n,
java.util.Vector a)
Assemble instruction. |
java.lang.String |
toBlockRAM(java.lang.String name)
Generate Verilog ROM file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PROGRAM_SIZE
public static int PROGRAM_SIZE
ADDRESS_CHARS
public static int ADDRESS_CHARS
CODE_CHARS
public static int CODE_CHARS
Assembler1
public Assembler1()
Assembler1
public Assembler1(java.util.Vector<AsmExpression> v)
- Create new assembler object and process expressions.
- Parameters:
v
- vector of assembly expressions
code
public int code(java.lang.String n,
java.util.Vector a)
- Description copied from class:
Assembler
- Assemble instruction.
- Specified by:
code
in class Assembler
- Parameters:
n
- instruction namea
- literal arguments
toBlockRAM
public java.lang.String toBlockRAM(java.lang.String name)
- Description copied from class:
Assembler
- Generate Verilog ROM file.
- Specified by:
toBlockRAM
in class Assembler
- Parameters:
name
- Verilog module name
- Returns:
- Verilog module BlockRAM declaration