Git Product home page Git Product logo

ula's Introduction

ALU with Seven-Segment Display Decoder

This repository contains the project of a Logic/Arithmetic Unit (ALU) coupled with a binary decoder for a seven-segment display. The ALU is capable of performing various logical and arithmetic operations selected through a selector. The project was developed using block diagrams, exclusively utilizing basic logic gates such as AND, OR, XOR, etc.

Project Description

The ALU performs the following operations based on the 3-bit selector:

S2 S1 S0 Operation
0 0 0 F = A + B
0 0 1 F = A - B
0 1 0 F = MIN(A,B)
0 1 1 F = MAX(A,B)
1 0 0 F = A > B
1 0 1 F = A <= B
1 1 0 F = |A|
1 1 1 F = A << 2

ALU Inputs:

  1. Two 5-bit vectors A and B (1 bit for sign) representing operands. Numbers can be positive or negative binary values (two's complement).
  2. A 3-bit vector S representing the operation selector according to the table above.

ALU Outputs:

  1. A 5-bit vector F representing the operation result (for operations returning a vector). An overflow LED (Light Emitting Diode) indicating overflow (for operations that might generate overflow).
  2. A status LED indicating status (for operations returning a boolean).
  3. A LED indicating negative result (on when negative, off when positive).

Seven-Segment Display Decoder

The ALU project is coupled with a decoder for the seven-segment display, allowing the display of operation results.

Decoder Inputs:

A 5-bit vector representing a positive or negative binary number (two's complement).

Decoder Outputs:

Two 7-bit vectors representing the two seven-segment displays.

FPGA Configuration

The project is further enhanced if successfully implemented on an FPGA. ALU inputs and outputs can be mapped as follows:

  • Input A and B: Mapped to the FPGA's 10 DIP switches.
  • Input S: Mapped to FPGA buttons.
  • Outputs F result: Mapped to the FPGA's seven-segment displays.
  • overflow, status, and negative result: Mapped to the FPGA's LEDs

Contributors

This project was developed by Saulo Roberto dos Santos and Guilherme as part of the coursework for Sistemas Digitais.

ula's People

Contributors

saulolv avatar guilhermec0sta 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.