Giter VIP home page Giter VIP logo

cla's Introduction

Carry Lookahead Adder

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

Generic Synth

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

Equation: 1.52x2 + 8.27x - 31.8
R2: 1

XLEN AND ANDNOT NAND NOR NOT ORNOT XNOR XOR Total Cells
1 0 1 1 0 0 1 2 0 5
2 3 0 0 4 1 2 3 1 14
4 1 1 3 12 2 13 8 3 43
8 7 8 1 39 5 50 16 7 138
16 10 13 12 153 11 207 32 15 481
32 32 39 8 602 30 942 64 30 1784
64 62 77 12 2294 64 3945 127 63 6725
128 128 151 19 8853 128 15944 256 126 25884

ECP5

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

Equation1: 0.91x2 + 20x - 298
R2: 0.975

XLEN PFUMX LUT4 L6MUX21 Total Cells
1 0 2 0 2
2 2 5 0 7
4 4 10 0 14
8 12 48 4 64
16 35 133 16 184
32 222 725 84 1031
64 917 3234 286 4437
128 3440 13708 1288 18436

Footnotes

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

cla'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.