Author Topic: Open source FPU with 1 cycle performance  (Read 6326 times)

0 Members and 1 Guest are viewing this topic.

Offline ali_asadzadehTopic starter

  • Super Contributor
  • ***
  • Posts: 1908
  • Country: ca
Re: Open source FPU with 1 cycle performance
« Reply #25 on: March 06, 2020, 06:33:04 pm »
Thanks brucehoult,

Quote
I've already pointed you to the source code for the Berkeley FPU (which you'd find somewhere inside that obfuscated E76 evaluation core).
Do you have any idea on How much resource and speed can it achieve on an ARTIX 7 device?
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4079
  • Country: nz
Re: Open source FPU with 1 cycle performance
« Reply #26 on: March 06, 2020, 08:52:28 pm »
Thanks brucehoult,

Quote
I've already pointed you to the source code for the Berkeley FPU (which you'd find somewhere inside that obfuscated E76 evaluation core).
Do you have any idea on How much resource and speed can it achieve on an ARTIX 7 device?

You might find this paper interesting: https://hal.archives-ouvertes.fr/hal-02303453/document

They give figures for a number of RISC-V cores. For a Rocket implementing RV32IMF they get 76 MHz on an Artix 7 and 8132 LUT, 3094 FF. I'm pretty sure I've seen Rocket-based cores running at 100 MHz on an Artix 7 but that might be without FPU.
 
The following users thanked this post: ali_asadzadeh

Offline ali_asadzadehTopic starter

  • Super Contributor
  • ***
  • Posts: 1908
  • Country: ca
Re: Open source FPU with 1 cycle performance
« Reply #27 on: July 11, 2020, 12:07:37 pm »
Does anybody know how to get verilog from the chisel?

https://github.com/ucb-bar/berkeley-hardfloat/

I want to generate verilog form this berkeley repo, there is also a build.sbt in the repo.
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Offline ali_asadzadehTopic starter

  • Super Contributor
  • ***
  • Posts: 1908
  • Country: ca
Re: Open source FPU with 1 cycle performance
« Reply #28 on: December 10, 2020, 01:41:27 pm »
No Idea on how to compile chisel to Verilog, if anyone knows something please point it out for the berkeley-hardfloat on GitHub
So we can take a look at it, also I have found this useful open-source FPU, it's not what I wanted to accept data on every cycle, But it has low area and good speed, it can reach 150MHz on Gowin.

https://github.com/dawsonjon/fpu
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4079
  • Country: nz
Re: Open source FPU with 1 cycle performance
« Reply #29 on: December 10, 2020, 09:23:42 pm »
No Idea on how to compile chisel to Verilog, if anyone knows something please point it out for the berkeley-hardfloat on GitHub
So we can take a look at it, also I have found this useful open-source FPU, it's not what I wanted to accept data on every cycle, But it has low area and good speed, it can reach 150MHz on Gowin.

https://github.com/dawsonjon/fpu

You generate Verilog from chisel by ... running chisel. That's its purpose.

Well, these days chisel itself generates FIRRTL (Flexible Intermediate Representation for RTL), and then you run various optimizations on the FIRRTL (including such things as optimizing for SoC or for FPGA, and then you convert the FIRRTL to Verilog or I think VHDL is also an option.

You can also I believe convert Verilog or VHDL to FIRRTL for optimization.
 

Offline ali_asadzadehTopic starter

  • Super Contributor
  • ***
  • Posts: 1908
  • Country: ca
Re: Open source FPU with 1 cycle performance
« Reply #30 on: December 10, 2020, 10:22:18 pm »
Thanks bruce, do you recommend any  tutorials on chisel?
ASiDesigner, Stands for Application specific intelligent devices
I'm a Digital Expert from 8-bits to 64-bits
 

Online brucehoult

  • Super Contributor
  • ***
  • Posts: 4079
  • Country: nz
Re: Open source FPU with 1 cycle performance
« Reply #31 on: December 10, 2020, 11:30:08 pm »
Thanks bruce, do you recommend any  tutorials on chisel?

I used to work with the people who made it (and continue to enhance it) but I've never used it myself.

A quick  google search finds tutorials at Berkeley University, and this one seems reasonable as a quick start:

https://www.instructables.com/Getting-Started-With-Chisel/

But I just found that in 30 seconds so I expect you've already looked at that and more in the last five months since your initial messages.
 
The following users thanked this post: ali_asadzadeh


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf