Class Assembler1

java.lang.Object
  extended by Assembler
      extended by Assembler1

public class Assembler1
extends Assembler

PicoBlaze-1 assembler.


Field Summary
static int ADDRESS_CHARS
           
static int CODE_CHARS
           
static int PROGRAM_SIZE
           
 
Fields inherited from class Assembler
address_width, data_width, environment, listing, program
 
Constructor Summary
Assembler1()
           
Assembler1(java.util.Vector<AsmExpression> v)
          Create new assembler object and process expressions.
 
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 Assembler
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROGRAM_SIZE

public static int PROGRAM_SIZE

ADDRESS_CHARS

public static int ADDRESS_CHARS

CODE_CHARS

public static int CODE_CHARS
Constructor Detail

Assembler1

public Assembler1()

Assembler1

public Assembler1(java.util.Vector<AsmExpression> v)
Create new assembler object and process expressions.

Parameters:
v - vector of assembly expressions
Method Detail

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 name
a - 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