Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,25 @@ To test floating-point units with the C simulator:

$ make


Working With Chisel3
--------------------

For the time being, berkeley hardfloat cannot be downloaded by SBT and users have to compile and publish it locally. For that, first clone this repository:

git clone https://github.com/ucb-bar/berkeley-hardfloat.git hardfloat
cd hardfloat

To compile and publish the project locally using chisel3:

sbt -DchiselVersion="latest.release" publish-local

This will locally publish the hardfloat library. To use hardfloat in your chisel3 project, first add the library dependancy in your build.sbt file:

libraryDependencies ++= Seq("edu.berkeley.cs" %% "hardfloat" % "1.2")

Then, import the library:

import chisel3._
import hardfloat._