New to Chisel

440 views
Skip to first unread message

Santhosh Kumar

unread,
Mar 13, 2015, 3:08:09 AM3/13/15
to chisel...@googlegroups.com
Hi All,

I am new to Chisel HDL and i have some doubt on chisel language. Can any one can help me out!!
  1. What are Main requirements to learn Chisel as a fresher. 
  2. How to Run the Chisel code. If there is any tool to compile the code. 
  3. How to install in Ubuntu system.
  4. How  Chisel will generate the Verilog RTL code. For that we need any compiler or software.
                         Thank you,

Regards,
Santhosh Kumar.

Stephen Twigg

unread,
Mar 13, 2015, 5:35:52 PM3/13/15
to chisel...@googlegroups.com
1. The only major requirement is willingness to learn a new language (Chisel and basic Scala) and, installed on your machine: java and a C++ compiler (gcc preferred). As Chisel is an internally hosted domain-specific language/library in Scala, all of your hardware generators/descriptions will essentially be Scala programs. Scala is very closely related to Java (and in fact run using the Java VM).

2. This readme should handle your getting started issues: https://github.com/ucb-bar/chisel/blob/master/README.md . Note that you need to have a C++ compiler (Chisel assumes this is g++) and java installed on the machine

3. See 2.

4. Running a compiled Chisel program with the flag --backend v will emit a Verilog file, which you are then free to use however you need.

PS: Note that, if you try to use the Chisel tester with the Verilog backend enabled, Chisel will use VCS to compile the Verilog. If you do not have VCS installed, stay to using the C++ backend when using the Chisel tester. Then, use Modelsim or some other Verilog compiler/testing suite to test generated Verilog with your own Verilog testbenches. Regardless, you can still generate Verilog without VCS installed (you just may find it hard to test!).

Santhosh Kumar

unread,
Mar 23, 2015, 5:23:15 AM3/23/15
to chisel...@googlegroups.com
Hi Thank you for replay.

I was complied the normal scala file(with Chisel Library) and check the output put. Its working fine.
but while run the "scala with Chisel library" file we are getting the errors like

HelloModule.scala:1: error: not found: object Chisel
   import Chisel._
          ^
HelloModule.scala:8: error: too many arguments for constructor Object: ()java.lang.Object
   class HelloModuleTests(c: HelloModule) extends Tester(c) {
                         ^
Here HelloModule.scala example file.

How to compile and run the chisel with scala file.
Please tell the respective compilation and run commands.

scala and Java versions in my Desktop:

Scala code runner version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL

java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
Reply all
Reply to author
Forward
0 new messages