Skip to content

VHDL code for an FPGA implementation of a Convolutional Coalesced Tsetlin Machine-based Image Classification Accelerator with On-Device Training

License

Notifications You must be signed in to change notification settings

satunheim/ConvCoTM-FPGA-28x28

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConvCoTM-FPGA-28x28

This repository includes VHDL code for an FPGA implementation of a Convolutional Coalesced Tsetlin Machine (ConvCoTM)-based Image Classification Accelerator with On-Device Training. The design has been implemented and verified on an AMD/Xilinx ZCU104 FPGA development board, The Design tools used are AMD Vivado 2022.2 and Vitis 2022.2. Use of the FPGA's DMA functionality was highly inspired by Youtube videos provided by Vipin Kizheppatt: https://www.youtube.com/@Vipinkmenon/videos.

The FPGA block diagram, some FPGA IP module configuration specifications and a C-program for operating the accelerator are included.

The design is described in the paper "Tsetlin Machine-Based Image Classification FPGA Accelerator With On-Device Training" in IEEE Transactions on Circuits and Systems I: Regular Papers: https://ieeexplore.ieee.org/document/10812055.

In https://doi.org/10.48550/arXiv.2108.07594 the Coalesced Tsetlin Machine (CoTM) is presented.

The MNIST data samples included in this repository, are booleanized by simple thresholding. I.e., pixel values above 75 are set to 1 and to 0 otherwise. The original MNIST dataset is found at https://yann.lecun.com/exdb/mnist/.

The VHDL coding style is based on Appendix A in Digital Design Using VHDL: A Systems Approach, Dally William J. Harting R. Curtis Aamodt Tor M., Cambrige University Press, 2016. In particular, the principle that "All state should be in explicitly declared registers" has been carefully followed.

About

VHDL code for an FPGA implementation of a Convolutional Coalesced Tsetlin Machine-based Image Classification Accelerator with On-Device Training

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published