Set up eclipse for chisel

344 views
Skip to first unread message

mrproya...@g2.nctu.edu.tw

unread,
Nov 15, 2016, 8:41:10 AM11/15/16
to chisel-users
Hi,

I am new to it.
I want to use eclipse which is already with scala IDE to write chisel instead of using linux terminal.
I wonder how to add chisel3 into library or something so that it's valid to work.(I already downloaded chisel3 source : https://github.com/ucb-bar/chisel3)
Here is my problem below this :


















thanks in advance!

Richard Lin

unread,
Nov 15, 2016, 4:34:12 PM11/15/16
to chisel...@googlegroups.com

Hi,

You will need to add the chisel JAR file as a dependency so the indexer can find the things it's not finding right now.

Go into project properties > Java Build Path > Libraries (tab) > Add External JARs...
Select the chisel3 JAR file:

  • If you're building Chisel3 locally, it will be in chisel3 (repository root)/target/scala-2.11/chisel3_2.11-3.1-SNAPSHOT.jar
  • If you're using the managed dependency (automatically downloaded by SBT), it will be in ~/.ivy2/cache/edu.berkeley.cs/chisel3_2.11/jars/chisel3_2.11-3.0-SNAPSHOT.jar, where ~ is your home directory.

These instructions are approximate, your file names may vary. I'm developing both Chisel3 core and projects on top of it, so the setup I'm referencing may be funkier than yours.

--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users...@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chisel-users/a3592e48-6451-4c8d-ae38-730ab53ed7c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mrproya...@g2.nctu.edu.tw

unread,
Nov 16, 2016, 3:57:04 AM11/16/16
to chisel-users
Hi,Richard
 
thanks for your help.
I added chisel JAR into lib,but it still has errors there.
I think it can't find definition of IO.
how do I solve this problem?


 












thanks a lot 

Richard Lin

unread,
Nov 16, 2016, 4:03:40 AM11/16/16
to chisel...@googlegroups.com

Which JAR did you use (what was the path: in ~/.ivy/local, ~/.ivy/cache, or some other directory), how are you referencing chisel in your sbt configuration, and are you doing anything like sbt publish-local (for Chisel)? IO, Input, and Output are somewhat new (within the past few months) features so this may be a versioning problem, especially since it appears other Chisel constructs (UInt, Module, ...) detect fine.

--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users...@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.

mrproya...@g2.nctu.edu.tw

unread,
Nov 16, 2016, 8:52:32 AM11/16/16
to chisel-users
Hi,Richard
 
thanks a lot ,I find where my problem is.
I want to ask what is advantage if i use eclipse to compile chisel?
My work is write Rocc accelerator and I want to avoid writing chisel in rocc.scala directly(it's hard to debug and rocket chip is too complex to me so far).
I am alone to do this work so I am unable to ask anyone around me.

thanks for your patience

Richard Lin

unread,
Nov 16, 2016, 2:53:30 PM11/16/16
to chisel...@googlegroups.com

I don't think there's any advantage to compiling Chisel with eclipse. sbt is still the recommended workflow for running chisel. Note that the JAR setup I detailed earlier doesn't fully configure Eclipse to match the sbt build, it just did the minimum necessary to remove the unresolved links.

The main advantage of using Eclipse is in development, as a good IDE can highlight errors before you compile and provides autocomplete and navigational tools (like "Open Declaration").

--
You received this message because you are subscribed to the Google Groups "chisel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chisel-users...@googlegroups.com.
To post to this group, send email to chisel...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages