Bitwidth Analysis Tool (BAT)
The Bitwidth Analysis Tool is an extension to Berkely's Ptolemy
project. As such it has several dependencies, the first being
Ptolemy. Ptolemy is available for download at:
http://ptolemy.berkeley.edu/ptolemyII/ptII8.0/index.htm
To run the program, you run Ptolemy with the BAT jarfile in the
classpath. You then need to add the UserLibrary xml file so that you
can see the new classes.
The project also uses the apache commons libraries, and requires those
to run. They are in the jar file, but can be downloaded here
http://commons.apache.org/logging/ and
http://logging.apache.org/log4j/1.2/
The simulink parser depends on severl jar files from ccms. They are
ccsm-coomons, ccsm-simulink and cup-runtime, available here:
http://conqat.in.tum.de/index.php/Simulink_Library. If you do not
wish to use the parser, you will not need these three jar files.
Here is an example commandline to run the bitwidth analysis tool: java
-cp
bat.jar:jars/ptolemy.jar:jars/log4j-1.2.15.jar:jars/commons-logging-1.1.1.jar
ptolemy.vergil.VergilApplication test_circuit.xml
To run the parser, you can run:
java -cp bin:ptolemy.jar:ccsm-commons.jar:ccsm-simulink.jar:cup-runtime.jar:log4j-1.2.15.jar:commons-logging-1.1.1.jar \
edu.byu.ece.bitwidth.ptolemy.parser.simulink.SimulinkParser simulink_test.mdl
Not all simulink blocks are supported.