GithubHelp home page GithubHelp logo

mfkiwl / special-purpose-processor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from samankhamesian/special-purpose-processor

0.0 1.0 0.0 99 KB

This project is an implementation of a special-purpose processor that can calculate greatest common multiple (GCM) and least common factor (LCM) for two inputs based on input operation code (Opcode)

License: Apache License 2.0

Verilog 99.77% Scheme 0.23%

special-purpose-processor's Introduction

Special-Purpose-Processor

Abstract

The main objective of this project was to build a special-purpose processor that can calculate greatest common multiple (GCM) and least common factor (LCM) based on input operation code (opcode). At first I design a datapath and controller for this processor and synchronized them with system clock that implemented using Verilog HDL language. At the end I implement this code on FPGA. (Use Altera DE2-115 board and Cyclone IV EP4CE115 micro-controller)

RTL View

System Design

For this processor, two main modules must have designed.

  • Datapath : Contanis registers, multiplexers, ALU and comparator. Their values are updated according to the next state.
  • Controller : Specify the next state based on datapath outputs.

State Machine

In the controller, the next state is specified based on comparator outputs. Three states are avialable for our state machine.

Testbench

The result of the system for calculating GCM and LCM for 6 and 4 inputs is shown below.

Resukt

special-purpose-processor's People

Contributors

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