Giter VIP home page Giter VIP logo

rca's Introduction

Ripple Carry Adder

This is a generic, parameterized (sort of), implementation of a Ripple Carry Adder (RCA) in Verilog. It's been verified to work up to 64 bits, but nothing beyond that.

Generic Synth

Command used: yosys -p 'synth -top rca' rca.v

Equation: 0x2 + 5x + 0
R2: 1

XLEN AND ANDNOT NAND NOR NOT ORNOT XNOR XOR Total Cells
1 0 1 1 0 0 1 2 0 5
2 0 2 2 0 0 2 4 0 10
4 0 4 4 0 0 4 8 0 20
8 0 8 8 0 0 8 16 0 40
16 0 16 16 0 0 16 32 0 80
32 0 32 32 0 0 32 64 0 160
64 0 64 64 0 0 64 128 0 320
128 0 128 128 0 0 128 256 0 640

ECP5

Command used: yosys -p 'synth_ecp5 -top rca' rca.v

Equation1: (2.68E-03)x2 + 6.72x - 0.04
R2: 0.999

XLEN PFUMX LUT4 L6MUX21 Total Cells
1 0 2 0 2
2 2 5 0 7
4 4 10 0 14
8 13 32 6 51
16 23 68 15 106
32 45 135 30 210
64 91 286 63 440
128 180 591 126 897

Footnotes

  1. Not entirely accurate, huge margin for error โ†ฉ

rca's People

Contributors

hammersamatom avatar

Watchers

 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.