From c1df1297491e86c2554ce38e03cc55e643ef2967 Mon Sep 17 00:00:00 2001 From: Hossein Date: Sat, 27 May 2017 02:45:07 -0400 Subject: [PATCH 1/3] adding instructions for chisel3 users --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 1680087..b39b2ea 100644 --- a/README.md +++ b/README.md @@ -48,3 +48,21 @@ 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 locall publish the hardfloat library. To use hardfloat in your chisel3 project, simply add the following: + + import chisel3._ + import hardfloat._ + From ea01084a2952947b1566cab5338f9ea354220f13 Mon Sep 17 00:00:00 2001 From: Hossein Date: Sat, 27 May 2017 02:46:40 -0400 Subject: [PATCH 2/3] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b39b2ea..8e333ee 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ To compile and publish the project locally using chisel3: sbt -DchiselVersion="latest.release" publish-local -This will locall publish the hardfloat library. To use hardfloat in your chisel3 project, simply add the following: +This will locally publish the hardfloat library. To use hardfloat in your chisel3 project, simply add the following: import chisel3._ import hardfloat._ From fc3071ed5daa9ad8bedeee8dc5bf45dafd50f10b Mon Sep 17 00:00:00 2001 From: Hossein Date: Sat, 27 May 2017 04:04:56 -0400 Subject: [PATCH 3/3] library dependency was added in build.sbt --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e333ee..237b09d 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,11 @@ 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, simply add the following: +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._