Giter Club home page Giter Club logo

single-cycle-risc-v-processor's Introduction

Single-Cycle-RISC-V-processor

Introduction: In the dynamic landscape of computer architecture, the RISC-V instruction set has emerged as a beacon of innovation, offering an open and extensible foundation for processor design. As we navigate the intricate realm of RISC-V, this article serves as a compass, guiding us through the fundamental aspects of its instruction set and the intricacies of single-cycle and multi-cycle implementations. At the heart of RISC-V lies its instruction set architecture (ISA), characterized by a streamlined design philosophy that emphasizes simplicity, efficiency, and openness. As we delve into the RISC-V instruction set, we will decode the architecture's unique approach to command execution, exploring how it strikes a balance between performance and versatility. From its elegant simplicity to its comprehensive set of instructions, RISC-V beckons us to rethink the way processors interpret and execute commands. Venturing further, we will dissect the single-cycle implementation of RISC-V, where each instruction is executed in a single clock cycle. This efficient approach simplifies the pipeline and promises low-latency processing. We'll examine the intricacies of the single-cycle architecture, uncovering how it optimizes execution speed and resource utilization. Through detailed analysis, we aim to illustrate the strengths and limitations of the single-cycle paradigm, providing insights into its real-world applications and trade-offs.

Instruction Set Architecture: Within the expansive RISC-V Instruction Set Architecture (ISA), I have taken a deliberate approach by carefully choosing a range of instructions that span various formats, including computational, control flow, and memory access. This selective approach will guide us as we design a custom Datapath and precisely specify the control signals needed to execute our chosen instructions efficiently. The instruction set in RISC-V is organized into distinct instruction formats, with each format comprising individual "fields." These fields are essentially separate unsigned integers, each serving as a dedicated container for conveying precise information about the intended operation to be executed.

Screenshot 2024-02-08 024623

Supported Instructions:

Screenshot 2024-02-08 024807

Basic Architecture : I have modified the architecture to add more Instruction Set.

d

Basic Control unit :

Screenshot 2024-02-08 025042

Simulatiom :

The code

Screenshot 2024-02-08 025155

The result :

Screenshot 2024-02-08 023941

another Code :

Screenshot 2024-02-08 025318

Results :

Screenshot 2024-02-08 003642

Screenshot 2024-02-08 003758

Elaboration Design using VIVADO:

Screenshot 2024-02-08 003921

Synthesis using VIVADO:

Screenshot 2024-02-08 004643

Reference :

1- Digital Design and Computer Architecture Sarah Harris ,David Harris.

2-The RISC-V Instruction Set Manual Volume I: User-Level ISA Document Version 2.2

single-cycle-risc-v-processor's People

Contributors

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