Code Monkey home page Code Monkey logo

32-bit-floating-point-adder's Introduction

32-Bit-Floating-Point-Adder

Architecture

alt text

Objective

Design a floating point adder that takes two 32 bit single precision floating point input values that come serially with a time difference of 8 clock cycles between two inputs and stores the resultant value into eight RAMs. Perform the addition operation for 8 sets of input values.

Brief Algorithm Description

  • We need to add inputs A and B to form Out. Out=A+B
  • Here, A and B need to have the same exponents if they are to be added i.e EA=EB.
  • EA and EB are fed to the 8 bit subtractor and the borrow if 0 shows A>B and B has to be right shifted.
  • The exponent difference (EA-EB) provides us with a measure of the shift required in the lower exponent input.
  • Right shift the mantissa of the lower exponent input by the exponent Difference. Thus, both the inputs have the same exponent as a result.
  • The final mantissa is taken to be maximum of the exponents of the input and is further incremented depending on the carry of the adder.
  • Depending on the carry output of the adder, the final mantissa is right shifted by 1 or 0;
  • The final exponent and mantissa are thus calculated.

Directory Description

  • Codes directory contains the required modules of 32-bit floating point adder along with the test bench.
    • Modules:
      • FloatingPointAdder.v - Main Module
      • Adder_24Bit.v
      • BarrelShifter.v
      • Complement2s.v
      • ControlledIncrementor.v
      • FullAdder.v
      • FullSubtractor.v
      • HalfAdder.v
      • HalfSubtractor.v
      • Mux.v
      • Mux24.v
      • Mux_8.v
      • Subtractor_8Bit.v
      • Sub_Result.v
      • FIFO.v
    • Test Bench:
      • BC.v

Simulation on Xilinx ISE with Output for BC.v Test Bench

alt text alt text

This is a term project for course evaluation of VLSI Laboratory (EC39004) at IIT Kharagpur

32-bit-floating-point-adder's People

Contributors

ahirsharan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.