Skip to content

YL29399/ECE-564-Convolutional-Neural-Network-Accelerator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ECE-564-Convolutional-Neural-Network-Accelerator

A Verilog implementation of a CNN accelerator.

Abstract: This piece of hardware is a single stage binary convolution accelerator that can accept 3 different sized input matrixes. The input, output and weights are all stored in separate SRAMs and the outputs are left zero padded. Convolution is achieved by calculating the XNOR of the weight and input and bit counting the result to determine the sign of the desired output bit. Doing this in parallel allows the module to pipeline inputs and operate with a new memory input every clock cycle. A FSM controls the inputs and outputs and allows the module to process multiple input matrixes until it encounters a matrix terminated with 0x00FF. Each matrix is preempted with an xdim and ydim indicating how many columns and rows the matrix has respectively. The weights are stored in the second address of the weight SRAM and are a 3x3 matrix. Using this approach allowed memory bandwidth to be well utilized.

About

A Verilog implementation of a CNN accelerator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Verilog 39.6%
  • Tcl 33.3%
  • SystemVerilog 27.1%