Giter Site home page Giter Site logo

FPU Integration about riscduino HOT 2 CLOSED

dineshannayya avatar dineshannayya commented on August 15, 2024
FPU Integration

from riscduino.

Comments (2)

navan93 avatar navan93 commented on August 15, 2024

FPU top interface

Signal Direction Size Description
clk_i Input 1 System clock
rst_ni Input 1 Reset
operand_1 Input 32 Operand 1 for FPU operation
operand_2 Input 32 Operand 2 for FPU operation
operand_3 Input 32 Operand 3 for FPU operation
in_valid Input 1 Indicate inputs are valid for operation
op_i input 4 FPU operation command
out_valid_o output 1 Indicate FPU operation complete and result is ready
result_o output 32 FPU operation result
status_o output 4 Status flags as per RiscV F extension FCSR

FPU operation commands:

typedef enum logic [3:0] {
    FMADD,     //(rs1 × rs2) + rs3
    FNMSUB,   //-(rs1 × rs2) + rs3
    ADD,          //rs1 + rs2
    MUL,          //rs1 x rs2 
    DIV,            //rs1 / rs2
    SQRT,       //sqrt(rs1) 
    SGNJ,      //Floating-point to floating-point sign-injection
    MINMAX, //
    CMP,       // (rs1 = rs2, rs1 < rs2, rs1 ≤ rs2)
    CLASSIFY,  // indicates the class of the floating-point numbe
    F2I,  //Float to integer
    I2F,  //Integer to float
  } operation_e;

The files ycr_pipe_idu.sv, ycr_pipe_lsu.sv, ycr_pipe_exu.sv will need modifications to decode "F" extension instructions, perform load/store from RAM to FP register file and then use FPU to perform the operation instead of the ALU.

@dineshannayya please let me know your thoughts.

from riscduino.

dineshannayya avatar dineshannayya commented on August 15, 2024

We will follow up in skype messages

from riscduino.

Related Issues (20)

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.