Project description

Open PicoBlaze Assembler

Opbasm is a free cross-platform assembler for the PicoBlaze-3 (PB3) and
PicoBlaze-6 (PB6) microcontrollers provided by Xilinx. It will
run readily on any platform with a Python interpreter. Opbasm
provides a better performing solution to assembling PicoBlaze code without
resorting to DOS or Windows emulation to run the native KCPSM assemblers.

Special features of Opbasm:

Optional m4 preprocessor macros are available when the m4
program is installed. An extensive set of built-in macros provide more
advanced features than the base language. For example, converting
temperature scales becomes as easy as this:

Includes an optimizer that performs static code analysis to identify dead
code and optionally remove it. This permits the development of code
libraries that can be included without wasting memory on unused functions.

Files generated on non-Windows platforms will not have DOS line endings and
PicoBlaze-3 files are not restricted to 8.3 file names. Opbasm also runs
significantly faster than the native implementation:

Requirements

Opbasm requires either Python 2.7 or Python 3.x and no additional libraries.
The installation script depends on setuptools which will be installed if it
isn’t currently present in your Python distribution. Optional macro support is
provided when m4 is installed. You can get optional colorized output from the
scripts by installing the Python colorama package. The source is written in
Python 2.7 syntax but will convert cleanly to Python 3 when the installer
passes it through 2to3.

Download

You can access the Opbasm Git repository from Github. Packaged source code
is also available for download. You can install direct from PyPI with the “pip”
command if you have it available.