Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

gennartan/Arithmetic_circuit_Posit_FPGA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Arithmetic_circuit_Posit_FPGA

Implementation of Arithmetic circuit in FPGA using Posit representation. This repository is linked to a software implementation at https://github.com/gennartan/spn_sw

State of the Art

Posit representation

The posit representation is an alternative method to floating point representation to write numbers in binary. The main difference is that the exponent is encoded using a variable size, which increase the range of numbers (Maximum exponent value is higher), and increase the precision when numbers are closer to 1 (More space for mantissa bits). More details can be found here.

In this project, there is a working implementation of posit addition and multiplication in hardware (system verilog). This implementation works properly except for the rounding after a multiplication.

Arithmetic circuit (or Sum product network)

A sum product network is a new deep network model for graphical probabilistic inference. A lot of informations about SPNs can be found at https://github.com/arranger1044/awesome-spn.

The SPNs I used in this work comes from https://github.com/UCLA-StarAI/Circuit-Model-Zoo.

Implementation

Directory structure

.
+-- Arithmetic_circuit.srcs
|	+-- sources_1
|		+-- bd (don't care)
|		+-- new (Contains the useful sources in verilog and system verilog)
|			+-- sw (Python code to generate SPNs in FPGA from PSDD file)
|	+-- constrs_1 (Design constraints)
|	+-- sim_*
|		+-- Simulation sources for every part of the implementation
+-- Arithmetic_circuit.*
|	+-- (We do not care about content of every other directory)

Usage

  1. Edit the python file Arithmetic_circuit.srcs/sources_1/new/sw/main.py with the parameter you want for your SPN.

  2. Open Vivado and generate bitstream.

  3. Launch SDK, adapt the software to your usage and run it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published