GithubHelp home page GithubHelp logo

cpu's Introduction

CPU Project

Summary

This repository include single-cycle CPU and pipelined CPU. these CPUs support arithmetic and logic operation. In addition, these CPUs can read and write to external FIFO memory.

List of Aailable Oeration

  • NOP
  • INC
  • ADD
  • ADD_INC
  • SUB_1C
  • SUB
  • DEC
  • MOV
  • AND
  • OR
  • XOR
  • NOT
  • SHIFT_RIGHT
  • SHIFT_LEFT
  • LOAD_FIFO
  • STORE_FIFO
  • STORE
  • LOAD
  • ADD_IM
  • SUB_1C_IM
  • SUB_IM
  • MOV_IM
  • AND_IM
  • OR_IM
  • XOR_IM
  • BRANCH_C
  • BRANCH_NC
  • BRANCH_Z
  • BRANCH_NZ
  • BRANCH_O
  • BRANCH_NO
  • BRANCH_N
  • BRANCH_P
  • JUMP
  • HALT

Interface To External FIFO Memory

Every request to the FIFO for read or write build from two words.

  • Word 1:
    • D15:D1 - number of words to write (available only on write requset).
    • D0 - request type. 0 = read | 1 = write.
  • Word 2:
    • D15:D0 - RAM address to read or write.

Test Bach

  • The file data_ram.mem is for simulat RAM memory.
  • The file inst_rom.mem is for simulat ROM memory. this file has program to cpu execute in HEX code. using Assembler.xlsx file we can convert from Assembler anguage to HEX language

cpu's People

Contributors

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