A collection of useful tools / scripts for Maxeler Projects
- config.sh - configures the MAXPROJUTILS and PYTHONPATH environment variables
- maxenv.sh - invokes maxenv.py to try and configure useful environment variables
These are python modules which should help in compiling and running the simulation runtime easier
- RuntimeBuilder.py - This helps with compiling and linking of source and .max files
- Sim.py - This helps with maxcompilersim
- Executor.py - A wrapper script for executing binaries (includes: wait, kill, log etc.)
MAXFILES = ['MyProject.max']
sources = ['myproject.c']
target = 'myproject'
includes = []
b = MaxRuntimeBuilder(maxfiles=MAXFILES)
s = MaxCompilerSim(dfeModel="ISCA")
e = Executor(logPrefix="[%s] " % (target))
def build():
compile()
link()
def compile():
b.slicCompile()
b.compile(sources)
def link():
b.link(sources, target)
def clean():
b.clean()
def run_sim():
build()
s.start()
e.execCommand([ "./" + target ])
e.wait()
# s.stop()
def maxdebug():
s.maxdebug(MAXFILES)