5LIM0 - Lab3 assignment
lenet.c
- LeNet C codebase_tta.adf
- TTA reference designweights.npy
- Network weights in numpy formattest_data
- Input data to the network (png
images)Makefile
- Build systemmake header
- Buildsweights.h
header usinggenerate_header.py
scriptmake host
- Builds binary for your host. Useful for testing.make tce
- Compiles C-code to TTA program (tpef
format)make tcesim
- Compiles and run the program on TCE simulator (ttasim
) and returns runtime.make energy
- Reports energy numbers for the design (energy per FU and instructions)make vhdl
- Generates program and data memory image for the TTA processor. (Note: You should select implementation for the processor before using this command)
scripts\
generate_header.py
- Script to convert numpy weights and input image to header fileweights.h
.- Useful, if you like to contorl the memory layout of input and weights.
tce_energy_model.py
- Script for analytical energy modelsetup.sh
- Shell script to update the TCE toolsscripts/compare_results.sh
- Regression test that compares the simulator result to expected results
examples
- Some TTA design examples for your referenceexamples/fpga/pynq_notebook.ipynb
- Notebook for programming and testing your design on Pynq
git clone https://github.com/kanishkan/lenet.git
cd lenet
# Compile and run the code on TCE simulator
make tcesim
$ Runtime: xxx cycles