Code Monkey home page Code Monkey logo

arithmetic-logic-unit's Introduction

ALU Project

On this project iโ€™m using Logisim, to make the circuits and all visual parts of ALU.

The developed ALU is an integrated circuit that should receive two 4-bit numbers (a and b), one for the sign and three for the magnitude, and perform the requested operations, displaying the result on a 7-segment display.

For this, the integrated circuit must have the following functions:

Receive the 4-bit numbers a and b, with one bit for the sign and three for the magnitude; Perform addition, subtraction, 2's complement, equality, greater than, less than, AND and XOR operations according to the user's selections S(); Store the result in an output register; Convert the result to a format compatible with the 7-segment display, displaying the result in decimal or hexadecimal form. Each selection S() should correspond to a specific operation, as follows:

S2 S1 S0
0 0 0 F= a+b
0 0 1 F= a-b
0 1 0 2's compl. of b (F=~b+1)
0 1 1 F=(a=b)?
1 0 0 F=(a>b)?
1 0 1 F=(a<b)?
1 1 0 bitwise AND (F=(a AND b))
1 1 1 bitwise XOR (F=(a XOR b))

Thus, by selecting one of the options, the ALU must perform the corresponding operation and display the result on the 7-segment display.

arithmetic-logic-unit's People

Contributors

jorgeotavio 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.